view modules/argz @ 10162:101fa85f1d56

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.
author Jim Meyering <meyering@redhat.com>
date Tue, 03 Jun 2008 11:42:12 +0200
parents 05ab779922b4
children 3cb22d0bfd0b
line wrap: on
line source

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