This commit is contained in:
Roberto Raggi
2010-11-10 16:20:37 +01:00
parent 959edbe10b
commit f7d8914905

View File

@@ -31,6 +31,7 @@
#include "glslparser.h" #include "glslparser.h"
#include <cctype> #include <cctype>
#include <iostream> #include <iostream>
#include <cstdio>
using namespace GLSL; using namespace GLSL;
@@ -79,9 +80,9 @@ enum {
int Lexer::yylex_helper(const char **position, int *line) int Lexer::yylex_helper(const char **position, int *line)
{ {
again: again:
while (std::isspace(_yychar)) while (std::isspace(_yychar))
yyinp(); yyinp();
*position = _it - 1; *position = _it - 1;
*line = _lineno; *line = _lineno;
@@ -116,7 +117,7 @@ again:
} }
goto again; goto again;
// one of `!', `!=' // one of `!', `!='
case '!': case '!':
if (_yychar == '=') { if (_yychar == '=') {
yyinp(); yyinp();