Jelajahi Sumber

* BugFix: Don't use the register keyword in the console grammar files.

Robert MacGregor 3 tahun lalu
induk
melakukan
5fa7c62ba9
2 mengubah file dengan 20 tambahan dan 20 penghapusan
  1. 10 10
      Engine/source/console/bison.simple
  2. 10 10
      Engine/source/console/cmdgram.cpp

+ 10 - 10
Engine/source/console/bison.simple

@@ -166,9 +166,9 @@ __yy_memcpy (from, to, count)
      char *to;
      char *to;
      int count;
      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)
   while (i-- > 0)
     *t++ = *f++;
     *t++ = *f++;
@@ -181,9 +181,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;
-  register char *t = to;
-  register int i = count;
+  char *f = from;
+  char *t = to;
+  int i = count;
 
 
   while (i-- > 0)
   while (i-- > 0)
     *t++ = *f++;
     *t++ = *f++;
@@ -211,10 +211,10 @@ int
 yyparse(YYPARSE_PARAM)
 yyparse(YYPARSE_PARAM)
      YYPARSE_PARAM_DECL
      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 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 */
 
 

+ 10 - 10
Engine/source/console/cmdgram.cpp

@@ -1247,9 +1247,9 @@ __yy_memcpy (from, to, count)
      char *to;
      char *to;
      int count;
      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)
   while (i-- > 0)
     *t++ = *f++;
     *t++ = *f++;
@@ -1262,9 +1262,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;
-  register char *t = to;
-  register int i = count;
+  char *f = from;
+  char *t = to;
+  int i = count;
 
 
   while (i-- > 0)
   while (i-- > 0)
     *t++ = *f++;
     *t++ = *f++;
@@ -1292,10 +1292,10 @@ int
 yyparse(YYPARSE_PARAM)
 yyparse(YYPARSE_PARAM)
      YYPARSE_PARAM_DECL
      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 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 */