# HG changeset patch # User Bruno Haible # Date 1198682634 -3600 # Node ID 4642f5a84b96ba83b99d207b123c0f7be8df4432 # Parent ac34a764569d55d0785c0cd94929010a98fc0c6d Split setenv module into setenv and unsetenv. Get rid of setenv.h. diff -r ac34a764569d -r 4642f5a84b96 ChangeLog --- a/ChangeLog Wed Dec 26 16:20:10 2007 +0100 +++ b/ChangeLog Wed Dec 26 16:23:54 2007 +0100 @@ -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