/[bison]/bison/src/state.h
ViewVC logotype

Diff of /bison/src/state.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by akim, Tue Nov 7 16:28:47 2000 UTC revision 1.5.2.1 by akim, Mon Nov 19 09:14:26 2001 UTC
# Line 99  typedef struct core Line 99  typedef struct core
99  }  }
100  core;  core;
101    
102    #define CORE_ALLOC(Nitems)                                              \
103      (core *) xcalloc ((unsigned) (sizeof (core)                           \
104                                    + (Nitems - 1) * sizeof (short)), 1)
105    
106  typedef struct shifts  typedef struct shifts
107  {  {
# Line 110  typedef struct shifts Line 112  typedef struct shifts
112  }  }
113  shifts;  shifts;
114    
115    #define SHIFTS_ALLOC(Nshifts)                                           \
116      (shifts *) xcalloc ((unsigned) (sizeof (shifts)                       \
117                                      + (Nshifts - 1) * sizeof (short)), 1)
118    
119    
120  typedef struct errs  typedef struct errs
# Line 119  typedef struct errs Line 124  typedef struct errs
124  }  }
125  errs;  errs;
126    
127    #define ERRS_ALLOC(Nerrs)                                               \
128      (errs *) xcalloc ((unsigned) (sizeof (errs)                           \
129                                      + (Nerrs - 1) * sizeof (short)), 1)
130    
131    
132    
133  typedef struct reductions  typedef struct reductions
# Line 130  typedef struct reductions Line 139  typedef struct reductions
139  }  }
140  reductions;  reductions;
141    
142    #define REDUCTIONS_ALLOC(Nreductions)                                   \
143      (reductions *) xcalloc ((unsigned) (sizeof (reductions)               \
144                                      + (Nreductions - 1) * sizeof (short)), 1)
145    
146  #endif /* !STATE_H_ */  #endif /* !STATE_H_ */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26