diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-04 23:30:09 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-04 23:30:09 +0000 |
commit | 9edfffed45d005f6a85767a405c48b9f793098df (patch) | |
tree | 675f0cd882e78a2ae28b785f96dde0e84da5eb17 /op.c | |
parent | 4978d6d9ce16dffa585865d4af8c887a4f77ab53 (diff) | |
parent | 86162ee834b1242cdc75a7bb8e5c50e5c9c10fd6 (diff) | |
download | perl-9edfffed45d005f6a85767a405c48b9f793098df.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4520
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -4411,6 +4411,13 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) av_store(PL_endav, 0, (SV *)cv); GvCV(gv) = 0; } + else if (strEQ(s, "STOP") && !PL_error_count) { + if (!PL_stopav) + PL_stopav = newAV(); + av_unshift(PL_stopav, 1); + av_store(PL_stopav, 0, (SV *)cv); + GvCV(gv) = 0; + } else if (strEQ(s, "INIT") && !PL_error_count) { if (!PL_initav) PL_initav = newAV(); @@ -4522,6 +4529,13 @@ Perl_newXS(pTHX_ char *name, XSUBADDR_t subaddr, char *filename) av_store(PL_endav, 0, (SV *)cv); GvCV(gv) = 0; } + else if (strEQ(s, "STOP")) { + if (!PL_stopav) + PL_stopav = newAV(); + av_unshift(PL_stopav, 1); + av_store(PL_stopav, 0, (SV *)cv); + GvCV(gv) = 0; + } else if (strEQ(s, "INIT")) { if (!PL_initav) PL_initav = newAV(); |