summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2014-06-18 17:03:19 -0700
committerCarl Worth <[email protected]>2014-07-29 15:11:51 -0700
commitf9c99aefea85fe23bbe4b7802542eaf8f70d6798 (patch)
treee559372dc13460b4085fded46142ce02e62175a4 /docs
parent4757c74c840460f387a466894baf1c45624467c7 (diff)
glsl/glcpp: Add a catch-all rule for unexpected characters.
In some of the recent glcpp bug-fixing, we found that glcpp was emitting unrecognized characters from the input source file to stdout, and dropping them from the source passed onto the compiler proper. This was obviously confusing, and totally undesired. The bogus behavior comes from an implicit default rule in flex, which is that any unmatched character is implicitly matched and printed to stdout. To avoid this implicit matching and printing, here we add an explicit catch-all rule. If this rule ever matches it prints an internal compiler error. The correct response for any such error is fixing glcpp to handle the unexpected character in the correct way. Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions