]> git.saurik.com Git - bison.git/blobdiff - src/state.h
* src/gram.h (item_number_t): New, the type of item numbers in
[bison.git] / src / state.h
index f8fab67d9cf9128b3bbc71090c2378bb4ab8665b..b4fa6b08972974ab7ba1ffd452ee81d0f9b73472 100644 (file)
@@ -186,11 +186,11 @@ typedef struct state_s
 
   /* Its items. */
   short nitems;
 
   /* Its items. */
   short nitems;
-  short items[1];
+  item_number_t items[1];
 } state_t;
 
 #define STATE_ALLOC(Nitems)                                            \
   (state_t *) xcalloc ((unsigned) (sizeof (state_t)                    \
 } state_t;
 
 #define STATE_ALLOC(Nitems)                                            \
   (state_t *) xcalloc ((unsigned) (sizeof (state_t)                    \
-                                  + (Nitems - 1) * sizeof (short)), 1)
+                                  + (Nitems - 1) * sizeof (item_number_t)), 1)
 
 #endif /* !STATE_H_ */
 
 #endif /* !STATE_H_ */