diff options
author | Carl Worth <cworth@cworth.org> | 2010-07-21 13:43:47 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-07-21 13:52:33 -0700 |
commit | a0cfe8c44085032fd982bbbff1f02252ffaa7114 (patch) | |
tree | 2fd2b3ddef9af7db2674a4d879e9cf39b1e6505d /docs/lists.html | |
parent | c24bcad9f88379ffba9e2f0ff92f22cdf60c2927 (diff) |
glsl: Fix missing initialization of yylloc.source
In both the preprocessor and in the compiler proper, we use a custom
yyltype struct to allow tracking the source-string number in addition
to line and column. However, we were previously relying on bison's
default initialization of the yyltype struct which of course is not
aware of the source field and leaves it uninitialized.
We fix this by defining our own YYLLOC_DEFAULT macro expanding on the
default version (as appears in the bison manual) and adding
initialization of yylloc.source.
Diffstat (limited to 'docs/lists.html')
0 files changed, 0 insertions, 0 deletions