Commit f5855c5e by alokp@chromium.org

We were not reporting anything in the info-log for empty shader. This CL reports "unexpected EOF".

BUG=66 Review URL: http://codereview.appspot.com/2619041 git-svn-id: https://angleproject.googlecode.com/svn/trunk@466 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent d1e10e60
......@@ -318,17 +318,17 @@ int PaParseStrings(const char* const argv[], const int strLen[], int argc, TPars
return 0;
}
void yyerror(const char *s)
void yyerror(const char *reason)
{
if (((TParseContext *)cpp->pC)->AfterEOF) {
if (cpp->tokensBeforeEOF == 1) {
GlobalParseContext->error(yylineno, "syntax error", "pre-mature EOF", s, "");
GlobalParseContext->recover();
}
if (cpp->tokensBeforeEOF == 1)
GlobalParseContext->error(yylineno, reason, "pre-mature EOF", "");
else
GlobalParseContext->error(yylineno, reason, "unexpected EOF", "");
} else {
GlobalParseContext->error(yylineno, "syntax error", yytext, s, "");
GlobalParseContext->recover();
}
GlobalParseContext->error(yylineno, reason, yytext, "");
}
GlobalParseContext->recover();
}
void PaReservedWord()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment