]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid 'common' variable program_name.
authorBruno Haible <bruno@clisp.org>
Mon, 11 Nov 2002 20:43:49 +0000 (20:43 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:50 +0000 (12:08 +0200)
tests/ChangeLog
tests/tstgettext.c
tests/tstngettext.c

index 07c7dfcf8ae34f7f0ee6901e409e39cce8e49a40..8050d31ac603126a45da0ff840ca550ea8a37bb3 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-11  Bruno Haible  <bruno@clisp.org>
+
+       * tstgettext.c (program_name): Declare as external.
+       * tstngettext.c (program_name): Likewise.
+
 2002-11-07  Bruno Haible  <bruno@clisp.org>
 
        * msgcmp-2: Filter out valgrind's messages from the stderr output.
index e19b18739eb775e4f0d6e2694cdc41b9834efca4..2cb102a6d46ef181adc21c15f684b1f3356019f7 100644 (file)
@@ -48,7 +48,7 @@ int add_newline;
 int do_expand;
 
 /* Name the program is called with.  */
-const char *program_name;
+extern const char *program_name;
 
 /* Long options.  */
 static const struct option long_options[] =
index 4a2c6774e4633f676b0ff09c8de244d0f418e7ad..669944b254586139d44b3e3305828684e3de27f3 100644 (file)
@@ -39,7 +39,7 @@
 #define _(str) gettext (str)
 
 /* Name the program is called with.  */
-char *program_name;
+extern const char *program_name;
 
 /* Long options.  */
 static const struct option long_options[] =