summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-05-20 15:40:38 -0600
committerKarl Williamson <khw@cpan.org>2022-05-27 21:22:30 -0600
commitf19710fbc5f10ef1c51705506039c388cf5a5b22 (patch)
tree72770f5e2008dacffcfe16ba76c683d6cfb1a110 /toke.c
parent62e3a0d5d51cfd774562e9f04dfcf1a6a297ee92 (diff)
downloadperl-f19710fbc5f10ef1c51705506039c388cf5a5b22.tar.gz
perlapi: Document start_subparse
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index ea9905044e..2022c9bcf8 100644
--- a/toke.c
+++ b/toke.c
@@ -12413,6 +12413,23 @@ S_scan_formline(pTHX_ char *s)
return s;
}
+/*
+=for apidoc start_subparse
+
+Set things up for parsing a subroutine.
+
+If C<is_format> is non-zero, the input is to be considered a format sub
+(a specialised sub used to implement perl's C<format> feature); else a
+normal C<sub>.
+
+C<flags> are added to the flags for C<PL_compcv>.
+
+This returns the value of C<PL_savestack_ix> that was in effect upon entry to
+the function;
+
+=cut
+*/
+
I32
Perl_start_subparse(pTHX_ I32 is_format, U32 flags)
{