This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate cfgperl changes into mainline
[perl5.git] / proto.h
CommitLineData
cea2e8a9
GS
1/*
2 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
3 * This file is autogenerated from data in embed.pl. Edit that file
4 * and run 'make regen_headers' to effect changes.
5 */
6
864dbfa3 7SV* Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir);
cea2e8a9 8bool Perl_Gv_AMupdate(pTHX_ HV* stash);
864dbfa3
GS
9OP* Perl_append_elem(pTHX_ I32 optype, OP* head, OP* tail);
10OP* Perl_append_list(pTHX_ I32 optype, LISTOP* first, LISTOP* last);
11I32 Perl_apply(pTHX_ I32 type, SV** mark, SV** sp);
12void Perl_assertref(pTHX_ OP* o);
cea2e8a9
GS
13bool Perl_avhv_exists_ent(pTHX_ AV *ar, SV* keysv, U32 hash);
14SV** Perl_avhv_fetch_ent(pTHX_ AV *ar, SV* keysv, I32 lval, U32 hash);
15HE* Perl_avhv_iternext(pTHX_ AV *ar);
16SV* Perl_avhv_iterval(pTHX_ AV *ar, HE* entry);
17HV* Perl_avhv_keys(pTHX_ AV *ar);
864dbfa3
GS
18void Perl_av_clear(pTHX_ AV* ar);
19void Perl_av_extend(pTHX_ AV* ar, I32 key);
20AV* Perl_av_fake(pTHX_ I32 size, SV** svp);
21SV** Perl_av_fetch(pTHX_ AV* ar, I32 key, I32 lval);
22void Perl_av_fill(pTHX_ AV* ar, I32 fill);
23I32 Perl_av_len(pTHX_ AV* ar);
24AV* Perl_av_make(pTHX_ I32 size, SV** svp);
25SV* Perl_av_pop(pTHX_ AV* ar);
26void Perl_av_push(pTHX_ AV* ar, SV* val);
27void Perl_av_reify(pTHX_ AV* ar);
28SV* Perl_av_shift(pTHX_ AV* ar);
29SV** Perl_av_store(pTHX_ AV* ar, I32 key, SV* val);
30void Perl_av_undef(pTHX_ AV* ar);
31void Perl_av_unshift(pTHX_ AV* ar, I32 num);
864dbfa3
GS
32OP* Perl_bind_match(pTHX_ I32 type, OP* left, OP* pat);
33OP* Perl_block_end(pTHX_ I32 floor, OP* seq);
34I32 Perl_block_gimme(pTHX);
35int Perl_block_start(pTHX_ int full);
36void Perl_boot_core_UNIVERSAL(pTHX);
864dbfa3 37void Perl_call_list(pTHX_ I32 oldscope, AV* av_list);
864dbfa3 38I32 Perl_cando(pTHX_ I32 bit, I32 effective, Stat_t* statbufp);
cea2e8a9 39U32 Perl_cast_ulong(pTHX_ double f);
864dbfa3
GS
40I32 Perl_cast_i32(pTHX_ double f);
41IV Perl_cast_iv(pTHX_ double f);
864dbfa3 42UV Perl_cast_uv(pTHX_ double f);
cea2e8a9
GS
43#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
44I32 Perl_my_chsize(pTHX_ int fd, Off_t length);
45#endif
864dbfa3
GS
46#if defined(USE_THREADS)
47MAGIC* Perl_condpair_magic(pTHX_ SV *sv);
48#endif
49OP* Perl_convert(pTHX_ I32 optype, I32 flags, OP* o);
50void Perl_croak(pTHX_ const char* pat, ...) __attribute__((noreturn));
cea2e8a9
GS
51#if defined(PERL_IMPLICIT_CONTEXT)
52void Perl_croak_nocontext(const char* pat, ...) __attribute__((noreturn));
53OP* Perl_die_nocontext(const char* pat, ...);
54char* Perl_form_nocontext(const char* pat, ...);
55void Perl_warn_nocontext(const char* pat, ...);
56SV* Perl_newSVpvf_nocontext(const char* pat, ...);
57void Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...);
58void Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...);
59void Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...);
60void Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...);
61#endif
864dbfa3
GS
62void Perl_cv_ckproto(pTHX_ CV* cv, GV* gv, char* p);
63CV* Perl_cv_clone(pTHX_ CV* proto);
64SV* Perl_cv_const_sv(pTHX_ CV* cv);
cea2e8a9 65SV* Perl_op_const_sv(pTHX_ OP* o, CV* cv);
864dbfa3
GS
66void Perl_cv_undef(pTHX_ CV* cv);
67void Perl_cx_dump(pTHX_ PERL_CONTEXT* cs);
cea2e8a9
GS
68SV* Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
69void Perl_filter_del(pTHX_ filter_t funcp);
70I32 Perl_filter_read(pTHX_ int idx, SV* buffer, int maxlen);
71char** Perl_get_op_descs(pTHX);
72char** Perl_get_op_names(pTHX);
73char* Perl_get_no_modify(pTHX);
74U32* Perl_get_opargs(pTHX);
864dbfa3
GS
75I32 Perl_cxinc(pTHX);
76void Perl_deb(pTHX_ const char* pat, ...);
77void Perl_deb_growlevel(pTHX);
864dbfa3 78void Perl_debprofdump(pTHX);
cea2e8a9 79I32 Perl_debop(pTHX_ OP* o);
864dbfa3
GS
80I32 Perl_debstack(pTHX);
81I32 Perl_debstackptrs(pTHX);
864dbfa3
GS
82char* Perl_delimcpy(pTHX_ char* to, char* toend, char* from, char* fromend, int delim, I32* retlen);
83void Perl_deprecate(pTHX_ char* s);
84OP* Perl_die(pTHX_ const char* pat, ...);
85OP* Perl_die_where(pTHX_ char* message, STRLEN msglen);
cea2e8a9 86void Perl_dounwind(pTHX_ I32 cxix);
864dbfa3
GS
87bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp);
88int Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int flag);
864dbfa3
GS
89void Perl_do_chop(pTHX_ SV* asv, SV* sv);
90bool Perl_do_close(pTHX_ GV* gv, bool not_implicit);
91bool Perl_do_eof(pTHX_ GV* gv);
92bool Perl_do_exec(pTHX_ char* cmd);
93#if !defined(WIN32)
94bool Perl_do_exec3(pTHX_ char* cmd, int fd, int flag);
95#endif
96void Perl_do_execfree(pTHX);
864dbfa3
GS
97#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
98I32 Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp);
864dbfa3 99I32 Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp);
864dbfa3 100I32 Perl_do_msgrcv(pTHX_ SV** mark, SV** sp);
864dbfa3 101I32 Perl_do_msgsnd(pTHX_ SV** mark, SV** sp);
cea2e8a9
GS
102I32 Perl_do_semop(pTHX_ SV** mark, SV** sp);
103I32 Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp);
864dbfa3 104#endif
cea2e8a9
GS
105void Perl_do_join(pTHX_ SV* sv, SV* del, SV** mark, SV** sp);
106OP* Perl_do_kv(pTHX);
864dbfa3
GS
107bool Perl_do_open(pTHX_ GV* gv, char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp);
108void Perl_do_pipe(pTHX_ SV* sv, GV* rgv, GV* wgv);
864dbfa3
GS
109bool Perl_do_print(pTHX_ SV* sv, PerlIO* fp);
110OP* Perl_do_readline(pTHX);
cea2e8a9 111I32 Perl_do_chomp(pTHX_ SV* sv);
864dbfa3 112bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
864dbfa3 113void Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg);
864dbfa3
GS
114Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
115Off_t Perl_do_tell(pTHX_ GV* gv);
116I32 Perl_do_trans(pTHX_ SV* sv);
117void Perl_do_vecset(pTHX_ SV* sv);
118void Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right);
119OP* Perl_dofile(pTHX_ OP* term);
864dbfa3
GS
120I32 Perl_dowantarray(pTHX);
121void Perl_dump_all(pTHX);
122void Perl_dump_eval(pTHX);
123#if defined(DUMP_FDS)
124void Perl_dump_fds(pTHX_ char* s);
125#endif
126void Perl_dump_form(pTHX_ GV* gv);
cea2e8a9
GS
127void Perl_gv_dump(pTHX_ GV* gv);
128void Perl_op_dump(pTHX_ OP* arg);
129void Perl_pmop_dump(pTHX_ PMOP* pm);
864dbfa3
GS
130void Perl_dump_packsubs(pTHX_ HV* stash);
131void Perl_dump_sub(pTHX_ GV* gv);
864dbfa3
GS
132void Perl_fbm_compile(pTHX_ SV* sv, U32 flags);
133char* Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlesv, U32 flags);
864dbfa3
GS
134char* Perl_find_script(pTHX_ char *scriptname, bool dosearch, char **search_ext, I32 flags);
135#if defined(USE_THREADS)
136PADOFFSET Perl_find_threadsv(pTHX_ const char *name);
137#endif
864dbfa3 138OP* Perl_force_list(pTHX_ OP* arg);
cea2e8a9 139OP* Perl_fold_constants(pTHX_ OP* arg);
864dbfa3
GS
140char* Perl_form(pTHX_ const char* pat, ...);
141void Perl_free_tmps(pTHX);
142OP* Perl_gen_constant_list(pTHX_ OP* o);
864dbfa3
GS
143#if !defined(HAS_GETENV_LEN)
144char* Perl_getenv_len(pTHX_ char* key, unsigned long *len);
145#endif
146void Perl_gp_free(pTHX_ GV* gv);
147GP* Perl_gp_ref(pTHX_ GP* gp);
148GV* Perl_gv_AVadd(pTHX_ GV* gv);
149GV* Perl_gv_HVadd(pTHX_ GV* gv);
150GV* Perl_gv_IOadd(pTHX_ GV* gv);
151GV* Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method);
152void Perl_gv_check(pTHX_ HV* stash);
864dbfa3
GS
153void Perl_gv_efullname(pTHX_ SV* sv, GV* gv);
154void Perl_gv_efullname3(pTHX_ SV* sv, GV* gv, const char* prefix);
155GV* Perl_gv_fetchfile(pTHX_ const char* name);
156GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level);
157GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name);
158GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload);
159GV* Perl_gv_fetchpv(pTHX_ const char* name, I32 add, I32 sv_type);
160void Perl_gv_fullname(pTHX_ SV* sv, GV* gv);
161void Perl_gv_fullname3(pTHX_ SV* sv, GV* gv, const char* prefix);
162void Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi);
163HV* Perl_gv_stashpv(pTHX_ const char* name, I32 create);
164HV* Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 create);
165HV* Perl_gv_stashsv(pTHX_ SV* sv, I32 create);
166void Perl_hv_clear(pTHX_ HV* tb);
167void Perl_hv_delayfree_ent(pTHX_ HV* hv, HE* entry);
168SV* Perl_hv_delete(pTHX_ HV* tb, const char* key, U32 klen, I32 flags);
169SV* Perl_hv_delete_ent(pTHX_ HV* tb, SV* key, I32 flags, U32 hash);
170bool Perl_hv_exists(pTHX_ HV* tb, const char* key, U32 klen);
171bool Perl_hv_exists_ent(pTHX_ HV* tb, SV* key, U32 hash);
172SV** Perl_hv_fetch(pTHX_ HV* tb, const char* key, U32 klen, I32 lval);
173HE* Perl_hv_fetch_ent(pTHX_ HV* tb, SV* key, I32 lval, U32 hash);
174void Perl_hv_free_ent(pTHX_ HV* hv, HE* entry);
175I32 Perl_hv_iterinit(pTHX_ HV* tb);
176char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen);
177SV* Perl_hv_iterkeysv(pTHX_ HE* entry);
178HE* Perl_hv_iternext(pTHX_ HV* tb);
179SV* Perl_hv_iternextsv(pTHX_ HV* hv, char** key, I32* retlen);
180SV* Perl_hv_iterval(pTHX_ HV* tb, HE* entry);
181void Perl_hv_ksplit(pTHX_ HV* hv, IV newmax);
182void Perl_hv_magic(pTHX_ HV* hv, GV* gv, int how);
183SV** Perl_hv_store(pTHX_ HV* tb, const char* key, U32 klen, SV* val, U32 hash);
184HE* Perl_hv_store_ent(pTHX_ HV* tb, SV* key, SV* val, U32 hash);
185void Perl_hv_undef(pTHX_ HV* tb);
186I32 Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len);
187I32 Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len);
188I32 Perl_ingroup(pTHX_ I32 testgid, I32 effective);
cea2e8a9 189void Perl_init_stacks(pTHX);
864dbfa3 190U32 Perl_intro_my(pTHX);
cea2e8a9 191char* Perl_instr(pTHX_ const char* big, const char* little);
864dbfa3 192bool Perl_io_close(pTHX_ IO* io);
cea2e8a9 193OP* Perl_invert(pTHX_ OP* cmd);
864dbfa3 194bool Perl_is_uni_alnum(pTHX_ U32 c);
cea2e8a9 195bool Perl_is_uni_idfirst(pTHX_ U32 c);
864dbfa3 196bool Perl_is_uni_alpha(pTHX_ U32 c);
cea2e8a9 197bool Perl_is_uni_space(pTHX_ U32 c);
864dbfa3 198bool Perl_is_uni_digit(pTHX_ U32 c);
cea2e8a9 199bool Perl_is_uni_upper(pTHX_ U32 c);
864dbfa3 200bool Perl_is_uni_lower(pTHX_ U32 c);
864dbfa3 201bool Perl_is_uni_print(pTHX_ U32 c);
cea2e8a9
GS
202U32 Perl_to_uni_upper(pTHX_ U32 c);
203U32 Perl_to_uni_title(pTHX_ U32 c);
204U32 Perl_to_uni_lower(pTHX_ U32 c);
205bool Perl_is_uni_alnum_lc(pTHX_ U32 c);
206bool Perl_is_uni_idfirst_lc(pTHX_ U32 c);
207bool Perl_is_uni_alpha_lc(pTHX_ U32 c);
864dbfa3 208bool Perl_is_uni_space_lc(pTHX_ U32 c);
cea2e8a9 209bool Perl_is_uni_digit_lc(pTHX_ U32 c);
864dbfa3 210bool Perl_is_uni_upper_lc(pTHX_ U32 c);
cea2e8a9
GS
211bool Perl_is_uni_lower_lc(pTHX_ U32 c);
212bool Perl_is_uni_print_lc(pTHX_ U32 c);
213U32 Perl_to_uni_upper_lc(pTHX_ U32 c);
214U32 Perl_to_uni_title_lc(pTHX_ U32 c);
215U32 Perl_to_uni_lower_lc(pTHX_ U32 c);
864dbfa3 216bool Perl_is_utf8_alnum(pTHX_ U8 *p);
cea2e8a9 217bool Perl_is_utf8_idfirst(pTHX_ U8 *p);
864dbfa3 218bool Perl_is_utf8_alpha(pTHX_ U8 *p);
cea2e8a9 219bool Perl_is_utf8_space(pTHX_ U8 *p);
864dbfa3 220bool Perl_is_utf8_digit(pTHX_ U8 *p);
cea2e8a9 221bool Perl_is_utf8_upper(pTHX_ U8 *p);
864dbfa3 222bool Perl_is_utf8_lower(pTHX_ U8 *p);
864dbfa3 223bool Perl_is_utf8_print(pTHX_ U8 *p);
cea2e8a9 224bool Perl_is_utf8_mark(pTHX_ U8 *p);
864dbfa3
GS
225OP* Perl_jmaybe(pTHX_ OP* arg);
226I32 Perl_keyword(pTHX_ char* d, I32 len);
227void Perl_leave_scope(pTHX_ I32 base);
228void Perl_lex_end(pTHX);
229void Perl_lex_start(pTHX_ SV* line);
230OP* Perl_linklist(pTHX_ OP* o);
231OP* Perl_list(pTHX_ OP* o);
232OP* Perl_listkids(pTHX_ OP* o);
233OP* Perl_localize(pTHX_ OP* arg, I32 lexical);
234I32 Perl_looks_like_number(pTHX_ SV* sv);
864dbfa3 235int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg);
cea2e8a9 236int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
237int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg);
238int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
239int Perl_magic_existspack(pTHX_ SV* sv, MAGIC* mg);
240int Perl_magic_freeregexp(pTHX_ SV* sv, MAGIC* mg);
241int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg);
242int Perl_magic_getarylen(pTHX_ SV* sv, MAGIC* mg);
243int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg);
244int Perl_magic_getglob(pTHX_ SV* sv, MAGIC* mg);
245int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg);
246int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg);
247int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg);
248int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg);
249int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg);
250int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg);
251int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg);
252int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
253U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg);
254#if defined(USE_THREADS)
255int Perl_magic_mutexfree(pTHX_ SV* sv, MAGIC* mg);
256#endif
257int Perl_magic_nextpack(pTHX_ SV* sv, MAGIC* mg, SV* key);
258U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg);
259int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg);
260int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
261int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg);
262int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg);
263int Perl_magic_setbm(pTHX_ SV* sv, MAGIC* mg);
cea2e8a9 264int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
265#if defined(USE_LOCALE_COLLATE)
266int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg);
267#endif
864dbfa3
GS
268int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg);
269int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg);
270int Perl_magic_setfm(pTHX_ SV* sv, MAGIC* mg);
864dbfa3 271int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg);
cea2e8a9 272int Perl_magic_setglob(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
273int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg);
274int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg);
275int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg);
276int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg);
277int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg);
278int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg);
279int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg);
280int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg);
281int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg);
cea2e8a9 282int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg);
864dbfa3
GS
283U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg);
284int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg);
285void Perl_magicname(pTHX_ char* sym, char* name, I32 namlen);
286int main(int argc, char** argv, char** env);
287#if defined(MYMALLOC)
cea2e8a9 288MEM_SIZE Perl_malloced_size(void *p);
864dbfa3
GS
289#endif
290void Perl_markstack_grow(pTHX);
291#if defined(USE_LOCALE_COLLATE)
292char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen);
293#endif
294SV* Perl_mess(pTHX_ const char* pat, va_list* args);
864dbfa3
GS
295int Perl_mg_clear(pTHX_ SV* sv);
296int Perl_mg_copy(pTHX_ SV* sv, SV* nsv, const char* key, I32 klen);
297MAGIC* Perl_mg_find(pTHX_ SV* sv, int type);
298int Perl_mg_free(pTHX_ SV* sv);
299int Perl_mg_get(pTHX_ SV* sv);
300U32 Perl_mg_length(pTHX_ SV* sv);
301void Perl_mg_magical(pTHX_ SV* sv);
302int Perl_mg_set(pTHX_ SV* sv);
303I32 Perl_mg_size(pTHX_ SV* sv);
304OP* Perl_mod(pTHX_ OP* o, I32 type);
305char* Perl_moreswitches(pTHX_ char* s);
306OP* Perl_my(pTHX_ OP* o);
097ee67d
JH
307#ifdef USE_LOCALE_NUMERIC
308double Perl_my_atof(pTHX_ const char *s);
309#endif
5f05dabc 310#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
864dbfa3 311char* Perl_my_bcopy(pTHX_ const char* from, char* to, I32 len);
5f05dabc 312#endif
a0d0e21e 313#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
864dbfa3
GS
314char* Perl_my_bzero(pTHX_ char* loc, I32 len);
315#endif
864dbfa3
GS
316void Perl_my_exit(pTHX_ U32 status) __attribute__((noreturn));
317void Perl_my_failure_exit(pTHX) __attribute__((noreturn));
318I32 Perl_my_fflush_all(pTHX);
cea2e8a9 319I32 Perl_my_lstat(pTHX);
5f05dabc 320#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
864dbfa3 321I32 Perl_my_memcmp(pTHX_ const char* s1, const char* s2, I32 len);
a0d0e21e 322#endif
fc36a67e 323#if !defined(HAS_MEMSET)
864dbfa3
GS
324void* Perl_my_memset(pTHX_ char* loc, I32 ch, I32 len);
325#endif
864dbfa3
GS
326#if !defined(PERL_OBJECT)
327I32 Perl_my_pclose(pTHX_ PerlIO* ptr);
864dbfa3
GS
328PerlIO* Perl_my_popen(pTHX_ char* cmd, char* mode);
329#endif
330void Perl_my_setenv(pTHX_ char* nam, char* val);
cea2e8a9 331I32 Perl_my_stat(pTHX);
864dbfa3
GS
332#if defined(MYSWAP)
333short Perl_my_swap(pTHX_ short s);
cea2e8a9
GS
334long Perl_my_htonl(pTHX_ long l);
335long Perl_my_ntohl(pTHX_ long l);
864dbfa3
GS
336#endif
337void Perl_my_unexec(pTHX);
864dbfa3 338OP* Perl_newANONLIST(pTHX_ OP* o);
cea2e8a9 339OP* Perl_newANONHASH(pTHX_ OP* o);
864dbfa3
GS
340OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
341OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right);
864dbfa3
GS
342OP* Perl_newCONDOP(pTHX_ I32 flags, OP* expr, OP* trueop, OP* falseop);
343void Perl_newCONSTSUB(pTHX_ HV* stash, char* name, SV* sv);
864dbfa3
GS
344void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
345OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sclr, OP* expr, OP*block, OP*cont);
864dbfa3
GS
346OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP* left, OP* right);
347OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label);
348OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block);
349OP* Perl_newNULLLIST(pTHX);
350OP* Perl_newOP(pTHX_ I32 optype, I32 flags);
864dbfa3 351void Perl_newPROG(pTHX_ OP* o);
864dbfa3 352OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right);
864dbfa3
GS
353OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop);
354OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o);
355CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
cea2e8a9
GS
356CV* Perl_newXS(pTHX_ char* name, XSUBADDR_t f, char* filename);
357AV* Perl_newAV(pTHX);
358OP* Perl_newAVREF(pTHX_ OP* o);
359OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last);
360OP* Perl_newCVREF(pTHX_ I32 flags, OP* o);
361OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv);
362GV* Perl_newGVgen(pTHX_ char* pack);
363OP* Perl_newGVREF(pTHX_ I32 type, OP* o);
364OP* Perl_newHVREF(pTHX_ OP* o);
365HV* Perl_newHV(pTHX);
366HV* Perl_newHVhv(pTHX_ HV* hv);
367IO* Perl_newIO(pTHX);
368OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last);
369OP* Perl_newPMOP(pTHX_ I32 type, I32 flags);
370OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv);
371SV* Perl_newRV(pTHX_ SV* pref);
372SV* Perl_newRV_noinc(pTHX_ SV *sv);
864dbfa3 373SV* Perl_newSV(pTHX_ STRLEN len);
864dbfa3 374OP* Perl_newSVREF(pTHX_ OP* o);
cea2e8a9 375OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv);
864dbfa3
GS
376SV* Perl_newSViv(pTHX_ IV i);
377SV* Perl_newSVnv(pTHX_ double n);
378SV* Perl_newSVpv(pTHX_ const char* s, STRLEN len);
864dbfa3 379SV* Perl_newSVpvn(pTHX_ const char* s, STRLEN len);
cea2e8a9 380SV* Perl_newSVpvf(pTHX_ const char* pat, ...);
864dbfa3
GS
381SV* Perl_newSVrv(pTHX_ SV* rv, const char* classname);
382SV* Perl_newSVsv(pTHX_ SV* old);
383OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first);
384OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont);
864dbfa3
GS
385#if defined(USE_THREADS)
386struct perl_thread* Perl_new_struct_thread(pTHX_ struct perl_thread *t);
387#endif
cea2e8a9 388PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems);
864dbfa3
GS
389PerlIO* Perl_nextargv(pTHX_ GV* gv);
390char* Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend);
864dbfa3 391OP* Perl_oopsCV(pTHX_ OP* o);
864dbfa3
GS
392void Perl_op_free(pTHX_ OP* arg);
393void Perl_package(pTHX_ OP* o);
394PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
395PADOFFSET Perl_pad_allocmy(pTHX_ char* name);
396PADOFFSET Perl_pad_findmy(pTHX_ char* name);
cea2e8a9
GS
397OP* Perl_oopsAV(pTHX_ OP* o);
398OP* Perl_oopsHV(pTHX_ OP* o);
864dbfa3 399void Perl_pad_leavemy(pTHX_ I32 fill);
864dbfa3 400SV* Perl_pad_sv(pTHX_ PADOFFSET po);
cea2e8a9
GS
401void Perl_pad_free(pTHX_ PADOFFSET po);
402void Perl_pad_reset(pTHX);
864dbfa3
GS
403void Perl_pad_swipe(pTHX_ PADOFFSET po);
404void Perl_peep(pTHX_ OP* o);
864dbfa3 405PerlInterpreter* perl_alloc(void);
cea2e8a9
GS
406void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
407I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv);
408I32 Perl_call_method(pTHX_ const char* methname, I32 flags);
409I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags);
410I32 Perl_call_sv(pTHX_ SV* sv, I32 flags);
864dbfa3
GS
411void perl_construct(PerlInterpreter* sv_interp);
412void perl_destruct(PerlInterpreter* sv_interp);
cea2e8a9
GS
413SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error);
414I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags);
864dbfa3 415void perl_free(PerlInterpreter* sv_interp);
cea2e8a9
GS
416SV* Perl_get_sv(pTHX_ const char* name, I32 create);
417AV* Perl_get_av(pTHX_ const char* name, I32 create);
418HV* Perl_get_hv(pTHX_ const char* name, I32 create);
419CV* Perl_get_cv(pTHX_ const char* name, I32 create);
420int Perl_init_i18nl10n(pTHX_ int printwarn);
421int Perl_init_i18nl14n(pTHX_ int printwarn);
422void Perl_new_collate(pTHX_ const char* newcoll);
423void Perl_new_ctype(pTHX_ const char* newctype);
424void Perl_new_numeric(pTHX_ const char* newcoll);
425void Perl_set_numeric_local(pTHX);
097ee67d 426void Perl_set_numeric_radix(pTHX);
cea2e8a9 427void Perl_set_numeric_standard(pTHX);
864dbfa3 428int perl_parse(PerlInterpreter* sv_interp, XSINIT_t xsinit, int argc, char** argv, char** env);
cea2e8a9 429void Perl_require_pv(pTHX_ const char* pv);
864dbfa3
GS
430int perl_run(PerlInterpreter* sv_interp);
431void Perl_pidgone(pTHX_ int pid, int status);
432void Perl_pmflag(pTHX_ U16* pmfl, int ch);
864dbfa3
GS
433OP* Perl_pmruntime(pTHX_ OP* pm, OP* expr, OP* repl);
434OP* Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl);
435OP* Perl_pop_return(pTHX);
436void Perl_pop_scope(pTHX);
864dbfa3
GS
437OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
438void Perl_push_return(pTHX_ OP* o);
439void Perl_push_scope(pTHX);
864dbfa3
GS
440OP* Perl_ref(pTHX_ OP* o, I32 type);
441OP* Perl_refkids(pTHX_ OP* o, I32 type);
442void Perl_regdump(pTHX_ regexp* r);
cea2e8a9
GS
443I32 Perl_pregexec(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave);
444void Perl_pregfree(pTHX_ struct regexp* r);
445regexp* Perl_pregcomp(pTHX_ char* exp, char* xend, PMOP* pm);
864dbfa3 446I32 Perl_regexec_flags(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags);
864dbfa3
GS
447regnode* Perl_regnext(pTHX_ regnode* p);
448void Perl_regprop(pTHX_ SV* sv, regnode* o);
449void Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count);
864dbfa3
GS
450char* Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend);
451Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t);
452int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
453int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* t2);
454Sighandler_t Perl_rsignal_state(pTHX_ int i);
864dbfa3
GS
455void Perl_rxres_free(pTHX_ void** rsp);
456void Perl_rxres_restore(pTHX_ void** rsp, REGEXP* prx);
457void Perl_rxres_save(pTHX_ void** rsp, REGEXP* prx);
cea2e8a9
GS
458#if !defined(HAS_RENAME)
459I32 Perl_same_dirent(pTHX_ char* a, char* b);
864dbfa3 460#endif
cea2e8a9
GS
461char* Perl_savepv(pTHX_ const char* sv);
462char* Perl_savepvn(pTHX_ const char* sv, I32 len);
463void Perl_savestack_grow(pTHX);
864dbfa3
GS
464void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr);
465I32 Perl_save_alloc(pTHX_ I32 size, I32 pad);
466void Perl_save_aptr(pTHX_ AV** aptr);
467AV* Perl_save_ary(pTHX_ GV* gv);
468void Perl_save_clearsv(pTHX_ SV** svp);
469void Perl_save_delete(pTHX_ HV* hv, char* key, I32 klen);
470void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_t f, void* p);
cea2e8a9 471void Perl_save_freesv(pTHX_ SV* sv);
864dbfa3
GS
472void Perl_save_freeop(pTHX_ OP* o);
473void Perl_save_freepv(pTHX_ char* pv);
864dbfa3
GS
474void Perl_save_generic_svref(pTHX_ SV** sptr);
475void Perl_save_gp(pTHX_ GV* gv, I32 empty);
476HV* Perl_save_hash(pTHX_ GV* gv);
477void Perl_save_helem(pTHX_ HV* hv, SV *key, SV **sptr);
478void Perl_save_hints(pTHX);
479void Perl_save_hptr(pTHX_ HV** hptr);
cea2e8a9
GS
480void Perl_save_I16(pTHX_ I16* intp);
481void Perl_save_I32(pTHX_ I32* intp);
864dbfa3
GS
482void Perl_save_int(pTHX_ int* intp);
483void Perl_save_item(pTHX_ SV* item);
484void Perl_save_iv(pTHX_ IV* iv);
485void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg);
486void Perl_save_long(pTHX_ long* longp);
487void Perl_save_nogv(pTHX_ GV* gv);
488void Perl_save_op(pTHX);
cea2e8a9 489SV* Perl_save_scalar(pTHX_ GV* gv);
864dbfa3
GS
490void Perl_save_pptr(pTHX_ char** pptr);
491void Perl_save_re_context(pTHX);
864dbfa3
GS
492void Perl_save_sptr(pTHX_ SV** sptr);
493SV* Perl_save_svref(pTHX_ SV** sptr);
494SV** Perl_save_threadsv(pTHX_ PADOFFSET i);
864dbfa3
GS
495OP* Perl_sawparens(pTHX_ OP* o);
496OP* Perl_scalar(pTHX_ OP* o);
497OP* Perl_scalarkids(pTHX_ OP* o);
498OP* Perl_scalarseq(pTHX_ OP* o);
499OP* Perl_scalarvoid(pTHX_ OP* o);
500UV Perl_scan_bin(pTHX_ char* start, I32 len, I32* retlen);
501UV Perl_scan_hex(pTHX_ char* start, I32 len, I32* retlen);
502char* Perl_scan_num(pTHX_ char* s);
503UV Perl_scan_oct(pTHX_ char* start, I32 len, I32* retlen);
504OP* Perl_scope(pTHX_ OP* o);
505char* Perl_screaminstr(pTHX_ SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last);
864dbfa3
GS
506#if !defined(VMS)
507I32 Perl_setenv_getix(pTHX_ char* nam);
508#endif
cea2e8a9 509void Perl_setdefout(pTHX_ GV* gv);
864dbfa3 510char* Perl_sharepvn(pTHX_ const char* sv, I32 len, U32 hash);
cea2e8a9
GS
511HEK* Perl_share_hek(pTHX_ const char* sv, I32 len, U32 hash);
512Signal_t Perl_sighandler(int sig);
864dbfa3
GS
513SV** Perl_stack_grow(pTHX_ SV** sp, SV**p, int n);
514I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
515void Perl_sub_crush_depth(pTHX_ CV* cv);
516bool Perl_sv_2bool(pTHX_ SV* sv);
517CV* Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref);
518IO* Perl_sv_2io(pTHX_ SV* sv);
519IV Perl_sv_2iv(pTHX_ SV* sv);
520SV* Perl_sv_2mortal(pTHX_ SV* sv);
521double Perl_sv_2nv(pTHX_ SV* sv);
522char* Perl_sv_2pv(pTHX_ SV* sv, STRLEN* lp);
864dbfa3 523UV Perl_sv_2uv(pTHX_ SV* sv);
cea2e8a9
GS
524IV Perl_sv_iv(pTHX_ SV* sv);
525UV Perl_sv_uv(pTHX_ SV* sv);
526double Perl_sv_nv(pTHX_ SV* sv);
527char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *len);
528I32 Perl_sv_true(pTHX_ SV *sv);
864dbfa3
GS
529void Perl_sv_add_arena(pTHX_ char* ptr, U32 size, U32 flags);
530int Perl_sv_backoff(pTHX_ SV* sv);
531SV* Perl_sv_bless(pTHX_ SV* sv, HV* stash);
864dbfa3 532void Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...);
cea2e8a9 533void Perl_sv_catpv(pTHX_ SV* sv, const char* ptr);
864dbfa3 534void Perl_sv_catpvn(pTHX_ SV* sv, const char* ptr, STRLEN len);
864dbfa3 535void Perl_sv_catsv(pTHX_ SV* dsv, SV* ssv);
864dbfa3
GS
536void Perl_sv_chop(pTHX_ SV* sv, char* ptr);
537void Perl_sv_clean_all(pTHX);
538void Perl_sv_clean_objs(pTHX);
539void Perl_sv_clear(pTHX_ SV* sv);
540I32 Perl_sv_cmp(pTHX_ SV* sv1, SV* sv2);
541I32 Perl_sv_cmp_locale(pTHX_ SV* sv1, SV* sv2);
542#if defined(USE_LOCALE_COLLATE)
543char* Perl_sv_collxfrm(pTHX_ SV* sv, STRLEN* nxp);
544#endif
545OP* Perl_sv_compile_2op(pTHX_ SV* sv, OP** startp, char* code, AV** avp);
546void Perl_sv_dec(pTHX_ SV* sv);
864dbfa3 547void Perl_sv_dump(pTHX_ SV* sv);
cea2e8a9 548bool Perl_sv_derived_from(pTHX_ SV* sv, const char* name);
864dbfa3 549I32 Perl_sv_eq(pTHX_ SV* sv1, SV* sv2);
864dbfa3
GS
550void Perl_sv_free(pTHX_ SV* sv);
551void Perl_sv_free_arenas(pTHX);
552char* Perl_sv_gets(pTHX_ SV* sv, PerlIO* fp, I32 append);
553char* Perl_sv_grow(pTHX_ SV* sv, STRLEN newlen);
554void Perl_sv_inc(pTHX_ SV* sv);
555void Perl_sv_insert(pTHX_ SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen);
556int Perl_sv_isa(pTHX_ SV* sv, const char* name);
557int Perl_sv_isobject(pTHX_ SV* sv);
864dbfa3
GS
558STRLEN Perl_sv_len(pTHX_ SV* sv);
559STRLEN Perl_sv_len_utf8(pTHX_ SV* sv);
560void Perl_sv_magic(pTHX_ SV* sv, SV* obj, int how, const char* name, I32 namlen);
561SV* Perl_sv_mortalcopy(pTHX_ SV* oldsv);
562SV* Perl_sv_newmortal(pTHX);
563SV* Perl_sv_newref(pTHX_ SV* sv);
864dbfa3 564char* Perl_sv_peek(pTHX_ SV* sv);
864dbfa3 565void Perl_sv_pos_u2b(pTHX_ SV* sv, I32* offsetp, I32* lenp);
cea2e8a9 566void Perl_sv_pos_b2u(pTHX_ SV* sv, I32* offsetp);
864dbfa3
GS
567char* Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp);
568char* Perl_sv_reftype(pTHX_ SV* sv, int ob);
569void Perl_sv_replace(pTHX_ SV* sv, SV* nsv);
570void Perl_sv_report_used(pTHX);
571void Perl_sv_reset(pTHX_ char* s, HV* stash);
864dbfa3 572void Perl_sv_setpvf(pTHX_ SV* sv, const char* pat, ...);
cea2e8a9 573void Perl_sv_setiv(pTHX_ SV* sv, IV num);
864dbfa3 574void Perl_sv_setpviv(pTHX_ SV* sv, IV num);
cea2e8a9
GS
575void Perl_sv_setuv(pTHX_ SV* sv, UV num);
576void Perl_sv_setnv(pTHX_ SV* sv, double num);
864dbfa3
GS
577SV* Perl_sv_setref_iv(pTHX_ SV* rv, const char* classname, IV iv);
578SV* Perl_sv_setref_nv(pTHX_ SV* rv, const char* classname, double nv);
579SV* Perl_sv_setref_pv(pTHX_ SV* rv, const char* classname, void* pv);
580SV* Perl_sv_setref_pvn(pTHX_ SV* rv, const char* classname, char* pv, STRLEN n);
cea2e8a9
GS
581void Perl_sv_setpv(pTHX_ SV* sv, const char* ptr);
582void Perl_sv_setpvn(pTHX_ SV* sv, const char* ptr, STRLEN len);
864dbfa3 583void Perl_sv_setsv(pTHX_ SV* dsv, SV* ssv);
864dbfa3
GS
584void Perl_sv_taint(pTHX_ SV* sv);
585bool Perl_sv_tainted(pTHX_ SV* sv);
864dbfa3
GS
586int Perl_sv_unmagic(pTHX_ SV* sv, int type);
587void Perl_sv_unref(pTHX_ SV* sv);
588void Perl_sv_untaint(pTHX_ SV* sv);
589bool Perl_sv_upgrade(pTHX_ SV* sv, U32 mt);
590void Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len);
864dbfa3
GS
591void Perl_sv_vcatpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *used_locale);
592void Perl_sv_vsetpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *used_locale);
864dbfa3 593SV* Perl_swash_init(pTHX_ char* pkg, char* name, SV* listsv, I32 minbits, I32 none);
cea2e8a9 594UV Perl_swash_fetch(pTHX_ SV *sv, U8 *ptr);
864dbfa3
GS
595void Perl_taint_env(pTHX);
596void Perl_taint_proper(pTHX_ const char* f, char* s);
864dbfa3 597UV Perl_to_utf8_lower(pTHX_ U8 *p);
864dbfa3 598UV Perl_to_utf8_upper(pTHX_ U8 *p);
cea2e8a9 599UV Perl_to_utf8_title(pTHX_ U8 *p);
864dbfa3
GS
600#if defined(UNLINK_ALL_VERSIONS)
601I32 Perl_unlnk(pTHX_ char* f);
602#endif
603#if defined(USE_THREADS)
604void Perl_unlock_condpair(pTHX_ void* svv);
605#endif
864dbfa3 606void Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
cea2e8a9
GS
607void Perl_unshare_hek(pTHX_ HEK* hek);
608void Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* id, OP* arg);
864dbfa3
GS
609U8* Perl_utf16_to_utf8(pTHX_ U16* p, U8 *d, I32 bytelen);
610U8* Perl_utf16_to_utf8_reversed(pTHX_ U16* p, U8 *d, I32 bytelen);
611I32 Perl_utf8_distance(pTHX_ U8 *a, U8 *b);
612U8* Perl_utf8_hop(pTHX_ U8 *s, I32 off);
613UV Perl_utf8_to_uv(pTHX_ U8 *s, I32* retlen);
864dbfa3
GS
614U8* Perl_uv_to_utf8(pTHX_ U8 *d, UV uv);
615void Perl_vivify_defelem(pTHX_ SV* sv);
616void Perl_vivify_ref(pTHX_ SV* sv, U32 to_what);
617I32 Perl_wait4pid(pTHX_ int pid, int* statusp, int flags);
618void Perl_warn(pTHX_ const char* pat, ...);
619void Perl_warner(pTHX_ U32 err, const char* pat, ...);
620void Perl_watch(pTHX_ char** addr);
621I32 Perl_whichsig(pTHX_ char* sig);
864dbfa3 622int Perl_yyerror(pTHX_ char* s);
cea2e8a9
GS
623#if defined(USE_PURE_BISON)
624int Perl_yylex(pTHX_ YYSTYPE *lvalp, int *lcharp);
625#else
864dbfa3
GS
626int Perl_yylex(pTHX);
627#endif
628int Perl_yyparse(pTHX);
629int Perl_yywarn(pTHX_ char* s);
cea2e8a9
GS
630#if defined(MYMALLOC)
631void Perl_dump_mstats(pTHX_ char* s);
632Malloc_t Perl_malloc(MEM_SIZE nbytes);
633Malloc_t Perl_calloc(MEM_SIZE elements, MEM_SIZE size);
634Malloc_t Perl_realloc(Malloc_t where, MEM_SIZE nbytes);
635Free_t Perl_mfree(Malloc_t where);
864dbfa3 636#endif
4f63d024
GS
637Malloc_t Perl_safesysmalloc(MEM_SIZE nbytes);
638Malloc_t Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size);
639Malloc_t Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes);
640Free_t Perl_safesysfree(Malloc_t where);
cea2e8a9 641#if defined(LEAKTEST)
4f63d024
GS
642Malloc_t Perl_safexmalloc(I32 x, MEM_SIZE size);
643Malloc_t Perl_safexcalloc(I32 x, MEM_SIZE elements, MEM_SIZE size);
644Malloc_t Perl_safexrealloc(Malloc_t where, MEM_SIZE size);
645void Perl_safexfree(Malloc_t where);
864dbfa3 646#endif
cea2e8a9
GS
647#if defined(PERL_GLOBAL_STRUCT)
648struct perl_vars * Perl_GetVars(pTHX);
864dbfa3 649#endif
cea2e8a9
GS
650void Perl_yydestruct(pTHX_ void *ptr);
651int Perl_runops_standard(pTHX);
652int Perl_runops_debug(pTHX);
653#if defined(WIN32)
43165c05 654int* Perl_ErrorNo(pTHX);
864dbfa3 655#endif
cea2e8a9
GS
656void Perl_sv_catpvf_mg(pTHX_ SV *sv, const char* pat, ...);
657void Perl_sv_catpv_mg(pTHX_ SV *sv, const char *ptr);
658void Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len);
659void Perl_sv_catsv_mg(pTHX_ SV *dstr, SV *sstr);
660void Perl_sv_setpvf_mg(pTHX_ SV *sv, const char* pat, ...);
661void Perl_sv_setiv_mg(pTHX_ SV *sv, IV i);
662void Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv);
663void Perl_sv_setuv_mg(pTHX_ SV *sv, UV u);
664void Perl_sv_setnv_mg(pTHX_ SV *sv, double num);
665void Perl_sv_setpv_mg(pTHX_ SV *sv, const char *ptr);
666void Perl_sv_setpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len);
667void Perl_sv_setsv_mg(pTHX_ SV *dstr, SV *sstr);
668void Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len);
669MGVTBL* Perl_get_vtbl(pTHX_ int vtbl_id);
670char* Perl_pv_display(pTHX_ SV *sv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim);
671void Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...);
672void Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, char *name, GV *sv);
673void Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, char *name, GV *sv);
674void Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, char *name, HV *sv);
675void Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
676void Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, OP *o);
677void Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, PMOP *pm);
678void Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
679void Perl_magic_dump(pTHX_ MAGIC *mg);
680void* Perl_default_protect(pTHX_ int *excpt, protect_body_t body, ...);
681void Perl_reginitcolors(pTHX);
682char* Perl_sv_2pv_nolen(pTHX_ SV* sv);
683char* Perl_sv_pv(pTHX_ SV *sv);
684void Perl_sv_force_normal(pTHX_ SV *sv);
685void Perl_tmps_grow(pTHX_ I32 n);
686SV* Perl_sv_rvweaken(pTHX_ SV *sv);
687int Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg);
864dbfa3 688#if defined(PERL_IN_AV_C)
cea2e8a9 689STATIC I32 S_avhv_index_sv(pTHX_ SV* sv);
864dbfa3
GS
690#endif
691#if defined(PERL_IN_DOOP_C)
cea2e8a9
GS
692STATIC I32 S_do_trans_CC_simple(pTHX_ SV *sv);
693STATIC I32 S_do_trans_CC_count(pTHX_ SV *sv);
694STATIC I32 S_do_trans_CC_complex(pTHX_ SV *sv);
695STATIC I32 S_do_trans_UU_simple(pTHX_ SV *sv);
696STATIC I32 S_do_trans_UU_count(pTHX_ SV *sv);
697STATIC I32 S_do_trans_UU_complex(pTHX_ SV *sv);
698STATIC I32 S_do_trans_UC_simple(pTHX_ SV *sv);
699STATIC I32 S_do_trans_CU_simple(pTHX_ SV *sv);
700STATIC I32 S_do_trans_UC_trivial(pTHX_ SV *sv);
701STATIC I32 S_do_trans_CU_trivial(pTHX_ SV *sv);
702#endif
cea2e8a9
GS
703#if defined(PERL_IN_GV_C)
704STATIC void S_gv_init_sv(pTHX_ GV *gv, I32 sv_type);
864dbfa3 705#endif
cea2e8a9
GS
706#if defined(PERL_IN_HV_C)
707STATIC void S_hsplit(pTHX_ HV *hv);
708STATIC void S_hfreeentries(pTHX_ HV *hv);
709STATIC void S_more_he(pTHX);
710STATIC HE* S_new_he(pTHX);
711STATIC void S_del_he(pTHX_ HE *p);
712STATIC HEK* S_save_hek(pTHX_ const char *str, I32 len, U32 hash);
713STATIC void S_hv_magic_check(pTHX_ HV *hv, bool *needs_copy, bool *needs_store);
864dbfa3 714#endif
cea2e8a9
GS
715#if defined(PERL_IN_MG_C)
716STATIC void S_save_magic(pTHX_ I32 mgs_ix, SV *sv);
717STATIC int S_magic_methpack(pTHX_ SV *sv, MAGIC *mg, char *meth);
718STATIC int S_magic_methcall(pTHX_ SV *sv, MAGIC *mg, char *meth, I32 f, int n, SV *val);
719STATIC void S_unwind_handler_stack(pTHX_ void *p);
720STATIC void S_restore_magic(pTHX_ void *p);
864dbfa3 721#endif
cea2e8a9
GS
722#if defined(PERL_IN_OP_C)
723STATIC I32 S_list_assignment(pTHX_ OP *o);
724STATIC void S_bad_type(pTHX_ I32 n, char *t, char *name, OP *kid);
725STATIC OP* S_modkids(pTHX_ OP *o, I32 type);
726STATIC void S_no_bareword_allowed(pTHX_ OP *o);
727STATIC OP* S_no_fh_allowed(pTHX_ OP *o);
728STATIC OP* S_scalarboolean(pTHX_ OP *o);
729STATIC OP* S_too_few_arguments(pTHX_ OP *o, char* name);
730STATIC OP* S_too_many_arguments(pTHX_ OP *o, char* name);
731STATIC void S_null(pTHX_ OP* o);
732STATIC PADOFFSET S_pad_findlex(pTHX_ char* name, PADOFFSET newoff, U32 seq, CV* startcv, I32 cx_ix, I32 saweval, U32 flags);
733STATIC OP* S_newDEFSVOP(pTHX);
734STATIC OP* S_new_logop(pTHX_ I32 type, I32 flags, OP **firstp, OP **otherp);
735STATIC void S_simplify_sort(pTHX_ OP *o);
736STATIC bool S_is_handle_constructor(pTHX_ OP *o, I32 argnum);
737STATIC char* S_gv_ename(pTHX_ GV *gv);
738STATIC CV* S_cv_clone2(pTHX_ CV *proto, CV *outside);
739STATIC bool S_scalar_mod_type(pTHX_ OP *o, I32 type);
740# if defined(PL_OP_SLAB_ALLOC)
741STATIC void* S_Slab_Alloc(pTHX_ int m, size_t sz);
742# endif
864dbfa3 743#endif
cea2e8a9
GS
744#if defined(PERL_IN_PERL_C)
745STATIC void S_find_beginning(pTHX);
746STATIC void S_forbid_setid(pTHX_ char *);
747STATIC void S_incpush(pTHX_ char *, int);
748STATIC void S_init_interp(pTHX);
749STATIC void S_init_ids(pTHX);
750STATIC void S_init_debugger(pTHX);
751STATIC void S_init_lexer(pTHX);
752STATIC void S_init_main_stash(pTHX);
753STATIC void S_init_perllib(pTHX);
754STATIC void S_init_postdump_symbols(pTHX_ int, char **, char **);
755STATIC void S_init_predump_symbols(pTHX);
756STATIC void S_my_exit_jump(pTHX) __attribute__((noreturn));
757STATIC void S_nuke_stacks(pTHX);
758STATIC void S_open_script(pTHX_ char *, bool, SV *, int *fd);
759STATIC void S_usage(pTHX_ char *);
760STATIC void S_validate_suid(pTHX_ char *, char*, int);
761STATIC I32 S_read_e_script(pTHX_ int idx, SV *buf_sv, int maxlen);
762# if defined(IAMSUID)
763STATIC int S_fd_on_nosuid_fs(pTHX_ int fd);
764# endif
765STATIC void* S_parse_body(pTHX_ va_list args);
766STATIC void* S_run_body(pTHX_ va_list args);
767STATIC void* S_call_body(pTHX_ va_list args);
768STATIC void S_call_xbody(pTHX_ OP *myop, int is_eval);
769STATIC void* S_call_list_body(pTHX_ va_list args);
770# if defined(USE_THREADS)
771STATIC struct perl_thread * S_init_main_thread(pTHX);
772# endif
864dbfa3
GS
773#endif
774#if defined(PERL_IN_PP_C)
cea2e8a9
GS
775STATIC void S_doencodes(pTHX_ SV* sv, char* s, I32 len);
776STATIC SV* S_refto(pTHX_ SV* sv);
777STATIC U32 S_seed(pTHX);
778STATIC SV* S_mul128(pTHX_ SV *sv, U8 m);
779STATIC SV* S_is_an_int(pTHX_ char *s, STRLEN l);
780STATIC int S_div128(pTHX_ SV *pnum, bool *done);
864dbfa3
GS
781#endif
782#if defined(PERL_IN_PP_CTL_C)
cea2e8a9
GS
783STATIC OP* S_docatch(pTHX_ OP *o);
784STATIC void* S_docatch_body(pTHX_ va_list args);
785STATIC OP* S_dofindlabel(pTHX_ OP *o, char *label, OP **opstack, OP **oplimit);
786STATIC void S_doparseform(pTHX_ SV *sv);
787STATIC I32 S_dopoptoeval(pTHX_ I32 startingblock);
788STATIC I32 S_dopoptolabel(pTHX_ char *label);
789STATIC I32 S_dopoptoloop(pTHX_ I32 startingblock);
790STATIC I32 S_dopoptosub(pTHX_ I32 startingblock);
791STATIC I32 S_dopoptosub_at(pTHX_ PERL_CONTEXT* cxstk, I32 startingblock);
792STATIC void S_free_closures(pTHX);
793STATIC void S_save_lines(pTHX_ AV *array, SV *sv);
794STATIC OP* S_doeval(pTHX_ int gimme, OP** startop);
795STATIC PerlIO * S_doopen_pmc(pTHX_ const char *name, const char *mode);
796STATIC void S_qsortsv(pTHX_ SV ** array, size_t num_elts, SVCOMPARE_t f);
797STATIC I32 S_sortcv(pTHX_ SV *a, SV *b);
798STATIC I32 S_sv_ncmp(pTHX_ SV *a, SV *b);
799STATIC I32 S_sv_i_ncmp(pTHX_ SV *a, SV *b);
800STATIC I32 S_amagic_ncmp(pTHX_ SV *a, SV *b);
801STATIC I32 S_amagic_i_ncmp(pTHX_ SV *a, SV *b);
802STATIC I32 S_amagic_cmp(pTHX_ SV *str1, SV *str2);
803STATIC I32 S_amagic_cmp_locale(pTHX_ SV *str1, SV *str2);
864dbfa3 804#endif
cea2e8a9
GS
805#if defined(PERL_IN_PP_HOT_C)
806STATIC CV* S_get_db_sub(pTHX_ SV **svp, CV *cv);
807# if defined(USE_THREADS)
808STATIC void S_unset_cvowner(pTHX_ void *cvarg);
809# endif
864dbfa3
GS
810#endif
811#if defined(PERL_IN_PP_SYS_C)
cea2e8a9
GS
812STATIC OP* S_doform(pTHX_ CV *cv, GV *gv, OP *retop);
813STATIC int S_emulate_eaccess(pTHX_ const char* path, int mode);
814# if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
815STATIC int S_dooneliner(pTHX_ char *cmd, char *filename);
816# endif
864dbfa3
GS
817#endif
818#if defined(PERL_IN_REGCOMP_C)
cea2e8a9
GS
819STATIC regnode* S_reg(pTHX_ I32, I32 *);
820STATIC regnode* S_reganode(pTHX_ U8, U32);
821STATIC regnode* S_regatom(pTHX_ I32 *);
822STATIC regnode* S_regbranch(pTHX_ I32 *, I32);
823STATIC void S_regc(pTHX_ U8, char *);
824STATIC void S_reguni(pTHX_ UV, char *, I32*);
825STATIC regnode* S_regclass(pTHX);
826STATIC regnode* S_regclassutf8(pTHX);
827STATIC I32 S_regcurly(pTHX_ char *);
828STATIC regnode* S_reg_node(pTHX_ U8);
829STATIC regnode* S_regpiece(pTHX_ I32 *);
830STATIC void S_reginsert(pTHX_ U8, regnode *);
831STATIC void S_regoptail(pTHX_ regnode *, regnode *);
832STATIC void S_regtail(pTHX_ regnode *, regnode *);
833STATIC char* S_regwhite(pTHX_ char *, char *);
834STATIC char* S_nextchar(pTHX);
835STATIC regnode* S_dumpuntil(pTHX_ regnode *start, regnode *node, regnode *last, SV* sv, I32 l);
836STATIC void S_scan_commit(pTHX_ scan_data_t *data);
837STATIC I32 S_study_chunk(pTHX_ regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32 flags);
838STATIC I32 S_add_data(pTHX_ I32 n, char *s);
839STATIC void S_re_croak2(pTHX_ const char* pat1, const char* pat2, ...) __attribute__((noreturn));
840STATIC char* S_regpposixcc(pTHX_ I32 value);
841STATIC void S_clear_re(pTHX_ void *r);
864dbfa3 842#endif
cea2e8a9
GS
843#if defined(PERL_IN_REGEXEC_C)
844STATIC I32 S_regmatch(pTHX_ regnode *prog);
845STATIC I32 S_regrepeat(pTHX_ regnode *p, I32 max);
846STATIC I32 S_regrepeat_hard(pTHX_ regnode *p, I32 max, I32 *lp);
847STATIC I32 S_regtry(pTHX_ regexp *prog, char *startpos);
848STATIC bool S_reginclass(pTHX_ char *p, I32 c);
849STATIC bool S_reginclassutf8(pTHX_ regnode *f, U8* p);
850STATIC CHECKPOINT S_regcppush(pTHX_ I32 parenfloor);
851STATIC char* S_regcppop(pTHX);
852STATIC char* S_regcp_set_to(pTHX_ I32 ss);
853STATIC void S_cache_re(pTHX_ regexp *prog);
854STATIC void S_restore_pos(pTHX_ void *arg);
855STATIC U8* S_reghop(pTHX_ U8 *pos, I32 off);
856STATIC U8* S_reghopmaybe(pTHX_ U8 *pos, I32 off);
864dbfa3 857#endif
cea2e8a9
GS
858#if defined(PERL_IN_RUN_C)
859STATIC void S_debprof(pTHX_ OP *o);
864dbfa3 860#endif
cea2e8a9
GS
861#if defined(PERL_IN_SCOPE_C)
862STATIC SV* S_save_scalar_at(pTHX_ SV **sptr);
864dbfa3 863#endif
cea2e8a9
GS
864#if defined(PERL_IN_SV_C)
865STATIC IV S_asIV(pTHX_ SV* sv);
866STATIC UV S_asUV(pTHX_ SV* sv);
867STATIC SV* S_more_sv(pTHX);
868STATIC void S_more_xiv(pTHX);
869STATIC void S_more_xnv(pTHX);
870STATIC void S_more_xpv(pTHX);
871STATIC void S_more_xrv(pTHX);
872STATIC XPVIV* S_new_xiv(pTHX);
873STATIC XPVNV* S_new_xnv(pTHX);
874STATIC XPV* S_new_xpv(pTHX);
875STATIC XRV* S_new_xrv(pTHX);
876STATIC void S_del_xiv(pTHX_ XPVIV* p);
877STATIC void S_del_xnv(pTHX_ XPVNV* p);
878STATIC void S_del_xpv(pTHX_ XPV* p);
879STATIC void S_del_xrv(pTHX_ XRV* p);
880STATIC void S_sv_unglob(pTHX_ SV* sv);
881STATIC void S_do_report_used(pTHX_ SV *sv);
882STATIC void S_do_clean_objs(pTHX_ SV *sv);
883STATIC void S_do_clean_named_objs(pTHX_ SV *sv);
884STATIC void S_do_clean_all(pTHX_ SV *sv);
885STATIC void S_not_a_number(pTHX_ SV *sv);
886STATIC void S_visit(pTHX_ SVFUNC_t f);
887# if defined(PURIFY)
888STATIC void S_reg_add(pTHX_ SV *sv);
889STATIC void S_reg_remove(pTHX_ SV *sv);
890# else
4f63d024 891STATIC void* S_my_safemalloc(MEM_SIZE size);
cea2e8a9
GS
892# endif
893STATIC void S_sv_add_backref(pTHX_ SV *tsv, SV *sv);
894STATIC void S_sv_del_backref(pTHX_ SV *sv);
895# if defined(DEBUGGING)
896STATIC void S_del_sv(pTHX_ SV *p);
897# endif
898#endif
899#if defined(PERL_IN_TOKE_C)
900STATIC void S_check_uni(pTHX);
901STATIC void S_force_next(pTHX_ I32 type);
902STATIC char* S_force_version(pTHX_ char *start);
903STATIC char* S_force_word(pTHX_ char *start, int token, int check_keyword, int allow_pack, int allow_tick);
904STATIC SV* S_tokeq(pTHX_ SV *sv);
905STATIC char* S_scan_const(pTHX_ char *start);
906STATIC char* S_scan_formline(pTHX_ char *s);
907STATIC char* S_scan_heredoc(pTHX_ char *s);
908STATIC char* S_scan_ident(pTHX_ char *s, char *send, char *dest, STRLEN destlen, I32 ck_uni);
909STATIC char* S_scan_inputsymbol(pTHX_ char *start);
910STATIC char* S_scan_pat(pTHX_ char *start, I32 type);
911STATIC char* S_scan_str(pTHX_ char *start);
912STATIC char* S_scan_subst(pTHX_ char *start);
913STATIC char* S_scan_trans(pTHX_ char *start);
914STATIC char* S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp);
915STATIC char* S_skipspace(pTHX_ char *s);
916STATIC void S_checkcomma(pTHX_ char *s, char *name, char *what);
917STATIC void S_force_ident(pTHX_ char *s, int kind);
918STATIC void S_incline(pTHX_ char *s);
919STATIC int S_intuit_method(pTHX_ char *s, GV *gv);
920STATIC int S_intuit_more(pTHX_ char *s);
921STATIC I32 S_lop(pTHX_ I32 f, expectation x, char *s);
922STATIC void S_missingterm(pTHX_ char *s);
923STATIC void S_no_op(pTHX_ char *what, char *s);
924STATIC void S_set_csh(pTHX);
925STATIC I32 S_sublex_done(pTHX);
926STATIC I32 S_sublex_push(pTHX);
927STATIC I32 S_sublex_start(pTHX);
928STATIC char * S_filter_gets(pTHX_ SV *sv, PerlIO *fp, STRLEN append);
929STATIC SV* S_new_constant(pTHX_ char *s, STRLEN len, char *key, SV *sv, SV *pv, char *type);
930STATIC int S_ao(pTHX_ int toketype);
931STATIC void S_depcom(pTHX);
932STATIC char* S_incl_perldb(pTHX);
933STATIC I32 S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen);
934STATIC I32 S_utf16rev_textfilter(pTHX_ int idx, SV *sv, int maxlen);
935STATIC void S_restore_rsfp(pTHX_ void *f);
936STATIC void S_restore_expect(pTHX_ void *e);
937STATIC void S_restore_lex_expect(pTHX_ void *e);
938# if defined(CRIPPLED_CC)
939STATIC int S_uni(pTHX_ I32 f, char *s);
940# endif
941# if defined(WIN32)
942STATIC I32 S_win32_textfilter(pTHX_ int idx, SV *sv, int maxlen);
943# endif
864dbfa3 944#endif
cea2e8a9
GS
945#if defined(PERL_IN_UNIVERSAL_C)
946STATIC SV* S_isa_lookup(pTHX_ HV *stash, const char *name, int len, int level);
864dbfa3
GS
947#endif
948#if defined(PERL_IN_UTIL_C)
cea2e8a9
GS
949STATIC SV* S_mess_alloc(pTHX);
950STATIC void S_do_croak(pTHX_ const char *pat, va_list *args) __attribute__((noreturn));
951STATIC void S_do_warn(pTHX_ const char *pat, va_list *args);
952# if defined(LEAKTEST)
953STATIC void S_xstat(pTHX_ int);
954# endif
864dbfa3 955#endif