X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perly.c;h=7117566c20cd008ca189de9528755b5e3d1d9b65;hb=49d8d3a1123fb996c090905424ed66f675b3df17;hp=ff8a839fbbe84690704e0c40639f9c76de115e86;hpb=d58bf5aa3d3631a46847733b1ff1985b30140228;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perly.c b/perly.c index ff8a839..7117566 100644 --- a/perly.c +++ b/perly.c @@ -7,7 +7,7 @@ static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/91"; #include "perl.h" static void -dep() +dep(void) { deprecate("\"do\" to call subroutines"); } @@ -1303,8 +1303,7 @@ struct ysv { }; void -yydestruct(ptr) -void* ptr; +yydestruct(void *ptr) { struct ysv* ysave = (struct ysv*)ptr; if (ysave->yyss) Safefree(ysave->yyss); @@ -1319,7 +1318,7 @@ void* ptr; } int -yyparse() +yyparse(void) { register int yym, yyn, yystate; register short *yyssp; @@ -1330,8 +1329,10 @@ yyparse() int retval = 0; #if YYDEBUG register char *yys; +#ifndef __cplusplus extern char *getenv(); #endif +#endif struct ysv *ysave = (struct ysv*)safemalloc(sizeof(struct ysv)); SAVEDESTRUCTOR(yydestruct, ysave);