From 5fa7c62ba938d6190e9c80ca16645207a594f935 Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Fri, 3 Dec 2021 20:33:02 -0500 Subject: [PATCH] * BugFix: Don't use the register keyword in the console grammar files. --- Engine/source/console/bison.simple | 20 ++++++++++---------- Engine/source/console/cmdgram.cpp | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Engine/source/console/bison.simple b/Engine/source/console/bison.simple index 0fb74ce71..24a8670cb 100644 --- a/Engine/source/console/bison.simple +++ b/Engine/source/console/bison.simple @@ -166,9 +166,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++; @@ -181,9 +181,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++; @@ -211,10 +211,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 */ diff --git a/Engine/source/console/cmdgram.cpp b/Engine/source/console/cmdgram.cpp index aab109792..3bf0131d6 100644 --- a/Engine/source/console/cmdgram.cpp +++ b/Engine/source/console/cmdgram.cpp @@ -1247,9 +1247,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++; @@ -1262,9 +1262,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++; @@ -1292,10 +1292,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 */