dtinfo: remove register keyword

This commit is contained in:
Jon Trulson
2018-06-27 16:57:54 -06:00
parent 7c0de21ad4
commit 556ce45298
31 changed files with 286 additions and 286 deletions

View File

@@ -1768,9 +1768,9 @@ static int input ol_data_PROTO(( void ));
ol_data_DECL
{
register ol_data_state_type ol_data_current_state;
register ol_data_CHAR *ol_data_cp, *ol_data_bp;
register int ol_data_act;
ol_data_state_type ol_data_current_state;
ol_data_CHAR *ol_data_cp, *ol_data_bp;
int ol_data_act;
@@ -2065,9 +2065,9 @@ case ol_data_STATE_EOF(INITIAL):
static int ol_data_get_next_buffer()
{
register ol_data_CHAR *dest = ol_data_current_buffer->ol_data_ch_buf;
register ol_data_CHAR *source = ol_datatext - 1; /* copy prev. char, too */
register int number_to_move, i;
ol_data_CHAR *dest = ol_data_current_buffer->ol_data_ch_buf;
ol_data_CHAR *source = ol_datatext - 1; /* copy prev. char, too */
int number_to_move, i;
int ret_val;
if ( ol_data_c_buf_p > &ol_data_current_buffer->ol_data_ch_buf[ol_data_n_chars + 1] )
@@ -2146,8 +2146,8 @@ static int ol_data_get_next_buffer()
static ol_data_state_type ol_data_get_previous_state()
{
register ol_data_state_type ol_data_current_state;
register ol_data_CHAR *ol_data_cp;
ol_data_state_type ol_data_current_state;
ol_data_CHAR *ol_data_cp;
ol_data_current_state = ol_data_start;
@@ -2177,15 +2177,15 @@ static ol_data_state_type ol_data_get_previous_state()
*/
#ifdef ol_data_USE_PROTOS
static ol_data_state_type ol_data_try_NUL_trans( register ol_data_state_type ol_data_current_state )
static ol_data_state_type ol_data_try_NUL_trans( ol_data_state_type ol_data_current_state )
#else
static ol_data_state_type ol_data_try_NUL_trans( ol_data_current_state )
register ol_data_state_type ol_data_current_state;
ol_data_state_type ol_data_current_state;
#endif
{
register int ol_data_is_jam;
register ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
int ol_data_is_jam;
ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
ol_data_current_state = ol_data_NUL_trans[ol_data_current_state];
ol_data_is_jam = (ol_data_current_state == 0);
@@ -2205,25 +2205,25 @@ register ol_data_state_type ol_data_current_state;
#if 0
#ifdef ol_data_USE_PROTOS
static void ol_dataunput( ol_data_CHAR c, register ol_data_CHAR *ol_data_bp )
static void ol_dataunput( ol_data_CHAR c, ol_data_CHAR *ol_data_bp )
#else
static void ol_dataunput( c, ol_data_bp )
ol_data_CHAR c;
register ol_data_CHAR *ol_data_bp;
ol_data_CHAR *ol_data_bp;
#endif
{
register ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
ol_data_CHAR *ol_data_cp = ol_data_c_buf_p;
/* undo effects of setting up ol_datatext */
*ol_data_cp = ol_data_hold_char;
if ( ol_data_cp < ol_data_current_buffer->ol_data_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = ol_data_n_chars + 2; /* +2 for EOB chars */
register ol_data_CHAR *dest =
int number_to_move = ol_data_n_chars + 2; /* +2 for EOB chars */
ol_data_CHAR *dest =
&ol_data_current_buffer->ol_data_ch_buf[ol_data_current_buffer->ol_data_buf_size + 2];
register ol_data_CHAR *source =
ol_data_CHAR *source =
&ol_data_current_buffer->ol_data_ch_buf[number_to_move];
while ( source > ol_data_current_buffer->ol_data_ch_buf )

View File

@@ -168,9 +168,9 @@ extern char *getenv(const char *);
int
ol_dataparse()
{
register int ol_datam, ol_datan, ol_datastate;
int ol_datam, ol_datan, ol_datastate;
#if ol_dataDEBUG
register char *ol_datas;
char *ol_datas;
if ((ol_datas = getenv("ol_dataDEBUG")))
{

View File

@@ -2243,9 +2243,9 @@ static int input remote_PROTO(( void ));
remote_DECL
{
register remote_state_type remote_current_state;
register remote_CHAR *remote_cp, *remote_bp;
register int remote_act;
remote_state_type remote_current_state;
remote_CHAR *remote_cp, *remote_bp;
int remote_act;
@@ -2550,9 +2550,9 @@ case remote_STATE_EOF(OLIDREF_FILE):
static int remote_get_next_buffer()
{
register remote_CHAR *dest = remote_current_buffer->remote_ch_buf;
register remote_CHAR *source = remotetext - 1; /* copy prev. char, too */
register int number_to_move, i;
remote_CHAR *dest = remote_current_buffer->remote_ch_buf;
remote_CHAR *source = remotetext - 1; /* copy prev. char, too */
int number_to_move, i;
int ret_val;
if ( remote_c_buf_p > &remote_current_buffer->remote_ch_buf[remote_n_chars + 1] )
@@ -2631,8 +2631,8 @@ static int remote_get_next_buffer()
static remote_state_type remote_get_previous_state()
{
register remote_state_type remote_current_state;
register remote_CHAR *remote_cp;
remote_state_type remote_current_state;
remote_CHAR *remote_cp;
remote_current_state = remote_start;
@@ -2662,15 +2662,15 @@ static remote_state_type remote_get_previous_state()
*/
#ifdef remote_USE_PROTOS
static remote_state_type remote_try_NUL_trans( register remote_state_type remote_current_state )
static remote_state_type remote_try_NUL_trans( remote_state_type remote_current_state )
#else
static remote_state_type remote_try_NUL_trans( remote_current_state )
register remote_state_type remote_current_state;
remote_state_type remote_current_state;
#endif
{
register int remote_is_jam;
register remote_CHAR *remote_cp = remote_c_buf_p;
int remote_is_jam;
remote_CHAR *remote_cp = remote_c_buf_p;
remote_current_state = remote_NUL_trans[remote_current_state];
remote_is_jam = (remote_current_state == 0);
@@ -2690,25 +2690,25 @@ register remote_state_type remote_current_state;
#if 0
#ifdef remote_USE_PROTOS
static void remoteunput( remote_CHAR c, register remote_CHAR *remote_bp )
static void remoteunput( remote_CHAR c, remote_CHAR *remote_bp )
#else
static void remoteunput( c, remote_bp )
remote_CHAR c;
register remote_CHAR *remote_bp;
remote_CHAR *remote_bp;
#endif
{
register remote_CHAR *remote_cp = remote_c_buf_p;
remote_CHAR *remote_cp = remote_c_buf_p;
/* undo effects of setting up remotetext */
*remote_cp = remote_hold_char;
if ( remote_cp < remote_current_buffer->remote_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = remote_n_chars + 2; /* +2 for EOB chars */
register remote_CHAR *dest =
int number_to_move = remote_n_chars + 2; /* +2 for EOB chars */
remote_CHAR *dest =
&remote_current_buffer->remote_ch_buf[remote_current_buffer->remote_buf_size + 2];
register remote_CHAR *source =
remote_CHAR *source =
&remote_current_buffer->remote_ch_buf[number_to_move];
while ( source > remote_current_buffer->remote_ch_buf )

View File

@@ -3048,9 +3048,9 @@ static int input nodedata_PROTO(( void ));
nodedata_DECL
{
register nodedata_state_type nodedata_current_state;
register nodedata_CHAR *nodedata_cp, *nodedata_bp;
register int nodedata_act;
nodedata_state_type nodedata_current_state;
nodedata_CHAR *nodedata_cp, *nodedata_bp;
int nodedata_act;
@@ -3381,9 +3381,9 @@ case nodedata_STATE_EOF(XREF):
static int nodedata_get_next_buffer()
{
register nodedata_CHAR *dest = nodedata_current_buffer->nodedata_ch_buf;
register nodedata_CHAR *source = nodedatatext - 1; /* copy prev. char, too */
register int number_to_move, i;
nodedata_CHAR *dest = nodedata_current_buffer->nodedata_ch_buf;
nodedata_CHAR *source = nodedatatext - 1; /* copy prev. char, too */
int number_to_move, i;
int ret_val;
if ( nodedata_c_buf_p > &nodedata_current_buffer->nodedata_ch_buf[nodedata_n_chars + 1] )
@@ -3462,8 +3462,8 @@ static int nodedata_get_next_buffer()
static nodedata_state_type nodedata_get_previous_state()
{
register nodedata_state_type nodedata_current_state;
register nodedata_CHAR *nodedata_cp;
nodedata_state_type nodedata_current_state;
nodedata_CHAR *nodedata_cp;
nodedata_current_state = nodedata_start;
@@ -3493,15 +3493,15 @@ static nodedata_state_type nodedata_get_previous_state()
*/
#ifdef nodedata_USE_PROTOS
static nodedata_state_type nodedata_try_NUL_trans( register nodedata_state_type nodedata_current_state )
static nodedata_state_type nodedata_try_NUL_trans( nodedata_state_type nodedata_current_state )
#else
static nodedata_state_type nodedata_try_NUL_trans( nodedata_current_state )
register nodedata_state_type nodedata_current_state;
nodedata_state_type nodedata_current_state;
#endif
{
register int nodedata_is_jam;
register nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
int nodedata_is_jam;
nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
nodedata_current_state = nodedata_NUL_trans[nodedata_current_state];
nodedata_is_jam = (nodedata_current_state == 0);
@@ -3521,25 +3521,25 @@ register nodedata_state_type nodedata_current_state;
#if 0
#ifdef nodedata_USE_PROTOS
static void nodedataunput( nodedata_CHAR c, register nodedata_CHAR *nodedata_bp )
static void nodedataunput( nodedata_CHAR c, nodedata_CHAR *nodedata_bp )
#else
static void nodedataunput( c, nodedata_bp )
nodedata_CHAR c;
register nodedata_CHAR *nodedata_bp;
nodedata_CHAR *nodedata_bp;
#endif
{
register nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
nodedata_CHAR *nodedata_cp = nodedata_c_buf_p;
/* undo effects of setting up nodedatatext */
*nodedata_cp = nodedata_hold_char;
if ( nodedata_cp < nodedata_current_buffer->nodedata_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = nodedata_n_chars + 2; /* +2 for EOB chars */
register nodedata_CHAR *dest =
int number_to_move = nodedata_n_chars + 2; /* +2 for EOB chars */
nodedata_CHAR *dest =
&nodedata_current_buffer->nodedata_ch_buf[nodedata_current_buffer->nodedata_buf_size + 2];
register nodedata_CHAR *source =
nodedata_CHAR *source =
&nodedata_current_buffer->nodedata_ch_buf[number_to_move];
while ( source > nodedata_current_buffer->nodedata_ch_buf )

View File

@@ -45,10 +45,10 @@ using namespace std;
*/
int
strcasecmp(register const char *s1,
register const char *s2)
strcasecmp(const char *s1,
const char *s2)
{
register int c1, c2;
int c1, c2;
while (*s1 && *s2) {
c1 = isupper(*s1) ? tolower(*s1) : *s1;
@@ -63,11 +63,11 @@ strcasecmp(register const char *s1,
int
strncasecmp(register const char *s1,
register const char *s2,
register size_t count)
strncasecmp(const char *s1,
const char *s2,
size_t count)
{
register int c1, c2;
int c1, c2;
if (!count)
return 0;

View File

@@ -1883,9 +1883,9 @@ static int input graphics_task_PROTO(( void ));
graphics_task_DECL
{
register graphics_task_state_type graphics_task_current_state;
register graphics_task_CHAR *graphics_task_cp, *graphics_task_bp;
register int graphics_task_act;
graphics_task_state_type graphics_task_current_state;
graphics_task_CHAR *graphics_task_cp, *graphics_task_bp;
int graphics_task_act;
@@ -2162,9 +2162,9 @@ case graphics_task_STATE_EOF(INITIAL):
static int graphics_task_get_next_buffer()
{
register graphics_task_CHAR *dest = graphics_task_current_buffer->graphics_task_ch_buf;
register graphics_task_CHAR *source = graphics_tasktext - 1; /* copy prev. char, too */
register int number_to_move, i;
graphics_task_CHAR *dest = graphics_task_current_buffer->graphics_task_ch_buf;
graphics_task_CHAR *source = graphics_tasktext - 1; /* copy prev. char, too */
int number_to_move, i;
int ret_val;
if ( graphics_task_c_buf_p > &graphics_task_current_buffer->graphics_task_ch_buf[graphics_task_n_chars + 1] )
@@ -2243,10 +2243,10 @@ static int graphics_task_get_next_buffer()
static graphics_task_state_type graphics_task_get_previous_state()
{
register graphics_task_state_type graphics_task_current_state;
register graphics_task_CHAR *graphics_task_cp;
graphics_task_state_type graphics_task_current_state;
graphics_task_CHAR *graphics_task_cp;
register graphics_task_CHAR *graphics_task_bp = graphics_tasktext;
graphics_task_CHAR *graphics_task_bp = graphics_tasktext;
graphics_task_current_state = graphics_task_start;
if ( graphics_task_bp[-1] == '\n' )
@@ -2278,15 +2278,15 @@ static graphics_task_state_type graphics_task_get_previous_state()
*/
#ifdef graphics_task_USE_PROTOS
static graphics_task_state_type graphics_task_try_NUL_trans( register graphics_task_state_type graphics_task_current_state )
static graphics_task_state_type graphics_task_try_NUL_trans( graphics_task_state_type graphics_task_current_state )
#else
static graphics_task_state_type graphics_task_try_NUL_trans( graphics_task_current_state )
register graphics_task_state_type graphics_task_current_state;
graphics_task_state_type graphics_task_current_state;
#endif
{
register int graphics_task_is_jam;
register graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
int graphics_task_is_jam;
graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
graphics_task_current_state = graphics_task_NUL_trans[graphics_task_current_state];
graphics_task_is_jam = (graphics_task_current_state == 0);
@@ -2306,25 +2306,25 @@ register graphics_task_state_type graphics_task_current_state;
#if 0
#ifdef graphics_task_USE_PROTOS
static void graphics_taskunput( graphics_task_CHAR c, register graphics_task_CHAR *graphics_task_bp )
static void graphics_taskunput( graphics_task_CHAR c, graphics_task_CHAR *graphics_task_bp )
#else
static void graphics_taskunput( c, graphics_task_bp )
graphics_task_CHAR c;
register graphics_task_CHAR *graphics_task_bp;
graphics_task_CHAR *graphics_task_bp;
#endif
{
register graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
graphics_task_CHAR *graphics_task_cp = graphics_task_c_buf_p;
/* undo effects of setting up graphics_tasktext */
*graphics_task_cp = graphics_task_hold_char;
if ( graphics_task_cp < graphics_task_current_buffer->graphics_task_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = graphics_task_n_chars + 2; /* +2 for EOB chars */
register graphics_task_CHAR *dest =
int number_to_move = graphics_task_n_chars + 2; /* +2 for EOB chars */
graphics_task_CHAR *dest =
&graphics_task_current_buffer->graphics_task_ch_buf[graphics_task_current_buffer->graphics_task_buf_size + 2];
register graphics_task_CHAR *source =
graphics_task_CHAR *source =
&graphics_task_current_buffer->graphics_task_ch_buf[number_to_move];
while ( source > graphics_task_current_buffer->graphics_task_ch_buf )

View File

@@ -1760,9 +1760,9 @@ static int input YY_PROTO(( void ));
YY_DECL
{
register yy_state_type yy_current_state;
register YY_CHAR *yy_cp, *yy_bp;
register int yy_act;
yy_state_type yy_current_state;
YY_CHAR *yy_cp, *yy_bp;
int yy_act;
@@ -2135,9 +2135,9 @@ case YY_STATE_EOF(ProcessData):
static int yy_get_next_buffer()
{
register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
register int number_to_move, i;
YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
YY_CHAR *source = yytext - 1; /* copy prev. char, too */
int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
@@ -2216,10 +2216,10 @@ static int yy_get_next_buffer()
static yy_state_type yy_get_previous_state()
{
register yy_state_type yy_current_state;
register YY_CHAR *yy_cp;
yy_state_type yy_current_state;
YY_CHAR *yy_cp;
register YY_CHAR *yy_bp = yytext;
YY_CHAR *yy_bp = yytext;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
@@ -2251,15 +2251,15 @@ static yy_state_type yy_get_previous_state()
*/
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
register yy_state_type yy_current_state;
yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
register YY_CHAR *yy_cp = yy_c_buf_p;
int yy_is_jam;
YY_CHAR *yy_cp = yy_c_buf_p;
yy_current_state = yy_NUL_trans[yy_current_state];
yy_is_jam = (yy_current_state == 0);
@@ -2279,25 +2279,25 @@ register yy_state_type yy_current_state;
#if 0
#ifdef YY_USE_PROTOS
static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
static void yyunput( YY_CHAR c, YY_CHAR *yy_bp )
#else
static void yyunput( c, yy_bp )
YY_CHAR c;
register YY_CHAR *yy_bp;
YY_CHAR *yy_bp;
#endif
{
register YY_CHAR *yy_cp = yy_c_buf_p;
YY_CHAR *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
register YY_CHAR *dest =
int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
YY_CHAR *dest =
&yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
register YY_CHAR *source =
YY_CHAR *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )