X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=proto.h;h=f1922a3b7048acea4bf668fca6ce8d0b5717cd4a;hb=0bfa2a8afc04ca8a47987d5890bbbe751faf4444;hp=3aa73de9b24952968b10dd8a45cc32bc0a9c3ec8;hpb=f5bd084c2c79901a2aea8ac589384123b5b7276d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/proto.h b/proto.h index 3aa73de..f1922a3 100644 --- a/proto.h +++ b/proto.h @@ -184,7 +184,7 @@ PERL_CALLCONV void Perl_boot_core_PerlIO(pTHX); PERL_CALLCONV void Perl_call_list(pTHX_ I32 oldscope, AV* av_list) __attribute__nonnull__(pTHX_2); -PERL_CALLCONV bool Perl_cando(pTHX_ Mode_t mode, Uid_t effective, const Stat_t* statbufp) +PERL_CALLCONV bool Perl_cando(pTHX_ Mode_t mode, bool effective, const Stat_t* statbufp) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_3); @@ -386,9 +386,17 @@ PERL_CALLCONV bool Perl_do_close(pTHX_ GV* gv, bool not_implicit) PERL_CALLCONV bool Perl_do_eof(pTHX_ GV* gv) __attribute__nonnull__(pTHX_1); + +#ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION /* PERL_CALLCONV bool Perl_do_exec(pTHX_ const char* cmd) __attribute__nonnull__(pTHX_1); */ +#else +PERL_CALLCONV bool Perl_do_exec(pTHX_ const char* cmd) + __attribute__nonnull__(pTHX_1); + +#endif + #if defined(WIN32) || defined(__SYMBIAN32__) PERL_CALLCONV int Perl_do_aspawn(pTHX_ SV* really, SV** mark, SV** sp) __attribute__nonnull__(pTHX_1) @@ -705,7 +713,7 @@ PERL_CALLCONV I32 Perl_ibcmp_utf8(pTHX_ const char* a, char **pe1, UV l1, bool u __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_5); -PERL_CALLCONV bool Perl_ingroup(pTHX_ Gid_t testgid, Uid_t effective) +PERL_CALLCONV bool Perl_ingroup(pTHX_ Gid_t testgid, bool effective) __attribute__warn_unused_result__; PERL_CALLCONV void Perl_init_argv_symbols(pTHX_ int argc, char **argv) @@ -724,7 +732,6 @@ PERL_CALLCONV char* Perl_instr(pTHX_ const char* big, const char* little) __attribute__nonnull__(pTHX_2); PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit) - __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); PERL_CALLCONV OP* Perl_invert(pTHX_ OP* cmd) @@ -1239,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); @@ -1376,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__ @@ -1418,7 +1434,6 @@ PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o) PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block); PERL_CALLCONV CV* Perl_newXS(pTHX_ const char* name, XSUBADDR_t f, const char* filename) - __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3); @@ -1562,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__; @@ -1980,7 +2000,7 @@ PERL_CALLCONV Signal_t Perl_csighandler(int sig, ...); PERL_CALLCONV Signal_t Perl_sighandler(int sig); PERL_CALLCONV Signal_t Perl_csighandler(int sig); #endif -PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV**p, int n) +PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV** p, int n) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); @@ -2290,7 +2310,7 @@ PERL_CALLCONV SV* Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* l __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3); -PERL_CALLCONV UV Perl_swash_fetch(pTHX_ SV *sv, const U8 *ptr, bool do_utf8) +PERL_CALLCONV UV Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); @@ -2388,15 +2408,31 @@ PERL_CALLCONV UV Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen) PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen) __attribute__nonnull__(pTHX_1); + +#ifdef EBCDIC PERL_CALLCONV UV Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) __attribute__nonnull__(pTHX_1); +#else +/* PERL_CALLCONV UV Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) + __attribute__nonnull__(pTHX_1); */ + +#endif + PERL_CALLCONV UV Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags) __attribute__nonnull__(pTHX_1); + +#ifdef EBCDIC PERL_CALLCONV U8* Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv) __attribute__nonnull__(pTHX_1); +#else +/* PERL_CALLCONV U8* Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv) + __attribute__nonnull__(pTHX_1); */ + +#endif + /* PERL_CALLCONV U8* Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv) __attribute__nonnull__(pTHX_1); */ @@ -2765,9 +2801,9 @@ PERL_CALLCONV int Perl_sv_release_IVX(pTHX_ SV *sv) #endif -PERL_CALLCONV void Perl_sv_nosharing(pTHX_ SV *); -/* PERL_CALLCONV void Perl_sv_nolocking(pTHX_ SV *); */ -/* PERL_CALLCONV void Perl_sv_nounlocking(pTHX_ SV *); */ +PERL_CALLCONV void Perl_sv_nosharing(pTHX_ SV *sv); +/* PERL_CALLCONV void Perl_sv_nolocking(pTHX_ SV *sv); */ +/* PERL_CALLCONV void Perl_sv_nounlocking(pTHX_ SV *sv); */ PERL_CALLCONV int Perl_nothreadhook(pTHX); END_EXTERN_C @@ -2994,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); @@ -3102,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) @@ -3156,6 +3203,9 @@ STATIC void S_call_body(pTHX_ const OP *myop, bool is_eval) STATIC void* S_call_list_body(pTHX_ CV *cv) __attribute__nonnull__(pTHX_1); +STATIC SV * S_incpush_if_exists(pTHX_ SV *dir) + __attribute__nonnull__(pTHX_1); + #endif #if defined(PERL_IN_PP_C) || defined(PERL_DECL_PROT) @@ -3212,6 +3262,10 @@ STATIC char S_first_symbol(const char *pat, const char *patend) __attribute__nonnull__(1) __attribute__nonnull__(2); +STATIC char * S_sv_exp_grow(pTHX_ SV *sv, STRLEN needed) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1); + #endif #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT) @@ -3236,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); @@ -3250,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) @@ -3265,6 +3330,23 @@ STATIC bool S_path_is_absolute(pTHX_ const char *name) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); +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) @@ -3284,6 +3366,45 @@ STATIC SV* S_method_common(pTHX_ SV* meth, U32* hashp) #endif +#if defined(PERL_IN_PP_SORT_C) || defined(PERL_DECL_PROT) +STATIC I32 S_sv_ncmp(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_sv_i_ncmp(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_amagic_ncmp(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_amagic_i_ncmp(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_amagic_cmp(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_amagic_cmp_locale(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_sortcv(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_sortcv_xsub(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +STATIC I32 S_sortcv_stacked(pTHX_ SV *a, SV *b) + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2); + +#endif + #if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT) STATIC OP* S_doform(pTHX_ CV *cv, GV *gv, OP *retop) __attribute__nonnull__(pTHX_1) @@ -3355,7 +3476,7 @@ STATIC char* S_regwhite(pTHX_ char *p, const char *e) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); -STATIC char* S_nextchar(pTHX_ struct RExC_state_t*) +STATIC char* S_nextchar(pTHX_ struct RExC_state_t *state) __attribute__nonnull__(pTHX_1); # ifdef DEBUGGING @@ -3368,22 +3489,22 @@ STATIC void S_put_byte(pTHX_ SV* sv, int c) __attribute__nonnull__(pTHX_1); # endif -STATIC void S_scan_commit(pTHX_ struct RExC_state_t*, struct scan_data_t *data) +STATIC void S_scan_commit(pTHX_ struct RExC_state_t* state, struct scan_data_t *data) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); -STATIC void S_cl_anything(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl) +STATIC void S_cl_anything(pTHX_ struct RExC_state_t* state, struct regnode_charclass_class *cl) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); STATIC int S_cl_is_anything(pTHX_ const struct regnode_charclass_class *cl) __attribute__nonnull__(pTHX_1); -STATIC void S_cl_init(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl) +STATIC void S_cl_init(pTHX_ struct RExC_state_t* state, struct regnode_charclass_class *cl) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); -STATIC void S_cl_init_zero(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl) +STATIC void S_cl_init_zero(pTHX_ struct RExC_state_t* state, struct regnode_charclass_class *cl) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); @@ -3391,18 +3512,18 @@ STATIC void S_cl_and(pTHX_ struct regnode_charclass_class *cl, const struct regn __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); -STATIC void S_cl_or(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl, const struct regnode_charclass_class *or_with) +STATIC void S_cl_or(pTHX_ struct RExC_state_t* state, struct regnode_charclass_class *cl, const struct regnode_charclass_class *or_with) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3); -STATIC I32 S_study_chunk(pTHX_ struct RExC_state_t* pRExC_state, regnode **scanp, I32 *deltap, regnode *last, struct scan_data_t *data, U32 flags, U32 depth) +STATIC I32 S_study_chunk(pTHX_ struct RExC_state_t* state, regnode **scanp, I32 *deltap, regnode *last, struct scan_data_t *data, U32 flags, U32 depth) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3) __attribute__nonnull__(pTHX_4); -STATIC I32 S_add_data(pTHX_ struct RExC_state_t*, I32 n, const char *s) +STATIC I32 S_add_data(pTHX_ struct RExC_state_t* state, I32 n, const char *s) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_3); @@ -3411,14 +3532,14 @@ STATIC void S_re_croak2(pTHX_ const char* pat1, const char* pat2, ...) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); -STATIC I32 S_regpposixcc(pTHX_ struct RExC_state_t*, I32 value) +STATIC I32 S_regpposixcc(pTHX_ struct RExC_state_t* state, I32 value) __attribute__nonnull__(pTHX_1); -STATIC void S_checkposixcc(pTHX_ struct RExC_state_t*) +STATIC void S_checkposixcc(pTHX_ struct RExC_state_t* state) __attribute__nonnull__(pTHX_1); -STATIC I32 S_make_trie(pTHX_ struct RExC_state_t*, regnode *startbranch, regnode *first, regnode *last, regnode *tail, U32 flags) +STATIC I32 S_make_trie(pTHX_ struct RExC_state_t* state, regnode *startbranch, regnode *first, regnode *last, regnode *tail, U32 flags) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3) @@ -3495,6 +3616,8 @@ STATIC CV* S_deb_curcv(pTHX_ I32 ix); STATIC void S_debprof(pTHX_ const OP *o) __attribute__nonnull__(pTHX_1); +STATIC void S_sequence(pTHX_ const OP *o); +STATIC UV S_sequence_num(pTHX_ const OP *o); #endif #if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT) @@ -3516,14 +3639,6 @@ STATIC char * S_uiv_2buf(char *buf, IV iv, UV uv, int is_uv, char **peob) __attribute__nonnull__(1) __attribute__nonnull__(5); -STATIC IV S_asIV(pTHX_ SV* sv) - __attribute__warn_unused_result__ - __attribute__nonnull__(pTHX_1); - -STATIC UV S_asUV(pTHX_ SV* sv) - __attribute__warn_unused_result__ - __attribute__nonnull__(pTHX_1); - STATIC void S_sv_unglob(pTHX_ SV* sv) __attribute__nonnull__(pTHX_1); @@ -3648,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); @@ -3688,7 +3806,7 @@ STATIC HV * S_find_in_my_stash(pTHX_ const char *pkgname, I32 len) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); -STATIC char * S_tokenize_use(pTHX_ int, char*) +STATIC char * S_tokenize_use(pTHX_ int is_use, char *s) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_2); @@ -3704,6 +3822,9 @@ STATIC void S_depcom(pTHX); STATIC const char* S_incl_perldb(pTHX); # if defined(PERL_CR_FILTER) STATIC I32 S_cr_textfilter(pTHX_ int idx, SV *sv, int maxlen); +STATIC void S_strip_return(pTHX_ SV *sv) + __attribute__nonnull__(pTHX_1); + # endif #endif @@ -3728,6 +3849,9 @@ STATIC COP* S_closest_cop(pTHX_ COP *cop, const OP *o) STATIC SV* S_mess_alloc(pTHX); STATIC const char * S_vdie_croak_common(pTHX_ const char *pat, va_list *args, STRLEN *msglen, I32* utf8); STATIC void S_vdie_common(pTHX_ const char *message, STRLEN msglen, I32 utf8); +STATIC char * S_write_no_mem(pTHX) + __attribute__noreturn__; + #endif #if defined(PERL_IN_NUMERIC_C) || defined(PERL_DECL_PROT) @@ -3738,6 +3862,16 @@ STATIC NV S_mulexp10(NV value, I32 exponent); STATIC STRLEN S_is_utf8_char_slow(pTHX_ const U8 *s, const STRLEN len) __attribute__nonnull__(pTHX_1); +STATIC bool S_is_utf8_common(pTHX_ const U8 *const p, SV **swash, const char * const swashname) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1) + __attribute__nonnull__(pTHX_2) + __attribute__nonnull__(pTHX_3); + +STATIC SV* S_swash_get(pTHX_ SV* swash, UV start, UV span) + __attribute__warn_unused_result__ + __attribute__nonnull__(pTHX_1); + #endif START_EXTERN_C @@ -4059,6 +4193,8 @@ PERL_CALLCONV int Perl_my_sprintf(char *buffer, const char *pat, ...) #endif +PERL_CALLCONV void Perl_my_clearenv(pTHX); + END_EXTERN_C /* * ex: set ts=8 sts=4 sw=4 noet: