From 15bde6cfc0288f14d7a3140b22c56edbe954a89d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 18 Dec 2016 00:27:17 +0100 Subject: [PATCH] Un-deprecate the 'progname' module. * NEWS: Describe the appropriate use-cases of 'progname' versus 'getprogname'. Based on discussion summary at http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html --- ChangeLog | 7 +++++++ NEWS | 18 ++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10f5a36e69..e8c3f5c5af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2016-12-17 Bruno Haible + + Un-deprecate the 'progname' module. + * NEWS: Describe the appropriate use-cases of 'progname' versus + 'getprogname'. Based on discussion summary at + http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html + 2016-12-17 Bruno Haible Reorganize NEWS a bit. diff --git a/NEWS b/NEWS index 07ca87ea02..fbbf6f2ce7 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,16 @@ Important general notes Date Modules Changes +2016-09-05 progname There is now an alternate module 'getprogname'. It + defines a getprogname() function; use it to obtain + the name of the current program. + Recommended use: + - In a program's main() function, and associated + usage() and help() functions, use 'progname'. + - In library code, or more generally any code that + is not near the main() function, use + 'getprogname'. + 2013-04-24 gettext If your project uses 'gettextize --intl' it is now your responsibility to put -I$(top_builddir)/intl into the Makefile.am for gnulib. @@ -37,14 +47,6 @@ Date Modules Changes 2016-11-17 unistr/u32-strmblen The function u32_strmblen can now return -1. 2016-11-17 unistr/u32-strmbtouc The function u32_strmbtouc can now return -1. -2016-09-05 progname This module is deprecated. Please switch to the - 'getprogname' module and its getprogname() - function to obtain the name of the current program. - Note that there is no longer any need to export a - 'const char *program_name' variable. - Currently there is no replacement for - set_program_name(). - 2016-08-17 stdbool This no longer supports _Bool for C++. Programs intended to be portable to C++ compilers should use plain 'bool' instead. -- 2.39.5