Paul Eggert
37e3ad9a80
argp: better 'inline'
...
Use extern-inline module to declare extern inline functions.
This avoids some bogus warning diagnostics. Problem discovered
when modifying GNU tar to use the manywarnings module.
* lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
* lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
Define based on extern-inline.
* modules/argp (Depends-on): Add extern-inline.
2012-12-18 18:00:09 -08:00
Paul Eggert
bebd93f5da
argp: use stdalign
...
* lib/argp-parse.c: Include <stdalign.h>.
(alignof): Remove.
* modules/argp (Depends-on): Add stdalign.
2011-10-27 13:05:42 -07:00
Bruno Haible
1c8b757146
Rename module 'malloc' -> 'malloc-gnu'.
2010-08-28 23:20:27 +02:00
Eric Blake
ce2d0d6e77
argp: avoid memory leak
...
argp has been leaking memory since commit 79c0a43
, in Jul 2006.
* modules/argp (Depends-on): Use dirname-lgpl, not dirname.
* lib/argp-namefrob.h (__argp_base_name): Use last_component, not
base_name, since the latter malloc()s and can call exit().
Signed-off-by: Eric Blake <ebb9@byu.net >
2009-10-29 18:39:36 -06:00
Eric Blake
012cb3be16
getopt: update client modules
...
* modules/argp (Depends-on): Use getopt-gnu.
* modules/git-merge-changelog (Depends-on): Likewise.
* modules/long-options (Depends-on): Likewise.
* modules/xstrtol (Depends-on): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net >
2009-08-13 13:02:19 -06:00
Bruno Haible
76ce132758
Avoid warnings from 'aclocal' when AM_XGETTEXT_OPTION is not defined.
2009-08-09 19:58:07 +02:00
Bruno Haible
8ea9248597
Mark 'memmove' obsolete.
2008-11-02 17:35:43 +01:00
Bruno Haible
e7221a5e9d
Mark 'memchr' obsolete.
2008-11-02 16:34:09 +01:00
Colin Watson
fab30d537b
Make the functions argp_error, argp_failure known to xgettext.
2008-01-14 23:35:44 +01:00
Eric Blake
d5d3e86d32
Fix strerror on Interix.
...
* lib/string_.h (strerror): Declare replacement.
* doc/functions/strerror.texi (strerror): Document the Interix
shortcoming.
* modules/string (Makefile.am): Support new hooks.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
* m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
gl_FUNC_STRERROR_SEPARATE.
(gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
* lib/strerror.c (rpl_strerror): Provide replacement.
* modules/strerror (Depends-on): Add string.
(configure.ac): Detect use of module.
* tests/test-strerror.c: New file.
* modules/strerror-tests: New test module.
* modules/argp (Depends-on): Add strerror.
* modules/error (Depends-on): Likewise.
Reported by Martin Koeppe.
Signed-off-by: Eric Blake <ebb9@byu.net >
2007-09-25 10:40:16 -06:00
Bruno Haible
47cd1ae5a3
arp depends on sleep.
2007-05-01 22:20:41 +00:00
Sergey Poznyakoff
9399d2a5ae
Depend on malloc
2006-09-09 05:14:25 +00:00
Paul Eggert
3e12186829
Remove the 'restrict' module, and modify everybody to use AC_C_RESTRICT
...
rather than gl_C_RESTRICT.
2006-08-09 22:52:40 +00:00
Sergey Poznyakoff
0b638ecfb5
(Files): Add argp-pin.c
...
(Depends-on): dirname
(lib_SOURCES): Add argp-pin.c
2005-12-09 12:31:34 +00:00
Paul Eggert
b567fb8da4
* modules/argp (Depends-on): Remove unlocked-io.
...
* m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
Instead, test for *_unlocked function declarations directly.
2005-07-14 22:15:14 +00:00
Sergey Poznyakoff
01f217023f
(Depends-on): Add unlocked-io
2005-07-09 17:17:31 +00:00
Sergey Poznyakoff
820ebcb25c
Depend on vsnprintf
2005-01-11 10:07:38 +00:00
Paul Eggert
917752adb1
Remove dependencies on unlocked-io.
2004-10-04 20:17:39 +00:00
Paul Eggert
2f40372243
(Maintainer): Replace Simon Josefsson by Sergey Poznyakoff.
2004-09-30 16:40:59 +00:00
Bruno Haible
5143f4e91f
Add a license tag to every module.
2004-09-22 15:11:04 +00:00
Paul Eggert
cd1d1d6c0b
(Files): Add m4/unlocked-io.m4.
...
(Depends-on): Add extensions.
2004-08-12 08:03:45 +00:00
Paul Eggert
dc8bf912bf
Simplify argp by assuming alloca module.
2004-05-18 05:18:40 +00:00
Paul Eggert
ffd8553d20
* modules/argp: Remove dependency on alloca.
2004-05-04 18:39:43 +00:00
Bruno Haible
baa7905d0e
A little more dependencies of the 'argp' module.
2003-10-10 19:41:12 +00:00
Bruno Haible
df0063a68c
Update.
2003-08-18 17:03:09 +00:00
Bruno Haible
878d94d185
New module argp.
2003-06-10 11:29:45 +00:00