From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2122) id 48B043943426; Fri, 14 May 2021 16:11:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48B043943426 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jason Merrill To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-803] intl: add comments to _, N_, and G_ X-Act-Checkin: gcc X-Git-Author: Jason Merrill X-Git-Refname: refs/heads/master X-Git-Oldrev: ff3809b459db881e80f627e81ec946e7bbd7041d X-Git-Newrev: 1ff863ab01640d181c3afb73c99701664efa7e7a Message-Id: <20210514161120.48B043943426@sourceware.org> Date: Fri, 14 May 2021 16:11:20 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 16:11:20 -0000 https://gcc.gnu.org/g:1ff863ab01640d181c3afb73c99701664efa7e7a commit r12-803-g1ff863ab01640d181c3afb73c99701664efa7e7a Author: Jason Merrill 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