gettext markup of library sources

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Apr 21 15:39:00 GMT 2003


Benjamin Kosnik <bkoz@redhat.com> writes:


[...]

| >Index: include/bits/c++config
| >===================================================================
| >RCS file: /home/pme/Repositories/GCC/gcc/libstdc++-v3/include/bits/c++config,v
| >retrieving revision 1.704
| >diff -u -r1.704 c++config
| >--- include/bits/c++config      20 Apr 2003 00:17:05 -0000      1.704
| >+++ include/bits/c++config      20 Apr 2003 23:11:45 -0000
| >@@ -97,4 +97,11 @@
| > # define _GLIBCPP_FAST_MATH 0
| > #endif
| >
| >+// XXX These are only placeholders.  They let people mark up the library
| >+// sources without breaking things, and will be probably be somewhere else
| >+// once localization of the library itself is functioning.
| >+#define _(__msgid)               (__msgid)
| >+#define _N(__msgid)              (__msgid)
| >+#define gettext_noop(__msgid)    (__msgid)
| >+
| 
| Don't need XXX here, I don't think.

I disagree.  

This file gets included in every single standard  header.  The macro
gettext_noop is in direct contradiction with our current policy of not
hijacking user's name space when we're implenting internal helpers.

-- Gaby



More information about the Libstdc++ mailing list