aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorUlrich Drepper1998-04-14 00:02:53 +0000
committerUlrich Drepper1998-04-14 00:02:53 +0000
commit06bd27fdf5fa529e58ce129e3d906d17b5dcda34 (patch)
treeb3b06998a92e40fccfede0d5c5bc23a0754192c6 /lib-src
parent4ad8bb205e89d91ca2703641bfc602499ac6678c (diff)
downloademacs-06bd27fdf5fa529e58ce129e3d906d17b5dcda34.tar.gz
emacs-06bd27fdf5fa529e58ce129e3d906d17b5dcda34.zip
automatically generated from GPLed version
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/getopt.c14
-rw-r--r--lib-src/getopt1.c9
2 files changed, 12 insertions, 11 deletions
diff --git a/lib-src/getopt.c b/lib-src/getopt.c
index fc87ce67d69..df61ee5cf7e 100644
--- a/lib-src/getopt.c
+++ b/lib-src/getopt.c
@@ -1,9 +1,9 @@
1/* Getopt for GNU. 1/* Getopt for GNU.
2 NOTE: getopt is now part of the C library, so if you don't know what 2 NOTE: getopt is now part of the C library, so if you don't know what
3 "Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu 3 "Keep this file name-space clean" means, talk to drepper@gnu.org
4 before changing it! 4 before changing it!
5 5
6 Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97 6 Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
7 Free Software Foundation, Inc. 7 Free Software Foundation, Inc.
8 8
9 NOTE: The canonical source of this file is maintained with the GNU C Library. 9 NOTE: The canonical source of this file is maintained with the GNU C Library.
@@ -34,7 +34,7 @@
34#include <config.h> 34#include <config.h>
35#endif 35#endif
36 36
37#if !defined (__STDC__) || !__STDC__ 37#if !defined __STDC__ || !__STDC__
38/* This is a separate conditional since some stdc systems 38/* This is a separate conditional since some stdc systems
39 reject `defined (const)'. */ 39 reject `defined (const)'. */
40#ifndef const 40#ifndef const
@@ -53,7 +53,7 @@
53 it is simpler to just do this in the source for each such file. */ 53 it is simpler to just do this in the source for each such file. */
54 54
55#define GETOPT_INTERFACE_VERSION 2 55#define GETOPT_INTERFACE_VERSION 2
56#if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 56#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2
57#include <gnu-versions.h> 57#include <gnu-versions.h>
58#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION 58#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION
59#define ELIDE_CODE 59#define ELIDE_CODE
@@ -225,7 +225,7 @@ my_index (str, chr)
225#ifdef __GNUC__ 225#ifdef __GNUC__
226/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. 226/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
227 That was relevant to code that was here before. */ 227 That was relevant to code that was here before. */
228#if !defined (__STDC__) || !__STDC__ 228#if !defined __STDC__ || !__STDC__
229/* gcc with -traditional declares the built-in strlen to return int, 229/* gcc with -traditional declares the built-in strlen to return int,
230 and has done so at least since version 2.4.5. -- rms. */ 230 and has done so at least since version 2.4.5. -- rms. */
231extern int strlen (const char *); 231extern int strlen (const char *);
@@ -292,7 +292,7 @@ text_set_element (__libc_subinit, store_args_and_env);
292 `first_nonopt' and `last_nonopt' are relocated so that they describe 292 `first_nonopt' and `last_nonopt' are relocated so that they describe
293 the new indices of the non-options in ARGV after they are moved. */ 293 the new indices of the non-options in ARGV after they are moved. */
294 294
295#if defined (__STDC__) && __STDC__ 295#if defined __STDC__ && __STDC__
296static void exchange (char **); 296static void exchange (char **);
297#endif 297#endif
298 298
@@ -378,7 +378,7 @@ exchange (argv)
378 378
379/* Initialize the internal data when the first call is made. */ 379/* Initialize the internal data when the first call is made. */
380 380
381#if defined (__STDC__) && __STDC__ 381#if defined __STDC__ && __STDC__
382static const char *_getopt_initialize (int, char *const *, const char *); 382static const char *_getopt_initialize (int, char *const *, const char *);
383#endif 383#endif
384static const char * 384static const char *
diff --git a/lib-src/getopt1.c b/lib-src/getopt1.c
index af8e6819657..ff257374c33 100644
--- a/lib-src/getopt1.c
+++ b/lib-src/getopt1.c
@@ -1,8 +1,9 @@
1/* getopt_long and getopt_long_only entry points for GNU getopt. 1/* getopt_long and getopt_long_only entry points for GNU getopt.
2 Copyright (C) 1987,88,89,90,91,92,93,94,96,97 Free Software Foundation, Inc. 2 Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98
3 Free Software Foundation, Inc.
3 4
4 NOTE: The canonical source of this file is maintained with the GNU C Library. 5 NOTE: The canonical source of this file is maintained with the GNU C Library.
5 Bugs can be reported to bug-glibc@prep.ai.mit.edu. 6 Bugs can be reported to bug-glibc@gnu.org.
6 7
7 This program is free software; you can redistribute it and/or modify it 8 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 9 under the terms of the GNU General Public License as published by the
@@ -25,7 +26,7 @@
25 26
26#include "getopt.h" 27#include "getopt.h"
27 28
28#if !defined (__STDC__) || !__STDC__ 29#if !defined __STDC__ || !__STDC__
29/* This is a separate conditional since some stdc systems 30/* This is a separate conditional since some stdc systems
30 reject `defined (const)'. */ 31 reject `defined (const)'. */
31#ifndef const 32#ifndef const
@@ -44,7 +45,7 @@
44 it is simpler to just do this in the source for each such file. */ 45 it is simpler to just do this in the source for each such file. */
45 46
46#define GETOPT_INTERFACE_VERSION 2 47#define GETOPT_INTERFACE_VERSION 2
47#if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 48#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2
48#include <gnu-versions.h> 49#include <gnu-versions.h>
49#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION 50#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION
50#define ELIDE_CODE 51#define ELIDE_CODE