annotate lib/argp-namefrob.h @ 17480:f40b3156a43e

selinux-at: omit unnecessary include * lib/selinux-at.c: Don't include dosname.h; not needed, since this source file doesn't use its macros, and subsidiary files that use the macros already include it.
author Paul Eggert <eggert@cs.ucla.edu>
date Fri, 23 Aug 2013 13:53:46 -0700
parents e542fd46ad6f
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Name frobnication for compiling argp outside of glibc
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
2 Copyright (C) 1997, 2003, 2007, 2009-2013 Free Software Foundation, Inc.
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 This file is part of the GNU C Library.
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7944
diff changeset
6 This program is free software: you can redistribute it and/or modify
4419
9b828c973b9d Get lib/argp* from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4385
diff changeset
7 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7944
diff changeset
8 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7944
diff changeset
9 (at your option) any later version.
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
4419
9b828c973b9d Get lib/argp* from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4385
diff changeset
11 This program is distributed in the hope that it will be useful,
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
4419
9b828c973b9d Get lib/argp* from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4385
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9b828c973b9d Get lib/argp* from glibc.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4385
diff changeset
14 GNU General Public License for more details.
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7944
diff changeset
16 You should have received a copy of the GNU General Public License
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 7944
diff changeset
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #if !_LIBC
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 /* This code is written for inclusion in gnu-libc, and uses names in the
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 namespace reserved for libc. If we're not compiling in libc, define those
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 names to be the normal ones instead. */
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 /* argp-parse functions */
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #undef __argp_parse
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #define __argp_parse argp_parse
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #undef __option_is_end
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #define __option_is_end _option_is_end
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #undef __option_is_short
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #define __option_is_short _option_is_short
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #undef __argp_input
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 #define __argp_input _argp_input
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 /* argp-help functions */
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #undef __argp_help
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #define __argp_help argp_help
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 #undef __argp_error
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 #define __argp_error argp_error
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 #undef __argp_failure
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 #define __argp_failure argp_failure
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 #undef __argp_state_help
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 #define __argp_state_help argp_state_help
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 #undef __argp_usage
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 #define __argp_usage argp_usage
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 /* argp-fmtstream functions */
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 #undef __argp_make_fmtstream
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 #define __argp_make_fmtstream argp_make_fmtstream
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 #undef __argp_fmtstream_free
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 #define __argp_fmtstream_free argp_fmtstream_free
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 #undef __argp_fmtstream_putc
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 #define __argp_fmtstream_putc argp_fmtstream_putc
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 #undef __argp_fmtstream_puts
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 #define __argp_fmtstream_puts argp_fmtstream_puts
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 #undef __argp_fmtstream_write
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 #define __argp_fmtstream_write argp_fmtstream_write
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 #undef __argp_fmtstream_printf
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 #define __argp_fmtstream_printf argp_fmtstream_printf
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 #undef __argp_fmtstream_set_lmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 #define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 #undef __argp_fmtstream_set_rmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 #define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 #undef __argp_fmtstream_set_wmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 #define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 #undef __argp_fmtstream_point
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 #define __argp_fmtstream_point argp_fmtstream_point
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 #undef __argp_fmtstream_update
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
68 #define __argp_fmtstream_update _argp_fmtstream_update
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 #undef __argp_fmtstream_ensure
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 #define __argp_fmtstream_ensure _argp_fmtstream_ensure
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
71 #undef __argp_fmtstream_lmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 #define __argp_fmtstream_lmargin argp_fmtstream_lmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73 #undef __argp_fmtstream_rmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
74 #define __argp_fmtstream_rmargin argp_fmtstream_rmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
75 #undef __argp_fmtstream_wmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
76 #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78 /* normal libc functions we call */
4767
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
79 #undef __flockfile
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
80 #define __flockfile flockfile
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
81 #undef __funlockfile
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
82 #define __funlockfile funlockfile
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
83 #undef __mempcpy
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
84 #define __mempcpy mempcpy
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
85 #undef __sleep
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
86 #define __sleep sleep
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
87 #undef __strcasecmp
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
88 #define __strcasecmp strcasecmp
4767
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
89 #undef __strchrnul
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
90 #define __strchrnul strchrnul
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
91 #undef __strerror_r
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
92 #define __strerror_r strerror_r
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
93 #undef __strndup
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
94 #define __strndup strndup
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
95 #undef __vsnprintf
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 #define __vsnprintf vsnprintf
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
97
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
98 #if defined(HAVE_DECL_CLEARERR_UNLOCKED) && !HAVE_DECL_CLEARERR_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
99 # define clearerr_unlocked(x) clearerr (x)
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
100 #endif
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
101 #if defined(HAVE_DECL_FEOF_UNLOCKED) && !HAVE_DECL_FEOF_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
102 # define feof_unlocked(x) feof (x)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
103 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
104 #if defined(HAVE_DECL_FERROR_UNLOCKED) && !HAVE_DECL_FERROR_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
105 # define ferror_unlocked(x) ferror (x)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
106 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
107 #if defined(HAVE_DECL_FFLUSH_UNLOCKED) && !HAVE_DECL_FFLUSH_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
108 # define fflush_unlocked(x) fflush (x)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
109 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
110 #if defined(HAVE_DECL_FGETS_UNLOCKED) && !HAVE_DECL_FGETS_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
111 # define fgets_unlocked(x,y,z) fgets (x,y,z)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
112 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
113 #if defined(HAVE_DECL_FPUTC_UNLOCKED) && !HAVE_DECL_FPUTC_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
114 # define fputc_unlocked(x,y) fputc (x,y)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
115 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
116 #if defined(HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
117 # define fputs_unlocked(x,y) fputs (x,y)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
118 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
119 #if defined(HAVE_DECL_FREAD_UNLOCKED) && !HAVE_DECL_FREAD_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
120 # define fread_unlocked(w,x,y,z) fread (w,x,y,z)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
121 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
122 #if defined(HAVE_DECL_FWRITE_UNLOCKED) && !HAVE_DECL_FWRITE_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
123 # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
124 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
125 #if defined(HAVE_DECL_GETC_UNLOCKED) && !HAVE_DECL_GETC_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
126 # define getc_unlocked(x) getc (x)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
127 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
128 #if defined(HAVE_DECL_GETCHAR_UNLOCKED) && !HAVE_DECL_GETCHAR_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
129 # define getchar_unlocked() getchar ()
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
130 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
131 #if defined(HAVE_DECL_PUTC_UNLOCKED) && !HAVE_DECL_PUTC_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
132 # define putc_unlocked(x,y) putc (x,y)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
133 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
134 #if defined(HAVE_DECL_PUTCHAR_UNLOCKED) && !HAVE_DECL_PUTCHAR_UNLOCKED
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
135 # define putchar_unlocked(x) putchar (x)
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
136 #endif
5978
ee280efaa0fb autoupdate
Karl Berry <karl@freefriends.org>
parents: 5975
diff changeset
137
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
138 #endif /* !_LIBC */
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
139
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
140 #ifndef __set_errno
14384
588ed4cdea87 Fix misindentation of preprocessor directives.
Bruno Haible <bruno@clisp.org>
parents: 14079
diff changeset
141 # define __set_errno(e) (errno = (e))
4385
1c170fb33fa6 argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
142 #endif
4767
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
143
6578
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
144 #if defined GNULIB_ARGP_DISABLE_DIRNAME
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
145 # define __argp_base_name(arg) arg
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
146 #elif defined GNULIB_ARGP_EXTERN_BASENAME
13051
094f6cfdb5c3 Minor formatting changes.
Bruno Haible <bruno@clisp.org>
parents: 12559
diff changeset
147 extern char *__argp_base_name (const char *arg);
6578
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
148 #else
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
149 # include "dirname.h"
12214
57423bea6079 argp: avoid memory leak
Eric Blake <ebb9@byu.net>
parents: 9309
diff changeset
150 # define __argp_base_name last_component
6578
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
151 #endif
a3d505d6dd7a (__argp_basename): Removed definition. Was a typo.
Sergey Poznyakoff <gray@gnu.org.ua>
parents: 6487
diff changeset
152
4767
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
153 #if defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
12421
e8d2c6fc33ad Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents: 12214
diff changeset
154 # define __argp_short_program_name() (program_invocation_short_name)
4767
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
155 #else
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
156 extern char *__argp_short_program_name (void);
0a9cf348c2ec argp update from libc
Karl Berry <karl@freefriends.org>
parents: 4419
diff changeset
157 #endif