Preprocessor: Rationalize, simplify, and correct the stack of input sources and their tokenization. This included
- consistently dealing with EOF and its effect on error recovery (bug 11444, #1) - turning a simulated OO hierarchy of function pointers and typecasting into a real C++ class hierarchy - correctly handling '\' everywhere, in all classes of tokens, as a layer before preprocessing itself - conditionally handling '\n' in macro expansion input, depending on whether it is in a macro expression or not - delete some unused "memory cleanup" code git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24626 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -5,14 +5,22 @@ ERROR: 0:66: '#define' : Macro redefined; different substitutions: BIG
|
||||
ERROR: 0:81: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:81: '#if' : unexpected tokens following directive
|
||||
ERROR: 0:82: '#error' : good macro
|
||||
ERROR: 0:89: 'macro expansion' : unexpected '#' foobar
|
||||
ERROR: 0:90: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:94: 'macro expansion' : unexpected '#' foobar
|
||||
ERROR: 0:95: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:87: 'macro expansion' : end of line in macro substitution: foobar
|
||||
ERROR: 0:88: 'preprocessor evaluation' : can't evaluate expression
|
||||
ERROR: 0:88: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:88: '#if' : unexpected tokens following directive
|
||||
ERROR: 0:92: 'macro expansion' : end of line in macro substitution: foobar
|
||||
ERROR: 0:93: 'preprocessor evaluation' : can't evaluate expression
|
||||
ERROR: 0:93: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:93: '#if' : unexpected tokens following directive
|
||||
ERROR: 0:99: 'macro expansion' : end of line in macro substitution: foobar
|
||||
ERROR: 0:100: 'preprocessor evaluation' : can't evaluate expression
|
||||
ERROR: 0:100: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:100: '#if' : unexpected tokens following directive
|
||||
ERROR: 0:102: 'macro expansion' : unexpected '#' foobar
|
||||
ERROR: 0:102: 'preprocessor evaluation' : undefined macro in expression not allowed in es profile endif
|
||||
ERROR: 0:101: 'macro expansion' : end of line in macro substitution: foobar
|
||||
ERROR: 0:102: 'preprocessor evaluation' : can't evaluate expression
|
||||
ERROR: 0:102: 'preprocessor evaluation' : bad expression
|
||||
ERROR: 0:102: '#if' : unexpected tokens following directive
|
||||
ERROR: 0:108: 'preprocessor evaluation' : undefined macro in expression not allowed in es profile UNDEF
|
||||
ERROR: 0:111: '#error' : good 0
|
||||
ERROR: 0:115: '#error' : good 1
|
||||
@@ -26,7 +34,7 @@ ERROR: 0:153: 'preprocessor evaluation' : undefined macro in expression not allo
|
||||
ERROR: 0:156: 'preprocessor evaluation' : undefined macro in expression not allowed in es profile UNDEF2
|
||||
ERROR: 0:159: 'preprocessor evaluation' : undefined macro in expression not allowed in es profile UNDEF2
|
||||
ERROR: 0:10002: '' : missing #endif
|
||||
ERROR: 27 compilation errors. No code generated.
|
||||
ERROR: 35 compilation errors. No code generated.
|
||||
|
||||
|
||||
ERROR: node is still EOpNull!
|
||||
|
||||
Reference in New Issue
Block a user