dtinfo: remove register keyword
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user