mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
(Token definitions): Don't use a token named c, as that generates a
"#define c ..." that runs afoul of buggy stdlib.h that uses the identifier c as a member of struct drand48_data.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Bison Regressions. -*- Autotest -*-
|
# Bison Regressions. -*- Autotest -*-
|
||||||
# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
# Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -319,9 +319,9 @@ int yylex (void);
|
|||||||
%}
|
%}
|
||||||
[%token MYEOF 0 "end of file"
|
[%token MYEOF 0 "end of file"
|
||||||
%token 'a' "a"
|
%token 'a' "a"
|
||||||
%token b "b"
|
%token B_TOKEN "b"
|
||||||
%token c 'c'
|
%token C_TOKEN 'c'
|
||||||
%token 'd' d
|
%token 'd' D_TOKEN
|
||||||
%%
|
%%
|
||||||
exp: "a";
|
exp: "a";
|
||||||
]])
|
]])
|
||||||
|
|||||||
Reference in New Issue
Block a user