ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/third-party/gnugetopt.h
(Generate patch)

Comparing trunk/OOPSE-1.0/third-party/gnugetopt.h (file contents):
Revision 1347 by gezelter, Mon Jul 19 16:32:46 2004 UTC vs.
Revision 1356 by gezelter, Mon Jul 19 21:58:37 2004 UTC

# Line 1 | Line 1
1   /* Declarations for getopt.
2 <   Copyright (C) 1989-1994, 1996-1999,2001,2003 Free Software Foundation, Inc.
2 >   Copyright (C) 1989-1994,1996-1999,2001,2003,2004
3 >   Free Software Foundation, Inc.
4     This file is part of the GNU C Library.
5  
6 <   The GNU C Library is free software; you can redistribute it and/or
7 <   modify it under the terms of the GNU Lesser General Public
8 <   License as published by the Free Software Foundation; either
9 <   version 2.1 of the License, or (at your option) any later version.
6 >   This program is free software; you can redistribute it and/or modify
7 >   it under the terms of the GNU General Public License as published by
8 >   the Free Software Foundation; either version 2, or (at your option)
9 >   any later version.
10  
11 <   The GNU C Library is distributed in the hope that it will be useful,
11 >   This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13 <   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 <   Lesser General Public License for more details.
13 >   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 >   GNU General Public License for more details.
15  
16 <   You should have received a copy of the GNU Lesser General Public
17 <   License along with the GNU C Library; if not, write to the Free
18 <   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 <   02111-1307 USA.  */
16 >   You should have received a copy of the GNU General Public License along
17 >   with this program; if not, write to the Free Software Foundation,
18 >   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19  
20   #ifndef _GETOPT_H
21  
# Line 35 | Line 35
35   #endif
36  
37   #ifndef __THROW
38 + # ifndef __GNUC_PREREQ
39 + #  define __GNUC_PREREQ(maj, min) (0)
40 + # endif
41   # if defined __cplusplus && __GNUC_PREREQ (2,8)
42   #  define __THROW       throw ()
43   # else
# Line 101 | Line 104 | struct option
104  
105   struct option
106   {
104 # if (defined __STDC__ && __STDC__) || defined __cplusplus
107    const char *name;
106 # else
107  char *name;
108 # endif
108    /* has_arg can't be an enum because some compilers complain about
109       type mismatches in all the code that assumes it is an int.  */
110    int has_arg;
# Line 145 | Line 144 | struct option
144     arguments to the option '\0'.  This behavior is specific to the GNU
145     `getopt'.  */
146  
147 < #if (defined __STDC__ && __STDC__) || defined __cplusplus
149 < # ifdef __GNU_LIBRARY__
147 > #ifdef __GNU_LIBRARY__
148   /* Many other libraries have conflicting prototypes for getopt, with
149     differences in the consts, in stdlib.h.  To avoid compilation
150     errors, only prototype getopt for the GNU C library.  */
151   extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
152         __THROW;
153 < # else /* not __GNU_LIBRARY__ */
153 > #else /* not __GNU_LIBRARY__ */
154   extern int getopt ();
155 < # endif /* __GNU_LIBRARY__ */
155 > #endif /* __GNU_LIBRARY__ */
156  
157 < # ifndef __need_getopt
157 > #ifndef __need_getopt
158   extern int getopt_long (int ___argc, char *const *___argv,
159                          const char *__shortopts,
160                          const struct option *__longopts, int *__longind)
# Line 166 | Line 164 | extern int getopt_long_only (int ___argc, char *const
164                               const struct option *__longopts, int *__longind)
165         __THROW;
166  
167 < /* Internal only.  Users should not call this directly.  */
170 < extern int _getopt_internal (int ___argc, char *const *___argv,
171 <                             const char *__shortopts,
172 <                             const struct option *__longopts, int *__longind,
173 <                             int __long_only);
174 < # endif
175 < #else /* not __STDC__ */
176 < extern int getopt ();
177 < # ifndef __need_getopt
178 < extern int getopt_long ();
179 < extern int getopt_long_only ();
167 > #endif
168  
181 extern int _getopt_internal ();
182 # endif
183 #endif /* __STDC__ */
184
169   #ifdef  __cplusplus
170   }
171   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines