]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
intl: add comments to _, N_, and G_
authorJason Merrill <jason@redhat.com>
Fri, 14 May 2021 00:53:50 +0000 (20:53 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 14 May 2021 16:11:12 +0000 (12:11 -0400)
gcc/ChangeLog:

* intl.h: Add comments.

gcc/intl.h

index 829364ae905e57cb3844375c2d94bffca1cb4e99..0d91e3f509e2cdc4a129fbed24dc297458912765 100644 (file)
@@ -47,14 +47,18 @@ extern const char *fake_ngettext (const char *singular, const char *plural,
 
 #endif
 
+/* Used to immediately translate the argument.  */
 #ifndef _
 # define _(msgid) gettext (msgid)
 #endif
 
+/* Used to mark strings that will be translated later.  */
 #ifndef N_
 # define N_(msgid) msgid
 #endif
 
+/* Like N_, but for GCC diagnostic format strings.  See ABOUT-GCC-NLS for
+   details.  */
 #ifndef G_
 # define G_(gmsgid) gmsgid
 #endif