Commit bc26cd27 bc26cd27f2945c49973ad808df5cba41dcb89a83 by Sergey Poznyakoff

Moved to ../lib

1 parent 9734fe90
1 *.la
2 *.lo
3 .deps
4 .libs
5 Makefile
6 Makefile.in
1 AUTOMAKE_OPTIONS = ../lib/ansi2knr
2
3 INCLUDES = -I${top_srcdir}/lib
4
5 noinst_LTLIBRARIES = @ARGPLIB@
6
7 libargp_la_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c argp-fs-xinl.c \
8 argp-help.c argp-parse.c argp-pv.c argp-pvh.c argp-xinl.c pin.c
9
10 EXTRA_DIST =
11
12 EXTRA_LTLIBRARIES = libargp.la
13
14 noinst_HEADERS = argp-fmtstream.h argp-namefrob.h argp.h
15
16 # Feb 20, 2002 - JB Consider putting this back in when QNX has
17 # a recent libtool
18 # libargp_la_LIBADD = ../lib/libmailutils.la
19
1 /* Default definition for ARGP_PROGRAM_BUG_ADDRESS.
2 Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 /* If set by the user program, it should point to string that is the
22 bug-reporting address for the program. It will be printed by argp_help if
23 the ARGP_HELP_BUG_ADDR flag is set (as it is by various standard help
24 messages), embedded in a sentence that says something like `Report bugs to
25 ADDR.'. */
26 const char *argp_program_bug_address;
1 /* Default definition for ARGP_ERR_EXIT_STATUS
2 Copyright (C) 1997, 2001 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24
25 #ifdef HAVE_SYSEXITS_H
26 #include <sysexits.h>
27 #endif
28
29 #ifndef EX_USAGE
30 #define EX_USAGE 64
31 #endif
32
33 #include "argp.h"
34
35 /* The exit status that argp will use when exiting due to a parsing error.
36 If not defined or set by the user program, this defaults to EX_USAGE from
37 <sysexits.h>. */
38 error_t argp_err_exit_status = EX_USAGE;
1 /* Real definitions for extern inline functions in argp-fmtstream.h
2 Copyright (C) 1997 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24
25 #define ARGP_FS_EI
26 #undef __OPTIMIZE__
27 #define __OPTIMIZE__
28 #include "argp-fmtstream.h"
29
30 /* Add weak aliases. */
31 #if _LIBC - 0 && !defined (ARGP_FMTSTREAM_USE_LINEWRAP) && defined (weak_alias)
32
33 weak_alias (__argp_fmtstream_putc, argp_fmtstream_putc)
34 weak_alias (__argp_fmtstream_puts, argp_fmtstream_puts)
35 weak_alias (__argp_fmtstream_write, argp_fmtstream_write)
36 weak_alias (__argp_fmtstream_set_lmargin, argp_fmtstream_set_lmargin)
37 weak_alias (__argp_fmtstream_set_rmargin, argp_fmtstream_set_rmargin)
38 weak_alias (__argp_fmtstream_set_wmargin, argp_fmtstream_set_wmargin)
39 weak_alias (__argp_fmtstream_point, argp_fmtstream_point)
40
41 #endif
1 /* Name frobnication for compiling argp outside of glibc
2 Copyright (C) 1997, 2001 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #if !_LIBC
22 /* This code is written for inclusion in gnu-libc, and uses names in the
23 namespace reserved for libc. If we're not compiling in libc, define those
24 names to be the normal ones instead. */
25
26 /* argp-parse functions */
27 #undef __argp_parse
28 #define __argp_parse argp_parse
29 #undef __option_is_end
30 #define __option_is_end _option_is_end
31 #undef __option_is_short
32 #define __option_is_short _option_is_short
33 #undef __argp_input
34 #define __argp_input _argp_input
35
36 /* argp-help functions */
37 #undef __argp_help
38 #define __argp_help argp_help
39 #undef __argp_error
40 #define __argp_error argp_error
41 #undef __argp_failure
42 #define __argp_failure argp_failure
43 #undef __argp_state_help
44 #define __argp_state_help argp_state_help
45 #undef __argp_usage
46 #define __argp_usage argp_usage
47
48 /* argp-fmtstream functions */
49 #undef __argp_make_fmtstream
50 #define __argp_make_fmtstream argp_make_fmtstream
51 #undef __argp_fmtstream_free
52 #define __argp_fmtstream_free argp_fmtstream_free
53 #undef __argp_fmtstream_putc
54 #define __argp_fmtstream_putc argp_fmtstream_putc
55 #undef __argp_fmtstream_puts
56 #define __argp_fmtstream_puts argp_fmtstream_puts
57 #undef __argp_fmtstream_write
58 #define __argp_fmtstream_write argp_fmtstream_write
59 #undef __argp_fmtstream_printf
60 #define __argp_fmtstream_printf argp_fmtstream_printf
61 #undef __argp_fmtstream_set_lmargin
62 #define __argp_fmtstream_set_lmargin argp_fmtstream_set_lmargin
63 #undef __argp_fmtstream_set_rmargin
64 #define __argp_fmtstream_set_rmargin argp_fmtstream_set_rmargin
65 #undef __argp_fmtstream_set_wmargin
66 #define __argp_fmtstream_set_wmargin argp_fmtstream_set_wmargin
67 #undef __argp_fmtstream_point
68 #define __argp_fmtstream_point argp_fmtstream_point
69 #undef __argp_fmtstream_update
70 #define __argp_fmtstream_update _argp_fmtstream_update
71 #undef __argp_fmtstream_ensure
72 #define __argp_fmtstream_ensure _argp_fmtstream_ensure
73 #undef __argp_fmtstream_lmargin
74 #define __argp_fmtstream_lmargin argp_fmtstream_lmargin
75 #undef __argp_fmtstream_rmargin
76 #define __argp_fmtstream_rmargin argp_fmtstream_rmargin
77 #undef __argp_fmtstream_wmargin
78 #define __argp_fmtstream_wmargin argp_fmtstream_wmargin
79
80 /* normal libc functions we call */
81 #undef __sleep
82 #define __sleep sleep
83 #undef __strcasecmp
84 #define __strcasecmp strcasecmp
85 #undef __vsnprintf
86 #define __vsnprintf vsnprintf
87
88 #endif /* !_LIBC */
1 /* Default definition for ARGP_PROGRAM_VERSION.
2 Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 /* If set by the user program to a non-zero value, then a default option
22 --version is added (unless the ARGP_NO_HELP flag is used), which will
23 print this this string followed by a newline and exit (unless the
24 ARGP_NO_EXIT flag is used). Overridden by ARGP_PROGRAM_VERSION_HOOK. */
25 const char *argp_program_version;
1 /* Default definition for ARGP_PROGRAM_VERSION_HOOK.
2 Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24
25 #include "argp.h"
26
27 /* If set by the user program to a non-zero value, then a default option
28 --version is added (unless the ARGP_NO_HELP flag is used), which calls
29 this function with a stream to print the version to and a pointer to the
30 current parsing state, and then exits (unless the ARGP_NO_EXIT flag is
31 used). This variable takes precedent over ARGP_PROGRAM_VERSION. */
32 void (*argp_program_version_hook) (FILE *stream, struct argp_state *state);
1 /* Real definitions for extern inline functions in argp.h
2 Copyright (C) 1997, 1998, 2001 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 #ifdef HAVE_CONFIG_H
22 #include <config.h>
23 #endif
24
25 #ifndef __USE_EXTERN_INLINES
26 # define __USE_EXTERN_INLINES 1
27 #endif
28 #define ARGP_EI
29 #undef __OPTIMIZE__
30 #define __OPTIMIZE__
31 #include "argp.h"
32
33 /* Add weak aliases. */
34 #if _LIBC - 0 && defined (weak_alias)
35
36 weak_alias (__argp_usage, argp_usage)
37 weak_alias (__option_is_short, _option_is_short)
38 weak_alias (__option_is_end, _option_is_end)
39
40 #endif
1 /* Declaration of program_invocation_name and program_invocation_short_name
2 for those libc's that don't already have it. These variable are needed
3 by the argp_ functions. */
4
5 #ifndef HAVE_PROGRAM_INVOCATION_NAME
6 char *program_invocation_short_name = 0;
7 char *program_invocation_name = 0;
8 #endif