Skip to content

Commit 59bca40

Browse files
committed
S_scan_ident: Convert parameter to bool
All calls to it set it to TRUE or FALSE
1 parent 6ceb5e3 commit 59bca40

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

embed.fnc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6054,7 +6054,7 @@ S |int |ao |int toketype
60546054
S |void |checkcomma |NN const char *s \
60556055
|NN const char *name \
60566056
|NN const char *what
6057-
S |void |check_uni
6057+
S |void |check_unary
60586058
RS |char * |filter_gets |NN SV *sv \
60596059
|STRLEN append
60606060
RS |HV * |find_in_my_stash \
@@ -6111,7 +6111,7 @@ RS |char * |scan_heredoc |NN char *s
61116111
S |char * |scan_ident |NN char *s \
61126112
|NN char *dest \
61136113
|NN char *dest_end \
6114-
|I32 ck_uni
6114+
|bool chk_unary
61156115
RS |char * |scan_inputsymbol \
61166116
|NN char *start
61176117
RS |char * |scan_pat |NN char *start \

embed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@
16711671
# endif
16721672
# if defined(PERL_IN_TOKE_C)
16731673
# define ao(a) S_ao(aTHX_ a)
1674-
# define check_uni() S_check_uni(aTHX)
1674+
# define check_unary() S_check_unary(aTHX)
16751675
# define checkcomma(a,b,c) S_checkcomma(aTHX_ a,b,c)
16761676
# define filter_gets(a,b) S_filter_gets(aTHX_ a,b)
16771677
# define find_in_my_stash(a,b) S_find_in_my_stash(aTHX_ a,b)

proto.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

toke.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10378,8 +10378,10 @@ Perl_scan_word(pTHX_ char *s, char *dest, char * dest_end, int allow_package, ST
1037810378
* specific variable name.
1037910379
*/
1038010380
STATIC char *
10381-
S_scan_ident(pTHX_ char *s, char *dest, char *dest_end, I32 chk_unary)
10381+
S_scan_ident(pTHX_ char *s, char *dest, char *dest_end, bool chk_unary)
1038210382
{
10383+
PERL_ARGS_ASSERT_SCAN_IDENT;
10384+
1038310385
I32 herelines = PL_parser->herelines;
1038410386
SSize_t bracket = -1;
1038510387
char funny = *s++;
@@ -10388,8 +10390,6 @@ S_scan_ident(pTHX_ char *s, char *dest, char *dest_end, I32 chk_unary)
1038810390
bool is_utf8 = cBOOL(UTF);
1038910391
line_t orig_copline = 0, tmp_copline = 0;
1039010392

10391-
PERL_ARGS_ASSERT_SCAN_IDENT;
10392-
1039310393
if (isSPACE(*s) || !*s)
1039410394
s = skipspace(s);
1039510395
if (isDIGIT(*s)) { /* handle $0 and $1 $2 and $10 and etc */

0 commit comments

Comments
 (0)