summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-06-15 08:51:54 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-06-15 08:51:54 +0000
commit6224f72bf639f0ca7f774fe2738f2408b3e430ac (patch)
treed09466217844d04a8289a2d2d15377ce38987426 /scope.c
parent1163b5c41f1e1e2856ca82fef1598bfbb6c54d72 (diff)
downloadperl-6224f72bf639f0ca7f774fe2738f2408b3e430ac.tar.gz
back out previous change (it breaks PERL_OBJECT)
p4raw-id: //depot/perl@1136
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/scope.c b/scope.c
index c0924d83f2..5958aba3f5 100644
--- a/scope.c
+++ b/scope.c
@@ -15,17 +15,6 @@
#include "EXTERN.h"
#include "perl.h"
-static void setjmp_tryblock _((CPERLarg_ TRYVTBL *vtbl, void *locals));
-
-void
-install_tryblock_method(tryblock_f fn)
-{
- if (fn)
- tryblock_function = fn;
- else
- tryblock_function = setjmp_tryblock;
-}
-
SV**
stack_grow(SV **sp, SV **p, int n)
{
@@ -917,69 +906,3 @@ cx_dump(PERL_CONTEXT *cx)
}
#endif /* DEBUGGING */
}
-
-#include "XSUB.h"
-
-/* make 'static' once JMPENV_PUSH is no longer used (see scope.h) XXX */
-void
-setjmp_jump(CPERLarg)
-{
- dTHR;
- PerlProc_longjmp(((SETJMPENV*)top_env)->je_buf, 1);
-}
-
-static void
-setjmp_tryblock(CPERLarg_ TRYVTBL *vtbl, void *locals)
-{
- dTHR;
- int jmpstat;
- SETJMPENV je;
- JMPENV_INIT(je, setjmp_jump);
- PerlProc_setjmp(je.je_buf, 1);
- JMPENV_TRY(je);
- jmpstat = JMPENV_STAT(je);
- switch (jmpstat) {
- case JMP_NORMAL:
- assert(vtbl->try_normal[0]);
- (*vtbl->try_normal[0])(PERL_OBJECT_THIS_ locals);
- break;
- case JMP_EXCEPTION:
- if (vtbl->try_exception[0])
- (*vtbl->try_exception[0])(PERL_OBJECT_THIS_ locals);
- break;
- case JMP_MYEXIT:
- if (vtbl->try_myexit[0])
- (*vtbl->try_myexit[0])(PERL_OBJECT_THIS_ locals);
- break;
- default:
- if (jmpstat != JMP_ABNORMAL)
- PerlIO_printf(PerlIO_stderr(),
- "JMPENV_JUMP(%d) is bogus\n", jmpstat);
- if (vtbl->try_abnormal[0])
- (*vtbl->try_abnormal[0])(PERL_OBJECT_THIS_ locals);
- break;
- }
- JMPENV_POP_JE(je);
- switch (JMPENV_STAT(je)) {
- case JMP_NORMAL:
- if (vtbl->try_normal[1])
- (*vtbl->try_normal[1])(PERL_OBJECT_THIS_ locals);
- break;
- case JMP_EXCEPTION:
- if (vtbl->try_exception[1])
- (*vtbl->try_exception[1])(PERL_OBJECT_THIS_ locals);
- break;
- case JMP_MYEXIT:
- if (vtbl->try_myexit[1])
- (*vtbl->try_myexit[1])(PERL_OBJECT_THIS_ locals);
- break;
- default:
- if (jmpstat != JMP_ABNORMAL)
- PerlIO_printf(PerlIO_stderr(),
- "JMPENV_JUMP(%d) is bogus\n", jmpstat);
- if (vtbl->try_abnormal[1])
- (*vtbl->try_abnormal[1])(PERL_OBJECT_THIS_ locals);
- break;
- }
-}
-