Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
OpenSceneGraph
Commits
f04a5103
Unverified
Commit
f04a5103
authored
May 18, 2020
by
OpenSceneGraph git repository
Committed by
GitHub
May 18, 2020
Browse files
Merge pull request #951 from poelmanc/patch-2
Remove register keyword (deprecated in C++17/20)
parents
8437550c
e085a7d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/osgPlugins/cfg/ConfigParser.cpp
View file @
f04a5103
...
@@ -351,7 +351,7 @@ union yyalloc
...
@@ -351,7 +351,7 @@ union yyalloc
# define YYCOPY(To, From, Count) \
# define YYCOPY(To, From, Count) \
do \
do \
{ \
{ \
register
YYSIZE_T yyi; \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
(To)[yyi] = (From)[yyi]; \
} \
} \
...
@@ -1025,7 +1025,7 @@ yystrlen (yystr)
...
@@ -1025,7 +1025,7 @@ yystrlen (yystr)
const
char
*
yystr
;
const
char
*
yystr
;
# endif
# endif
{
{
register
const
char
*
yys
=
yystr
;
const
char
*
yys
=
yystr
;
while
(
*
yys
++
!=
'\0'
)
while
(
*
yys
++
!=
'\0'
)
continue
;
continue
;
...
@@ -1050,8 +1050,8 @@ yystpcpy (yydest, yysrc)
...
@@ -1050,8 +1050,8 @@ yystpcpy (yydest, yysrc)
const
char
*
yysrc
;
const
char
*
yysrc
;
# endif
# endif
{
{
register
char
*
yyd
=
yydest
;
char
*
yyd
=
yydest
;
register
const
char
*
yys
=
yysrc
;
const
char
*
yys
=
yysrc
;
while
((
*
yyd
++
=
*
yys
++
)
!=
'\0'
)
while
((
*
yyd
++
=
*
yys
++
)
!=
'\0'
)
continue
;
continue
;
...
@@ -1175,8 +1175,8 @@ yyparse ()
...
@@ -1175,8 +1175,8 @@ yyparse ()
#endif
#endif
{
{
register
int
yystate
;
int
yystate
;
register
int
yyn
;
int
yyn
;
int
yyresult
;
int
yyresult
;
/* Number of tokens to shift before error messages enabled. */
/* Number of tokens to shift before error messages enabled. */
int
yyerrstatus
;
int
yyerrstatus
;
...
@@ -1194,12 +1194,12 @@ yyparse ()
...
@@ -1194,12 +1194,12 @@ yyparse ()
/* The state stack. */
/* The state stack. */
short
yyssa
[
YYINITDEPTH
];
short
yyssa
[
YYINITDEPTH
];
short
*
yyss
=
yyssa
;
short
*
yyss
=
yyssa
;
register
short
*
yyssp
;
short
*
yyssp
;
/* The semantic value stack. */
/* The semantic value stack. */
YYSTYPE
yyvsa
[
YYINITDEPTH
];
YYSTYPE
yyvsa
[
YYINITDEPTH
];
YYSTYPE
*
yyvs
=
yyvsa
;
YYSTYPE
*
yyvs
=
yyvsa
;
register
YYSTYPE
*
yyvsp
;
YYSTYPE
*
yyvsp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment