/[gnats]/gnats/include/getopt.h
ViewVC logotype

Diff of /gnats/include/getopt.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by bmanson, Wed Aug 2 21:46:18 2000 UTC revision 1.4 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 1  Line 1 
1  /* Declarations for getopt.  /* Declarations for getopt.
2     Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.     Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000,
3       2002 Free Software Foundation, Inc.
4    
5     NOTE: The canonical source of this file is maintained with the GNU C Library.     NOTE: The canonical source of this file is maintained with the GNU C Library.
6     Bugs can be reported to bug-glibc@gnu.org.     Bugs can be reported to bug-glibc@gnu.org.
# Line 99  struct option Line 100  struct option
100  #define optional_argument       2  #define optional_argument       2
101    
102  #if defined (__STDC__) && __STDC__  #if defined (__STDC__) && __STDC__
103  #ifdef __GNU_LIBRARY__  /* HAVE_DECL_* is a three-state macro: undefined, 0 or 1.  If it is
104       undefined, we haven't run the autoconf check so provide the
105       declaration without arguments.  If it is 0, we checked and failed
106       to find the declaration so provide a fully prototyped one.  If it
107       is 1, we found it so don't provide any declaration at all.  */
108    #if !HAVE_DECL_GETOPT
109    #if defined (__GNU_LIBRARY__) || defined (HAVE_DECL_GETOPT)
110  /* Many other libraries have conflicting prototypes for getopt, with  /* Many other libraries have conflicting prototypes for getopt, with
111     differences in the consts, in stdlib.h.  To avoid compilation     differences in the consts, in unistd.h.  To avoid compilation
112     errors, only prototype getopt for the GNU C library.  */     errors, only prototype getopt for the GNU C library.  */
113  extern int getopt (int argc, char *const *argv, const char *shortopts);  extern int getopt (int argc, char *const *argv, const char *shortopts);
114  #endif /* __GNU_LIBRARY__ */  #else
115    #ifndef __cplusplus
116    extern int getopt ();
117    #endif /* __cplusplus */
118    #endif
119    #endif /* !HAVE_DECL_GETOPT */
120    
121  extern int getopt_long (int argc, char *const *argv, const char *shortopts,  extern int getopt_long (int argc, char *const *argv, const char *shortopts,
122                          const struct option *longopts, int *longind);                          const struct option *longopts, int *longind);
123  extern int getopt_long_only (int argc, char *const *argv,  extern int getopt_long_only (int argc, char *const *argv,

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26