]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Mark some strings as c-format.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Sep 2003 09:54:41 +0000 (09:54 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:01 +0000 (12:11 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgfmt.c
gettext-tools/src/po-lex.c

index 36641cdfdf9af0d7982c68a0a73b8aa8ae68369f..a7fc053f53905bd4e51d01876887d5d75c2a2043 100644 (file)
@@ -1,3 +1,10 @@
+2003-09-14  Bruno Haible  <bruno@clisp.org>
+
+       * msgfmt.c (check_plural_eval): Mark some strings as c-format.
+       (msgfmt_add_message): Make static.
+       * po-lex.c (mbfile_getc, control_sequence): Mark some strings as
+       c-format.
+
 2003-09-18  Bruno Haible  <bruno@clisp.org>
 
        * FILES: Update.
index 3d72280049a7b9040faeedf9fbef36668fd2fa8f..9830701d1529b28ddc5c3618619534ac1488aacb 100644 (file)
@@ -784,16 +784,19 @@ check_plural_eval (struct expression *plural_expr,
 #if USE_SIGINFO
 # ifdef FPE_INTDIV
        case FPE_INTDIV:
+         /* xgettext: c-format */
          msg = _("plural expression can produce division by zero");
          break;
 # endif
 # ifdef FPE_INTOVF
        case FPE_INTOVF:
+         /* xgettext: c-format */
          msg = _("plural expression can produce integer overflow");
          break;
 # endif
        default:
 #endif
+         /* xgettext: c-format */
          msg = _("plural expression can produce arithmetic exceptions, possibly division by zero");
        }
 
@@ -1414,7 +1417,7 @@ domain name \"%s\" not suitable as file name: will use prefix"), name);
 }
 
 
-void
+static void
 msgfmt_add_message (default_po_reader_ty *this,
                    char *msgid,
                    lex_pos_ty *msgid_pos,
index afc8ac6cd770f6d16e8e3272c00875911e50fed9..f3555403bb7a67b0a91b2209944041d098e840a1 100644 (file)
@@ -455,6 +455,7 @@ mbfile_getc (mbchar_t mbc, mbfile_t mbf)
                  /* An invalid multibyte sequence was encountered.  */
                  /* Return a single byte.  */
                  if (signal_eilseq)
+                   /* xgettext: c-format */
                    po_gram_error (_("invalid multibyte sequence"));
                  bytes = 1;
                  mbc->uc_valid = false;
@@ -483,6 +484,7 @@ mbfile_getc (mbchar_t mbc, mbfile_t mbf)
                      if (ferror (mbf->fp))
                        goto eof;
                      if (signal_eilseq)
+                       /* xgettext: c-format */
                        po_gram_error (_("\
 incomplete multibyte sequence at end of file"));
                      bytes = mbf->bufcount;
@@ -493,6 +495,7 @@ incomplete multibyte sequence at end of file"));
                  if (c == '\n')
                    {
                      if (signal_eilseq)
+                       /* xgettext: c-format */
                        po_gram_error (_("\
 incomplete multibyte sequence at end of line"));
                      bytes = mbf->bufcount - 1;
@@ -844,6 +847,7 @@ control_sequence ()
       /* FIXME: \u and \U are not handled.  */
       }
   lex_ungetc (mbc);
+  /* xgettext: c-format */
   po_gram_error (_("invalid control sequence"));
   return ' ';
 }