ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/lib/getopt.h
(Generate patch)

Comparing gvpe/lib/getopt.h (file contents):
Revision 1.1 by pcg, Sat Mar 1 15:53:02 2003 UTC vs.
Revision 1.2 by pcg, Tue Oct 14 03:22:09 2003 UTC

103/* Many other libraries have conflicting prototypes for getopt, with 103/* Many other libraries have conflicting prototypes for getopt, with
104 differences in the consts, in stdlib.h. To avoid compilation 104 differences in the consts, in stdlib.h. To avoid compilation
105 errors, only prototype getopt for the GNU C library. */ 105 errors, only prototype getopt for the GNU C library. */
106extern int getopt (int argc, char *const *argv, const char *shortopts); 106extern int getopt (int argc, char *const *argv, const char *shortopts);
107#else /* not __GNU_LIBRARY__ */ 107#else /* not __GNU_LIBRARY__ */
108extern int getopt ();
109#endif /* __GNU_LIBRARY__ */ 108#endif /* __GNU_LIBRARY__ */
110extern int getopt_long (int argc, char *const *argv, const char *shortopts, 109extern int getopt_long (int argc, char *const *argv, const char *shortopts,
111 const struct option *longopts, int *longind); 110 const struct option *longopts, int *longind);
112extern int getopt_long_only (int argc, char *const *argv, 111extern int getopt_long_only (int argc, char *const *argv,
113 const char *shortopts, 112 const char *shortopts,
117extern int _getopt_internal (int argc, char *const *argv, 116extern int _getopt_internal (int argc, char *const *argv,
118 const char *shortopts, 117 const char *shortopts,
119 const struct option *longopts, int *longind, 118 const struct option *longopts, int *longind,
120 int long_only); 119 int long_only);
121#else /* not __STDC__ */ 120#else /* not __STDC__ */
122extern int getopt ();
123extern int getopt_long (); 121extern int getopt_long ();
124extern int getopt_long_only (); 122extern int getopt_long_only ();
125 123
126extern int _getopt_internal (); 124extern int _getopt_internal ();
127#endif /* __STDC__ */ 125#endif /* __STDC__ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines