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.4 by pcg, Tue Apr 26 00:55:55 2005 UTC

2 Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc. 2 Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
3 3
4NOTE: The canonical source of this file is maintained with the GNU C Library. 4NOTE: The canonical source of this file is maintained with the GNU C Library.
5Bugs can be reported to bug-glibc@prep.ai.mit.edu. 5Bugs can be reported to bug-glibc@prep.ai.mit.edu.
6 6
7This file is part of GVPE.
8
7This program is free software; you can redistribute it and/or modify it 9 GVPE is free software; you can redistribute it and/or modify it
8under the terms of the GNU General Public License as published by the 10under the terms of the GNU General Public License as published by the
9Free Software Foundation; either version 2, or (at your option) any 11Free Software Foundation; either version 2, or (at your option) any
10later version. 12later version.
11 13
12This program is distributed in the hope that it will be useful, 14This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of 15but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details. 17GNU General Public License for more details.
16 18
17You should have received a copy of the GNU General Public License 19You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software 20along with gvpe; if not, write to the Free Software
19Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/ 22*/
21 23
22#ifndef _GETOPT_H 24#ifndef _GETOPT_H
23#define _GETOPT_H 1 25#define _GETOPT_H 1
24 26
103/* Many other libraries have conflicting prototypes for getopt, with 105/* Many other libraries have conflicting prototypes for getopt, with
104 differences in the consts, in stdlib.h. To avoid compilation 106 differences in the consts, in stdlib.h. To avoid compilation
105 errors, only prototype getopt for the GNU C library. */ 107 errors, only prototype getopt for the GNU C library. */
106extern int getopt (int argc, char *const *argv, const char *shortopts); 108extern int getopt (int argc, char *const *argv, const char *shortopts);
107#else /* not __GNU_LIBRARY__ */ 109#else /* not __GNU_LIBRARY__ */
108extern int getopt ();
109#endif /* __GNU_LIBRARY__ */ 110#endif /* __GNU_LIBRARY__ */
110extern int getopt_long (int argc, char *const *argv, const char *shortopts, 111extern int getopt_long (int argc, char *const *argv, const char *shortopts,
111 const struct option *longopts, int *longind); 112 const struct option *longopts, int *longind);
112extern int getopt_long_only (int argc, char *const *argv, 113extern int getopt_long_only (int argc, char *const *argv,
113 const char *shortopts, 114 const char *shortopts,
117extern int _getopt_internal (int argc, char *const *argv, 118extern int _getopt_internal (int argc, char *const *argv,
118 const char *shortopts, 119 const char *shortopts,
119 const struct option *longopts, int *longind, 120 const struct option *longopts, int *longind,
120 int long_only); 121 int long_only);
121#else /* not __STDC__ */ 122#else /* not __STDC__ */
122extern int getopt ();
123extern int getopt_long (); 123extern int getopt_long ();
124extern int getopt_long_only (); 124extern int getopt_long_only ();
125 125
126extern int _getopt_internal (); 126extern int _getopt_internal ();
127#endif /* __STDC__ */ 127#endif /* __STDC__ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines