On Thu, Dec 31, 2015 at 11:13 AM, Todd C. Miller <todd.mil...@courtesan.com> wrote: > On Thu, 31 Dec 2015 11:02:01 -0800, Philip Guenther wrote: > >> Wouldn't it better to have yacc's skeleton.c provide a prototype so >> that it's fixed for all .y files? I see that bison's output includes >> an "int yyparse (void);" prototype, so I would expect minimal ports >> issues. > > That's probably the best approach of all.
Putting it in the header[] array appears to generate good output, even with the -p option. ok? --- skeleton.c 30 Dec 2015 17:16:47 -0000 1.38 +++ skeleton.c 31 Dec 2015 19:21:28 -0000 @@ -109,6 +109,7 @@ char *header[] = "short *yysslim;", "YYSTYPE *yyvs;", "unsigned int yystacksize;", + "int yyparse(void);", NULL };