dtinfo: remove register keyword
This commit is contained in:
@@ -210,9 +210,9 @@ extern char *getenv(const char *);
|
||||
int
|
||||
defParserparse()
|
||||
{
|
||||
register int defParserm, defParsern, defParserstate;
|
||||
int defParserm, defParsern, defParserstate;
|
||||
#if defParserDEBUG
|
||||
register char *defParsers;
|
||||
char *defParsers;
|
||||
|
||||
if (defParsers = getenv("defParserDEBUG"))
|
||||
{
|
||||
|
||||
@@ -505,9 +505,9 @@ static int input defParser_PROTO(( void ));
|
||||
|
||||
defParser_DECL
|
||||
{
|
||||
register defParser_state_type defParser_current_state;
|
||||
register defParser_CHAR *defParser_cp, *defParser_bp;
|
||||
register int defParser_act;
|
||||
defParser_state_type defParser_current_state;
|
||||
defParser_CHAR *defParser_cp, *defParser_bp;
|
||||
int defParser_act;
|
||||
|
||||
|
||||
|
||||
@@ -553,7 +553,7 @@ defParser_DECL
|
||||
defParser_match:
|
||||
do
|
||||
{
|
||||
register defParser_CHAR defParser_c = defParser_ec[*defParser_cp];
|
||||
defParser_CHAR defParser_c = defParser_ec[*defParser_cp];
|
||||
if ( defParser_accept[defParser_current_state] )
|
||||
{
|
||||
defParser_last_accepting_state = defParser_current_state;
|
||||
@@ -912,9 +912,9 @@ case defParser_STATE_EOF(quoted_string):
|
||||
static int defParser_get_next_buffer()
|
||||
|
||||
{
|
||||
register defParser_CHAR *dest = defParser_current_buffer->defParser_ch_buf;
|
||||
register defParser_CHAR *source = defParsertext - 1; /* copy prev. char, too */
|
||||
register int number_to_move, i;
|
||||
defParser_CHAR *dest = defParser_current_buffer->defParser_ch_buf;
|
||||
defParser_CHAR *source = defParsertext - 1; /* copy prev. char, too */
|
||||
int number_to_move, i;
|
||||
int ret_val;
|
||||
|
||||
if ( defParser_c_buf_p > &defParser_current_buffer->defParser_ch_buf[defParser_n_chars + 1] )
|
||||
@@ -993,10 +993,10 @@ static int defParser_get_next_buffer()
|
||||
static defParser_state_type defParser_get_previous_state()
|
||||
|
||||
{
|
||||
register defParser_state_type defParser_current_state;
|
||||
register defParser_CHAR *defParser_cp;
|
||||
defParser_state_type defParser_current_state;
|
||||
defParser_CHAR *defParser_cp;
|
||||
|
||||
register defParser_CHAR *defParser_bp = defParsertext;
|
||||
defParser_CHAR *defParser_bp = defParsertext;
|
||||
|
||||
defParser_current_state = defParser_start;
|
||||
if ( defParser_bp[-1] == '\n' )
|
||||
@@ -1004,7 +1004,7 @@ static defParser_state_type defParser_get_previous_state()
|
||||
|
||||
for ( defParser_cp = defParsertext + defParser_MORE_ADJ; defParser_cp < defParser_c_buf_p; ++defParser_cp )
|
||||
{
|
||||
register defParser_CHAR defParser_c = (*defParser_cp ? defParser_ec[*defParser_cp] : 1);
|
||||
defParser_CHAR defParser_c = (*defParser_cp ? defParser_ec[*defParser_cp] : 1);
|
||||
if ( defParser_accept[defParser_current_state] )
|
||||
{
|
||||
defParser_last_accepting_state = defParser_current_state;
|
||||
@@ -1030,17 +1030,17 @@ static defParser_state_type defParser_get_previous_state()
|
||||
*/
|
||||
|
||||
#ifdef defParser_USE_PROTOS
|
||||
static defParser_state_type defParser_try_NUL_trans( register defParser_state_type defParser_current_state )
|
||||
static defParser_state_type defParser_try_NUL_trans( defParser_state_type defParser_current_state )
|
||||
#else
|
||||
static defParser_state_type defParser_try_NUL_trans( defParser_current_state )
|
||||
register defParser_state_type defParser_current_state;
|
||||
defParser_state_type defParser_current_state;
|
||||
#endif
|
||||
|
||||
{
|
||||
register int defParser_is_jam;
|
||||
register defParser_CHAR *defParser_cp = defParser_c_buf_p;
|
||||
int defParser_is_jam;
|
||||
defParser_CHAR *defParser_cp = defParser_c_buf_p;
|
||||
|
||||
register defParser_CHAR defParser_c = 1;
|
||||
defParser_CHAR defParser_c = 1;
|
||||
if ( defParser_accept[defParser_current_state] )
|
||||
{
|
||||
defParser_last_accepting_state = defParser_current_state;
|
||||
@@ -1061,25 +1061,25 @@ register defParser_state_type defParser_current_state;
|
||||
|
||||
#if 0
|
||||
#ifdef defParser_USE_PROTOS
|
||||
static void defParserunput( defParser_CHAR c, register defParser_CHAR *defParser_bp )
|
||||
static void defParserunput( defParser_CHAR c, defParser_CHAR *defParser_bp )
|
||||
#else
|
||||
static void defParserunput( c, defParser_bp )
|
||||
defParser_CHAR c;
|
||||
register defParser_CHAR *defParser_bp;
|
||||
defParser_CHAR *defParser_bp;
|
||||
#endif
|
||||
|
||||
{
|
||||
register defParser_CHAR *defParser_cp = defParser_c_buf_p;
|
||||
defParser_CHAR *defParser_cp = defParser_c_buf_p;
|
||||
|
||||
/* undo effects of setting up defParsertext */
|
||||
*defParser_cp = defParser_hold_char;
|
||||
|
||||
if ( defParser_cp < defParser_current_buffer->defParser_ch_buf + 2 )
|
||||
{ /* need to shift things up to make room */
|
||||
register int number_to_move = defParser_n_chars + 2; /* +2 for EOB chars */
|
||||
register defParser_CHAR *dest =
|
||||
int number_to_move = defParser_n_chars + 2; /* +2 for EOB chars */
|
||||
defParser_CHAR *dest =
|
||||
&defParser_current_buffer->defParser_ch_buf[defParser_current_buffer->defParser_buf_size + 2];
|
||||
register defParser_CHAR *source =
|
||||
defParser_CHAR *source =
|
||||
&defParser_current_buffer->defParser_ch_buf[number_to_move];
|
||||
|
||||
while ( source > defParser_current_buffer->defParser_ch_buf )
|
||||
|
||||
@@ -468,9 +468,9 @@ extern char *getenv(const char *);
|
||||
int
|
||||
styleparse()
|
||||
{
|
||||
register int stylem, stylen, stylestate;
|
||||
int stylem, stylen, stylestate;
|
||||
#if styleDEBUG
|
||||
register char *styles;
|
||||
char *styles;
|
||||
|
||||
if (styles = getenv("styleDEBUG"))
|
||||
{
|
||||
|
||||
@@ -606,9 +606,9 @@ static int input style_PROTO(( void ));
|
||||
|
||||
style_DECL
|
||||
{
|
||||
register style_state_type style_current_state;
|
||||
register style_CHAR *style_cp, *style_bp;
|
||||
register int style_act;
|
||||
style_state_type style_current_state;
|
||||
style_CHAR *style_cp, *style_bp;
|
||||
int style_act;
|
||||
|
||||
|
||||
|
||||
@@ -654,7 +654,7 @@ style_DECL
|
||||
style_match:
|
||||
do
|
||||
{
|
||||
register style_CHAR style_c = style_ec[*style_cp];
|
||||
style_CHAR style_c = style_ec[*style_cp];
|
||||
if ( style_accept[style_current_state] )
|
||||
{
|
||||
style_last_accepting_state = style_current_state;
|
||||
@@ -1160,9 +1160,9 @@ case style_STATE_EOF(quoted_string):
|
||||
static int style_get_next_buffer()
|
||||
|
||||
{
|
||||
register style_CHAR *dest = style_current_buffer->style_ch_buf;
|
||||
register style_CHAR *source = styletext - 1; /* copy prev. char, too */
|
||||
register int number_to_move, i;
|
||||
style_CHAR *dest = style_current_buffer->style_ch_buf;
|
||||
style_CHAR *source = styletext - 1; /* copy prev. char, too */
|
||||
int number_to_move, i;
|
||||
int ret_val;
|
||||
|
||||
if ( style_c_buf_p > &style_current_buffer->style_ch_buf[style_n_chars + 1] )
|
||||
@@ -1241,10 +1241,10 @@ static int style_get_next_buffer()
|
||||
static style_state_type style_get_previous_state()
|
||||
|
||||
{
|
||||
register style_state_type style_current_state;
|
||||
register style_CHAR *style_cp;
|
||||
style_state_type style_current_state;
|
||||
style_CHAR *style_cp;
|
||||
|
||||
register style_CHAR *style_bp = styletext;
|
||||
style_CHAR *style_bp = styletext;
|
||||
|
||||
style_current_state = style_start;
|
||||
if ( style_bp[-1] == '\n' )
|
||||
@@ -1252,7 +1252,7 @@ static style_state_type style_get_previous_state()
|
||||
|
||||
for ( style_cp = styletext + style_MORE_ADJ; style_cp < style_c_buf_p; ++style_cp )
|
||||
{
|
||||
register style_CHAR style_c = (*style_cp ? style_ec[*style_cp] : 1);
|
||||
style_CHAR style_c = (*style_cp ? style_ec[*style_cp] : 1);
|
||||
if ( style_accept[style_current_state] )
|
||||
{
|
||||
style_last_accepting_state = style_current_state;
|
||||
@@ -1278,17 +1278,17 @@ static style_state_type style_get_previous_state()
|
||||
*/
|
||||
|
||||
#ifdef style_USE_PROTOS
|
||||
static style_state_type style_try_NUL_trans( register style_state_type style_current_state )
|
||||
static style_state_type style_try_NUL_trans( style_state_type style_current_state )
|
||||
#else
|
||||
static style_state_type style_try_NUL_trans( style_current_state )
|
||||
register style_state_type style_current_state;
|
||||
style_state_type style_current_state;
|
||||
#endif
|
||||
|
||||
{
|
||||
register int style_is_jam;
|
||||
register style_CHAR *style_cp = style_c_buf_p;
|
||||
int style_is_jam;
|
||||
style_CHAR *style_cp = style_c_buf_p;
|
||||
|
||||
register style_CHAR style_c = 1;
|
||||
style_CHAR style_c = 1;
|
||||
if ( style_accept[style_current_state] )
|
||||
{
|
||||
style_last_accepting_state = style_current_state;
|
||||
@@ -1309,25 +1309,25 @@ register style_state_type style_current_state;
|
||||
|
||||
#if 0
|
||||
#ifdef style_USE_PROTOS
|
||||
static void styleunput( style_CHAR c, register style_CHAR *style_bp )
|
||||
static void styleunput( style_CHAR c, style_CHAR *style_bp )
|
||||
#else
|
||||
static void styleunput( c, style_bp )
|
||||
style_CHAR c;
|
||||
register style_CHAR *style_bp;
|
||||
style_CHAR *style_bp;
|
||||
#endif
|
||||
|
||||
{
|
||||
register style_CHAR *style_cp = style_c_buf_p;
|
||||
style_CHAR *style_cp = style_c_buf_p;
|
||||
|
||||
/* undo effects of setting up styletext */
|
||||
*style_cp = style_hold_char;
|
||||
|
||||
if ( style_cp < style_current_buffer->style_ch_buf + 2 )
|
||||
{ /* need to shift things up to make room */
|
||||
register int number_to_move = style_n_chars + 2; /* +2 for EOB chars */
|
||||
register style_CHAR *dest =
|
||||
int number_to_move = style_n_chars + 2; /* +2 for EOB chars */
|
||||
style_CHAR *dest =
|
||||
&style_current_buffer->style_ch_buf[style_current_buffer->style_buf_size + 2];
|
||||
register style_CHAR *source =
|
||||
style_CHAR *source =
|
||||
&style_current_buffer->style_ch_buf[number_to_move];
|
||||
|
||||
while ( source > style_current_buffer->style_ch_buf )
|
||||
|
||||
@@ -296,10 +296,10 @@ done2: mpool_put(t->bt_mp, h, dirty1);
|
||||
int
|
||||
__bt_dleaf(BTREE *t, PAGE *h, int index)
|
||||
{
|
||||
register BLEAF *bl;
|
||||
register indx_t *ip, offset;
|
||||
register size_t nbytes;
|
||||
register int cnt;
|
||||
BLEAF *bl;
|
||||
indx_t *ip, offset;
|
||||
size_t nbytes;
|
||||
int cnt;
|
||||
char *from;
|
||||
void *to;
|
||||
|
||||
|
||||
@@ -151,8 +151,8 @@ __bt_get(const DB *dbp, const DBT *key, DBT *data, u_int flags)
|
||||
EPG *
|
||||
__bt_first(BTREE *t, const DBT *key, int *exactp)
|
||||
{
|
||||
register PAGE *h;
|
||||
register EPG *e;
|
||||
PAGE *h;
|
||||
EPG *e;
|
||||
EPG save;
|
||||
pgno_t cpgno, pg;
|
||||
indx_t cindex;
|
||||
|
||||
@@ -87,9 +87,9 @@ static char sccsid[] = "@(#)bt_search.c 8.1 (Berkeley) 6/4/93";
|
||||
EPG *
|
||||
__bt_search(BTREE *t, const DBT *key, int *exactp)
|
||||
{
|
||||
register indx_t index;
|
||||
register int base, cmp, lim;
|
||||
register PAGE *h;
|
||||
indx_t index;
|
||||
int base, cmp, lim;
|
||||
PAGE *h;
|
||||
pgno_t pg;
|
||||
static EPG e;
|
||||
|
||||
|
||||
@@ -85,8 +85,8 @@ static char sccsid[] = "@(#)bt_utils.c 8.2 (Berkeley) 9/7/93";
|
||||
int
|
||||
__bt_ret(BTREE *t, EPG *e, DBT *key, DBT *data)
|
||||
{
|
||||
register BLEAF *bl;
|
||||
register void *p;
|
||||
BLEAF *bl;
|
||||
void *p;
|
||||
|
||||
bl = GETBLEAF(e->page, e->index);
|
||||
|
||||
@@ -217,8 +217,8 @@ __bt_cmp(BTREE *t, const DBT *k1, EPG *e)
|
||||
int
|
||||
__bt_defcmp(const DBT *a, const DBT *b)
|
||||
{
|
||||
register u_char *p1, *p2;
|
||||
register int diff, len;
|
||||
u_char *p1, *p2;
|
||||
int diff, len;
|
||||
|
||||
len = MIN(a->size, b->size);
|
||||
for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2)
|
||||
@@ -240,8 +240,8 @@ __bt_defcmp(const DBT *a, const DBT *b)
|
||||
int
|
||||
__bt_defpfx(const DBT *a, const DBT *b)
|
||||
{
|
||||
register u_char *p1, *p2;
|
||||
register int len;
|
||||
u_char *p1, *p2;
|
||||
int len;
|
||||
int cnt;
|
||||
|
||||
cnt = 1;
|
||||
|
||||
@@ -92,11 +92,11 @@ bcopy(src0, dst0, length)
|
||||
#endif
|
||||
void *dst0;
|
||||
const void *src0;
|
||||
register size_t length;
|
||||
size_t length;
|
||||
{
|
||||
register char *dst = dst0;
|
||||
register const char *src = src0;
|
||||
register size_t t;
|
||||
char *dst = dst0;
|
||||
const char *src = src0;
|
||||
size_t t;
|
||||
|
||||
if (length == 0 || dst == src) /* nothing to do */
|
||||
goto done;
|
||||
|
||||
@@ -87,9 +87,9 @@ mktemp(char *path)
|
||||
}
|
||||
|
||||
static int
|
||||
_gettemp(char *path, register int *doopen)
|
||||
_gettemp(char *path, int *doopen)
|
||||
{
|
||||
register char *start, *trv;
|
||||
char *start, *trv;
|
||||
struct stat sbuf;
|
||||
u_int pid;
|
||||
|
||||
|
||||
@@ -441,8 +441,8 @@ mpool_write(MPOOL *mp, BKT *b)
|
||||
static BKT *
|
||||
mpool_look(MPOOL *mp, pgno_t pgno)
|
||||
{
|
||||
register BKT *b;
|
||||
register BKTHDR *tb;
|
||||
BKT *b;
|
||||
BKTHDR *tb;
|
||||
|
||||
/* XXX
|
||||
* If find the buffer, put it first on the hash chain so can
|
||||
|
||||
@@ -435,9 +435,9 @@ static int input ps_PROTO(( void ));
|
||||
|
||||
ps_DECL
|
||||
{
|
||||
register ps_state_type ps_current_state;
|
||||
register ps_CHAR *ps_cp, *ps_bp;
|
||||
register int ps_act;
|
||||
ps_state_type ps_current_state;
|
||||
ps_CHAR *ps_cp, *ps_bp;
|
||||
int ps_act;
|
||||
|
||||
|
||||
|
||||
@@ -481,7 +481,7 @@ ps_DECL
|
||||
ps_match:
|
||||
do
|
||||
{
|
||||
register ps_CHAR ps_c = ps_ec[*ps_cp];
|
||||
ps_CHAR ps_c = ps_ec[*ps_cp];
|
||||
if ( ps_accept[ps_current_state] )
|
||||
{
|
||||
ps_last_accepting_state = ps_current_state;
|
||||
@@ -666,9 +666,9 @@ case ps_STATE_EOF(INITIAL):
|
||||
static int ps_get_next_buffer()
|
||||
|
||||
{
|
||||
register ps_CHAR *dest = ps_current_buffer->ps_ch_buf;
|
||||
register ps_CHAR *source = pstext - 1; /* copy prev. char, too */
|
||||
register int number_to_move, i;
|
||||
ps_CHAR *dest = ps_current_buffer->ps_ch_buf;
|
||||
ps_CHAR *source = pstext - 1; /* copy prev. char, too */
|
||||
int number_to_move, i;
|
||||
int ret_val;
|
||||
|
||||
if ( ps_c_buf_p > &ps_current_buffer->ps_ch_buf[ps_n_chars + 1] )
|
||||
@@ -747,14 +747,14 @@ static int ps_get_next_buffer()
|
||||
static ps_state_type ps_get_previous_state()
|
||||
|
||||
{
|
||||
register ps_state_type ps_current_state;
|
||||
register ps_CHAR *ps_cp;
|
||||
ps_state_type ps_current_state;
|
||||
ps_CHAR *ps_cp;
|
||||
|
||||
ps_current_state = ps_start;
|
||||
|
||||
for ( ps_cp = pstext + ps_MORE_ADJ; ps_cp < ps_c_buf_p; ++ps_cp )
|
||||
{
|
||||
register ps_CHAR ps_c = (*ps_cp ? ps_ec[*ps_cp] : 1);
|
||||
ps_CHAR ps_c = (*ps_cp ? ps_ec[*ps_cp] : 1);
|
||||
if ( ps_accept[ps_current_state] )
|
||||
{
|
||||
ps_last_accepting_state = ps_current_state;
|
||||
@@ -780,17 +780,17 @@ static ps_state_type ps_get_previous_state()
|
||||
*/
|
||||
|
||||
#ifdef ps_USE_PROTOS
|
||||
static ps_state_type ps_try_NUL_trans( register ps_state_type ps_current_state )
|
||||
static ps_state_type ps_try_NUL_trans( ps_state_type ps_current_state )
|
||||
#else
|
||||
static ps_state_type ps_try_NUL_trans( ps_current_state )
|
||||
register ps_state_type ps_current_state;
|
||||
ps_state_type ps_current_state;
|
||||
#endif
|
||||
|
||||
{
|
||||
register int ps_is_jam;
|
||||
register ps_CHAR *ps_cp = ps_c_buf_p;
|
||||
int ps_is_jam;
|
||||
ps_CHAR *ps_cp = ps_c_buf_p;
|
||||
|
||||
register ps_CHAR ps_c = 1;
|
||||
ps_CHAR ps_c = 1;
|
||||
if ( ps_accept[ps_current_state] )
|
||||
{
|
||||
ps_last_accepting_state = ps_current_state;
|
||||
@@ -811,25 +811,25 @@ register ps_state_type ps_current_state;
|
||||
|
||||
#if 0
|
||||
#ifdef ps_USE_PROTOS
|
||||
static void psunput( ps_CHAR c, register ps_CHAR *ps_bp )
|
||||
static void psunput( ps_CHAR c, ps_CHAR *ps_bp )
|
||||
#else
|
||||
static void psunput( c, ps_bp )
|
||||
ps_CHAR c;
|
||||
register ps_CHAR *ps_bp;
|
||||
ps_CHAR *ps_bp;
|
||||
#endif
|
||||
|
||||
{
|
||||
register ps_CHAR *ps_cp = ps_c_buf_p;
|
||||
ps_CHAR *ps_cp = ps_c_buf_p;
|
||||
|
||||
/* undo effects of setting up pstext */
|
||||
*ps_cp = ps_hold_char;
|
||||
|
||||
if ( ps_cp < ps_current_buffer->ps_ch_buf + 2 )
|
||||
{ /* need to shift things up to make room */
|
||||
register int number_to_move = ps_n_chars + 2; /* +2 for EOB chars */
|
||||
register ps_CHAR *dest =
|
||||
int number_to_move = ps_n_chars + 2; /* +2 for EOB chars */
|
||||
ps_CHAR *dest =
|
||||
&ps_current_buffer->ps_ch_buf[ps_current_buffer->ps_buf_size + 2];
|
||||
register ps_CHAR *source =
|
||||
ps_CHAR *source =
|
||||
&ps_current_buffer->ps_ch_buf[number_to_move];
|
||||
|
||||
while ( source > ps_current_buffer->ps_ch_buf )
|
||||
|
||||
@@ -441,9 +441,9 @@ static int input sgml_PROTO(( void ));
|
||||
|
||||
sgml_DECL
|
||||
{
|
||||
register sgml_state_type sgml_current_state;
|
||||
register sgml_CHAR *sgml_cp, *sgml_bp;
|
||||
register int sgml_act;
|
||||
sgml_state_type sgml_current_state;
|
||||
sgml_CHAR *sgml_cp, *sgml_bp;
|
||||
int sgml_act;
|
||||
|
||||
|
||||
|
||||
@@ -487,7 +487,7 @@ sgml_DECL
|
||||
sgml_match:
|
||||
do
|
||||
{
|
||||
register sgml_CHAR sgml_c = sgml_ec[*sgml_cp];
|
||||
sgml_CHAR sgml_c = sgml_ec[*sgml_cp];
|
||||
if ( sgml_accept[sgml_current_state] )
|
||||
{
|
||||
sgml_last_accepting_state = sgml_current_state;
|
||||
@@ -677,9 +677,9 @@ case sgml_STATE_EOF(INITIAL):
|
||||
static int sgml_get_next_buffer()
|
||||
|
||||
{
|
||||
register sgml_CHAR *dest = sgml_current_buffer->sgml_ch_buf;
|
||||
register sgml_CHAR *source = sgmltext - 1; /* copy prev. char, too */
|
||||
register int number_to_move, i;
|
||||
sgml_CHAR *dest = sgml_current_buffer->sgml_ch_buf;
|
||||
sgml_CHAR *source = sgmltext - 1; /* copy prev. char, too */
|
||||
int number_to_move, i;
|
||||
int ret_val;
|
||||
|
||||
if ( sgml_c_buf_p > &sgml_current_buffer->sgml_ch_buf[sgml_n_chars + 1] )
|
||||
@@ -758,14 +758,14 @@ static int sgml_get_next_buffer()
|
||||
static sgml_state_type sgml_get_previous_state()
|
||||
|
||||
{
|
||||
register sgml_state_type sgml_current_state;
|
||||
register sgml_CHAR *sgml_cp;
|
||||
sgml_state_type sgml_current_state;
|
||||
sgml_CHAR *sgml_cp;
|
||||
|
||||
sgml_current_state = sgml_start;
|
||||
|
||||
for ( sgml_cp = sgmltext + sgml_MORE_ADJ; sgml_cp < sgml_c_buf_p; ++sgml_cp )
|
||||
{
|
||||
register sgml_CHAR sgml_c = (*sgml_cp ? sgml_ec[*sgml_cp] : 1);
|
||||
sgml_CHAR sgml_c = (*sgml_cp ? sgml_ec[*sgml_cp] : 1);
|
||||
if ( sgml_accept[sgml_current_state] )
|
||||
{
|
||||
sgml_last_accepting_state = sgml_current_state;
|
||||
@@ -791,17 +791,17 @@ static sgml_state_type sgml_get_previous_state()
|
||||
*/
|
||||
|
||||
#ifdef sgml_USE_PROTOS
|
||||
static sgml_state_type sgml_try_NUL_trans( register sgml_state_type sgml_current_state )
|
||||
static sgml_state_type sgml_try_NUL_trans( sgml_state_type sgml_current_state )
|
||||
#else
|
||||
static sgml_state_type sgml_try_NUL_trans( sgml_current_state )
|
||||
register sgml_state_type sgml_current_state;
|
||||
sgml_state_type sgml_current_state;
|
||||
#endif
|
||||
|
||||
{
|
||||
register int sgml_is_jam;
|
||||
register sgml_CHAR *sgml_cp = sgml_c_buf_p;
|
||||
int sgml_is_jam;
|
||||
sgml_CHAR *sgml_cp = sgml_c_buf_p;
|
||||
|
||||
register sgml_CHAR sgml_c = 1;
|
||||
sgml_CHAR sgml_c = 1;
|
||||
if ( sgml_accept[sgml_current_state] )
|
||||
{
|
||||
sgml_last_accepting_state = sgml_current_state;
|
||||
@@ -822,25 +822,25 @@ register sgml_state_type sgml_current_state;
|
||||
|
||||
#if 0
|
||||
#ifdef sgml_USE_PROTOS
|
||||
static void sgmlunput( sgml_CHAR c, register sgml_CHAR *sgml_bp )
|
||||
static void sgmlunput( sgml_CHAR c, sgml_CHAR *sgml_bp )
|
||||
#else
|
||||
static void sgmlunput( c, sgml_bp )
|
||||
sgml_CHAR c;
|
||||
register sgml_CHAR *sgml_bp;
|
||||
sgml_CHAR *sgml_bp;
|
||||
#endif
|
||||
|
||||
{
|
||||
register sgml_CHAR *sgml_cp = sgml_c_buf_p;
|
||||
sgml_CHAR *sgml_cp = sgml_c_buf_p;
|
||||
|
||||
/* undo effects of setting up sgmltext */
|
||||
*sgml_cp = sgml_hold_char;
|
||||
|
||||
if ( sgml_cp < sgml_current_buffer->sgml_ch_buf + 2 )
|
||||
{ /* need to shift things up to make room */
|
||||
register int number_to_move = sgml_n_chars + 2; /* +2 for EOB chars */
|
||||
register sgml_CHAR *dest =
|
||||
int number_to_move = sgml_n_chars + 2; /* +2 for EOB chars */
|
||||
sgml_CHAR *dest =
|
||||
&sgml_current_buffer->sgml_ch_buf[sgml_current_buffer->sgml_buf_size + 2];
|
||||
register sgml_CHAR *source =
|
||||
sgml_CHAR *source =
|
||||
&sgml_current_buffer->sgml_ch_buf[number_to_move];
|
||||
|
||||
while ( source > sgml_current_buffer->sgml_ch_buf )
|
||||
|
||||
@@ -350,9 +350,9 @@ extern char *getenv(const char *);
|
||||
int
|
||||
schemaparse()
|
||||
{
|
||||
register int schemam, scheman, schemastate;
|
||||
int schemam, scheman, schemastate;
|
||||
#if schemaDEBUG
|
||||
register char * schemas;
|
||||
char * schemas;
|
||||
|
||||
if ( schemas = getenv(" schemaDEBUG"))
|
||||
{
|
||||
|
||||
@@ -520,9 +520,9 @@ static int input schema_PROTO(( void ));
|
||||
|
||||
schema_DECL
|
||||
{
|
||||
register schema_state_type schema_current_state;
|
||||
register schema_CHAR * schema_cp, * schema_bp;
|
||||
register int schema_act;
|
||||
schema_state_type schema_current_state;
|
||||
schema_CHAR * schema_cp, * schema_bp;
|
||||
int schema_act;
|
||||
|
||||
|
||||
|
||||
@@ -568,7 +568,7 @@ static int input schema_PROTO(( void ));
|
||||
schema_match:
|
||||
do
|
||||
{
|
||||
register schema_CHAR schema_c = schema_ec[* schema_cp];
|
||||
schema_CHAR schema_c = schema_ec[* schema_cp];
|
||||
if ( schema_accept[ schema_current_state] )
|
||||
{
|
||||
schema_last_accepting_state = schema_current_state;
|
||||
@@ -922,9 +922,9 @@ case schema_STATE_EOF(INITIAL):
|
||||
static int schema_get_next_buffer()
|
||||
|
||||
{
|
||||
register schema_CHAR *dest = schema_current_buffer-> schema_ch_buf;
|
||||
register schema_CHAR *source = schematext - 1; /* copy prev. char, too */
|
||||
register int number_to_move, i;
|
||||
schema_CHAR *dest = schema_current_buffer-> schema_ch_buf;
|
||||
schema_CHAR *source = schematext - 1; /* copy prev. char, too */
|
||||
int number_to_move, i;
|
||||
int ret_val;
|
||||
|
||||
if ( schema_c_buf_p > & schema_current_buffer-> schema_ch_buf[ schema_n_chars + 1] )
|
||||
@@ -1003,10 +1003,10 @@ static int schema_get_next_buffer()
|
||||
static schema_state_type schema_get_previous_state()
|
||||
|
||||
{
|
||||
register schema_state_type schema_current_state;
|
||||
register schema_CHAR * schema_cp;
|
||||
schema_state_type schema_current_state;
|
||||
schema_CHAR * schema_cp;
|
||||
|
||||
register schema_CHAR * schema_bp = schematext;
|
||||
schema_CHAR * schema_bp = schematext;
|
||||
|
||||
schema_current_state = schema_start;
|
||||
if ( schema_bp[-1] == '\n' )
|
||||
@@ -1014,7 +1014,7 @@ static schema_state_type schema_get_previous_state()
|
||||
|
||||
for ( schema_cp = schematext + schema_MORE_ADJ; schema_cp < schema_c_buf_p; ++ schema_cp )
|
||||
{
|
||||
register schema_CHAR schema_c = (* schema_cp ? schema_ec[* schema_cp] : 1);
|
||||
schema_CHAR schema_c = (* schema_cp ? schema_ec[* schema_cp] : 1);
|
||||
if ( schema_accept[ schema_current_state] )
|
||||
{
|
||||
schema_last_accepting_state = schema_current_state;
|
||||
@@ -1040,17 +1040,17 @@ static schema_state_type schema_get_previous_state()
|
||||
*/
|
||||
|
||||
#ifdef schema_USE_PROTOS
|
||||
static schema_state_type schema_try_NUL_trans( register schema_state_type schema_current_state )
|
||||
static schema_state_type schema_try_NUL_trans( schema_state_type schema_current_state )
|
||||
#else
|
||||
static schema_state_type schema_try_NUL_trans( schema_current_state )
|
||||
register schema_state_type schema_current_state;
|
||||
schema_state_type schema_current_state;
|
||||
#endif
|
||||
|
||||
{
|
||||
register int schema_is_jam;
|
||||
register schema_CHAR * schema_cp = schema_c_buf_p;
|
||||
int schema_is_jam;
|
||||
schema_CHAR * schema_cp = schema_c_buf_p;
|
||||
|
||||
register schema_CHAR schema_c = 1;
|
||||
schema_CHAR schema_c = 1;
|
||||
if ( schema_accept[ schema_current_state] )
|
||||
{
|
||||
schema_last_accepting_state = schema_current_state;
|
||||
@@ -1071,25 +1071,25 @@ register schema_state_type schema_current_state;
|
||||
|
||||
#if 0
|
||||
#ifdef schema_USE_PROTOS
|
||||
static void schemaunput( schema_CHAR c, register schema_CHAR * schema_bp )
|
||||
static void schemaunput( schema_CHAR c, schema_CHAR * schema_bp )
|
||||
#else
|
||||
static void schemaunput( c, schema_bp )
|
||||
schema_CHAR c;
|
||||
register schema_CHAR * schema_bp;
|
||||
schema_CHAR * schema_bp;
|
||||
#endif
|
||||
|
||||
{
|
||||
register schema_CHAR * schema_cp = schema_c_buf_p;
|
||||
schema_CHAR * schema_cp = schema_c_buf_p;
|
||||
|
||||
/* undo effects of setting up schematext */
|
||||
* schema_cp = schema_hold_char;
|
||||
|
||||
if ( schema_cp < schema_current_buffer-> schema_ch_buf + 2 )
|
||||
{ /* need to shift things up to make room */
|
||||
register int number_to_move = schema_n_chars + 2; /* +2 for EOB chars */
|
||||
register schema_CHAR *dest =
|
||||
int number_to_move = schema_n_chars + 2; /* +2 for EOB chars */
|
||||
schema_CHAR *dest =
|
||||
& schema_current_buffer-> schema_ch_buf[ schema_current_buffer-> schema_buf_size + 2];
|
||||
register schema_CHAR *source =
|
||||
schema_CHAR *source =
|
||||
& schema_current_buffer-> schema_ch_buf[number_to_move];
|
||||
|
||||
while ( source > schema_current_buffer-> schema_ch_buf )
|
||||
|
||||
Reference in New Issue
Block a user