Commit Graph

10 Commits

Author SHA1 Message Date
Taylor R Campbell
f6d1dfd60f *.l: Fix old-style function definitions of yywrap. 2026-01-18 19:06:16 -06:00
heitbaum
c7bd01c62a yyerror: update to POSIX standard
To comply with the latest POSIX standard, in Yacc compatibility mode
(options `-y`/`--yacc`) Bison now generates prototypes for yyerror and
yylex.  In some situations, this is breaking compatibility: if the user
has already declared these functions but with some differences (e.g., to
declare them as static, or to use specific attributes), the generated
parser will fail to compile.  To disable these prototypes, #define yyerror
(to `yyerror`), and likewise for yylex.

refer: https://git.savannah.gnu.org/cgit/bison.git/tree/NEWS

GNU Bison 3.8
2021-09-10 09:11:23 +10:00
Daria Phoebe Brashear
78c915f65a lex: %option not supported by solaris lex
it turns out that we don't need to tell lex we don't plan to use unput;
we can just.... not use unput. however, if we're flex, use the command
line option if it's available, to avoid warnings
2018-12-18 13:12:46 -06:00
Love Hornquist Astrand
f13335985f try %option nounput and see if we can remove a warning 2010-11-26 12:01:14 -08:00
Love Hornquist Astrand
c961189f95 Remove dead code [CID-10] 2009-07-30 10:55:06 +02:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
31aba91bb4 Include <stdlib.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-10 22:19:01 +00:00
Love Hörnquist Åstrand
8df03ee61e fix warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-21 18:58:14 +00:00
Johan Danielsson
3cc8ea1b60 add simple command+option compiler
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13969 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-21 19:10:59 +00:00