Preprocessor: Fixed that some comments incorrectly substituted a new line instead of space. Also generally cleaned up the space-related coding.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24387 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
8e789e8d62
commit
e28beee891
7 changed files with 72 additions and 37 deletions
|
|
@ -84,7 +84,7 @@ namespace glslang {
|
|||
|
||||
class TPpToken {
|
||||
public:
|
||||
TPpToken() : token(0), ival(0), dval(0.0), atom(0)
|
||||
TPpToken() : token(0), ival(0), space(false), dval(0.0), atom(0)
|
||||
{
|
||||
loc.line = 0;
|
||||
loc.string = 0;
|
||||
|
|
@ -103,6 +103,7 @@ public:
|
|||
|
||||
TSourceLoc loc;
|
||||
int token;
|
||||
bool space; // true if a space (for white space or a removed comment) should also be recognized, in front of the token returned
|
||||
int ival;
|
||||
double dval;
|
||||
int atom;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue