diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-01 14:46:37 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-01 14:46:37 +0900 |
commit | d3613397480d95ca222512ea4be3814fc6726b5f (patch) | |
tree | 0f8a3120271b36494d33b200d264b2657d987010 /output.c | |
parent | 30c125a1e41107d7f8a5cabcbdebb427364152bd (diff) | |
download | byacc-d3613397480d95ca222512ea4be3814fc6726b5f.tar.gz byacc-d3613397480d95ca222512ea4be3814fc6726b5f.tar.bz2 byacc-d3613397480d95ca222512ea4be3814fc6726b5f.zip |
Imported Upstream version 20101229upstream/20101229
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: output.c,v 1.37 2010/11/27 17:28:29 tom Exp $ */ +/* $Id: output.c,v 1.38 2010/12/29 18:35:38 Christos.Zoulas Exp $ */ #include "defs.h" @@ -1301,7 +1301,10 @@ output_error_decl(void) { param *p; - putl_code("#define YYERROR_DECL() yyerror(YYSTYPE *v, const char *s)\n"); + fprintf(code_file, "#define YYERROR_DECL() yyerror("); + for (p = parse_param; p; p = p->next) + fprintf(code_file, "%s %s%s, ", p->type, p->name, p->type2); + putl_code("const char *s)\n"); puts_code("#define YYERROR_CALL(msg) yyerror("); |