]> git.saurik.com Git - bison.git/blobdiff - src/state.h
Regenerate.
[bison.git] / src / state.h
index 6b0a3de1e6711a62ebd5448a531f716f6b24beff..1e49bb384fa429cafff8270cb8c0e694f97538f0 100644 (file)
@@ -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.
 
    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_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;
 
 
 typedef struct state state;