summaryrefslogtreecommitdiff
path: root/src/tblcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tblcmp.c')
-rw-r--r--src/tblcmp.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/tblcmp.c b/src/tblcmp.c
index a56aaab..0c058e6 100644
--- a/src/tblcmp.c
+++ b/src/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));
@@ -223,9 +223,9 @@ void bldtbl (state, statenum, totaltrans, comstate, comfreq)
void cmptmps ()
{
- int tmpstorage[CSIZE + 1];
- register int *tmp = tmpstorage, i, j;
- int totaltrans, trans;
+ int tmpstorage[CSIZE + 1];
+ 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,
@@ -501,11 +501,11 @@ void mkdeftbl ()
*/
void mkentry (state, numchars, statenum, deflink, totaltrans)
- register int *state;
- int numchars, statenum, deflink, totaltrans;
+ int *state;
+ int numchars, statenum, deflink, totaltrans;
{
- register int minec, maxec, i, baseaddr;
- int tblbase, tbllast;
+ int minec, maxec, i, baseaddr;
+ int tblbase, tbllast;
if (totaltrans == 0) { /* there are no out-transitions */
if (deflink == JAMSTATE)
@@ -762,9 +762,9 @@ void mv2front (qelm)
void place_state (state, statenum, transnum)
int *state, statenum, transnum;
{
- register int i;
- register int *state_ptr;
- int position = find_table_space (state, transnum);
+ int i;
+ int *state_ptr;
+ int position = find_table_space (state, transnum);
/* "base" is the table of start positions. */
base[statenum] = position;
@@ -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)];