X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/784573d14a350026800d1d92b870709fd4172a10..78a00b7d7fad9a7b81cdf3d9cba4ca896a873502:/src/state.h diff --git a/src/state.h b/src/state.h index 6b0a3de1..1e49bb38 100644 --- a/src/state.h +++ b/src/state.h @@ -1,4 +1,4 @@ -/* Type definitions for nondeterministic finite state machine for bison, +/* Type definitions for nondeterministic finite state machine for Bison. Copyright (C) 1984, 1989, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -98,7 +98,11 @@ typedef short state_number; # define STATE_NUMBER_MAXIMUM SHRT_MAX /* Be ready to map a state_number to an int. */ -# define state_number_as_int(Tok) ((int) (Tok)) +static inline int +state_number_as_int (state_number s) +{ + return s; +} typedef struct state state;