X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=x2p%2Fa2p.c;h=4186cdf19bb2fc3b00a76ca9de66bbc06a3983aa;hb=20caf59dc5a2137cdf1de6dae458da063417a8d2;hp=9d1d1725cb42f09ccf7b551fb7ff3155845b44d5;hpb=6d9c9890b6305b20fe39f3b418a5330f9fb32465;p=p5sagit%2Fp5-mst-13.2.git diff --git a/x2p/a2p.c b/x2p/a2p.c index 9d1d172..4186cdf 100644 --- a/x2p/a2p.c +++ b/x2p/a2p.c @@ -1984,7 +1984,7 @@ short yycheck[] = { 41, #endif #define YYMAXTOKEN 306 #if YYDEBUG -char *yyname[] = { +const char *yyname[] = { "end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,"'%'",0,0,"'('","')'","'*'","'+'","','","'-'",0,"'/'",0,0,0,0,0,0,0,0,0,0, "':'","';'","'<'",0,"'>'","'?'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, @@ -1999,7 +1999,7 @@ char *yyname[] = { "DELETE","ASGNOP","OROR","ANDAND","NUMBER","VAR","SUBSTR","INDEX","MATCHOP", "RELOP","OR","STRING","UMINUS","NOT","INCR","DECR","FIELD","VFIELD","SVFIELD", }; -char *yyrule[] = { +const char *yyrule[] = { "$accept : program", "program : junk hunks", "begin : BEGIN '{' maybe states '}' junk", @@ -2181,7 +2181,11 @@ int yyparse (void); #define YYERROR goto yyerrlab #if YYDEBUG +# if defined(WIN32) && !defined(__BORLANDC__) +EXTERN_C _CRTIMP char *getenv(const char *); +# else EXTERN_C char *getenv(const char *); +# endif #endif int @@ -2189,7 +2193,7 @@ yyparse(void) { register int yym, yyn, yystate; #if YYDEBUG - register char *yys; + register const char *yys; if ((yys = getenv("YYDEBUG"))) {