diff options
author | Bruno Haible <bruno@clisp.org> | 2023-01-21 09:43:50 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-01-21 09:55:18 +0100 |
commit | d48f431981e1aa4c5c80b15f58a380c9201f2d63 (patch) | |
tree | 1d07e9d597c8f2570b32516b97acf356a1892b88 /NEWS | |
parent | 3d6a114e3e16595e19a221d04f6db10bfd7e759d (diff) | |
download | gnulib-d48f431981e1aa4c5c80b15f58a380c9201f2d63.tar.gz |
getprogname: Move declaration from "getprogname.h" to <stdlib.h>.
* lib/stdlib.in.h (getprogname): New declaration.
* lib/getprogname.h: Add deprecation warning.
(getprogname): Remove declaration.
* lib/getprogname.c: Include <stdlib.h> instead of getprogname.h.
* m4/stdlib_h.m4 (gl_STDLIB_H): Test whether getprogname is declared.
(gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize GNULIB_GETPROGNAME.
(gl_STDLIB_H_DEFAULTS): Initialize HAVE_GETPROGNAME.
* m4/getprogname.m4 (gl_PREREQ_GETPROGNAME): New macro, extracted from
gl_FUNC_GETPROGNAME. Set HAVE_GETPROGNAME.
(gl_FUNC_GETPROGNAME): Remove code that was moved to
gl_PREREQ_GETPROGNAME.
* modules/stdlib (Makefile.am): Substitute GNULIB_GETPROGNAME and
HAVE_GETPROGNAME.
* modules/getprogname (Depends-on): Add stdlib.
(configure.ac): Define a module indicator. Invoke gl_PREREQ_GETPROGNAME.
(Makefile.am): Don't compile getprogname.c if not needed.
(Include): List <stdlib.h> instead of getprogname.h.
* tests/test-getprogname.c: Include <stdlib.h> instead of getprogname.h.
* NEWS: Mention the change.
* lib/argmatch.c: Don't include getprogname.h.
* lib/c-stack.c: Likewise.
* lib/error.c: Likewise.
* lib/git-merge-changelog.c: Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -74,6 +74,9 @@ User visible incompatible changes Date Modules Changes +2023-01-21 getprogname The include file is changed from "getprogname.h" + to <stdlib.h>. + 2023-01-15 stdalign This module is deprecated. Use alignasof instead. 2023-01-07 timer_time Link with $(TIMER_TIME_LIB) instead of |