From: Paul Eggert Date: Tue, 5 Nov 2002 23:52:28 +0000 (+0000) Subject: Scan <% and %> digraphs in C code as POSIX 1003.1-2001 requires. X-Git-Tag: BISON-1_875~341 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/193eb6b7efb6323b1e867df69a9122320396fa19?ds=inline;hp=1a9e39f116a7db196e75459aca8eb671fbabb4c7 Scan <% and %> digraphs in C code as POSIX 1003.1-2001 requires. Also, remove one static variable in the scanner. --- diff --git a/ChangeLog b/ChangeLog index 30b3d102..d3ff5695 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2002-11-05 Paul Eggert + + Scan <% and %> digraphs in C code as POSIX 1003.1-2001 requires. + Also, remove one static variable in the scanner. + + * src/scan-gram.l (braces_level): Now auto, not static. + Initialize to zero if the compiler is being picky. + (INITIAL): Clear braces_level instead of incrementing it. + (SC_BRACED_CODE): Treat <% and %> as { and } when inside C code, + as POSIX 1003.1-2001 requires. + * src/system.h (IF_LINT): New macro, taken from coreutils. + * configure.ac: Define "lint" if --enable-gcc-warnings. + 2002-11-05 Akim Demaille * src/scan-gram.l: When it starts with `%', complain about the