version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2016/11/02 10:09:10
|
Line 23
|
Line 23
|
along with this program; if not, write to the Free Software |
along with this program; if not, write to the Free Software |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
USA. */ |
USA. */ |
| |
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. |
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. |
Ditto for AIX 3.2 and <stdlib.h>. */ |
Ditto for AIX 3.2 and <stdlib.h>. */ |
#ifndef _NO_PROTO |
#ifndef _NO_PROTO |
# define _NO_PROTO |
# define _NO_PROTO |
#endif |
#endif |
|
|
#ifdef HAVE_CONFIG_H |
|
# include <config.h> |
|
#endif |
|
|
|
#include <zebra.h> |
#include <zebra.h> |
|
|
#if !defined __STDC__ || !__STDC__ |
#if !defined __STDC__ || !__STDC__ |
Line 193 static enum
|
Line 189 static enum
|
|
|
/* Value of POSIXLY_CORRECT environment variable. */ |
/* Value of POSIXLY_CORRECT environment variable. */ |
static char *posixly_correct; |
static char *posixly_correct; |
| |
#ifdef __GNU_LIBRARY__ |
#ifdef __GNU_LIBRARY__ |
/* We want to avoid inclusion of string.h with non-GNU libraries |
/* We want to avoid inclusion of string.h with non-GNU libraries |
because there are many ways it can cause trouble. |
because there are many ways it can cause trouble. |
Line 243 extern int strlen (const char *);
|
Line 239 extern int strlen (const char *);
|
#endif /* __GNUC__ */ |
#endif /* __GNUC__ */ |
|
|
#endif /* not __GNU_LIBRARY__ */ |
#endif /* not __GNU_LIBRARY__ */ |
| |
/* Handle permutation of arguments. */ |
/* Handle permutation of arguments. */ |
|
|
/* Describe the part of ARGV that contains non-options that have |
/* Describe the part of ARGV that contains non-options that have |
Line 456 _getopt_initialize (argc, argv, optstring)
|
Line 452 _getopt_initialize (argc, argv, optstring)
|
|
|
return optstring; |
return optstring; |
} |
} |
| |
/* Scan elements of ARGV (whose length is ARGC) for option characters |
/* Scan elements of ARGV (whose length is ARGC) for option characters |
given in OPTSTRING. |
given in OPTSTRING. |
|
|
Line 986 getopt (argc, argv, optstring)
|
Line 982 getopt (argc, argv, optstring)
|
#endif /* REALLY_NEED_PLAIN_GETOPT */ |
#endif /* REALLY_NEED_PLAIN_GETOPT */ |
|
|
#endif /* Not ELIDE_CODE. */ |
#endif /* Not ELIDE_CODE. */ |
| |
#ifdef TEST |
#ifdef TEST |
|
|
/* Compile with -DTEST to make an executable for use in testing |
/* Compile with -DTEST to make an executable for use in testing |