forked from qt-creator/qt-creator
Compile.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user