diff options
author | Michele Calgaro <[email protected]> | 2020-01-30 20:17:48 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 20:17:48 +0900 |
commit | 3cd074087f149763cc0871f72d5f2984f517c8dc (patch) | |
tree | 878a808199a95387555c878f5f22111944feae6a | |
parent | e663e317b733c0663f93e619e5ff3eb50e7d5138 (diff) | |
download | katapult-3cd074087f149763cc0871f72d5f2984f517c8dc.tar.gz katapult-3cd074087f149763cc0871f72d5f2984f517c8dc.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | katapult/plugins/catalogs/calculatorcatalog/parser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/katapult/plugins/catalogs/calculatorcatalog/parser.cpp b/katapult/plugins/catalogs/calculatorcatalog/parser.cpp index 390785e..81f1b6f 100644 --- a/katapult/plugins/catalogs/calculatorcatalog/parser.cpp +++ b/katapult/plugins/catalogs/calculatorcatalog/parser.cpp @@ -183,7 +183,7 @@ union yyalloc # define YYCOPY(To, From, Count) \ do \ { \ - register YYSIZE_T yyi; \ + YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ @@ -625,7 +625,7 @@ yystrlen (yystr) const char *yystr; # endif { - register const char *yys = yystr; + const char *yys = yystr; while (*yys++ != '\0') continue; @@ -650,8 +650,8 @@ yystpcpy (yydest, yysrc) const char *yysrc; # endif { - register char *yyd = yydest; - register const char *yys = yysrc; + char *yyd = yydest; + const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; @@ -786,8 +786,8 @@ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; - register int yystate; - register int yyn; + int yystate; + int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; @@ -805,12 +805,12 @@ int yynerrs; /* The state stack. */ short int yyssa[YYINITDEPTH]; short int *yyss = yyssa; - register short int *yyssp; + short int *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; + YYSTYPE *yyvsp; |