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
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Andrew Bartlett
995d305f8c
lib/com_err only use error_message for the exported libcom_err
...
This avoids using the same function name in compile_et internally
Andrew Bartlett
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2011-01-26 12:00:32 -08:00
Asanka C. Herath
79454a6f62
Block conflicting declarations from Bison
...
If YYMALLOC and YYFREE aren't defined, Bison can generate
prototypes for them that conflict with the native declarations.
2010-11-24 15:33:08 -05:00
Love Hörnquist Åstrand
363bec0c7f
drop RCSID
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24355 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:30:25 +00: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
f0cdb49457
rename base to base_id since flex defines a function with the argument base
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 19:21:42 +00:00
Love Hörnquist Åstrand
b5454e78eb
(name2number): rename base to num to avoid shadowing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 19:12:55 +00:00
Love Hörnquist Åstrand
00bd45ed01
check allocation errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15144 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-16 08:53:34 +00:00
Love Hörnquist Åstrand
ddb34e00b3
include strlcpy and *printf and use them
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 19:43:06 +00:00
Assar Westerlund
a332440382
clean up warnings and stuff
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-22 00:42:52 +00:00
Johan Danielsson
3ca5f8150f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
37e7887150
fix stupid error in previous fix
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6409 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-04 14:54:58 +00:00
Assar Westerlund
85fea37f1e
(statement): use asprintf
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6394 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:30:04 +00:00
Assar Westerlund
200899ab1b
use YYACCEPT instead of return
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5552 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-16 13:30:43 +00:00
Johan Danielsson
a5c3a9cb87
prototype for error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5509 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-11 14:01:00 +00:00
Assar Westerlund
756153f825
define alloca to malloc in case we're using bison but don't have
...
alloca
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4734 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 07:22:08 +00:00
Assar Westerlund
f643be77a4
initialize ec->next
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4467 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-27 04:01:40 +00:00
Johan Danielsson
37add75d9c
Files don't have to end with `end'.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4432 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-17 15:30:49 +00:00
Johan Danielsson
cf27c2e715
A somewhat stricter grammar. Put everything in a linked list, and
...
generate files after parsing (so there won't be any half written
files).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4429 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-17 15:04:10 +00:00
Johan Danielsson
3ffe01b45f
Switch back to a yacc-based compile_et.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4394 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-14 23:46:43 +00:00