Use more modern bison %parse-param and %lex-param rather than #defined YYPARSE_PARAM and YYLEX_PARAM. This should make it build across a broader range of modern versions of bison, as well as avoid void* and type casting.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25746 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
8922ce7353
commit
6b57784690
4 changed files with 9 additions and 9 deletions
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
#include "preprocessor/PpContext.h"
|
||||
|
||||
extern int yyparse(void*);
|
||||
extern int yyparse(glslang::TParseContext*);
|
||||
|
||||
namespace glslang {
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ bool TParseContext::parseShaderStrings(TPpContext& ppContext, TInputScanner& inp
|
|||
{
|
||||
currentScanner = &input;
|
||||
ppContext.setInput(input, versionWillBeError);
|
||||
yyparse((void*)this);
|
||||
yyparse(this);
|
||||
finalErrorCheck();
|
||||
|
||||
return numErrors == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue