]> Savannah Git Hosting - gnulib.git/commitdiff
Un-deprecate the 'progname' module.
authorBruno Haible <bruno@clisp.org>
Sat, 17 Dec 2016 23:27:17 +0000 (00:27 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 17 Dec 2016 23:30:43 +0000 (00:30 +0100)
* 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
NEWS

index 10f5a36e697fcde331dc1a5c0b5c4818ea84883a..e8c3f5c5af2fceaa5891619d69c7cfe31003172b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-12-17  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        Reorganize NEWS a bit.
diff --git a/NEWS b/NEWS
index 07ca87ea020a8068c05a8a90e76b72edafcce641..fbbf6f2ce79ac86163adff42c313ccbf4e49e7f0 100644 (file)
--- 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.