(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:
Paul Eggert
2005-03-26 01:12:59 +00:00
parent ff498c4aed
commit 4f136612d9

View File

@@ -1,5 +1,5 @@
# 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
# 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 'a' "a"
%token b "b"
%token c 'c'
%token 'd' d
%token B_TOKEN "b"
%token C_TOKEN 'c'
%token 'd' D_TOKEN
%%
exp: "a";
]])