From 41e0f335b5e2ab65cf47191a5b1c32adee2c24c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:34 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro (cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9) --- tdeprint/ppdparser.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tdeprint/ppdparser.cpp') diff --git a/tdeprint/ppdparser.cpp b/tdeprint/ppdparser.cpp index 21f3fb77e..30df9195d 100644 --- a/tdeprint/ppdparser.cpp +++ b/tdeprint/ppdparser.cpp @@ -225,7 +225,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]; \ } \ @@ -704,7 +704,7 @@ yystrlen (yystr) const char *yystr; # endif { - register const char *yys = yystr; + const char *yys = yystr; while (*yys++ != '\0') continue; @@ -729,8 +729,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; @@ -860,8 +860,8 @@ yyparse () #endif { - register int yystate; - register int yyn; + int yystate; + int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; @@ -879,12 +879,12 @@ yyparse () /* The state stack. */ short yyssa[YYINITDEPTH]; short *yyss = yyssa; - register short *yyssp; + short *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; - register YYSTYPE *yyvsp; + YYSTYPE *yyvsp; -- cgit v1.2.1