Hash :
eb61774d
Author :
Date :
2008-06-03T11:42:12
generate argz.c and argz.in.h from glibc sources * config/argz.mk: New file, with rules to generate the two files. * modules/argz (Depends-on): Add mempcpy, stpcpy, strndup and strnlen. Suggested by David Lutterkort. * m4/argz.m4: Require AC_C_RESTRICT. Check only for the existence of one function, argz_replace, since it seems to have been added most recently. Also, remove the side effect of defining HAVE_ARGZ_* symbols. * lib/argz.c: Now generated directly from glibc sources, rather than imported from libtool. Includes the following additional functions: argz_extract, argz_create, argz_delete, str_append, argz_replace. * lib/argz.in.h: Likewise. * config/srclist.txt: Reflect that argz* files are no longer pulled from libtool.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Description:
Argv style string arrays in a single null delimited char*.
Files:
lib/argz.in.h
lib/argz.c
m4/argz.m4
Depends-on:
mempcpy
stpcpy
strndup
strnlen
configure.ac:
gl_FUNC_ARGZ
Makefile.am:
BUILT_SOURCES += $(ARGZ_H)
# We need the following in order to create <argz.h> when the system
# doesn't have one that works with the given compiler.
argz.h: argz.in.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
cat $(srcdir)/argz.in.h; \
} > $@-t
mv -f $@-t $@
MOSTLYCLEANFILES += argz.h argz.h-t
Include:
<argz.h>
License:
LGPLv2+
Maintainer:
all