Mercurial > gnulib
annotate lib/argp-pv.c @ 40203:30d91797009f
autoupdate
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Fri, 01 Mar 2019 08:42:42 -0800 |
parents | b06060465f09 |
children |
rev | line source |
---|---|
4385
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Default definition for ARGP_PROGRAM_VERSION. |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
19484
diff
changeset
|
2 Copyright (C) 1996-2019 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:
6942
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:
6942
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:
6942
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:
6942
diff
changeset
|
16 You should have received a copy of the GNU General Public License |
19190 | 17 along with this program. If not, see <https://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 set by the user program to a non-zero value, then a default option |
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 --version is added (unless the ARGP_NO_HELP flag is used), which will |
6942
9e87d8474fb1
* lib/argp-pv.c: Remove a doubled word in a comment.
Jim Meyering <jim@meyering.net>
parents:
5848
diff
changeset
|
21 print this string followed by a newline and exit (unless the |
4385
1c170fb33fa6
argp facility from glibc-20030610.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 ARGP_NO_EXIT flag is used). Overridden by ARGP_PROGRAM_VERSION_HOOK. */ |
11791
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
23 const char *argp_program_version |
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
24 /* This variable should be zero-initialized. On most systems, putting it into |
16935
498a2211d839
Write "Mac OS X" instead of "MacOS X".
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
25 BSS is sufficient. Not so on Mac OS X 10.3 and 10.4, see |
19439
8bfc20b57265
maint: shorten https://lists.gnu.org/archive/html/... links
Jim Meyering <meyering@fb.com>
parents:
19192
diff
changeset
|
26 <https://lists.gnu.org/r/bug-gnulib/2009-01/msg00329.html> |
8bfc20b57265
maint: shorten https://lists.gnu.org/archive/html/... links
Jim Meyering <meyering@fb.com>
parents:
19192
diff
changeset
|
27 <https://lists.gnu.org/r/bug-gnulib/2009-08/msg00096.html>. */ |
11791
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
28 #if defined __ELF__ |
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
29 /* On ELF systems, variables in BSS behave well. */ |
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
30 #else |
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
31 = (const char *) 0 |
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
32 #endif |
20dfb1cf7571
Avoid link error on MacOS X 10.3 and 10.4.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
33 ; |