/[tivodecode]/t2sami/trunk/getopt_long.h
ViewVC logotype

Contents of /t2sami/trunk/getopt_long.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 251 - (show annotations) (download)
Fri Aug 31 06:19:10 2007 UTC (14 years, 11 months ago) by jeremyd2019
File MIME type: text/plain
File size: 1113 byte(s)
sync common files between t2sami and tivodecode.  remove extraneous extern "C" around includes in t2sami because tivodecode headers now have them

1 /*
2 * Portions Copyright (c) 1987, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Portions Copyright (c) 2003-2006, PostgreSQL Global Development Group
6 *
7 * $PostgreSQL: pgsql/src/include/getopt_long.h,v 1.6 2005/01/01 20:44:26 tgl Exp $
8 */
9 #ifndef GETOPT_LONG_H
10 #define GETOPT_LONG_H
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #ifdef HAVE_GETOPT_H
16 #include <getopt.h>
17 #else
18 /* These are picked up from the system's getopt() facility. */
19 extern int opterr;
20 extern int optind;
21 extern int optopt;
22 extern char *optarg;
23 #endif
24
25 #if !defined(HAVE_GETOPT) || !defined(HAVE_INT_OPTRESET)
26 /* Some systems have this, otherwise you need to define it somewhere. */
27 extern int optreset;
28 #endif
29
30 #ifndef HAVE_STRUCT_OPTION
31
32 struct option
33 {
34 const char *name;
35 int has_arg;
36 int *flag;
37 int val;
38 };
39
40 #define no_argument 0
41 #define required_argument 1
42 #endif
43
44 #ifndef HAVE_GETOPT_LONG
45
46 extern int getopt_long(int argc, char *const argv[],
47 const char *optstring,
48 const struct option * longopts, int *longindex);
49 #endif
50
51 #ifdef __cplusplus
52 }
53 #endif
54 #endif /* GETOPT_LONG_H */

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13