diff options
author | bde <bde@FreeBSD.org> | 2000-01-17 02:04:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-01-17 02:04:06 +0000 |
commit | 668e3ec014a72ca0849b346ab9f82e12e8c5776d (patch) | |
tree | 85346c21299d0128535bf7fb1ca9682cdd8aaf8f /usr.bin/yacc | |
parent | 0b4cd0060a509ca12e5ea1ff766835dee37bb177 (diff) | |
download | FreeBSD-src-668e3ec014a72ca0849b346ab9f82e12e8c5776d.zip FreeBSD-src-668e3ec014a72ca0849b346ab9f82e12e8c5776d.tar.gz |
Fixed breakage of K&R support in rev.1.26. yyparse() was defined as
`int yyparse(;) ; { ... }' in K&R mode. Getting rid of the second
unwanted semicolon in this made the ifdef tangle more tangled than
before. Fixed a backwards comment in the tangle.
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r-- | usr.bin/yacc/skeleton.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index e54d790..c3b02b0 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -163,25 +163,25 @@ char *body[] = "#define YYERROR goto yyerrlab", "", "#ifndef YYPARSE_PARAM", - "#define YYPARSE_PARAM", "#if defined(__cplusplus) || __STDC__", - "#define YYPARSE_PARAM_TYPE void", + "#define YYPARSE_PARAM_ARG void", + "#define YYPARSE_PARAM_DECL", "#else /* ! ANSI-C/C++ */", - "#define YYPARSE_PARAM_TYPE", + "#define YYPARSE_PARAM_ARG", + "#define YYPARSE_PARAM_DECL", "#endif /* ANSI-C/C++ */", - "#else /* ! YYPARSE_PARAM */", + "#else /* YYPARSE_PARAM */", "#ifndef YYPARSE_PARAM_TYPE", "#define YYPARSE_PARAM_TYPE void *", "#endif", - "#endif /* ! YYPARSE_PARAM */", - "", "#if defined(__cplusplus) || __STDC__", "#define YYPARSE_PARAM_ARG YYPARSE_PARAM_TYPE YYPARSE_PARAM", "#define YYPARSE_PARAM_DECL", "#else /* ! ANSI-C/C++ */", - "#define YYPARSE_PARAM_ARG YYPARSE_PARAM;", + "#define YYPARSE_PARAM_ARG YYPARSE_PARAM", "#define YYPARSE_PARAM_DECL YYPARSE_PARAM_TYPE YYPARSE_PARAM;", "#endif /* ANSI-C/C++ */", + "#endif /* ! YYPARSE_PARAM */", "", "int", "yyparse (YYPARSE_PARAM_ARG)", |