summaryrefslogtreecommitdiff
path: root/gdb/p-exp.y
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-12-09 20:48:07 +0000
committerDavid Carlton <carlton@bactrian.org>2002-12-09 20:48:07 +0000
commit5a672f73602d1997fd8e01d1b310c20c88d9a4e4 (patch)
tree48375c2c5b37a2205e32f35e0ad231f7cf895a7e /gdb/p-exp.y
parente92024495e348235b5efe3aa37daaf7d16c6be05 (diff)
downloadgdb-5a672f73602d1997fd8e01d1b310c20c88d9a4e4.tar.gz
2002-12-09 David Carlton <carlton@math.stanford.edu>
* p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r--gdb/p-exp.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 4e924b8e752..b4d4739d69c 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -205,7 +205,7 @@ static int search_field;
/* Object pascal */
%token THIS
-%token <lval> TRUE FALSE
+%token <lval> TRUEKEYWORD FALSEKEYWORD
%left ','
%left ABOVE_COMMA
@@ -434,13 +434,13 @@ exp : exp ASSIGN exp
{ write_exp_elt_opcode (BINOP_ASSIGN); }
;
-exp : TRUE
+exp : TRUEKEYWORD
{ write_exp_elt_opcode (OP_BOOL);
write_exp_elt_longcst ((LONGEST) $1);
write_exp_elt_opcode (OP_BOOL); }
;
-exp : FALSE
+exp : FALSEKEYWORD
{ write_exp_elt_opcode (OP_BOOL);
write_exp_elt_longcst ((LONGEST) $1);
write_exp_elt_opcode (OP_BOOL); }
@@ -1379,14 +1379,14 @@ yylex ()
if (STREQ (uptokstart, "FALSE"))
{
yylval.lval = 0;
- return FALSE;
+ return FALSEKEYWORD;
}
break;
case 4:
if (STREQ (uptokstart, "TRUE"))
{
yylval.lval = 1;
- return TRUE;
+ return TRUEKEYWORD;
}
if (STREQ (uptokstart, "SELF"))
{