summaryrefslogtreecommitdiff
path: root/tests/push.at
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny@ces.clemson.edu>2009-04-30 01:04:33 -0400
committerJoel E. Denny <jdenny@ces.clemson.edu>2009-04-30 03:43:42 -0400
commit812775a0391e122eff1983afea2da96c600c7307 (patch)
treef3accb365dc27559a7f6cf20e1f4206c7b55db5b /tests/push.at
parent1c4aa81df1fd11e2be5b2af78b4375f85bb2e59e (diff)
downloadbison-812775a0391e122eff1983afea2da96c600c7307.tar.gz
Convert underscores to dashes in some %define variable names.
For now, just api.push-pull and lr.keep-unreachable-states. Maintain old names for backward compatibility. * NEWS (2.5): Document. * data/c.m4 (b4_identification): Update comment. * data/yacc.c: Update access. * doc/bison.texinfo: Update. * etc/bench.pl.in (bench_grammar): Update use. * src/files.c (tr): Move to... * src/getargs.c, src/getargs.h (tr): ... here because I can't think of a better place to expose it. My logic is that, for all uses of tr so far, command-line arguments can be involved, and getargs.h is already included. * src/main.c (main): Update access. * src/muscle_tab.c (muscle_percent_define_insert): Convert old variable names to new variable names before assigning value. * src/reader.c (reader): Update setting default. * tests/calc.at: Update uses. * tests/conflicts.at (Unreachable States After Conflict Resolution): Update use. * tests/input.at (%define enum variables): Update use. (%define backward compatibility): New test group. * tests/push.at: Update uses. * tests/reduce.at: Update uses. * tests/torture.at: Update uses.
Diffstat (limited to 'tests/push.at')
-rw-r--r--tests/push.at10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/push.at b/tests/push.at
index 70c1fdce..bf48c682 100644
--- a/tests/push.at
+++ b/tests/push.at
@@ -1,5 +1,5 @@
# Checking Push Parsing. -*- Autotest -*-
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2009 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
@@ -33,7 +33,7 @@ AT_DATA_GRAMMAR([[input.y]],
void yyerror (char const *msg);
%}
-%define api.pure %define api.push_pull "push"
+%define api.pure %define api.push-pull "push"
%%
@@ -93,7 +93,7 @@ AT_DATA_GRAMMAR([[input.y]],
int yylex (void);
%}
-%define api.push_pull "]$1["
+%define api.push-pull "]$1["
%%
@@ -156,13 +156,13 @@ AT_SETUP([[Push Parsing: Unsupported Skeletons]])
AT_DATA([[input.y]],
[[%glr-parser
-%define api.push_pull "push"
+%define api.push-pull "push"
%%
start: ;
]])
AT_BISON_CHECK([[input.y]], [0], [],
-[[input.y:2.9-21: warning: %define variable `api.push_pull' is not used
+[[input.y:2.9-21: warning: %define variable `api.push-pull' is not used
]])
AT_CLEANUP