Skip to content

Commit 26e7ae0

Browse files
committed
S_scan_ident: Move declaractions close to first use
These were declared far above, due to C89 that is no longer a constraint.
1 parent 069cf82 commit 26e7ae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toke.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10916,8 +10916,6 @@ S_scan_ident(pTHX_ char *s, char *dest, char *dest_end, U32 flags)
1091610916
PL_lex_state = LEX_INTERPEND;
1091710917
}
1091810918
else { /* Found a '{' */
10919-
bool skip;
10920-
char *s2;
1092110919

1092210920
/* Handle the interior of braces. First look to see if the character
1092310921
* pointed to by 'd' is legal as the start of an identifier.
@@ -10984,6 +10982,8 @@ S_scan_ident(pTHX_ char *s, char *dest, char *dest_end, U32 flags)
1098410982
if ( !tmp_copline )
1098510983
tmp_copline = CopLINE(PL_curcop);
1098610984

10985+
char *s2;
10986+
bool skip;
1098710987
if ((skip = s < PL_bufend && isSPACE(*s))) {
1098810988
/* Avoid incrementing line numbers or resetting PL_linestart,
1098910989
in case we have to back up. */

0 commit comments

Comments
 (0)