diff options
author | Yves Orton <demerphq@gmail.com> | 2022-08-29 14:01:53 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-07 22:53:08 +0800 |
commit | 9312140ba1ac523a74c69d552697f2767e128e04 (patch) | |
tree | 92014a0c6bcb5106b7067f0ef78e1cd21f5eaaec /toke.c | |
parent | 61c36998dd2ab81a3a53358ac76a57e6f5850dc9 (diff) | |
download | perl-9312140ba1ac523a74c69d552697f2767e128e04.tar.gz |
toke.c - dont just return the function, assign it to an intermediary
So we can debug it before we return. an optimization compiler should
make them the same thing anyway, but under -Og it is helpful to be able
to be able to see the return before we return it.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -12756,6 +12756,7 @@ Perl_abort_execution(pTHX_ SV* msg_sv, const char * const name) "Execution of %s aborted due to compilation errors.\n", name); } } + NOT_REACHED; /* NOTREACHED */ } @@ -12772,14 +12773,16 @@ int Perl_yyerror(pTHX_ const char *const s) { PERL_ARGS_ASSERT_YYERROR; - return yyerror_pvn(s, strlen(s), 0); + int r = yyerror_pvn(s, strlen(s), 0); + return r; } int Perl_yyerror_pv(pTHX_ const char *const s, U32 flags) { PERL_ARGS_ASSERT_YYERROR_PV; - return yyerror_pvn(s, strlen(s), flags); + int r = yyerror_pvn(s, strlen(s), flags); + return r; } int |