]> git.saurik.com Git - bison.git/commit
yacc: fix handling of CPP guards when no header is generated
authorAkim Demaille <akim@lrde.epita.fr>
Fri, 21 Sep 2012 09:10:37 +0000 (11:10 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 25 Sep 2012 08:24:37 +0000 (10:24 +0200)
commit6b4cb804b5fe6b4e2f087babab809c2b790d2b89
tree192a2fb1e00711fb624cb40150f7fe939a16f718
parent53425dbfaa708594db67640d705419627bd4b275
yacc: fix handling of CPP guards when no header is generated

When no header was to be generated, Bison would issue:

  /* In a future release of Bison, this section will be replaced
     by #include "".  */
  #ifndef YY_
  # define YY_

It now properly generates nothing.

* data/c.m4 (b4_cpp_guard_open, b4_cpp_guard_close): Issue nothing when
the file name is empty.
* data/yacc.c: Do not generate the above comment when there is no header
to generate.
* NEWS: Update.
NEWS
data/c.m4
data/yacc.c