X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=proto.h;h=f1922a3b7048acea4bf668fca6ce8d0b5717cd4a;hb=fa75652c1970cc67d47b9b046e2e323ec6b13df9;hp=b5dfd5be22ec0393b1506d269b74e9480193b033;hpb=d870712163dce2ef7e0a77999cef2ce40ff04bde;p=p5sagit%2Fp5-mst-13.2.git diff --git a/proto.h b/proto.h index b5dfd5b..f1922a3 100644 --- a/proto.h +++ b/proto.h @@ -1246,6 +1246,9 @@ PERL_CALLCONV void Perl_qerror(pTHX_ SV* err) PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp) __attribute__nonnull__(pTHX_1); +PERL_CALLCONV void Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags) + __attribute__nonnull__(pTHX_1); + PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv) __attribute__nonnull__(pTHX_1); @@ -1383,6 +1386,12 @@ PERL_CALLCONV OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_5); +PERL_CALLCONV OP* Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off) + __attribute__malloc__ + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + PERL_CALLCONV OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP* left, OP* right) __attribute__malloc__ __attribute__warn_unused_result__ @@ -1568,6 +1577,11 @@ PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first) __attribute__malloc__ __attribute__warn_unused_result__; +PERL_CALLCONV OP* Perl_newWHENOP(pTHX_ OP* cond, OP* block) + __attribute__malloc__ + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_2); + PERL_CALLCONV OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my) __attribute__malloc__ __attribute__warn_unused_result__; @@ -3016,6 +3030,10 @@ PERL_CALLCONV OP* Perl_ck_sassign(pTHX_ OP *o) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); +PERL_CALLCONV OP* Perl_ck_say(pTHX_ OP *o) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1); + PERL_CALLCONV OP* Perl_ck_select(pTHX_ OP *o) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); @@ -3124,6 +3142,13 @@ STATIC OP* S_too_many_arguments(pTHX_ OP *o, const char* name) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); +STATIC bool S_looks_like_bool(pTHX_ OP* o) + __attribute__nonnull__(pTHX_1); + +STATIC OP* S_newGIVWHENOP(pTHX_ OP* cond, OP *block, I32 enter_opcode, I32 leave_opcode, PADOFFSET entertarg) + __attribute__nonnull__(pTHX_2); + +STATIC OP* S_ref_array_or_hash(pTHX_ OP* cond); #endif #if defined(PL_OP_SLAB_ALLOC) PERL_CALLCONV void* Perl_Slab_Alloc(pTHX_ int m, size_t sz) @@ -3265,6 +3290,9 @@ STATIC bool S_num_overflow(NV value, I32 fldsize, I32 frcsize) STATIC I32 S_dopoptoeval(pTHX_ I32 startingblock) __attribute__warn_unused_result__; +STATIC I32 S_dopoptogiven(pTHX_ I32 startingblock) + __attribute__warn_unused_result__; + STATIC I32 S_dopoptolabel(pTHX_ const char *label) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); @@ -3279,12 +3307,20 @@ STATIC I32 S_dopoptosub_at(pTHX_ const PERL_CONTEXT* cxstk, I32 startingblock) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); +STATIC I32 S_dopoptowhen(pTHX_ I32 startingblock) + __attribute__warn_unused_result__; + STATIC void S_save_lines(pTHX_ AV *array, SV *sv) __attribute__nonnull__(pTHX_2); STATIC OP* S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq) __attribute__warn_unused_result__; +STATIC PerlIO * S_check_type_and_open(pTHX_ const char *name, const char *mode) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + STATIC PerlIO * S_doopen_pm(pTHX_ const char *name, const char *mode) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1) @@ -3298,6 +3334,19 @@ STATIC I32 S_run_user_filter(pTHX_ int idx, SV *buf_sv, int maxlen) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_2); +STATIC PMOP* S_make_matcher(pTHX_ regexp* re) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1); + +STATIC bool S_matcher_matches_sv(pTHX_ PMOP* matcher, SV* sv) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC void S_destroy_matcher(pTHX_ PMOP* matcher) + __attribute__nonnull__(pTHX_1); + +STATIC OP* S_do_smartmatch(pTHX_ HV* seen_this, HV* seen_other); #endif #if defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT) @@ -3714,6 +3763,9 @@ STATIC void S_checkcomma(pTHX_ char *s, const char *name, const char *what) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3); +STATIC bool S_feature_is_enabled(pTHX_ char* name, STRLEN namelen) + __attribute__nonnull__(pTHX_1); + STATIC void S_force_ident(pTHX_ const char *s, int kind) __attribute__nonnull__(pTHX_1);