diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-08-18 09:59:48 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-08-18 10:04:50 +0200 |
commit | adf0425d11fcb60a8171b1c004f1c013789d3a96 (patch) | |
tree | 473274af38fdd8c4d9b5a62801c4bb6b59ac4def /THANKS | |
parent | cb4e7ecefa18fc7838fe4986c27ebeec2427217a (diff) | |
download | bison-adf0425d11fcb60a8171b1c004f1c013789d3a96.tar.gz |
escape properly the file names in #line for printer/destructor
Reported by Jannick.
http://lists.gnu.org/archive/html/bug-bison/2017-05/msg00001.html
"Amusingly" enough, we have the same problem with %defines when the
parser file name has backslashes or quotes: we generate #includes with
an incorrect C string.
* src/output.c (prepare_symbol_definitions): Escape properly the file
names before passing them to M4.
* data/bison.m4, data/lalr1.cc: Don't simply put the file name between
two quotes (that should have been strong enough a smell...), expect
the string to be properly quoted.
* tests/synclines.at: New tests to check this.
Diffstat (limited to 'THANKS')
-rw-r--r-- | THANKS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -64,6 +64,7 @@ Guido Trentalancia trentalg@aston.ac.uk H. Merijn Brand h.m.brand@hccnet.nl Hans Ã…berg haberg-1@telia.com Jan Nieuwenhuizen janneke@gnu.org +Jannick thirdedition@gmx.net Jerry Quinn jlquinn@optonline.net Jesse Thilo jthilo@gnu.org Jim Kent jkent@arch.sel.sony.com |