mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Don't use the register keyword with modern compilers, they know better than you (and complain that it's deprecated to boot
This commit is contained in:
parent
3f73bb99b9
commit
233771dcdc
3 changed files with 32 additions and 32 deletions
|
|
@ -774,9 +774,9 @@ YY_MALLOC_DECL
|
||||||
|
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
|
|
||||||
#line 105 "CMDscan.l"
|
#line 105 "CMDscan.l"
|
||||||
|
|
||||||
|
|
@ -823,7 +823,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yy_last_accepting_state = yy_current_state;
|
yy_last_accepting_state = yy_current_state;
|
||||||
|
|
@ -1048,7 +1048,7 @@ case 37:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 143 "CMDscan.l"
|
#line 143 "CMDscan.l"
|
||||||
{ /* this comment stops syntax highlighting from getting messed up when editing the lexer in TextPad */
|
{ /* this comment stops syntax highlighting from getting messed up when editing the lexer in TextPad */
|
||||||
register int c = 0, l;
|
int c = 0, l;
|
||||||
for ( ; ; )
|
for ( ; ; )
|
||||||
{
|
{
|
||||||
l = c;
|
l = c;
|
||||||
|
|
@ -1430,9 +1430,9 @@ case YY_STATE_EOF(INITIAL):
|
||||||
|
|
||||||
static int yy_get_next_buffer()
|
static int yy_get_next_buffer()
|
||||||
{
|
{
|
||||||
register char *dest = yy_current_buffer->yy_ch_buf;
|
char *dest = yy_current_buffer->yy_ch_buf;
|
||||||
register char *source = yytext_ptr;
|
char *source = yytext_ptr;
|
||||||
register int number_to_move, i;
|
int number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
|
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
|
||||||
|
|
@ -1560,14 +1560,14 @@ static int yy_get_next_buffer()
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state()
|
static yy_state_type yy_get_previous_state()
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
|
|
||||||
yy_current_state = yy_start;
|
yy_current_state = yy_start;
|
||||||
|
|
||||||
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
|
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yy_last_accepting_state = yy_current_state;
|
yy_last_accepting_state = yy_current_state;
|
||||||
|
|
@ -1599,10 +1599,10 @@ static yy_state_type yy_try_NUL_trans( yy_current_state )
|
||||||
yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
register char *yy_cp = yy_c_buf_p;
|
char *yy_cp = yy_c_buf_p;
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yy_last_accepting_state = yy_current_state;
|
yy_last_accepting_state = yy_current_state;
|
||||||
|
|
@ -1623,14 +1623,14 @@ yy_state_type yy_current_state;
|
||||||
|
|
||||||
#ifndef YY_NO_UNPUT
|
#ifndef YY_NO_UNPUT
|
||||||
#ifdef YY_USE_PROTOS
|
#ifdef YY_USE_PROTOS
|
||||||
static void yyunput( int c, register char *yy_bp )
|
static void yyunput( int c, char *yy_bp )
|
||||||
#else
|
#else
|
||||||
static void yyunput( c, yy_bp )
|
static void yyunput( c, yy_bp )
|
||||||
int c;
|
int c;
|
||||||
register char *yy_bp;
|
char *yy_bp;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
register char *yy_cp = yy_c_buf_p;
|
char *yy_cp = yy_c_buf_p;
|
||||||
|
|
||||||
/* undo effects of setting up yytext */
|
/* undo effects of setting up yytext */
|
||||||
*yy_cp = yy_hold_char;
|
*yy_cp = yy_hold_char;
|
||||||
|
|
@ -1638,10 +1638,10 @@ register char *yy_bp;
|
||||||
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
|
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
|
||||||
{ /* need to shift things up to make room */
|
{ /* need to shift things up to make room */
|
||||||
/* +2 for EOB chars. */
|
/* +2 for EOB chars. */
|
||||||
register int number_to_move = yy_n_chars + 2;
|
int number_to_move = yy_n_chars + 2;
|
||||||
register char *dest = &yy_current_buffer->yy_ch_buf[
|
char *dest = &yy_current_buffer->yy_ch_buf[
|
||||||
yy_current_buffer->yy_buf_size + 2];
|
yy_current_buffer->yy_buf_size + 2];
|
||||||
register char *source =
|
char *source =
|
||||||
&yy_current_buffer->yy_ch_buf[number_to_move];
|
&yy_current_buffer->yy_ch_buf[number_to_move];
|
||||||
|
|
||||||
while ( source > yy_current_buffer->yy_ch_buf )
|
while ( source > yy_current_buffer->yy_ch_buf )
|
||||||
|
|
@ -2095,7 +2095,7 @@ yyconst char *s2;
|
||||||
int n;
|
int n;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ HEXDIGIT [a-fA-F0-9]
|
||||||
"SPC" { CMDlval.i = MakeToken< int >( ' ', lineIndex ); return '@'; }
|
"SPC" { CMDlval.i = MakeToken< int >( ' ', lineIndex ); return '@'; }
|
||||||
"@" { CMDlval.i = MakeToken< int >( 0, lineIndex ); return '@'; }
|
"@" { CMDlval.i = MakeToken< int >( 0, lineIndex ); return '@'; }
|
||||||
"/*" { /* this comment stops syntax highlighting from getting messed up when editing the lexer in TextPad */
|
"/*" { /* this comment stops syntax highlighting from getting messed up when editing the lexer in TextPad */
|
||||||
register int c = 0, l;
|
int c = 0, l;
|
||||||
for ( ; ; )
|
for ( ; ; )
|
||||||
{
|
{
|
||||||
l = c;
|
l = c;
|
||||||
|
|
|
||||||
|
|
@ -1288,9 +1288,9 @@ __yy_memcpy (from, to, count)
|
||||||
char *to;
|
char *to;
|
||||||
int count;
|
int count;
|
||||||
{
|
{
|
||||||
register char *f = from;
|
char *f = from;
|
||||||
register char *t = to;
|
char *t = to;
|
||||||
register int i = count;
|
int i = count;
|
||||||
|
|
||||||
while (i-- > 0)
|
while (i-- > 0)
|
||||||
*t++ = *f++;
|
*t++ = *f++;
|
||||||
|
|
@ -1303,9 +1303,9 @@ __yy_memcpy (from, to, count)
|
||||||
static void
|
static void
|
||||||
__yy_memcpy (char *from, char *to, int count)
|
__yy_memcpy (char *from, char *to, int count)
|
||||||
{
|
{
|
||||||
register char *f = from;
|
char *f = from;
|
||||||
register char *t = to;
|
char *t = to;
|
||||||
register int i = count;
|
int i = count;
|
||||||
|
|
||||||
while (i-- > 0)
|
while (i-- > 0)
|
||||||
*t++ = *f++;
|
*t++ = *f++;
|
||||||
|
|
@ -1333,10 +1333,10 @@ int
|
||||||
yyparse(YYPARSE_PARAM)
|
yyparse(YYPARSE_PARAM)
|
||||||
YYPARSE_PARAM_DECL
|
YYPARSE_PARAM_DECL
|
||||||
{
|
{
|
||||||
register int yystate;
|
int yystate;
|
||||||
register int yyn;
|
int yyn;
|
||||||
register short *yyssp;
|
short *yyssp;
|
||||||
register YYSTYPE *yyvsp;
|
YYSTYPE *yyvsp;
|
||||||
int yyerrstatus; /* number of tokens to shift before error messages enabled */
|
int yyerrstatus; /* number of tokens to shift before error messages enabled */
|
||||||
int yychar1 = 0; /* lookahead token as an internal (translated) token number */
|
int yychar1 = 0; /* lookahead token as an internal (translated) token number */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue