SLJ Test
1.0
System Latency Jitter Test
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
replgetopt.h
Go to the documentation of this file.
1
86
#ifndef REPLGETOPT_H
87
#define REPLGETOPT_H
88
89
#define NEED_GETOPT 0
90
#define NEED_GETOPT_LONG 0
91
#ifdef _WIN32
92
#undef NEED_GETOPT
93
#define NEED_GETOPT 1
94
#undef NEED_GETOPT_LONG
95
#define NEED_GETOPT_LONG 1
96
#endif
97
/* A kludgy check to see if one of the getopt_long() symbols is defined. */
98
#ifndef no_argument
99
#undef NEED_GETOPT_LONG
100
#define NEED_GETOPT_LONG 1
101
#endif
102
103
/* include files needed by this include file */
104
105
#ifdef NEED_GETOPT_LONG
106
/* macros defined by this include file */
107
#define no_argument 0
108
#define required_argument 1
109
#define optional_argument 2
110
111
/* types defined by this include file */
112
113
/* option: The type of long option */
114
struct
option
115
{
116
char
*
name
;
/* the name of the long option */
117
int
has_arg
;
/* one of the above macros */
118
int
*
flag
;
/* determines if getopt_long() returns a
119
* value for a long option; if it is
120
* non-NULL, 0 is returned as a function
121
* value and the value of val is stored in
122
* the area pointed to by flag. Otherwise,
123
* val is returned. */
124
int
val
;
/* determines the value to return if flag is
125
* NULL. */
126
};
127
#endif
128
129
#ifdef __cplusplus
130
extern
"C"
131
{
132
#endif
133
134
/* externally-defined variables */
135
#if (NEED_GETOPT | NEED_GETOPT_LONG)
136
extern
char
*
optarg
;
137
extern
int
optind
;
138
extern
int
opterr
;
139
extern
int
optopt
;
140
#endif
141
142
/* function prototypes */
143
#if NEED_GETOPT
144
int
getopt (
int
argc,
char
**argv,
const
char
* optstring);
145
#endif
146
#if NEED_GETOPT_LONG
147
int
getopt_long
(
int
argc,
char
**argv,
const
char
* shortopts,
148
const
struct
option
* longopts,
int
* longind);
149
int
getopt_long_only
(
int
argc,
char
* * argv,
const
char
* shortopts,
150
const
struct
option
* longopts,
int
*longind);
151
#endif
152
153
#ifdef __cplusplus
154
}
155
156
#endif
157
158
#endif
/* GETOPT_H */
159
160
/* END OF FILE getopt.h */
161
Generated on Thu Dec 27 2012 21:19:19 for SLJ Test by
1.8.1.2