From: Paul Eggert Date: Mon, 3 May 2004 07:57:06 +0000 (+0000) Subject: * src/parse-gram.y: Put copyright notice inside %{ %} so it X-Git-Tag: BISON-2_0~161 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/12ffdd2835f4dabcab9e3d9c1dadef457f18067d?ds=sidebyside * src/parse-gram.y: Put copyright notice inside %{ %} so it gets copied to the output file. --- diff --git a/ChangeLog b/ChangeLog index 7e4a1e92..7bc0bbd7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,35 @@ +2004-05-03 Paul Eggert + + * NEWS: Unescaped newlines are no longer allowed in char & strings. + + * src/scan-gram.l (): Reject unescaped newlines in + character and string literals. + (unexpected_end): New function. + (unexpected_eof): Use it. + (unexpected_newline): New function. + (): Coalesce duplicate + actions. + + * NEWS: Document %expect-rr. + + * bootstrap (--gnulib-srcdir=*, --cvs-user=*): + Fix typo by replacing $1 with $option. + Remove more 'intl'-related files. + + * lib/.cvsignore: Add strndup.h. Remove memchr.c, memcmp.c, + memrchr.c, strcasecmp.c, strchr.c, strrchr.c, strspn.c, strtol.c, + strtoul.c. + * m4/.cvsignore: Add exitfail.m4, extensions.m4, gnulib.m4, + hard-locale.m4, mbstate_t.m4, strerror_r.m4, strndup.m4, + xstrndup.m4. Remove glibc21.m4, intdiv0.m4, inttypes-pri.m4, + inttypes.m4, inttypes_h.m4, isc-posix.m4, lcmessage.m4, + stdint_h.m4, uintmax_t.m4, ulonglong.m4. + * src/.cvsignore: Add *.output. + + * src/parse-gram.y: Put copyright notice inside %{ %} so it + gets copied to the output file. + 2004-04-28 Paul Eggert Get files from the gnulib and po repositories, instead of relying @@ -12,10 +44,11 @@ * configure.ac (AC_CONFIG_MACRO_DIR): Add, with m4 as arg. (gl_USE_SYSTEM_EXTENSIONS): Add. - (AC_GNU_SOURCE): Remove; no longer needed, as gl_USE_SYSTEM_EXTENSIONS + (AC_GNU_SOURCE, AC_AIX, AC_MINIX): + Remove; no longer needed, as gl_USE_SYSTEM_EXTENSIONS does this for us. - (AC_ISC_POSIX, AC_MINIX): Remove; we no longer support these - ancient OSes, as they get in the way of latest Autoconf & gnulib. + (AC_ISC_POSIX): Remove; we no longer support this + ancient OS, as it gets in the way of latest Autoconf & gnulib. (AC_HEADER_STDC): Remove: we now assume C89 or better. (AC_CHECK_HEADERS_ONCE): Use instead of AC_CHECK_HEADERS. Do not check for C89 headers, except for locale.h which is used diff --git a/src/parse-gram.y b/src/parse-gram.y index e7718945..fa35eb64 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -1,4 +1,4 @@ -/* Bison Grammar Parser -*- C -*- +%{/* Bison Grammar Parser -*- C -*- Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. @@ -20,16 +20,6 @@ 02111-1307 USA */ - -%debug -%defines -%locations -%pure-parser -%error-verbose -%defines -%name-prefix="gram_" - -%{ #include "system.h" #include "complain.h" @@ -66,6 +56,14 @@ assoc current_assoc; int current_prec = 0; %} +%debug +%defines +%locations +%pure-parser +%error-verbose +%defines +%name-prefix="gram_" + %initial-action { /* Bison's grammar can initial empty locations, hence a default