mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
Move a pp_entereval comment where it belongs.
Commit f9bddea7d2 divorced it from the code it was describing (dele- tion of the FILEGV on eval exit). That code was subsequently repeated in various places by commit 78da7625. The comment is now above the first instance.
This commit is contained in:
parent
691f175822
commit
c8cb8d5592
10
pp_ctl.c
10
pp_ctl.c
@ -4189,11 +4189,6 @@ PP(pp_entereval)
|
||||
CopFILE_set(&PL_compiling, tmpbuf+2);
|
||||
SAVECOPLINE(&PL_compiling);
|
||||
CopLINE_set(&PL_compiling, 1);
|
||||
/* XXX For C<eval "...">s within BEGIN {} blocks, this ends up
|
||||
deleting the eval's FILEGV from the stash before gv_check() runs
|
||||
(i.e. before run-time proper). To work around the coredump that
|
||||
ensues, we always turn GvMULTI_on for any globals that were
|
||||
introduced within evals. See force_ident(). GSAR 96-10-12 */
|
||||
SAVEHINTS();
|
||||
PL_hints = PL_op->op_private & OPpEVAL_COPHH
|
||||
? PL_curcop->cop_hints : PL_op->op_targ;
|
||||
@ -4232,6 +4227,11 @@ PP(pp_entereval)
|
||||
if ((PERLDB_LINE || PERLDB_SAVESRC) && PL_curstash != PL_debstash)
|
||||
save_lines(CopFILEAV(&PL_compiling), PL_parser->linestr);
|
||||
else {
|
||||
/* XXX For C<eval "...">s within BEGIN {} blocks, this ends up
|
||||
deleting the eval's FILEGV from the stash before gv_check() runs
|
||||
(i.e. before run-time proper). To work around the coredump that
|
||||
ensues, we always turn GvMULTI_on for any globals that were
|
||||
introduced within evals. See force_ident(). GSAR 96-10-12 */
|
||||
char *const safestr = savepvn(tmpbuf, len);
|
||||
SAVEDELETE(PL_defstash, safestr, len);
|
||||
saved_delete = TRUE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user