summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-12-17 17:50:52 +0000
committerDavid Mitchell <davem@iabyn.com>2016-02-03 09:18:35 +0000
commitabaf5d5ada4e3983478a6c89f54ed039ef236595 (patch)
treeb59b85e38d8646060cb343b4063262beecaab0e3 /pp_ctl.c
parent204bab9010640e4129be5ae2d5612fc7020c74ae (diff)
downloadperl-abaf5d5ada4e3983478a6c89f54ed039ef236595.tar.gz
provide some basic documentation for Perl_dounwind
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 84252ad87f..1758448d0b 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1505,6 +1505,15 @@ S_dopoptowhen(pTHX_ I32 startingblock)
return i;
}
+/* dounwind(): pop all contexts above (but not including) cxix.
+ * Leaves cxstack_ix equal to cxix. Note that for efficiency, it doesn't
+ * call POPBLOCK at all; the caller should do
+ * CX_LEAVE_SCOPE; POPFOO; POPBLOCK
+ * or
+ * TOPBLOCK
+ * as appropriate.
+ */
+
void
Perl_dounwind(pTHX_ I32 cxix)
{