# HG changeset patch # User Bruno Haible # Date 1198682634 -3600 # Node ID 2886999da86042f03d92ec89624bbf837fd97699 # Parent c596ca4e89b4dc61de676b43cd6ee8a9d618f93a Split setenv module into setenv and unsetenv. Get rid of setenv.h. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,37 @@ +2007-12-24 Bruno Haible + + Split setenv module into setenv and unsetenv. Get rid of setenv.h. + * lib/setenv.h: Remove file. + * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from + lib/setenv.h. + * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c. + (Depends-on): Add stdlib. + (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke + gl_FUNC_UNSETENV. + (Include): Replace setenv.h with . + * modules/unsetenv: New file. + * lib/setenv.c: Include first, after alloca.h. + * lib/unsetenv.c: Include first. + * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require + gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0. + (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set + HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable. + * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV, + HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV, + HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV. + * doc/functions/unsetenv.texi: Update. + * modules/xsetenv (Depends-on): Add unsetenv. + * modules/getdate (Depends-on): Likewise. + * lib/xsetenv.h: Include instead of setenv.h. + * lib/xsetenv.c: Don't include setenv.h. + * lib/getdate.y: Likewise. + * lib/relocwrapper.c: Likewise. + * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h. + (Depends-on): Add stdlib. + * NEWS: Mention the changes. + Reported by Левашев Иван . + 2007-12-23 Bruno Haible * lib/memmem.c (memmem): Use lowercase variable names. Tab