diff options
Diffstat (limited to 'contrib/flex/tblcmp.c')
-rw-r--r-- | contrib/flex/tblcmp.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/contrib/flex/tblcmp.c b/contrib/flex/tblcmp.c index a56aaab..64f44c4 100644 --- a/contrib/flex/tblcmp.c +++ b/contrib/flex/tblcmp.c @@ -36,7 +36,7 @@ /* declarations for functions that have forward references */ -void mkentry PROTO ((register int *, int, int, int, int)); +void mkentry PROTO ((int *, int, int, int, int)); void mkprot PROTO ((int[], int, int)); void mktemplate PROTO ((int[], int, int)); void mv2front PROTO ((int)); @@ -224,7 +224,7 @@ void bldtbl (state, statenum, totaltrans, comstate, comfreq) void cmptmps () { int tmpstorage[CSIZE + 1]; - register int *tmp = tmpstorage, i, j; + int *tmp = tmpstorage, i, j; int totaltrans, trans; peakpairs = numtemps * numecs + tblend; @@ -291,7 +291,7 @@ void cmptmps () void expand_nxt_chk () { - register int old_max = current_max_xpairs; + int old_max = current_max_xpairs; current_max_xpairs += MAX_XPAIRS_INCREMENT; @@ -330,9 +330,9 @@ int find_table_space (state, numtrans) /* Firstfree is the position of the first possible occurrence of two * consecutive unused records in the chk and nxt arrays. */ - register int i; - register int *state_ptr, *chk_ptr; - register int *ptr_to_last_entry_in_state; + int i; + int *state_ptr, *chk_ptr; + int *ptr_to_last_entry_in_state; /* If there are too many out-transitions, put the state at the end of * nxt and chk. @@ -421,7 +421,7 @@ int find_table_space (state, numtrans) */ void inittbl () { - register int i; + int i; zero_out ((char *) chk, @@ -494,17 +494,17 @@ void mkdeftbl () * (i.e., jam entries) into the table. It is assumed that by linking to * "JAMSTATE" they will be taken care of. In any case, entries in "state" * marking transitions to "SAME_TRANS" are treated as though they will be - * taken care of by whereever "deflink" points. "totaltrans" is the total + * taken care of by wherever "deflink" points. "totaltrans" is the total * number of transitions out of the state. If it is below a certain threshold, * the tables are searched for an interior spot that will accommodate the * state array. */ void mkentry (state, numchars, statenum, deflink, totaltrans) - register int *state; + int *state; int numchars, statenum, deflink, totaltrans; { - register int minec, maxec, i, baseaddr; + int minec, maxec, i, baseaddr; int tblbase, tbllast; if (totaltrans == 0) { /* there are no out-transitions */ @@ -762,8 +762,8 @@ void mv2front (qelm) void place_state (state, statenum, transnum) int *state, statenum, transnum; { - register int i; - register int *state_ptr; + int i; + int *state_ptr; int position = find_table_space (state, transnum); /* "base" is the table of start positions. */ @@ -835,8 +835,8 @@ void stack1 (statenum, sym, nextstate, deflink) int tbldiff (state, pr, ext) int state[], pr, ext[]; { - register int i, *sp = state, *ep = ext, *protp; - register int numdiff = 0; + int i, *sp = state, *ep = ext, *protp; + int numdiff = 0; protp = &protsave[numecs * (pr - 1)]; |