* src/parse-gram.y (prologue_declaration): Use MUSCLE_INSERT_STRING

instead of muscle_insert for %define values so that M4-special
characters are replaced with digraphs.
* tests/input.at (%define errors): Extend to check weird values.
This commit is contained in:
Joel E. Denny
2007-01-08 22:06:55 +00:00
parent 6afc30cc87
commit e9813cd4f8
4 changed files with 13 additions and 2 deletions

View File

@@ -800,6 +800,8 @@ AT_DATA([input.y],
[[%define "var" "value1"
%define "var" "value1"
%define "var" "value2"
%define "special1" "@:>@"
%define "special2" "@<:@"
%%
start: ;
]])
@@ -810,6 +812,8 @@ input.y:3.10-14: warning: %define variable `var' redefined
input.y:1.9-13: warning: %define variable `var' is not used
input.y:2.9-13: warning: %define variable `var' is not used
input.y:3.10-14: warning: %define variable `var' is not used
input.y:4.9-18: warning: %define variable `special1' is not used
input.y:5.9-18: warning: %define variable `special2' is not used
]])
AT_CLEANUP