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 |
{ |
{ |
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 |
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 |
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_ */ |