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:
Thomas "elfprince13" Dickerson 2017-01-05 17:39:10 -05:00
parent 3f73bb99b9
commit 233771dcdc
3 changed files with 32 additions and 32 deletions

View file

@ -1288,9 +1288,9 @@ __yy_memcpy (from, to, count)
char *to;
int count;
{
register char *f = from;
register char *t = to;
register int i = count;
char *f = from;
char *t = to;
int i = count;
while (i-- > 0)
*t++ = *f++;
@ -1303,9 +1303,9 @@ __yy_memcpy (from, to, count)
static void
__yy_memcpy (char *from, char *to, int count)
{
register char *f = from;
register char *t = to;
register int i = count;
char *f = from;
char *t = to;
int i = count;
while (i-- > 0)
*t++ = *f++;
@ -1333,10 +1333,10 @@ int
yyparse(YYPARSE_PARAM)
YYPARSE_PARAM_DECL
{
register int yystate;
register int yyn;
register short *yyssp;
register YYSTYPE *yyvsp;
int yystate;
int yyn;
short *yyssp;
YYSTYPE *yyvsp;
int yyerrstatus; /* number of tokens to shift before error messages enabled */
int yychar1 = 0; /* lookahead token as an internal (translated) token number */