Permalink
Browse files

yyerror takes a const char* instead of a char*

  • Loading branch information...
1 parent 1d82640 commit 3322bb0ce6b8a652a5cec003dcc700ddb3655d23 Maxime Coste committed Dec 7, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 hlslang/MachineIndependent/hlslang.l
  2. +1 −1 hlslang/MachineIndependent/hlslang.y
  3. +1 −1 tools/bison.simple
@@ -372,7 +372,7 @@ int PaParseString(char* source, TParseContext& parseContextLocal)
return 0;
}
-void yyerror(char *s)
+void yyerror(const char *s)
{
if (((TParseContext *)cpp->pC)->AfterEOF) {
if (cpp->tokensBeforeEOF == 1) {
@@ -35,7 +35,7 @@ Jutta Degener, 1995
#define parseContext (*((TParseContext*)(parseContextLocal)))
#define YY_DECL int yylex(YYSTYPE* pyylval, void* parseContextLocal)
#define YYLEX_PARAM (void*)(parseContextLocal)
- extern void yyerror(char*);
+ extern void yyerror(const char*);
#endif
View
@@ -36,7 +36,7 @@ char *alloca ();
#endif /* not HAVE_ALLOCA_H */
#endif /* not __GNUC__ */
-extern void yyerror(char* s);
+extern void yyerror(const char* s);
#ifndef alloca
#ifdef __GNUC__

0 comments on commit 3322bb0

Please sign in to comment.