X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/03b9e27342b94ef7a83bff78259fd8415f00584a..d2ffe11637313569116e8a9f891785b842ddb1e9:/src/state.c diff --git a/src/state.c b/src/state.c index 3afe46cf..730427f3 100644 --- a/src/state.c +++ b/src/state.c @@ -1,6 +1,6 @@ /* Type definitions for nondeterministic finite state machine for Bison. - Copyright (C) 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -49,17 +49,17 @@ transitions_new (int num, state **the_states) } -/*-------------------------------------------------------------------. -| Return the state such these TRANSITIONS contain a shift/goto to it | -| on S. Abort if none found. | -`-------------------------------------------------------------------*/ +/*-------------------------------------------------------. +| Return the state such that SHIFTS contain a shift/goto | +| to it on SYM. Abort if none found. | +`-------------------------------------------------------*/ state * -transitions_to (transitions *shifts, symbol_number s) +transitions_to (transitions *shifts, symbol_number sym) { int j; for (j = 0; j < shifts->num; j++) - if (TRANSITION_SYMBOL (shifts, j) == s) + if (TRANSITION_SYMBOL (shifts, j) == sym) return shifts->states[j]; abort (); }