* src/state.h (reductions_t): Rename member `nreds' as num.

(errs_t): Rename members `nerrs' and `errs' as `num' and `symbols'.
* src/state.c (ERRS_ALLOC, REDUCTIONS_ALLOC): Use the correct types.
This commit is contained in:
Akim Demaille
2002-06-30 17:34:31 +00:00
parent ccaf65bc63
commit d257636504
7 changed files with 42 additions and 34 deletions

View File

@@ -152,8 +152,8 @@ struct state_s *transitions_to PARAMS ((transitions_t *state,
typedef struct errs_s
{
short nerrs;
short errs[1];
short num;
symbol_number_t symbols[1];
} errs_t;
errs_t *errs_new PARAMS ((int n));
@@ -166,8 +166,8 @@ errs_t *errs_dup PARAMS ((errs_t *src));
typedef struct reductions_s
{
short nreds;
short rules[1];
short num;
rule_number_t rules[1];
} reductions_t;