bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext 0.11.1 - C99 compiliation issue


From: Bruno Haible
Subject: Re: gettext 0.11.1 - C99 compiliation issue
Date: Thu, 4 Apr 2002 12:01:39 +0200 (CEST)

Trond Eivind Glomsrod writes:
> When using the option "-std=c99" with gcc 3.0.4 (and 2.96RH, as well. I 
> don't think egcs supported that option), gettext 0.11.1 doesn't compile:
> 
> po-lex.c: In function `mbfile_getc':
> po-lex.c:515: parse error before ')' token

Thanks for the report. The appended patch fixes it.

Bruno

diff -r -c3 --exclude='*.po*' --exclude='*.info*' --exclude='*.html' 
--exclude=Makefile.in --exclude=aclocal.m4 --exclude=configure 
gettext-0/src/po-lex.h gettext-1/src/po-lex.h
*** gettext-0/src/po-lex.h      2001-10-26 11:40:26.000000000 +0200
--- gettext-1/src/po-lex.h      2002-04-04 00:26:20.000000000 +0200
***************
*** 82,88 ****
      error_with_progname = false;                                          \
      error (0, 0, totalfmt, gram_pos.file_name,                                
    \
           (unsigned long) gram_pos.line_number, gram_pos_column + 1,       \
!          __VA_ARGS__);                                                    \
      error_with_progname = true;                                               
    \
      free (totalfmt);                                                      \
      if (*fmt == '.')                                                      \
--- 82,88 ----
      error_with_progname = false;                                          \
      error (0, 0, totalfmt, gram_pos.file_name,                                
    \
           (unsigned long) gram_pos.line_number, gram_pos_column + 1,       \
!          __VA_ARGS__ + 0);                                                \
      error_with_progname = true;                                               
    \
      free (totalfmt);                                                      \
      if (*fmt == '.')                                                      \
***************
*** 98,104 ****
    do {                                                                        
    \
      error_with_progname = false;                                          \
      error_at_line (0, 0, (pos)->file_name, (pos)->line_number,                
    \
!                  fmt, __VA_ARGS__);                                       \
      error_with_progname = true;                                               
    \
      if (*fmt == '.')                                                      \
        --error_message_count;                                              \
--- 98,104 ----
    do {                                                                        
    \
      error_with_progname = false;                                          \
      error_at_line (0, 0, (pos)->file_name, (pos)->line_number,                
    \
!                  fmt, __VA_ARGS__ + 0);                                       
    \
      error_with_progname = true;                                               
    \
      if (*fmt == '.')                                                      \
        --error_message_count;                                              \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]