public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-803] intl: add comments to _, N_, and G_
@ 2021-05-14 16:11 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-05-14 16:11 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1ff863ab01640d181c3afb73c99701664efa7e7a

commit r12-803-g1ff863ab01640d181c3afb73c99701664efa7e7a
Author: Jason Merrill <jason@redhat.com>
Date:   Thu May 13 20:53:50 2021 -0400

    intl: add comments to _, N_, and G_
    
    gcc/ChangeLog:
    
            * intl.h: Add comments.

Diff:
---
 gcc/intl.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/intl.h b/gcc/intl.h
index 829364ae905..0d91e3f509e 100644
--- a/gcc/intl.h
+++ b/gcc/intl.h
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-14 16:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 16:11 [gcc r12-803] intl: add comments to _, N_, and G_ Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).