diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-07-25 22:33:40 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-07-26 00:09:04 -0700 |
commit | b8c38f0a2a65800ef71a3715d0a31299fcfb4986 (patch) | |
tree | 59c92ee641df16c144dd57596edc22421381e102 /proto.h | |
parent | 69f26f522d3144d15f7bf1df76cb51db6af43d05 (diff) | |
download | perl-b8c38f0a2a65800ef71a3715d0a31299fcfb4986.tar.gz |
Add core_prototype; make pp_prototype use it
This commit moves the code for generating core prototypes into a sepa-
rate function, core_prototype, in op.c. This serves two porpoises:
• It allows the lock and tie exceptional cases to be incorporated into
the main prototype=generation code, which requires the use of a
static function in op.c.
• It allows other parts of the core (e.g., the upcoming \&CORE::foo
feature) to use the same code.
The docs for it are in a section boringly entitled ‘Functions in
op.c’, for lack of a better name. This, I believe, is the only op.c
function that is in perlintern currently, so it’s hard to see what to
name a section that will, at least for now, contain nothing else.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -571,6 +571,11 @@ PERL_CALLCONV void Perl_cop_store_label(pTHX_ COP *const cop, const char *label, #define PERL_ARGS_ASSERT_COP_STORE_LABEL \ assert(cop); assert(label) +PERL_CALLCONV SV * Perl_core_prototype(pTHX_ SV *sv, const char *name, const STRLEN len, const bool croak) + __attribute__nonnull__(pTHX_2); +#define PERL_ARGS_ASSERT_CORE_PROTOTYPE \ + assert(name) + PERL_CALLCONV PERL_CONTEXT* Perl_create_eval_scope(pTHX_ U32 flags); PERL_CALLCONV void Perl_croak(pTHX_ const char* pat, ...) __attribute__noreturn__ |