]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Move declarations to gettextP.h.
authorBruno Haible <bruno@clisp.org>
Mon, 6 Nov 2006 12:49:33 +0000 (12:49 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:18 +0000 (12:14 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/bindtextdom.c
gettext-runtime/intl/dcigettext.c
gettext-runtime/intl/gettextP.h
gettext-runtime/intl/textdomain.c

index b253c2f543bebbc854c5bfb589e0f7813b3e5443..7d7ca6f6d5895eb9e9b7064b4f587105ad40d0ea 100644 (file)
@@ -1,3 +1,17 @@
+2006-10-30  Bruno Haible  <bruno@clisp.org>
+
+       Move declarations to header files.
+       * gettextP.h (_nl_default_dirname, _nl_domain_bindings): New
+       declarations and aliases.
+       (_nl_default_default_domain, _nl_current_default_domain): New
+       declarations and aliases.
+       * bindtextdom.c (_nl_default_dirname, _nl_domain_bindings): Remove
+       declarations and aliases.
+       * dcigettext.c (_nl_default_default_domain, _nl_current_default_domain,
+       _nl_default_dirname, _nl_domain_bindings): Remove aliases.
+       * textdomain.c (_nl_default_default_domain, _nl_current_default_domain):
+       Remove declarations and aliases.
+
 2006-11-01  Bruno Haible  <bruno@clisp.org>
 
        * printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
index d1b1f9028f3c3fdda1fcab92230eea629267b27d..dab5d4f3577752b34b7327b21657177f7bf7fb50 100644 (file)
 # include "lock.h"
 #endif
 
-/* The internal variables in the standalone libintl.a must have different
-   names than the internal variables in GNU libc, otherwise programs
-   using libintl.a cannot be linked statically.  */
-#if !defined _LIBC
-# define _nl_default_dirname libintl_nl_default_dirname
-# define _nl_domain_bindings libintl_nl_domain_bindings
-#endif
-
 /* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>.  */
 #ifndef offsetof
 # define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
 
 /* @@ end of prolog @@ */
 
-/* Contains the default location of the message catalogs.  */
-extern const char _nl_default_dirname[];
-#ifdef _LIBC
-libc_hidden_proto (_nl_default_dirname)
-#endif
-
-/* List with bindings of specific domains.  */
-extern struct binding *_nl_domain_bindings;
-
 /* Lock variable to protect the global data in the gettext implementation.  */
 gl_rwlock_define (extern, _nl_state_lock attribute_hidden)
 
index c3cf6eb53601cb5416450fb0900af392ea94b50f..d2b306c5d6c6959fdf05a05103caac6c51f08fc4 100644 (file)
@@ -125,16 +125,6 @@ extern int errno;
     ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)
 #endif
 
-/* The internal variables in the standalone libintl.a must have different
-   names than the internal variables in GNU libc, otherwise programs
-   using libintl.a cannot be linked statically.  */
-#if !defined _LIBC
-# define _nl_default_default_domain libintl_nl_default_default_domain
-# define _nl_current_default_domain libintl_nl_current_default_domain
-# define _nl_default_dirname libintl_nl_default_dirname
-# define _nl_domain_bindings libintl_nl_domain_bindings
-#endif
-
 /* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>.  */
 #ifndef offsetof
 # define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
index 2c08d419861b963609e2ef5b02c6641b4bc06796..bba3c2ea8b755dba13296df709494cf9cdc8506b 100644 (file)
@@ -246,6 +246,37 @@ char *_nl_find_msg (struct loaded_l10nfile *domain_file,
      internal_function;
 #endif
 
+/* The internal variables in the standalone libintl.a must have different
+   names than the internal variables in GNU libc, otherwise programs
+   using libintl.a cannot be linked statically.  */
+#if !defined _LIBC
+# define _nl_default_dirname libintl_nl_default_dirname
+# define _nl_domain_bindings libintl_nl_domain_bindings
+#endif
+
+/* Contains the default location of the message catalogs.  */
+extern const char _nl_default_dirname[];
+#ifdef _LIBC
+libc_hidden_proto (_nl_default_dirname)
+#endif
+
+/* List with bindings of specific domains.  */
+extern struct binding *_nl_domain_bindings;
+
+/* The internal variables in the standalone libintl.a must have different
+   names than the internal variables in GNU libc, otherwise programs
+   using libintl.a cannot be linked statically.  */
+#if !defined _LIBC
+# define _nl_default_default_domain libintl_nl_default_default_domain
+# define _nl_current_default_domain libintl_nl_current_default_domain
+#endif
+
+/* Name of the default text domain.  */
+extern const char _nl_default_default_domain[] attribute_hidden;
+
+/* Default text domain in which entries for gettext(3) are to be found.  */
+extern const char *_nl_current_default_domain attribute_hidden;
+
 /* @@ begin of epilog @@ */
 
 #endif /* gettextP.h  */
index c316460fd5de3c4e24c0450df9294b7b5759d9ef..70131bc8082bd9be4dc4b1aef633dd1da5bfbdbd 100644 (file)
 # include "lock.h"
 #endif
 
-/* The internal variables in the standalone libintl.a must have different
-   names than the internal variables in GNU libc, otherwise programs
-   using libintl.a cannot be linked statically.  */
-#if !defined _LIBC
-# define _nl_default_default_domain libintl_nl_default_default_domain
-# define _nl_current_default_domain libintl_nl_current_default_domain
-#endif
-
 /* @@ end of prolog @@ */
 
-/* Name of the default text domain.  */
-extern const char _nl_default_default_domain[] attribute_hidden;
-
-/* Default text domain in which entries for gettext(3) are to be found.  */
-extern const char *_nl_current_default_domain attribute_hidden;
-
 
 /* Names for the libintl functions are a problem.  They must not clash
    with existing names and they should follow ANSI C.  But this source