This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Tweak the insertion of __attribute__((nonnull())) declarations
[perl5.git] / proto.h
1 /*
2  *    proto.h
3  *
4  *    Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5  *    2000, 2001, 2002, 2003, 2004, 2005, by Larry Wall and others
6  *
7  *    You may distribute under the terms of either the GNU General Public
8  *    License or the Artistic License, as specified in the README file.
9  *
10  * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
11  * This file is built by embed.pl from data in embed.fnc, embed.pl,
12  * pp.sym, intrpvar.h, perlvars.h and thrdvar.h.
13  * Any changes made here will be lost!
14  *
15  * Edit those files and run 'make regen_headers' to effect changes.
16  */
17
18 START_EXTERN_C
19
20 #if defined(PERL_IMPLICIT_SYS)
21 PERL_CALLCONV PerlInterpreter*  perl_alloc_using(struct IPerlMem* m, struct IPerlMem* ms, struct IPerlMem* mp, struct IPerlEnv* e, struct IPerlStdIO* io, struct IPerlLIO* lio, struct IPerlDir* d, struct IPerlSock* s, struct IPerlProc* p);
22 #endif
23 PERL_CALLCONV PerlInterpreter*  perl_alloc(void);
24 PERL_CALLCONV void      perl_construct(PerlInterpreter* interp)
25                         __attribute__((nonnull(1)));
26 PERL_CALLCONV int       perl_destruct(PerlInterpreter* interp)
27                         __attribute__((nonnull(1)));
28 PERL_CALLCONV void      perl_free(PerlInterpreter* interp)
29                         __attribute__((nonnull(1)));
30 PERL_CALLCONV int       perl_run(PerlInterpreter* interp)
31                         __attribute__((nonnull(1)));
32 PERL_CALLCONV int       perl_parse(PerlInterpreter* interp, XSINIT_t xsinit, int argc, char** argv, char** env);
33 PERL_CALLCONV bool      Perl_doing_taint(int argc, char** argv, char** env);
34 #if defined(USE_ITHREADS)
35 PERL_CALLCONV PerlInterpreter*  perl_clone(PerlInterpreter* interp, UV flags);
36 #  if defined(PERL_IMPLICIT_SYS)
37 PERL_CALLCONV PerlInterpreter*  perl_clone_using(PerlInterpreter *interp, UV flags, struct IPerlMem* m, struct IPerlMem* ms, struct IPerlMem* mp, struct IPerlEnv* e, struct IPerlStdIO* io, struct IPerlLIO* lio, struct IPerlDir* d, struct IPerlSock* s, struct IPerlProc* p);
38 #  endif
39 #endif
40
41 PERL_CALLCONV Malloc_t  Perl_malloc(MEM_SIZE nbytes)
42                         __attribute__((malloc)) __attribute__((warn_unused_result));
43 PERL_CALLCONV Malloc_t  Perl_calloc(MEM_SIZE elements, MEM_SIZE size)
44                         __attribute__((malloc)) __attribute__((warn_unused_result));
45 PERL_CALLCONV Malloc_t  Perl_realloc(Malloc_t where, MEM_SIZE nbytes)
46                         __attribute__((malloc)) __attribute__((warn_unused_result));
47 PERL_CALLCONV Free_t    Perl_mfree(Malloc_t where);
48 #if defined(MYMALLOC)
49 PERL_CALLCONV MEM_SIZE  Perl_malloced_size(void *p);
50 #endif
51
52 PERL_CALLCONV void*     Perl_get_context(void);
53 PERL_CALLCONV void      Perl_set_context(void *thx);
54
55 END_EXTERN_C
56
57 /* functions with flag 'n' should come before here */
58 START_EXTERN_C
59 #  include "pp_proto.h"
60 PERL_CALLCONV SV*       Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir);
61 PERL_CALLCONV bool      Perl_Gv_AMupdate(pTHX_ HV* stash);
62 PERL_CALLCONV CV*       Perl_gv_handler(pTHX_ HV* stash, I32 id);
63 PERL_CALLCONV OP*       Perl_append_elem(pTHX_ I32 optype, OP* head, OP* tail);
64 PERL_CALLCONV OP*       Perl_append_list(pTHX_ I32 optype, LISTOP* first, LISTOP* last);
65 PERL_CALLCONV I32       Perl_apply(pTHX_ I32 type, SV** mark, SV** sp);
66 PERL_CALLCONV void      Perl_apply_attrs_string(pTHX_ const char *stashpv, CV *cv, const char *attrstr, STRLEN len);
67 PERL_CALLCONV void      Perl_av_clear(pTHX_ AV* ar);
68 PERL_CALLCONV SV*       Perl_av_delete(pTHX_ AV* ar, I32 key, I32 flags);
69 PERL_CALLCONV bool      Perl_av_exists(pTHX_ AV* ar, I32 key);
70 PERL_CALLCONV void      Perl_av_extend(pTHX_ AV* ar, I32 key);
71 PERL_CALLCONV AV*       Perl_av_fake(pTHX_ I32 size, SV** svp);
72 PERL_CALLCONV SV**      Perl_av_fetch(pTHX_ AV* ar, I32 key, I32 lval);
73 PERL_CALLCONV void      Perl_av_fill(pTHX_ AV* ar, I32 fill);
74 PERL_CALLCONV I32       Perl_av_len(pTHX_ const AV* ar);
75 PERL_CALLCONV AV*       Perl_av_make(pTHX_ I32 size, SV** svp);
76 PERL_CALLCONV SV*       Perl_av_pop(pTHX_ AV* ar);
77 PERL_CALLCONV void      Perl_av_push(pTHX_ AV* ar, SV* val);
78 PERL_CALLCONV void      Perl_av_reify(pTHX_ AV* ar);
79 PERL_CALLCONV SV*       Perl_av_shift(pTHX_ AV* ar);
80 PERL_CALLCONV SV**      Perl_av_store(pTHX_ AV* ar, I32 key, SV* val);
81 PERL_CALLCONV void      Perl_av_undef(pTHX_ AV* ar);
82 PERL_CALLCONV void      Perl_av_unshift(pTHX_ AV* ar, I32 num);
83 PERL_CALLCONV OP*       Perl_bind_match(pTHX_ I32 type, OP* left, OP* pat);
84 PERL_CALLCONV OP*       Perl_block_end(pTHX_ I32 floor, OP* seq);
85 PERL_CALLCONV I32       Perl_block_gimme(pTHX);
86 PERL_CALLCONV int       Perl_block_start(pTHX_ int full);
87 PERL_CALLCONV void      Perl_boot_core_UNIVERSAL(pTHX);
88 PERL_CALLCONV void      Perl_boot_core_PerlIO(pTHX);
89 PERL_CALLCONV void      Perl_call_list(pTHX_ I32 oldscope, AV* av_list);
90 PERL_CALLCONV bool      Perl_cando(pTHX_ Mode_t mode, Uid_t effective, const Stat_t* statbufp)
91 #ifdef USE_ITHREADS
92                         __attribute__((nonnull(4)))
93 #else
94                         __attribute__((nonnull(3)))
95 #endif
96 ;
97 PERL_CALLCONV U32       Perl_cast_ulong(pTHX_ NV f);
98 PERL_CALLCONV I32       Perl_cast_i32(pTHX_ NV f);
99 PERL_CALLCONV IV        Perl_cast_iv(pTHX_ NV f);
100 PERL_CALLCONV UV        Perl_cast_uv(pTHX_ NV f);
101 #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
102 PERL_CALLCONV I32       Perl_my_chsize(pTHX_ int fd, Off_t length);
103 #endif
104 PERL_CALLCONV OP*       Perl_convert(pTHX_ I32 optype, I32 flags, OP* o);
105 PERL_CALLCONV void      Perl_croak(pTHX_ const char* pat, ...) __attribute__((noreturn))
106                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
107 PERL_CALLCONV void      Perl_vcroak(pTHX_ const char* pat, va_list* args) __attribute__((noreturn));
108 #if defined(PERL_IMPLICIT_CONTEXT)
109 PERL_CALLCONV void      Perl_croak_nocontext(const char* pat, ...) __attribute__((noreturn))
110                         __attribute__format__(__printf__,1,2);
111 PERL_CALLCONV OP*       Perl_die_nocontext(const char* pat, ...)
112                         __attribute__format__(__printf__,1,2);
113 PERL_CALLCONV void      Perl_deb_nocontext(const char* pat, ...)
114                         __attribute__format__(__printf__,1,2);
115 PERL_CALLCONV char*     Perl_form_nocontext(const char* pat, ...)
116                         __attribute__format__(__printf__,1,2);
117 PERL_CALLCONV void      Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...);
118 PERL_CALLCONV SV*       Perl_mess_nocontext(const char* pat, ...)
119                         __attribute__format__(__printf__,1,2);
120 PERL_CALLCONV void      Perl_warn_nocontext(const char* pat, ...)
121                         __attribute__format__(__printf__,1,2);
122 PERL_CALLCONV void      Perl_warner_nocontext(U32 err, const char* pat, ...)
123                         __attribute__format__(__printf__,2,3);
124 PERL_CALLCONV SV*       Perl_newSVpvf_nocontext(const char* pat, ...)
125                         __attribute__format__(__printf__,1,2);
126 PERL_CALLCONV void      Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...)
127                         __attribute__format__(__printf__,2,3);
128 PERL_CALLCONV void      Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...)
129                         __attribute__format__(__printf__,2,3);
130 PERL_CALLCONV void      Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...)
131                         __attribute__format__(__printf__,2,3);
132 PERL_CALLCONV void      Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...)
133                         __attribute__format__(__printf__,2,3);
134 PERL_CALLCONV int       Perl_fprintf_nocontext(PerlIO* stream, const char* fmt, ...)
135                         __attribute__format__(__printf__,2,3);
136 PERL_CALLCONV int       Perl_printf_nocontext(const char* fmt, ...)
137                         __attribute__format__(__printf__,1,2);
138 #endif
139 PERL_CALLCONV void      Perl_cv_ckproto(pTHX_ const CV* cv, const GV* gv, const char* p);
140 PERL_CALLCONV CV*       Perl_cv_clone(pTHX_ CV* proto)
141 #ifdef USE_ITHREADS
142                         __attribute__((nonnull(2)))
143 #else
144                         __attribute__((nonnull(1)))
145 #endif
146 ;
147 PERL_CALLCONV SV*       Perl_cv_const_sv(pTHX_ CV* cv);
148 PERL_CALLCONV SV*       Perl_op_const_sv(pTHX_ const OP* o, CV* cv);
149 PERL_CALLCONV void      Perl_cv_undef(pTHX_ CV* cv);
150 PERL_CALLCONV void      Perl_cx_dump(pTHX_ PERL_CONTEXT* cs);
151 PERL_CALLCONV SV*       Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
152 PERL_CALLCONV void      Perl_filter_del(pTHX_ filter_t funcp);
153 PERL_CALLCONV I32       Perl_filter_read(pTHX_ int idx, SV* buffer, int maxlen);
154 PERL_CALLCONV char**    Perl_get_op_descs(pTHX)
155                         __attribute__((pure));
156 PERL_CALLCONV char**    Perl_get_op_names(pTHX)
157                         __attribute__((pure));
158 PERL_CALLCONV const char*       Perl_get_no_modify(pTHX)
159                         __attribute__((pure));
160 PERL_CALLCONV U32*      Perl_get_opargs(pTHX)
161                         __attribute__((pure));
162 PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX)
163                         __attribute__((pure));
164 PERL_CALLCONV I32       Perl_cxinc(pTHX);
165 PERL_CALLCONV void      Perl_deb(pTHX_ const char* pat, ...)
166                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
167 PERL_CALLCONV void      Perl_vdeb(pTHX_ const char* pat, va_list* args);
168 PERL_CALLCONV void      Perl_debprofdump(pTHX);
169 PERL_CALLCONV I32       Perl_debop(pTHX_ const OP* o)
170 #ifdef USE_ITHREADS
171                         __attribute__((nonnull(2)))
172 #else
173                         __attribute__((nonnull(1)))
174 #endif
175 ;
176 PERL_CALLCONV I32       Perl_debstack(pTHX);
177 PERL_CALLCONV I32       Perl_debstackptrs(pTHX);
178 PERL_CALLCONV char*     Perl_delimcpy(pTHX_ char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen)
179 #ifdef USE_ITHREADS
180                         __attribute__((nonnull(2,3,4,5,7)))
181 #else
182                         __attribute__((nonnull(1,2,3,4,6)))
183 #endif
184 ;
185 PERL_CALLCONV void      Perl_deprecate(pTHX_ const char* s)
186 #ifdef USE_ITHREADS
187                         __attribute__((nonnull(2)))
188 #else
189                         __attribute__((nonnull(1)))
190 #endif
191 ;
192 PERL_CALLCONV void      Perl_deprecate_old(pTHX_ const char* s)
193 #ifdef USE_ITHREADS
194                         __attribute__((nonnull(2)))
195 #else
196                         __attribute__((nonnull(1)))
197 #endif
198 ;
199 PERL_CALLCONV OP*       Perl_die(pTHX_ const char* pat, ...)
200                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
201 PERL_CALLCONV OP*       Perl_vdie(pTHX_ const char* pat, va_list* args);
202 PERL_CALLCONV OP*       Perl_die_where(pTHX_ const char* message, STRLEN msglen);
203 PERL_CALLCONV void      Perl_dounwind(pTHX_ I32 cxix);
204 PERL_CALLCONV bool      Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp);
205 PERL_CALLCONV bool      Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int flag);
206 PERL_CALLCONV int       Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
207 #ifdef USE_ITHREADS
208                         __attribute__((nonnull(2)))
209 #else
210                         __attribute__((nonnull(1)))
211 #endif
212 ;
213 PERL_CALLCONV void      Perl_do_chop(pTHX_ SV* asv, SV* sv)
214 #ifdef USE_ITHREADS
215                         __attribute__((nonnull(2,3)))
216 #else
217                         __attribute__((nonnull(1,2)))
218 #endif
219 ;
220 PERL_CALLCONV bool      Perl_do_close(pTHX_ GV* gv, bool not_implicit)
221 #ifdef USE_ITHREADS
222                         __attribute__((nonnull(2)))
223 #else
224                         __attribute__((nonnull(1)))
225 #endif
226 ;
227 PERL_CALLCONV bool      Perl_do_eof(pTHX_ GV* gv)
228 #ifdef USE_ITHREADS
229                         __attribute__((nonnull(2)))
230 #else
231                         __attribute__((nonnull(1)))
232 #endif
233 ;
234 PERL_CALLCONV bool      Perl_do_exec(pTHX_ char* cmd)
235 #ifdef USE_ITHREADS
236                         __attribute__((nonnull(2)))
237 #else
238                         __attribute__((nonnull(1)))
239 #endif
240 ;
241 #if defined(WIN32) || defined(SYMBIAN)
242 PERL_CALLCONV int       Perl_do_aspawn(pTHX_ SV* really, SV** mark, SV** sp);
243 PERL_CALLCONV int       Perl_do_spawn(pTHX_ char* cmd);
244 PERL_CALLCONV int       Perl_do_spawn_nowait(pTHX_ char* cmd);
245 #endif
246 #if !defined(WIN32)
247 PERL_CALLCONV bool      Perl_do_exec3(pTHX_ char* cmd, int fd, int flag);
248 #endif
249 PERL_CALLCONV void      Perl_do_execfree(pTHX);
250 #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
251 PERL_CALLCONV I32       Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp);
252 PERL_CALLCONV I32       Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp);
253 PERL_CALLCONV I32       Perl_do_msgrcv(pTHX_ SV** mark, SV** sp);
254 PERL_CALLCONV I32       Perl_do_msgsnd(pTHX_ SV** mark, SV** sp);
255 PERL_CALLCONV I32       Perl_do_semop(pTHX_ SV** mark, SV** sp);
256 PERL_CALLCONV I32       Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp);
257 #endif
258 PERL_CALLCONV void      Perl_do_join(pTHX_ SV* sv, SV* del, SV** mark, SV** sp);
259 PERL_CALLCONV OP*       Perl_do_kv(pTHX);
260 PERL_CALLCONV bool      Perl_do_open(pTHX_ GV* gv, char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp);
261 PERL_CALLCONV bool      Perl_do_open9(pTHX_ GV *gv, char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV *svs, I32 num);
262 PERL_CALLCONV bool      Perl_do_openn(pTHX_ GV *gv, char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV **svp, I32 num);
263 PERL_CALLCONV void      Perl_do_pipe(pTHX_ SV* sv, GV* rgv, GV* wgv);
264 PERL_CALLCONV bool      Perl_do_print(pTHX_ SV* sv, PerlIO* fp);
265 PERL_CALLCONV OP*       Perl_do_readline(pTHX);
266 PERL_CALLCONV I32       Perl_do_chomp(pTHX_ SV* sv);
267 PERL_CALLCONV bool      Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
268 PERL_CALLCONV void      Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg);
269 PERL_CALLCONV Off_t     Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
270 PERL_CALLCONV Off_t     Perl_do_tell(pTHX_ GV* gv);
271 PERL_CALLCONV I32       Perl_do_trans(pTHX_ SV* sv);
272 PERL_CALLCONV UV        Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size)
273 #ifdef USE_ITHREADS
274                         __attribute__((nonnull(2)))
275 #else
276                         __attribute__((nonnull(1)))
277 #endif
278 ;
279 PERL_CALLCONV void      Perl_do_vecset(pTHX_ SV* sv)
280 #ifdef USE_ITHREADS
281                         __attribute__((nonnull(2)))
282 #else
283                         __attribute__((nonnull(1)))
284 #endif
285 ;
286 PERL_CALLCONV void      Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right);
287 PERL_CALLCONV OP*       Perl_dofile(pTHX_ OP* term);
288 PERL_CALLCONV I32       Perl_dowantarray(pTHX);
289 PERL_CALLCONV void      Perl_dump_all(pTHX);
290 PERL_CALLCONV void      Perl_dump_eval(pTHX);
291 #if defined(DUMP_FDS)
292 PERL_CALLCONV void      Perl_dump_fds(pTHX_ char* s);
293 #endif
294 PERL_CALLCONV void      Perl_dump_form(pTHX_ const GV* gv);
295 PERL_CALLCONV void      Perl_gv_dump(pTHX_ GV* gv);
296 PERL_CALLCONV void      Perl_op_dump(pTHX_ const OP* arg);
297 PERL_CALLCONV void      Perl_pmop_dump(pTHX_ PMOP* pm);
298 PERL_CALLCONV void      Perl_dump_packsubs(pTHX_ const HV* stash);
299 PERL_CALLCONV void      Perl_dump_sub(pTHX_ const GV* gv);
300 PERL_CALLCONV void      Perl_fbm_compile(pTHX_ SV* sv, U32 flags);
301 PERL_CALLCONV char*     Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlesv, U32 flags);
302 PERL_CALLCONV char*     Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char **search_ext, I32 flags);
303 PERL_CALLCONV OP*       Perl_force_list(pTHX_ OP* arg)
304 #ifdef USE_ITHREADS
305                         __attribute__((nonnull(2)))
306 #else
307                         __attribute__((nonnull(1)))
308 #endif
309 ;
310 PERL_CALLCONV OP*       Perl_fold_constants(pTHX_ OP* arg)
311 #ifdef USE_ITHREADS
312                         __attribute__((nonnull(2)))
313 #else
314                         __attribute__((nonnull(1)))
315 #endif
316 ;
317 PERL_CALLCONV char*     Perl_form(pTHX_ const char* pat, ...)
318                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
319 PERL_CALLCONV char*     Perl_vform(pTHX_ const char* pat, va_list* args);
320 PERL_CALLCONV void      Perl_free_tmps(pTHX);
321 PERL_CALLCONV OP*       Perl_gen_constant_list(pTHX_ OP* o);
322 #if !defined(HAS_GETENV_LEN)
323 PERL_CALLCONV char*     Perl_getenv_len(pTHX_ const char* key, unsigned long *len);
324 #endif
325 PERL_CALLCONV void      Perl_gp_free(pTHX_ GV* gv);
326 PERL_CALLCONV GP*       Perl_gp_ref(pTHX_ GP* gp);
327 PERL_CALLCONV GV*       Perl_gv_AVadd(pTHX_ GV* gv);
328 PERL_CALLCONV GV*       Perl_gv_HVadd(pTHX_ GV* gv);
329 PERL_CALLCONV GV*       Perl_gv_IOadd(pTHX_ GV* gv);
330 PERL_CALLCONV GV*       Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method);
331 PERL_CALLCONV void      Perl_gv_check(pTHX_ HV* stash);
332 PERL_CALLCONV void      Perl_gv_efullname(pTHX_ SV* sv, const GV* gv);
333 /* PERL_CALLCONV void   Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix); */
334 PERL_CALLCONV void      Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain);
335 PERL_CALLCONV GV*       Perl_gv_fetchfile(pTHX_ const char* name);
336 PERL_CALLCONV GV*       Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level);
337 PERL_CALLCONV GV*       Perl_gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level);
338 PERL_CALLCONV GV*       Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name);
339 PERL_CALLCONV GV*       Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload);
340 PERL_CALLCONV GV*       Perl_gv_fetchpv(pTHX_ const char* name, I32 add, I32 sv_type);
341 PERL_CALLCONV void      Perl_gv_fullname(pTHX_ SV* sv, const GV* gv);
342 /* PERL_CALLCONV void   Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix); */
343 PERL_CALLCONV void      Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain);
344 PERL_CALLCONV void      Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi);
345 PERL_CALLCONV HV*       Perl_gv_stashpv(pTHX_ const char* name, I32 create);
346 PERL_CALLCONV HV*       Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 create);
347 PERL_CALLCONV HV*       Perl_gv_stashsv(pTHX_ SV* sv, I32 create);
348 PERL_CALLCONV void      Perl_hv_clear(pTHX_ HV* tb);
349 PERL_CALLCONV void      Perl_hv_delayfree_ent(pTHX_ HV* hv, HE* entry);
350 PERL_CALLCONV SV*       Perl_hv_delete(pTHX_ HV* tb, const char* key, I32 klen, I32 flags);
351 PERL_CALLCONV SV*       Perl_hv_delete_ent(pTHX_ HV* tb, SV* key, I32 flags, U32 hash);
352 PERL_CALLCONV bool      Perl_hv_exists(pTHX_ HV* tb, const char* key, I32 klen);
353 PERL_CALLCONV bool      Perl_hv_exists_ent(pTHX_ HV* tb, SV* key, U32 hash);
354 PERL_CALLCONV SV**      Perl_hv_fetch(pTHX_ HV* tb, const char* key, I32 klen, I32 lval);
355 PERL_CALLCONV HE*       Perl_hv_fetch_ent(pTHX_ HV* tb, SV* key, I32 lval, U32 hash);
356 PERL_CALLCONV void      Perl_hv_free_ent(pTHX_ HV* hv, HE* entry);
357 PERL_CALLCONV I32       Perl_hv_iterinit(pTHX_ HV* tb);
358 PERL_CALLCONV char*     Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen);
359 PERL_CALLCONV SV*       Perl_hv_iterkeysv(pTHX_ HE* entry);
360 PERL_CALLCONV HE*       Perl_hv_iternext(pTHX_ HV* tb);
361 PERL_CALLCONV SV*       Perl_hv_iternextsv(pTHX_ HV* hv, char** key, I32* retlen);
362 PERL_CALLCONV HE*       Perl_hv_iternext_flags(pTHX_ HV* tb, I32 flags);
363 PERL_CALLCONV SV*       Perl_hv_iterval(pTHX_ HV* tb, HE* entry);
364 PERL_CALLCONV void      Perl_hv_ksplit(pTHX_ HV* hv, IV newmax);
365 PERL_CALLCONV void      Perl_hv_magic(pTHX_ HV* hv, GV* gv, int how);
366 PERL_CALLCONV SV**      Perl_hv_store(pTHX_ HV* tb, const char* key, I32 klen, SV* val, U32 hash);
367 PERL_CALLCONV HE*       Perl_hv_store_ent(pTHX_ HV* tb, SV* key, SV* val, U32 hash);
368 PERL_CALLCONV SV**      Perl_hv_store_flags(pTHX_ HV* tb, const char* key, I32 klen, SV* val, U32 hash, int flags);
369 PERL_CALLCONV void      Perl_hv_undef(pTHX_ HV* tb);
370 PERL_CALLCONV I32       Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len)
371                         __attribute__((pure))
372 #ifdef USE_ITHREADS
373                         __attribute__((nonnull(2,3)))
374 #else
375                         __attribute__((nonnull(1,2)))
376 #endif
377 ;
378 PERL_CALLCONV I32       Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len)
379                         __attribute__((pure))
380 #ifdef USE_ITHREADS
381                         __attribute__((nonnull(2,3)))
382 #else
383                         __attribute__((nonnull(1,2)))
384 #endif
385 ;
386 PERL_CALLCONV I32       Perl_ibcmp_utf8(pTHX_ const char* a, char **pe1, UV l1, bool u1, const char* b, char **pe2, UV l2, bool u2)
387 #ifdef USE_ITHREADS
388                         __attribute__((nonnull(2,6)))
389 #else
390                         __attribute__((nonnull(1,5)))
391 #endif
392 ;
393 PERL_CALLCONV bool      Perl_ingroup(pTHX_ Gid_t testgid, Uid_t effective);
394 PERL_CALLCONV void      Perl_init_argv_symbols(pTHX_ int argc, char **argv)
395 #ifdef USE_ITHREADS
396                         __attribute__((nonnull(3)))
397 #else
398                         __attribute__((nonnull(2)))
399 #endif
400 ;
401 PERL_CALLCONV void      Perl_init_debugger(pTHX);
402 PERL_CALLCONV void      Perl_init_stacks(pTHX);
403 PERL_CALLCONV void      Perl_init_tm(pTHX_ struct tm *ptm);
404 PERL_CALLCONV U32       Perl_intro_my(pTHX);
405 PERL_CALLCONV char*     Perl_instr(pTHX_ const char* big, const char* little)
406                         __attribute__((pure))
407 #ifdef USE_ITHREADS
408                         __attribute__((nonnull(2,3)))
409 #else
410                         __attribute__((nonnull(1,2)))
411 #endif
412 ;
413 PERL_CALLCONV bool      Perl_io_close(pTHX_ IO* io, bool not_implicit);
414 PERL_CALLCONV OP*       Perl_invert(pTHX_ OP* cmd);
415 PERL_CALLCONV bool      Perl_is_gv_magical(pTHX_ const char *name, STRLEN len, U32 flags);
416 PERL_CALLCONV I32       Perl_is_lvalue_sub(pTHX);
417 PERL_CALLCONV U32       Perl_to_uni_upper_lc(pTHX_ U32 c);
418 PERL_CALLCONV U32       Perl_to_uni_title_lc(pTHX_ U32 c);
419 PERL_CALLCONV U32       Perl_to_uni_lower_lc(pTHX_ U32 c);
420 PERL_CALLCONV bool      Perl_is_uni_alnum(pTHX_ UV c);
421 PERL_CALLCONV bool      Perl_is_uni_alnumc(pTHX_ UV c);
422 PERL_CALLCONV bool      Perl_is_uni_idfirst(pTHX_ UV c);
423 PERL_CALLCONV bool      Perl_is_uni_alpha(pTHX_ UV c);
424 PERL_CALLCONV bool      Perl_is_uni_ascii(pTHX_ UV c);
425 PERL_CALLCONV bool      Perl_is_uni_space(pTHX_ UV c);
426 PERL_CALLCONV bool      Perl_is_uni_cntrl(pTHX_ UV c);
427 PERL_CALLCONV bool      Perl_is_uni_graph(pTHX_ UV c);
428 PERL_CALLCONV bool      Perl_is_uni_digit(pTHX_ UV c);
429 PERL_CALLCONV bool      Perl_is_uni_upper(pTHX_ UV c);
430 PERL_CALLCONV bool      Perl_is_uni_lower(pTHX_ UV c);
431 PERL_CALLCONV bool      Perl_is_uni_print(pTHX_ UV c);
432 PERL_CALLCONV bool      Perl_is_uni_punct(pTHX_ UV c);
433 PERL_CALLCONV bool      Perl_is_uni_xdigit(pTHX_ UV c);
434 PERL_CALLCONV UV        Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp)
435 #ifdef USE_ITHREADS
436                         __attribute__((nonnull(3,4)))
437 #else
438                         __attribute__((nonnull(2,3)))
439 #endif
440 ;
441 PERL_CALLCONV UV        Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp)
442 #ifdef USE_ITHREADS
443                         __attribute__((nonnull(3,4)))
444 #else
445                         __attribute__((nonnull(2,3)))
446 #endif
447 ;
448 PERL_CALLCONV UV        Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp)
449 #ifdef USE_ITHREADS
450                         __attribute__((nonnull(3,4)))
451 #else
452                         __attribute__((nonnull(2,3)))
453 #endif
454 ;
455 PERL_CALLCONV UV        Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp)
456 #ifdef USE_ITHREADS
457                         __attribute__((nonnull(3,4)))
458 #else
459                         __attribute__((nonnull(2,3)))
460 #endif
461 ;
462 PERL_CALLCONV bool      Perl_is_uni_alnum_lc(pTHX_ UV c);
463 PERL_CALLCONV bool      Perl_is_uni_alnumc_lc(pTHX_ UV c);
464 PERL_CALLCONV bool      Perl_is_uni_idfirst_lc(pTHX_ UV c);
465 PERL_CALLCONV bool      Perl_is_uni_alpha_lc(pTHX_ UV c);
466 PERL_CALLCONV bool      Perl_is_uni_ascii_lc(pTHX_ UV c);
467 PERL_CALLCONV bool      Perl_is_uni_space_lc(pTHX_ UV c);
468 PERL_CALLCONV bool      Perl_is_uni_cntrl_lc(pTHX_ UV c);
469 PERL_CALLCONV bool      Perl_is_uni_graph_lc(pTHX_ UV c);
470 PERL_CALLCONV bool      Perl_is_uni_digit_lc(pTHX_ UV c);
471 PERL_CALLCONV bool      Perl_is_uni_upper_lc(pTHX_ UV c);
472 PERL_CALLCONV bool      Perl_is_uni_lower_lc(pTHX_ UV c);
473 PERL_CALLCONV bool      Perl_is_uni_print_lc(pTHX_ UV c);
474 PERL_CALLCONV bool      Perl_is_uni_punct_lc(pTHX_ UV c);
475 PERL_CALLCONV bool      Perl_is_uni_xdigit_lc(pTHX_ UV c);
476 PERL_CALLCONV STRLEN    Perl_is_utf8_char(pTHX_ const U8 *p)
477 #ifdef USE_ITHREADS
478                         __attribute__((nonnull(2)))
479 #else
480                         __attribute__((nonnull(1)))
481 #endif
482 ;
483 PERL_CALLCONV bool      Perl_is_utf8_string(pTHX_ const U8 *s, STRLEN len)
484 #ifdef USE_ITHREADS
485                         __attribute__((nonnull(2)))
486 #else
487                         __attribute__((nonnull(1)))
488 #endif
489 ;
490 PERL_CALLCONV bool      Perl_is_utf8_string_loc(pTHX_ const U8 *s, STRLEN len, const U8 **p)
491 #ifdef USE_ITHREADS
492                         __attribute__((nonnull(2,4)))
493 #else
494                         __attribute__((nonnull(1,3)))
495 #endif
496 ;
497 PERL_CALLCONV bool      Perl_is_utf8_alnum(pTHX_ const U8 *p)
498 #ifdef USE_ITHREADS
499                         __attribute__((nonnull(2)))
500 #else
501                         __attribute__((nonnull(1)))
502 #endif
503 ;
504 PERL_CALLCONV bool      Perl_is_utf8_alnumc(pTHX_ const U8 *p)
505 #ifdef USE_ITHREADS
506                         __attribute__((nonnull(2)))
507 #else
508                         __attribute__((nonnull(1)))
509 #endif
510 ;
511 PERL_CALLCONV bool      Perl_is_utf8_idfirst(pTHX_ const U8 *p)
512 #ifdef USE_ITHREADS
513                         __attribute__((nonnull(2)))
514 #else
515                         __attribute__((nonnull(1)))
516 #endif
517 ;
518 PERL_CALLCONV bool      Perl_is_utf8_idcont(pTHX_ const U8 *p)
519 #ifdef USE_ITHREADS
520                         __attribute__((nonnull(2)))
521 #else
522                         __attribute__((nonnull(1)))
523 #endif
524 ;
525 PERL_CALLCONV bool      Perl_is_utf8_alpha(pTHX_ const U8 *p)
526 #ifdef USE_ITHREADS
527                         __attribute__((nonnull(2)))
528 #else
529                         __attribute__((nonnull(1)))
530 #endif
531 ;
532 PERL_CALLCONV bool      Perl_is_utf8_ascii(pTHX_ const U8 *p)
533 #ifdef USE_ITHREADS
534                         __attribute__((nonnull(2)))
535 #else
536                         __attribute__((nonnull(1)))
537 #endif
538 ;
539 PERL_CALLCONV bool      Perl_is_utf8_space(pTHX_ const U8 *p)
540 #ifdef USE_ITHREADS
541                         __attribute__((nonnull(2)))
542 #else
543                         __attribute__((nonnull(1)))
544 #endif
545 ;
546 PERL_CALLCONV bool      Perl_is_utf8_cntrl(pTHX_ const U8 *p)
547 #ifdef USE_ITHREADS
548                         __attribute__((nonnull(2)))
549 #else
550                         __attribute__((nonnull(1)))
551 #endif
552 ;
553 PERL_CALLCONV bool      Perl_is_utf8_digit(pTHX_ const U8 *p)
554 #ifdef USE_ITHREADS
555                         __attribute__((nonnull(2)))
556 #else
557                         __attribute__((nonnull(1)))
558 #endif
559 ;
560 PERL_CALLCONV bool      Perl_is_utf8_graph(pTHX_ const U8 *p)
561 #ifdef USE_ITHREADS
562                         __attribute__((nonnull(2)))
563 #else
564                         __attribute__((nonnull(1)))
565 #endif
566 ;
567 PERL_CALLCONV bool      Perl_is_utf8_upper(pTHX_ const U8 *p)
568 #ifdef USE_ITHREADS
569                         __attribute__((nonnull(2)))
570 #else
571                         __attribute__((nonnull(1)))
572 #endif
573 ;
574 PERL_CALLCONV bool      Perl_is_utf8_lower(pTHX_ const U8 *p)
575 #ifdef USE_ITHREADS
576                         __attribute__((nonnull(2)))
577 #else
578                         __attribute__((nonnull(1)))
579 #endif
580 ;
581 PERL_CALLCONV bool      Perl_is_utf8_print(pTHX_ const U8 *p)
582 #ifdef USE_ITHREADS
583                         __attribute__((nonnull(2)))
584 #else
585                         __attribute__((nonnull(1)))
586 #endif
587 ;
588 PERL_CALLCONV bool      Perl_is_utf8_punct(pTHX_ const U8 *p)
589 #ifdef USE_ITHREADS
590                         __attribute__((nonnull(2)))
591 #else
592                         __attribute__((nonnull(1)))
593 #endif
594 ;
595 PERL_CALLCONV bool      Perl_is_utf8_xdigit(pTHX_ const U8 *p)
596 #ifdef USE_ITHREADS
597                         __attribute__((nonnull(2)))
598 #else
599                         __attribute__((nonnull(1)))
600 #endif
601 ;
602 PERL_CALLCONV bool      Perl_is_utf8_mark(pTHX_ const U8 *p)
603 #ifdef USE_ITHREADS
604                         __attribute__((nonnull(2)))
605 #else
606                         __attribute__((nonnull(1)))
607 #endif
608 ;
609 PERL_CALLCONV OP*       Perl_jmaybe(pTHX_ OP* arg)
610 #ifdef USE_ITHREADS
611                         __attribute__((nonnull(2)))
612 #else
613                         __attribute__((nonnull(1)))
614 #endif
615 ;
616 PERL_CALLCONV I32       Perl_keyword(pTHX_ char* d, I32 len)
617 #ifdef USE_ITHREADS
618                         __attribute__((nonnull(2)))
619 #else
620                         __attribute__((nonnull(1)))
621 #endif
622 ;
623 PERL_CALLCONV void      Perl_leave_scope(pTHX_ I32 base);
624 PERL_CALLCONV void      Perl_lex_end(pTHX);
625 PERL_CALLCONV void      Perl_lex_start(pTHX_ SV* line);
626 PERL_CALLCONV void      Perl_op_null(pTHX_ OP* o);
627 PERL_CALLCONV void      Perl_op_clear(pTHX_ OP* o);
628 PERL_CALLCONV void      Perl_op_refcnt_lock(pTHX);
629 PERL_CALLCONV void      Perl_op_refcnt_unlock(pTHX);
630 PERL_CALLCONV OP*       Perl_linklist(pTHX_ OP* o);
631 PERL_CALLCONV OP*       Perl_list(pTHX_ OP* o);
632 PERL_CALLCONV OP*       Perl_listkids(pTHX_ OP* o);
633 PERL_CALLCONV void      Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...);
634 PERL_CALLCONV void      Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args);
635 PERL_CALLCONV OP*       Perl_localize(pTHX_ OP* arg, I32 lexical);
636 PERL_CALLCONV I32       Perl_looks_like_number(pTHX_ SV* sv);
637 PERL_CALLCONV UV        Perl_grok_bin(pTHX_ const char* start, STRLEN* len, I32* flags, NV *result);
638 PERL_CALLCONV UV        Perl_grok_hex(pTHX_ const char* start, STRLEN* len, I32* flags, NV *result);
639 PERL_CALLCONV int       Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep);
640 PERL_CALLCONV bool      Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send);
641 PERL_CALLCONV UV        Perl_grok_oct(pTHX_ const char* start, STRLEN* len, I32* flags, NV *result);
642 PERL_CALLCONV int       Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg);
643 PERL_CALLCONV int       Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg);
644 PERL_CALLCONV int       Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg);
645 PERL_CALLCONV int       Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg);
646 PERL_CALLCONV int       Perl_magic_existspack(pTHX_ SV* sv, MAGIC* mg);
647 PERL_CALLCONV int       Perl_magic_freeregexp(pTHX_ SV* sv, MAGIC* mg);
648 PERL_CALLCONV int       Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg);
649 PERL_CALLCONV int       Perl_magic_get(pTHX_ SV* sv, MAGIC* mg);
650 PERL_CALLCONV int       Perl_magic_getarylen(pTHX_ SV* sv, MAGIC* mg);
651 PERL_CALLCONV int       Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg);
652 PERL_CALLCONV int       Perl_magic_getglob(pTHX_ SV* sv, MAGIC* mg);
653 PERL_CALLCONV int       Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg);
654 PERL_CALLCONV int       Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg);
655 PERL_CALLCONV int       Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg);
656 PERL_CALLCONV int       Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg);
657 PERL_CALLCONV int       Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg);
658 PERL_CALLCONV int       Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg);
659 PERL_CALLCONV int       Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg);
660 PERL_CALLCONV int       Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg);
661 PERL_CALLCONV U32       Perl_magic_len(pTHX_ SV* sv, MAGIC* mg);
662 PERL_CALLCONV int       Perl_magic_nextpack(pTHX_ SV* sv, MAGIC* mg, SV* key);
663 PERL_CALLCONV U32       Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg);
664 PERL_CALLCONV int       Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg);
665 PERL_CALLCONV int       Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg) __attribute__((noreturn));
666 PERL_CALLCONV int       Perl_magic_set(pTHX_ SV* sv, MAGIC* mg);
667 PERL_CALLCONV int       Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg);
668 PERL_CALLCONV int       Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg);
669 PERL_CALLCONV int       Perl_magic_setbm(pTHX_ SV* sv, MAGIC* mg);
670 PERL_CALLCONV int       Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg);
671 #if defined(USE_LOCALE_COLLATE)
672 PERL_CALLCONV int       Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg);
673 #endif
674 PERL_CALLCONV int       Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg);
675 PERL_CALLCONV int       Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg);
676 PERL_CALLCONV int       Perl_magic_setfm(pTHX_ SV* sv, MAGIC* mg);
677 PERL_CALLCONV int       Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg);
678 PERL_CALLCONV int       Perl_magic_setglob(pTHX_ SV* sv, MAGIC* mg);
679 PERL_CALLCONV int       Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg);
680 PERL_CALLCONV int       Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg);
681 PERL_CALLCONV int       Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg);
682 PERL_CALLCONV int       Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg);
683 PERL_CALLCONV int       Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg);
684 PERL_CALLCONV int       Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg);
685 PERL_CALLCONV int       Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg);
686 PERL_CALLCONV int       Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg);
687 PERL_CALLCONV int       Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg);
688 PERL_CALLCONV int       Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg);
689 PERL_CALLCONV int       Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg);
690 PERL_CALLCONV int       Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg);
691 PERL_CALLCONV U32       Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg);
692 PERL_CALLCONV int       Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg);
693 PERL_CALLCONV void      Perl_magicname(pTHX_ const char* sym, const char* name, I32 namlen);
694 PERL_CALLCONV void      Perl_markstack_grow(pTHX);
695 #if defined(USE_LOCALE_COLLATE)
696 PERL_CALLCONV char*     Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen);
697 #endif
698 PERL_CALLCONV SV*       Perl_mess(pTHX_ const char* pat, ...)
699                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
700 PERL_CALLCONV SV*       Perl_vmess(pTHX_ const char* pat, va_list* args);
701 PERL_CALLCONV void      Perl_qerror(pTHX_ SV* err);
702 PERL_CALLCONV void      Perl_sortsv(pTHX_ SV ** array, size_t num_elts, SVCOMPARE_t cmp);
703 PERL_CALLCONV int       Perl_mg_clear(pTHX_ SV* sv);
704 PERL_CALLCONV int       Perl_mg_copy(pTHX_ SV* sv, SV* nsv, const char* key, I32 klen);
705 PERL_CALLCONV MAGIC*    Perl_mg_find(pTHX_ const SV* sv, int type);
706 PERL_CALLCONV int       Perl_mg_free(pTHX_ SV* sv);
707 PERL_CALLCONV int       Perl_mg_get(pTHX_ SV* sv);
708 PERL_CALLCONV U32       Perl_mg_length(pTHX_ SV* sv);
709 PERL_CALLCONV void      Perl_mg_magical(pTHX_ SV* sv);
710 PERL_CALLCONV int       Perl_mg_set(pTHX_ SV* sv);
711 PERL_CALLCONV I32       Perl_mg_size(pTHX_ SV* sv);
712 PERL_CALLCONV void      Perl_mini_mktime(pTHX_ struct tm *pm);
713 PERL_CALLCONV OP*       Perl_mod(pTHX_ OP* o, I32 type);
714 PERL_CALLCONV int       Perl_mode_from_discipline(pTHX_ SV* discp);
715 PERL_CALLCONV char*     Perl_moreswitches(pTHX_ char* s);
716 PERL_CALLCONV OP*       Perl_my(pTHX_ OP* o)
717 #ifdef USE_ITHREADS
718                         __attribute__((nonnull(2)))
719 #else
720                         __attribute__((nonnull(1)))
721 #endif
722 ;
723 PERL_CALLCONV NV        Perl_my_atof(pTHX_ const char *s)
724 #ifdef USE_ITHREADS
725                         __attribute__((nonnull(2)))
726 #else
727                         __attribute__((nonnull(1)))
728 #endif
729 ;
730 #if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
731 PERL_CALLCONV char*     Perl_my_bcopy(const char* from, char* to, I32 len)
732                         __attribute__((nonnull(1,2)));
733 #endif
734 #if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
735 PERL_CALLCONV char*     Perl_my_bzero(char* loc, I32 len)
736                         __attribute__((nonnull(1)));
737 #endif
738 PERL_CALLCONV void      Perl_my_exit(pTHX_ U32 status) __attribute__((noreturn));
739 PERL_CALLCONV void      Perl_my_failure_exit(pTHX) __attribute__((noreturn));
740 PERL_CALLCONV I32       Perl_my_fflush_all(pTHX);
741 PERL_CALLCONV Pid_t     Perl_my_fork(void);
742 PERL_CALLCONV void      Perl_atfork_lock(void);
743 PERL_CALLCONV void      Perl_atfork_unlock(void);
744 PERL_CALLCONV I32       Perl_my_lstat(pTHX);
745 #if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
746 PERL_CALLCONV I32       Perl_my_memcmp(const char* s1, const char* s2, I32 len)
747                         __attribute__((pure))
748                         __attribute__((nonnull(1,2)));
749 #endif
750 #if !defined(HAS_MEMSET)
751 PERL_CALLCONV void*     Perl_my_memset(char* loc, I32 ch, I32 len)
752                         __attribute__((nonnull(1)));
753 #endif
754 PERL_CALLCONV I32       Perl_my_pclose(pTHX_ PerlIO* ptr);
755 PERL_CALLCONV PerlIO*   Perl_my_popen(pTHX_ char* cmd, char* mode);
756 PERL_CALLCONV PerlIO*   Perl_my_popen_list(pTHX_ char* mode, int n, SV ** args);
757 PERL_CALLCONV void      Perl_my_setenv(pTHX_ const char* nam, const char* val);
758 PERL_CALLCONV I32       Perl_my_stat(pTHX);
759 PERL_CALLCONV char *    Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, int hour, int mday, int mon, int year, int wday, int yday, int isdst);
760 #if defined(MYSWAP)
761 PERL_CALLCONV short     Perl_my_swap(pTHX_ short s)
762                         __attribute__((pure));
763 PERL_CALLCONV long      Perl_my_htonl(pTHX_ long l)
764                         __attribute__((pure));
765 PERL_CALLCONV long      Perl_my_ntohl(pTHX_ long l)
766                         __attribute__((pure));
767 #endif
768 PERL_CALLCONV void      Perl_my_unexec(pTHX);
769 PERL_CALLCONV OP*       Perl_newANONLIST(pTHX_ OP* o);
770 PERL_CALLCONV OP*       Perl_newANONHASH(pTHX_ OP* o);
771 PERL_CALLCONV OP*       Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
772 PERL_CALLCONV OP*       Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right);
773 PERL_CALLCONV OP*       Perl_newCONDOP(pTHX_ I32 flags, OP* expr, OP* trueop, OP* falseop);
774 PERL_CALLCONV CV*       Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
775 PERL_CALLCONV void      Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
776 PERL_CALLCONV OP*       Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sclr, OP* expr, OP*block, OP*cont);
777 PERL_CALLCONV OP*       Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP* left, OP* right);
778 PERL_CALLCONV OP*       Perl_newLOOPEX(pTHX_ I32 type, OP* label);
779 PERL_CALLCONV OP*       Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block);
780 PERL_CALLCONV OP*       Perl_newNULLLIST(pTHX)
781                         __attribute__((malloc)) __attribute__((warn_unused_result));
782 PERL_CALLCONV OP*       Perl_newOP(pTHX_ I32 optype, I32 flags);
783 PERL_CALLCONV void      Perl_newPROG(pTHX_ OP* o);
784 PERL_CALLCONV OP*       Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right);
785 PERL_CALLCONV OP*       Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop);
786 PERL_CALLCONV OP*       Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o);
787 PERL_CALLCONV CV*       Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
788 PERL_CALLCONV CV*       Perl_newXS(pTHX_ const char* name, XSUBADDR_t f, const char* filename)
789 #ifdef USE_ITHREADS
790                         __attribute__((nonnull(2,4)))
791 #else
792                         __attribute__((nonnull(1,3)))
793 #endif
794 ;
795 PERL_CALLCONV AV*       Perl_newAV(pTHX);
796 PERL_CALLCONV OP*       Perl_newAVREF(pTHX_ OP* o)
797 #ifdef USE_ITHREADS
798                         __attribute__((nonnull(2)))
799 #else
800                         __attribute__((nonnull(1)))
801 #endif
802 ;
803 PERL_CALLCONV OP*       Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last);
804 PERL_CALLCONV OP*       Perl_newCVREF(pTHX_ I32 flags, OP* o);
805 PERL_CALLCONV OP*       Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv);
806 PERL_CALLCONV GV*       Perl_newGVgen(pTHX_ const char* pack);
807 PERL_CALLCONV OP*       Perl_newGVREF(pTHX_ I32 type, OP* o);
808 PERL_CALLCONV OP*       Perl_newHVREF(pTHX_ OP* o)
809 #ifdef USE_ITHREADS
810                         __attribute__((nonnull(2)))
811 #else
812                         __attribute__((nonnull(1)))
813 #endif
814 ;
815 PERL_CALLCONV HV*       Perl_newHV(pTHX);
816 PERL_CALLCONV HV*       Perl_newHVhv(pTHX_ HV* hv);
817 PERL_CALLCONV IO*       Perl_newIO(pTHX);
818 PERL_CALLCONV OP*       Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last);
819 PERL_CALLCONV OP*       Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv);
820 PERL_CALLCONV OP*       Perl_newPMOP(pTHX_ I32 type, I32 flags);
821 PERL_CALLCONV OP*       Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv);
822 PERL_CALLCONV SV*       Perl_newRV(pTHX_ SV* pref);
823 PERL_CALLCONV SV*       Perl_newRV_noinc(pTHX_ SV *sv)
824 #ifdef USE_ITHREADS
825                         __attribute__((nonnull(2)))
826 #else
827                         __attribute__((nonnull(1)))
828 #endif
829 ;
830 PERL_CALLCONV SV*       Perl_newSV(pTHX_ STRLEN len);
831 PERL_CALLCONV OP*       Perl_newSVREF(pTHX_ OP* o)
832 #ifdef USE_ITHREADS
833                         __attribute__((nonnull(2)))
834 #else
835                         __attribute__((nonnull(1)))
836 #endif
837 ;
838 PERL_CALLCONV OP*       Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
839 #ifdef USE_ITHREADS
840                         __attribute__((nonnull(4)))
841 #else
842                         __attribute__((nonnull(3)))
843 #endif
844 ;
845 PERL_CALLCONV SV*       Perl_newSViv(pTHX_ IV i);
846 PERL_CALLCONV SV*       Perl_newSVuv(pTHX_ UV u);
847 PERL_CALLCONV SV*       Perl_newSVnv(pTHX_ NV n);
848 PERL_CALLCONV SV*       Perl_newSVpv(pTHX_ const char* s, STRLEN len);
849 PERL_CALLCONV SV*       Perl_newSVpvn(pTHX_ const char* s, STRLEN len);
850 PERL_CALLCONV SV*       Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash);
851 PERL_CALLCONV SV*       Perl_newSVpvf(pTHX_ const char* pat, ...)
852                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
853 PERL_CALLCONV SV*       Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args);
854 PERL_CALLCONV SV*       Perl_newSVrv(pTHX_ SV* rv, const char* classname);
855 PERL_CALLCONV SV*       Perl_newSVsv(pTHX_ SV* old);
856 PERL_CALLCONV OP*       Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first);
857 PERL_CALLCONV OP*       Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my);
858 PERL_CALLCONV PERL_SI*  Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems);
859 PERL_CALLCONV char*     Perl_scan_vstring(pTHX_ const char *vstr, SV *sv)
860 #ifdef USE_ITHREADS
861                         __attribute__((nonnull(2,3)))
862 #else
863                         __attribute__((nonnull(1,2)))
864 #endif
865 ;
866 PERL_CALLCONV char*     Perl_scan_version(pTHX_ const char *vstr, SV *sv, bool qv)
867 #ifdef USE_ITHREADS
868                         __attribute__((nonnull(2,3)))
869 #else
870                         __attribute__((nonnull(1,2)))
871 #endif
872 ;
873 PERL_CALLCONV SV*       Perl_new_version(pTHX_ SV *ver);
874 PERL_CALLCONV SV*       Perl_upg_version(pTHX_ SV *ver);
875 PERL_CALLCONV SV*       Perl_vnumify(pTHX_ SV *vs);
876 PERL_CALLCONV SV*       Perl_vnormal(pTHX_ SV *vs);
877 PERL_CALLCONV SV*       Perl_vstringify(pTHX_ SV *vs);
878 PERL_CALLCONV int       Perl_vcmp(pTHX_ SV *lvs, SV *rvs)
879 #ifdef USE_ITHREADS
880                         __attribute__((nonnull(2,3)))
881 #else
882                         __attribute__((nonnull(1,2)))
883 #endif
884 ;
885 PERL_CALLCONV PerlIO*   Perl_nextargv(pTHX_ GV* gv);
886 PERL_CALLCONV char*     Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
887                         __attribute__((pure));
888 PERL_CALLCONV OP*       Perl_oopsCV(pTHX_ OP* o) __attribute__((noreturn));
889 PERL_CALLCONV void      Perl_op_free(pTHX_ OP* arg);
890 PERL_CALLCONV void      Perl_package(pTHX_ OP* o);
891 PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
892 PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ char* name)
893 #ifdef USE_ITHREADS
894                         __attribute__((nonnull(2)))
895 #else
896                         __attribute__((nonnull(1)))
897 #endif
898 ;
899 PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name)
900 #ifdef USE_ITHREADS
901                         __attribute__((nonnull(2)))
902 #else
903                         __attribute__((nonnull(1)))
904 #endif
905 ;
906 PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX);
907 PERL_CALLCONV OP*       Perl_oopsAV(pTHX_ OP* o)
908 #ifdef USE_ITHREADS
909                         __attribute__((nonnull(2)))
910 #else
911                         __attribute__((nonnull(1)))
912 #endif
913 ;
914 PERL_CALLCONV OP*       Perl_oopsHV(pTHX_ OP* o)
915 #ifdef USE_ITHREADS
916                         __attribute__((nonnull(2)))
917 #else
918                         __attribute__((nonnull(1)))
919 #endif
920 ;
921 PERL_CALLCONV void      Perl_pad_leavemy(pTHX);
922 PERL_CALLCONV SV*       Perl_pad_sv(pTHX_ PADOFFSET po);
923 PERL_CALLCONV void      Perl_pad_free(pTHX_ PADOFFSET po);
924 PERL_CALLCONV void      Perl_pad_reset(pTHX);
925 PERL_CALLCONV void      Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
926 PERL_CALLCONV void      Perl_peep(pTHX_ OP* o);
927 PERL_CALLCONV PerlIO*   Perl_start_glob(pTHX_ SV* pattern, IO *io);
928 #if defined(USE_REENTRANT_API)
929 PERL_CALLCONV void      Perl_reentrant_size(pTHX);
930 PERL_CALLCONV void      Perl_reentrant_init(pTHX);
931 PERL_CALLCONV void      Perl_reentrant_free(pTHX);
932 PERL_CALLCONV void*     Perl_reentrant_retry(const char*, ...);
933 #endif
934 PERL_CALLCONV void      Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
935 PERL_CALLCONV I32       Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv)
936 #ifdef USE_ITHREADS
937                         __attribute__((nonnull(2,4)))
938 #else
939                         __attribute__((nonnull(1,3)))
940 #endif
941 ;
942 PERL_CALLCONV I32       Perl_call_method(pTHX_ const char* methname, I32 flags)
943 #ifdef USE_ITHREADS
944                         __attribute__((nonnull(2)))
945 #else
946                         __attribute__((nonnull(1)))
947 #endif
948 ;
949 PERL_CALLCONV I32       Perl_call_pv(pTHX_ const char* sub_name, I32 flags)
950 #ifdef USE_ITHREADS
951                         __attribute__((nonnull(2)))
952 #else
953                         __attribute__((nonnull(1)))
954 #endif
955 ;
956 PERL_CALLCONV I32       Perl_call_sv(pTHX_ SV* sv, I32 flags);
957 PERL_CALLCONV void      Perl_despatch_signals(pTHX);
958 PERL_CALLCONV SV*       Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error)
959 #ifdef USE_ITHREADS
960                         __attribute__((nonnull(2)))
961 #else
962                         __attribute__((nonnull(1)))
963 #endif
964 ;
965 PERL_CALLCONV I32       Perl_eval_sv(pTHX_ SV* sv, I32 flags)
966 #ifdef USE_ITHREADS
967                         __attribute__((nonnull(2)))
968 #else
969                         __attribute__((nonnull(1)))
970 #endif
971 ;
972 PERL_CALLCONV SV*       Perl_get_sv(pTHX_ const char* name, I32 create)
973 #ifdef USE_ITHREADS
974                         __attribute__((nonnull(2)))
975 #else
976                         __attribute__((nonnull(1)))
977 #endif
978 ;
979 PERL_CALLCONV AV*       Perl_get_av(pTHX_ const char* name, I32 create)
980 #ifdef USE_ITHREADS
981                         __attribute__((nonnull(2)))
982 #else
983                         __attribute__((nonnull(1)))
984 #endif
985 ;
986 PERL_CALLCONV HV*       Perl_get_hv(pTHX_ const char* name, I32 create);
987 PERL_CALLCONV CV*       Perl_get_cv(pTHX_ const char* name, I32 create);
988 PERL_CALLCONV int       Perl_init_i18nl10n(pTHX_ int printwarn);
989 PERL_CALLCONV int       Perl_init_i18nl14n(pTHX_ int printwarn);
990 PERL_CALLCONV void      Perl_new_collate(pTHX_ char* newcoll)
991 #ifdef USE_ITHREADS
992                         __attribute__((nonnull(2)))
993 #else
994                         __attribute__((nonnull(1)))
995 #endif
996 ;
997 PERL_CALLCONV void      Perl_new_ctype(pTHX_ char* newctype)
998 #ifdef USE_ITHREADS
999                         __attribute__((nonnull(2)))
1000 #else
1001                         __attribute__((nonnull(1)))
1002 #endif
1003 ;
1004 PERL_CALLCONV void      Perl_new_numeric(pTHX_ char* newcoll)
1005 #ifdef USE_ITHREADS
1006                         __attribute__((nonnull(2)))
1007 #else
1008                         __attribute__((nonnull(1)))
1009 #endif
1010 ;
1011 PERL_CALLCONV void      Perl_set_numeric_local(pTHX);
1012 PERL_CALLCONV void      Perl_set_numeric_radix(pTHX);
1013 PERL_CALLCONV void      Perl_set_numeric_standard(pTHX);
1014 PERL_CALLCONV void      Perl_require_pv(pTHX_ const char* pv)
1015 #ifdef USE_ITHREADS
1016                         __attribute__((nonnull(2)))
1017 #else
1018                         __attribute__((nonnull(1)))
1019 #endif
1020 ;
1021 PERL_CALLCONV void      Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags);
1022 PERL_CALLCONV void      Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist);
1023 PERL_CALLCONV void      Perl_pidgone(pTHX_ Pid_t pid, int status);
1024 PERL_CALLCONV void      Perl_pmflag(pTHX_ U32* pmfl, int ch)
1025 #ifdef USE_ITHREADS
1026                         __attribute__((nonnull(2)))
1027 #else
1028                         __attribute__((nonnull(1)))
1029 #endif
1030 ;
1031 PERL_CALLCONV OP*       Perl_pmruntime(pTHX_ OP* pm, OP* expr, bool isreg)
1032 #ifdef USE_ITHREADS
1033                         __attribute__((nonnull(2,3)))
1034 #else
1035                         __attribute__((nonnull(1,2)))
1036 #endif
1037 ;
1038 PERL_CALLCONV OP*       Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl)
1039 #ifdef USE_ITHREADS
1040                         __attribute__((nonnull(2,3)))
1041 #else
1042                         __attribute__((nonnull(1,2)))
1043 #endif
1044 ;
1045 PERL_CALLCONV void      Perl_pop_scope(pTHX);
1046 PERL_CALLCONV OP*       Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
1047 PERL_CALLCONV void      Perl_push_scope(pTHX);
1048 PERL_CALLCONV OP*       Perl_ref(pTHX_ OP* o, I32 type);
1049 PERL_CALLCONV OP*       Perl_refkids(pTHX_ OP* o, I32 type);
1050 PERL_CALLCONV void      Perl_regdump(pTHX_ regexp* r)
1051 #ifdef USE_ITHREADS
1052                         __attribute__((nonnull(2)))
1053 #else
1054                         __attribute__((nonnull(1)))
1055 #endif
1056 ;
1057 PERL_CALLCONV SV*       Perl_regclass_swash(pTHX_ struct regnode *n, bool doinit, SV **listsvp, SV **altsvp);
1058 PERL_CALLCONV I32       Perl_pregexec(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave)
1059 #ifdef USE_ITHREADS
1060                         __attribute__((nonnull(2,3,4,5,7)))
1061 #else
1062                         __attribute__((nonnull(1,2,3,4,6)))
1063 #endif
1064 ;
1065 PERL_CALLCONV void      Perl_pregfree(pTHX_ struct regexp* r);
1066 PERL_CALLCONV regexp*   Perl_pregcomp(pTHX_ char* exp, char* xend, PMOP* pm)
1067 #ifdef USE_ITHREADS
1068                         __attribute__((nonnull(2,3,4)))
1069 #else
1070                         __attribute__((nonnull(1,2,3)))
1071 #endif
1072 ;
1073 PERL_CALLCONV char*     Perl_re_intuit_start(pTHX_ regexp* prog, SV* sv, char* strpos, char* strend, U32 flags, struct re_scream_pos_data_s *data);
1074 PERL_CALLCONV SV*       Perl_re_intuit_string(pTHX_ regexp* prog);
1075 PERL_CALLCONV I32       Perl_regexec_flags(pTHX_ regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags);
1076 PERL_CALLCONV regnode*  Perl_regnext(pTHX_ regnode* p);
1077 PERL_CALLCONV void      Perl_regprop(pTHX_ SV* sv, regnode* o);
1078 PERL_CALLCONV void      Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count)
1079 #ifdef USE_ITHREADS
1080                         __attribute__((nonnull(2,3)))
1081 #else
1082                         __attribute__((nonnull(1,2)))
1083 #endif
1084 ;
1085 PERL_CALLCONV char*     Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
1086                         __attribute__((pure));
1087 PERL_CALLCONV Sighandler_t      Perl_rsignal(pTHX_ int i, Sighandler_t t);
1088 PERL_CALLCONV int       Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
1089 PERL_CALLCONV int       Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* t2);
1090 PERL_CALLCONV Sighandler_t      Perl_rsignal_state(pTHX_ int i);
1091 PERL_CALLCONV void      Perl_rxres_free(pTHX_ void** rsp);
1092 PERL_CALLCONV void      Perl_rxres_restore(pTHX_ void** rsp, REGEXP* prx);
1093 PERL_CALLCONV void      Perl_rxres_save(pTHX_ void** rsp, REGEXP* prx);
1094 #if !defined(HAS_RENAME)
1095 PERL_CALLCONV I32       Perl_same_dirent(pTHX_ const char* a, const char* b)
1096 #ifdef USE_ITHREADS
1097                         __attribute__((nonnull(2,3)))
1098 #else
1099                         __attribute__((nonnull(1,2)))
1100 #endif
1101 ;
1102 #endif
1103 PERL_CALLCONV char*     Perl_savepv(pTHX_ const char* pv);
1104 PERL_CALLCONV char*     Perl_savesharedpv(pTHX_ const char* pv);
1105 PERL_CALLCONV char*     Perl_savepvn(pTHX_ const char* pv, I32 len);
1106 PERL_CALLCONV void      Perl_savestack_grow(pTHX);
1107 PERL_CALLCONV void      Perl_savestack_grow_cnt(pTHX_ I32 need);
1108 PERL_CALLCONV void      Perl_save_aelem(pTHX_ const AV* av, I32 idx, SV **sptr);
1109 PERL_CALLCONV I32       Perl_save_alloc(pTHX_ I32 size, I32 pad);
1110 PERL_CALLCONV void      Perl_save_aptr(pTHX_ AV** aptr);
1111 PERL_CALLCONV AV*       Perl_save_ary(pTHX_ GV* gv);
1112 PERL_CALLCONV void      Perl_save_bool(pTHX_ bool* boolp);
1113 PERL_CALLCONV void      Perl_save_clearsv(pTHX_ SV** svp);
1114 PERL_CALLCONV void      Perl_save_delete(pTHX_ HV* hv, char* key, I32 klen);
1115 PERL_CALLCONV void      Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p);
1116 PERL_CALLCONV void      Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
1117 PERL_CALLCONV void      Perl_save_freesv(pTHX_ SV* sv);
1118 PERL_CALLCONV void      Perl_save_freeop(pTHX_ OP* o);
1119 PERL_CALLCONV void      Perl_save_freepv(pTHX_ char* pv);
1120 PERL_CALLCONV void      Perl_save_generic_svref(pTHX_ SV** sptr);
1121 PERL_CALLCONV void      Perl_save_generic_pvref(pTHX_ char** str);
1122 PERL_CALLCONV void      Perl_save_shared_pvref(pTHX_ char** str);
1123 PERL_CALLCONV void      Perl_save_gp(pTHX_ GV* gv, I32 empty);
1124 PERL_CALLCONV HV*       Perl_save_hash(pTHX_ GV* gv);
1125 PERL_CALLCONV void      Perl_save_helem(pTHX_ HV* hv, SV *key, SV **sptr);
1126 PERL_CALLCONV void      Perl_save_hints(pTHX) __attribute__((noreturn));
1127 PERL_CALLCONV void      Perl_save_hptr(pTHX_ HV** hptr);
1128 PERL_CALLCONV void      Perl_save_I16(pTHX_ I16* intp);
1129 PERL_CALLCONV void      Perl_save_I32(pTHX_ I32* intp);
1130 PERL_CALLCONV void      Perl_save_I8(pTHX_ I8* bytep);
1131 PERL_CALLCONV void      Perl_save_int(pTHX_ int* intp);
1132 PERL_CALLCONV void      Perl_save_item(pTHX_ SV* item);
1133 PERL_CALLCONV void      Perl_save_iv(pTHX_ IV* iv);
1134 PERL_CALLCONV void      Perl_save_list(pTHX_ SV** sarg, I32 maxsarg);
1135 PERL_CALLCONV void      Perl_save_long(pTHX_ long* longp);
1136 PERL_CALLCONV void      Perl_save_mortalizesv(pTHX_ SV* sv);
1137 PERL_CALLCONV void      Perl_save_nogv(pTHX_ GV* gv);
1138 PERL_CALLCONV void      Perl_save_op(pTHX);
1139 PERL_CALLCONV SV*       Perl_save_scalar(pTHX_ GV* gv);
1140 PERL_CALLCONV void      Perl_save_pptr(pTHX_ char** pptr);
1141 PERL_CALLCONV void      Perl_save_vptr(pTHX_ void* pptr);
1142 PERL_CALLCONV void      Perl_save_re_context(pTHX);
1143 PERL_CALLCONV void      Perl_save_padsv(pTHX_ PADOFFSET off);
1144 PERL_CALLCONV void      Perl_save_sptr(pTHX_ SV** sptr);
1145 PERL_CALLCONV SV*       Perl_save_svref(pTHX_ SV** sptr);
1146 PERL_CALLCONV SV**      Perl_save_threadsv(pTHX_ PADOFFSET i) __attribute__((noreturn));
1147 PERL_CALLCONV OP*       Perl_sawparens(pTHX_ OP* o);
1148 PERL_CALLCONV OP*       Perl_scalar(pTHX_ OP* o);
1149 PERL_CALLCONV OP*       Perl_scalarkids(pTHX_ OP* o);
1150 PERL_CALLCONV OP*       Perl_scalarseq(pTHX_ OP* o);
1151 PERL_CALLCONV OP*       Perl_scalarvoid(pTHX_ OP* o);
1152 PERL_CALLCONV NV        Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
1153 PERL_CALLCONV NV        Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
1154 PERL_CALLCONV char*     Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp);
1155 PERL_CALLCONV NV        Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
1156 PERL_CALLCONV OP*       Perl_scope(pTHX_ OP* o);
1157 PERL_CALLCONV char*     Perl_screaminstr(pTHX_ SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last);
1158 #if !defined(VMS)
1159 PERL_CALLCONV I32       Perl_setenv_getix(pTHX_ const char* nam);
1160 #endif
1161 PERL_CALLCONV void      Perl_setdefout(pTHX_ GV* gv);
1162 PERL_CALLCONV HEK*      Perl_share_hek(pTHX_ const char* sv, I32 len, U32 hash);
1163 PERL_CALLCONV Signal_t  Perl_sighandler(int sig);
1164 PERL_CALLCONV Signal_t  Perl_csighandler(int sig);
1165 PERL_CALLCONV SV**      Perl_stack_grow(pTHX_ SV** sp, SV**p, int n)
1166 #ifdef USE_ITHREADS
1167                         __attribute__((nonnull(2,3)))
1168 #else
1169                         __attribute__((nonnull(1,2)))
1170 #endif
1171 ;
1172 PERL_CALLCONV I32       Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
1173 PERL_CALLCONV void      Perl_sub_crush_depth(pTHX_ CV* cv);
1174 PERL_CALLCONV bool      Perl_sv_2bool(pTHX_ SV* sv)
1175 #ifdef USE_ITHREADS
1176                         __attribute__((nonnull(2)))
1177 #else
1178                         __attribute__((nonnull(1)))
1179 #endif
1180 ;
1181 PERL_CALLCONV CV*       Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref);
1182 PERL_CALLCONV IO*       Perl_sv_2io(pTHX_ SV* sv);
1183 /* PERL_CALLCONV IV     sv_2iv(pTHX_ SV* sv); */
1184 PERL_CALLCONV IV        Perl_sv_2iv_flags(pTHX_ SV* sv, I32 flags);
1185 PERL_CALLCONV SV*       Perl_sv_2mortal(pTHX_ SV* sv);
1186 PERL_CALLCONV NV        Perl_sv_2nv(pTHX_ SV* sv);
1187 /* PERL_CALLCONV char*  sv_2pv(pTHX_ SV* sv, STRLEN* lp)
1188 #ifdef USE_ITHREADS
1189                         __attribute__((nonnull(3)))
1190 #else
1191                         __attribute__((nonnull(2)))
1192 #endif
1193 ; */
1194 PERL_CALLCONV char*     Perl_sv_2pv_flags(pTHX_ SV* sv, STRLEN* lp, I32 flags)
1195 #ifdef USE_ITHREADS
1196                         __attribute__((nonnull(3)))
1197 #else
1198                         __attribute__((nonnull(2)))
1199 #endif
1200 ;
1201 PERL_CALLCONV char*     Perl_sv_2pvutf8(pTHX_ SV* sv, STRLEN* lp)
1202 #ifdef USE_ITHREADS
1203                         __attribute__((nonnull(3)))
1204 #else
1205                         __attribute__((nonnull(2)))
1206 #endif
1207 ;
1208 PERL_CALLCONV char*     Perl_sv_2pvbyte(pTHX_ SV* sv, STRLEN* lp)
1209 #ifdef USE_ITHREADS
1210                         __attribute__((nonnull(3)))
1211 #else
1212                         __attribute__((nonnull(2)))
1213 #endif
1214 ;
1215 PERL_CALLCONV char*     Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp)
1216 #ifdef USE_ITHREADS
1217                         __attribute__((nonnull(2,3)))
1218 #else
1219                         __attribute__((nonnull(1,2)))
1220 #endif
1221 ;
1222 /* PERL_CALLCONV UV     sv_2uv(pTHX_ SV* sv)
1223 #ifdef USE_ITHREADS
1224                         __attribute__((nonnull(2)))
1225 #else
1226                         __attribute__((nonnull(1)))
1227 #endif
1228 ; */
1229 PERL_CALLCONV UV        Perl_sv_2uv_flags(pTHX_ SV* sv, I32 flags)
1230 #ifdef USE_ITHREADS
1231                         __attribute__((nonnull(2)))
1232 #else
1233                         __attribute__((nonnull(1)))
1234 #endif
1235 ;
1236 PERL_CALLCONV IV        Perl_sv_iv(pTHX_ SV* sv)
1237 #ifdef USE_ITHREADS
1238                         __attribute__((nonnull(2)))
1239 #else
1240                         __attribute__((nonnull(1)))
1241 #endif
1242 ;
1243 PERL_CALLCONV UV        Perl_sv_uv(pTHX_ SV* sv)
1244 #ifdef USE_ITHREADS
1245                         __attribute__((nonnull(2)))
1246 #else
1247                         __attribute__((nonnull(1)))
1248 #endif
1249 ;
1250 PERL_CALLCONV NV        Perl_sv_nv(pTHX_ SV* sv)
1251 #ifdef USE_ITHREADS
1252                         __attribute__((nonnull(2)))
1253 #else
1254                         __attribute__((nonnull(1)))
1255 #endif
1256 ;
1257 PERL_CALLCONV char*     Perl_sv_pvn(pTHX_ SV *sv, STRLEN *len)
1258 #ifdef USE_ITHREADS
1259                         __attribute__((nonnull(2,3)))
1260 #else
1261                         __attribute__((nonnull(1,2)))
1262 #endif
1263 ;
1264 PERL_CALLCONV char*     Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *len)
1265 #ifdef USE_ITHREADS
1266                         __attribute__((nonnull(2,3)))
1267 #else
1268                         __attribute__((nonnull(1,2)))
1269 #endif
1270 ;
1271 PERL_CALLCONV char*     Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *len)
1272 #ifdef USE_ITHREADS
1273                         __attribute__((nonnull(2,3)))
1274 #else
1275                         __attribute__((nonnull(1,2)))
1276 #endif
1277 ;
1278 PERL_CALLCONV I32       Perl_sv_true(pTHX_ SV *sv);
1279 PERL_CALLCONV void      Perl_sv_add_arena(pTHX_ char* ptr, U32 size, U32 flags);
1280 PERL_CALLCONV int       Perl_sv_backoff(pTHX_ SV* sv);
1281 PERL_CALLCONV SV*       Perl_sv_bless(pTHX_ SV* sv, HV* stash);
1282 PERL_CALLCONV void      Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...)
1283                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
1284 PERL_CALLCONV void      Perl_sv_vcatpvf(pTHX_ SV* sv, const char* pat, va_list* args);
1285 PERL_CALLCONV void      Perl_sv_catpv(pTHX_ SV* sv, const char* ptr);
1286 /* PERL_CALLCONV void   sv_catpvn(pTHX_ SV* sv, const char* ptr, STRLEN len); */
1287 /* PERL_CALLCONV void   sv_catsv(pTHX_ SV* dsv, SV* ssv); */
1288 PERL_CALLCONV void      Perl_sv_chop(pTHX_ SV* sv, char* ptr);
1289 PERL_CALLCONV I32       Perl_sv_clean_all(pTHX);
1290 PERL_CALLCONV void      Perl_sv_clean_objs(pTHX);
1291 PERL_CALLCONV void      Perl_sv_clear(pTHX_ SV* sv);
1292 PERL_CALLCONV I32       Perl_sv_cmp(pTHX_ SV* sv1, SV* sv2);
1293 PERL_CALLCONV I32       Perl_sv_cmp_locale(pTHX_ SV* sv1, SV* sv2);
1294 #if defined(USE_LOCALE_COLLATE)
1295 PERL_CALLCONV char*     Perl_sv_collxfrm(pTHX_ SV* sv, STRLEN* nxp);
1296 #endif
1297 PERL_CALLCONV OP*       Perl_sv_compile_2op(pTHX_ SV* sv, OP** startp, const char* code, PAD** padp)
1298 #ifdef USE_ITHREADS
1299                         __attribute__((nonnull(2,3,4,5)))
1300 #else
1301                         __attribute__((nonnull(1,2,3,4)))
1302 #endif
1303 ;
1304 PERL_CALLCONV int       Perl_getcwd_sv(pTHX_ SV* sv)
1305 #ifdef USE_ITHREADS
1306                         __attribute__((nonnull(2)))
1307 #else
1308                         __attribute__((nonnull(1)))
1309 #endif
1310 ;
1311 PERL_CALLCONV void      Perl_sv_dec(pTHX_ SV* sv);
1312 PERL_CALLCONV void      Perl_sv_dump(pTHX_ SV* sv);
1313 PERL_CALLCONV bool      Perl_sv_derived_from(pTHX_ SV* sv, const char* name)
1314 #ifdef USE_ITHREADS
1315                         __attribute__((nonnull(2,3)))
1316 #else
1317                         __attribute__((nonnull(1,2)))
1318 #endif
1319 ;
1320 PERL_CALLCONV I32       Perl_sv_eq(pTHX_ SV* sv1, SV* sv2)
1321 #ifdef USE_ITHREADS
1322                         __attribute__((nonnull(2,3)))
1323 #else
1324                         __attribute__((nonnull(1,2)))
1325 #endif
1326 ;
1327 PERL_CALLCONV void      Perl_sv_free(pTHX_ SV* sv);
1328 PERL_CALLCONV void      Perl_sv_free2(pTHX_ SV* sv)
1329 #ifdef USE_ITHREADS
1330                         __attribute__((nonnull(2)))
1331 #else
1332                         __attribute__((nonnull(1)))
1333 #endif
1334 ;
1335 PERL_CALLCONV void      Perl_sv_free_arenas(pTHX);
1336 PERL_CALLCONV char*     Perl_sv_gets(pTHX_ SV* sv, PerlIO* fp, I32 append)
1337 #ifdef USE_ITHREADS
1338                         __attribute__((nonnull(2,3)))
1339 #else
1340                         __attribute__((nonnull(1,2)))
1341 #endif
1342 ;
1343 PERL_CALLCONV char*     Perl_sv_grow(pTHX_ SV* sv, STRLEN newlen)
1344 #ifdef USE_ITHREADS
1345                         __attribute__((nonnull(2)))
1346 #else
1347                         __attribute__((nonnull(1)))
1348 #endif
1349 ;
1350 PERL_CALLCONV void      Perl_sv_inc(pTHX_ SV* sv);
1351 PERL_CALLCONV void      Perl_sv_insert(pTHX_ SV* bigsv, STRLEN offset, STRLEN len, const char* little, STRLEN littlelen)
1352 #ifdef USE_ITHREADS
1353                         __attribute__((nonnull(2,5)))
1354 #else
1355                         __attribute__((nonnull(1,4)))
1356 #endif
1357 ;
1358 PERL_CALLCONV int       Perl_sv_isa(pTHX_ SV* sv, const char* name);
1359 PERL_CALLCONV int       Perl_sv_isobject(pTHX_ SV* sv);
1360 PERL_CALLCONV STRLEN    Perl_sv_len(pTHX_ SV* sv);
1361 PERL_CALLCONV STRLEN    Perl_sv_len_utf8(pTHX_ SV* sv);
1362 PERL_CALLCONV void      Perl_sv_magic(pTHX_ SV* sv, SV* obj, int how, const char* name, I32 namlen);
1363 PERL_CALLCONV MAGIC *   Perl_sv_magicext(pTHX_ SV* sv, SV* obj, int how, const MGVTBL *vtbl, const char* name, I32 namlen);
1364 PERL_CALLCONV SV*       Perl_sv_mortalcopy(pTHX_ SV* oldsv)
1365 #ifdef USE_ITHREADS
1366                         __attribute__((nonnull(2)))
1367 #else
1368                         __attribute__((nonnull(1)))
1369 #endif
1370 ;
1371 PERL_CALLCONV SV*       Perl_sv_newmortal(pTHX);
1372 PERL_CALLCONV SV*       Perl_sv_newref(pTHX_ SV* sv);
1373 PERL_CALLCONV char*     Perl_sv_peek(pTHX_ SV* sv);
1374 PERL_CALLCONV void      Perl_sv_pos_u2b(pTHX_ SV* sv, I32* offsetp, I32* lenp);
1375 PERL_CALLCONV void      Perl_sv_pos_b2u(pTHX_ SV* sv, I32* offsetp);
1376 /* PERL_CALLCONV char*  sv_pvn_force(pTHX_ SV* sv, STRLEN* lp); */
1377 PERL_CALLCONV char*     Perl_sv_pvutf8n_force(pTHX_ SV* sv, STRLEN* lp);
1378 PERL_CALLCONV char*     Perl_sv_pvbyten_force(pTHX_ SV* sv, STRLEN* lp);
1379 PERL_CALLCONV char*     Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding);
1380 PERL_CALLCONV bool      Perl_sv_cat_decode(pTHX_ SV* dsv, SV *encoding, SV *ssv, int *offset, char* tstr, int tlen);
1381 PERL_CALLCONV char*     Perl_sv_reftype(pTHX_ const SV* sv, int ob);
1382 PERL_CALLCONV void      Perl_sv_replace(pTHX_ SV* sv, SV* nsv);
1383 PERL_CALLCONV void      Perl_sv_report_used(pTHX);
1384 PERL_CALLCONV void      Perl_sv_reset(pTHX_ const char* s, HV* stash);
1385 PERL_CALLCONV void      Perl_sv_setpvf(pTHX_ SV* sv, const char* pat, ...)
1386                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
1387 PERL_CALLCONV void      Perl_sv_vsetpvf(pTHX_ SV* sv, const char* pat, va_list* args);
1388 PERL_CALLCONV void      Perl_sv_setiv(pTHX_ SV* sv, IV num);
1389 PERL_CALLCONV void      Perl_sv_setpviv(pTHX_ SV* sv, IV num);
1390 PERL_CALLCONV void      Perl_sv_setuv(pTHX_ SV* sv, UV num);
1391 PERL_CALLCONV void      Perl_sv_setnv(pTHX_ SV* sv, NV num);
1392 PERL_CALLCONV SV*       Perl_sv_setref_iv(pTHX_ SV* rv, const char* classname, IV iv);
1393 PERL_CALLCONV SV*       Perl_sv_setref_uv(pTHX_ SV* rv, const char* classname, UV uv);
1394 PERL_CALLCONV SV*       Perl_sv_setref_nv(pTHX_ SV* rv, const char* classname, NV nv);
1395 PERL_CALLCONV SV*       Perl_sv_setref_pv(pTHX_ SV* rv, const char* classname, void* pv);
1396 PERL_CALLCONV SV*       Perl_sv_setref_pvn(pTHX_ SV* rv, const char* classname, char* pv, STRLEN n);
1397 PERL_CALLCONV void      Perl_sv_setpv(pTHX_ SV* sv, const char* ptr);
1398 PERL_CALLCONV void      Perl_sv_setpvn(pTHX_ SV* sv, const char* ptr, STRLEN len)
1399 #ifdef USE_ITHREADS
1400                         __attribute__((nonnull(2)))
1401 #else
1402                         __attribute__((nonnull(1)))
1403 #endif
1404 ;
1405 /* PERL_CALLCONV void   sv_setsv(pTHX_ SV* dsv, SV* ssv); */
1406 PERL_CALLCONV void      Perl_sv_taint(pTHX_ SV* sv);
1407 PERL_CALLCONV bool      Perl_sv_tainted(pTHX_ SV* sv);
1408 PERL_CALLCONV int       Perl_sv_unmagic(pTHX_ SV* sv, int type);
1409 PERL_CALLCONV void      Perl_sv_unref(pTHX_ SV* sv);
1410 PERL_CALLCONV void      Perl_sv_unref_flags(pTHX_ SV* sv, U32 flags);
1411 PERL_CALLCONV void      Perl_sv_untaint(pTHX_ SV* sv);
1412 PERL_CALLCONV bool      Perl_sv_upgrade(pTHX_ SV* sv, U32 mt);
1413 PERL_CALLCONV void      Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len);
1414 PERL_CALLCONV void      Perl_sv_vcatpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted);
1415 PERL_CALLCONV void      Perl_sv_vsetpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted);
1416 PERL_CALLCONV NV        Perl_str_to_version(pTHX_ SV *sv);
1417 PERL_CALLCONV SV*       Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* listsv, I32 minbits, I32 none);
1418 PERL_CALLCONV UV        Perl_swash_fetch(pTHX_ SV *sv, const U8 *ptr, bool do_utf8);
1419 PERL_CALLCONV void      Perl_taint_env(pTHX);
1420 PERL_CALLCONV void      Perl_taint_proper(pTHX_ const char* f, const char* s);
1421 PERL_CALLCONV UV        Perl_to_utf8_case(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, SV **swash, const char *normal, const char *special);
1422 PERL_CALLCONV UV        Perl_to_utf8_lower(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
1423 PERL_CALLCONV UV        Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
1424 PERL_CALLCONV UV        Perl_to_utf8_title(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
1425 PERL_CALLCONV UV        Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
1426 #if defined(UNLINK_ALL_VERSIONS)
1427 PERL_CALLCONV I32       Perl_unlnk(pTHX_ char* f);
1428 #endif
1429 PERL_CALLCONV I32       Perl_unpack_str(pTHX_ const char *pat, const char *patend, const char *s, const char *strbeg, const char *strend, char **new_s, I32 ocnt, U32 flags);
1430 PERL_CALLCONV I32       Perl_unpackstring(pTHX_ const char *pat, const char *patend, const char *s, const char *strend, U32 flags);
1431 PERL_CALLCONV void      Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
1432 PERL_CALLCONV void      Perl_unshare_hek(pTHX_ HEK* hek);
1433 PERL_CALLCONV void      Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg);
1434 PERL_CALLCONV U8*       Perl_utf16_to_utf8(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
1435 PERL_CALLCONV U8*       Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
1436 PERL_CALLCONV STRLEN    Perl_utf8_length(pTHX_ const U8* s, const U8 *e)
1437                         __attribute__((pure))
1438 #ifdef USE_ITHREADS
1439                         __attribute__((nonnull(2,3)))
1440 #else
1441                         __attribute__((nonnull(1,2)))
1442 #endif
1443 ;
1444 PERL_CALLCONV IV        Perl_utf8_distance(pTHX_ const U8 *a, const U8 *b)
1445                         __attribute__((pure))
1446 #ifdef USE_ITHREADS
1447                         __attribute__((nonnull(2,3)))
1448 #else
1449                         __attribute__((nonnull(1,2)))
1450 #endif
1451 ;
1452 PERL_CALLCONV U8*       Perl_utf8_hop(pTHX_ const U8 *s, I32 off)
1453                         __attribute__((pure))
1454 #ifdef USE_ITHREADS
1455                         __attribute__((nonnull(2)))
1456 #else
1457                         __attribute__((nonnull(1)))
1458 #endif
1459 ;
1460 PERL_CALLCONV U8*       Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *len)
1461 #ifdef USE_ITHREADS
1462                         __attribute__((nonnull(2,3)))
1463 #else
1464                         __attribute__((nonnull(1,2)))
1465 #endif
1466 ;
1467 PERL_CALLCONV U8*       Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *len, bool *is_utf8);
1468 PERL_CALLCONV U8*       Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *len);
1469 PERL_CALLCONV UV        Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN* retlen);
1470 PERL_CALLCONV UV        Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN* retlen);
1471 PERL_CALLCONV UV        Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN* retlen, U32 flags);
1472 PERL_CALLCONV UV        Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN* retlen, U32 flags);
1473 PERL_CALLCONV U8*       Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv)
1474 #ifdef USE_ITHREADS
1475                         __attribute__((nonnull(2)))
1476 #else
1477                         __attribute__((nonnull(1)))
1478 #endif
1479 ;
1480 PERL_CALLCONV U8*       Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
1481 #ifdef USE_ITHREADS
1482                         __attribute__((nonnull(2)))
1483 #else
1484                         __attribute__((nonnull(1)))
1485 #endif
1486 ;
1487 PERL_CALLCONV U8*       Perl_uvchr_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
1488 #ifdef USE_ITHREADS
1489                         __attribute__((nonnull(2)))
1490 #else
1491                         __attribute__((nonnull(1)))
1492 #endif
1493 ;
1494 PERL_CALLCONV U8*       Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
1495 #ifdef USE_ITHREADS
1496                         __attribute__((nonnull(2)))
1497 #else
1498                         __attribute__((nonnull(1)))
1499 #endif
1500 ;
1501 PERL_CALLCONV char*     Perl_pv_uni_display(pTHX_ SV *dsv, const U8 *spv, STRLEN len, STRLEN pvlim, UV flags);
1502 PERL_CALLCONV char*     Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim, UV flags);
1503 PERL_CALLCONV void      Perl_vivify_defelem(pTHX_ SV* sv);
1504 PERL_CALLCONV void      Perl_vivify_ref(pTHX_ SV* sv, U32 to_what);
1505 PERL_CALLCONV I32       Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags);
1506 PERL_CALLCONV U32       Perl_parse_unicode_opts(pTHX_ const char **popt);
1507 PERL_CALLCONV U32       Perl_seed(pTHX);
1508 PERL_CALLCONV UV        Perl_get_hash_seed(pTHX);
1509 PERL_CALLCONV void      Perl_report_evil_fh(pTHX_ const GV *gv, const IO *io, I32 op);
1510 PERL_CALLCONV void      Perl_report_uninit(pTHX_ SV* uninit_sv);
1511 PERL_CALLCONV void      Perl_warn(pTHX_ const char* pat, ...)
1512                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
1513 PERL_CALLCONV void      Perl_vwarn(pTHX_ const char* pat, va_list* args);
1514 PERL_CALLCONV void      Perl_warner(pTHX_ U32 err, const char* pat, ...)
1515                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
1516 PERL_CALLCONV void      Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args);
1517 PERL_CALLCONV void      Perl_watch(pTHX_ char** addr);
1518 PERL_CALLCONV I32       Perl_whichsig(pTHX_ const char* sig);
1519 PERL_CALLCONV void      Perl_write_to_stderr(pTHX_ const char* message, int msglen);
1520 PERL_CALLCONV int       Perl_yyerror(pTHX_ const char* s);
1521 PERL_CALLCONV int       Perl_yylex(pTHX);
1522 PERL_CALLCONV int       Perl_yyparse(pTHX);
1523 PERL_CALLCONV int       Perl_yywarn(pTHX_ const char* s);
1524 #if defined(MYMALLOC)
1525 PERL_CALLCONV void      Perl_dump_mstats(pTHX_ char* s);
1526 PERL_CALLCONV int       Perl_get_mstats(pTHX_ perl_mstats_t *buf, int buflen, int level);
1527 #endif
1528 PERL_CALLCONV Malloc_t  Perl_safesysmalloc(MEM_SIZE nbytes)
1529                         __attribute__((malloc)) __attribute__((warn_unused_result));
1530 PERL_CALLCONV Malloc_t  Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size)
1531                         __attribute__((malloc)) __attribute__((warn_unused_result));
1532 PERL_CALLCONV Malloc_t  Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes)
1533                         __attribute__((malloc)) __attribute__((warn_unused_result));
1534 PERL_CALLCONV Free_t    Perl_safesysfree(Malloc_t where);
1535 #if defined(PERL_GLOBAL_STRUCT)
1536 PERL_CALLCONV struct perl_vars *        Perl_GetVars(pTHX);
1537 PERL_CALLCONV struct perl_vars* Perl_init_global_struct(pTHX);
1538 PERL_CALLCONV void      Perl_free_global_struct(pTHX_ struct perl_vars*);
1539 #endif
1540 PERL_CALLCONV int       Perl_runops_standard(pTHX);
1541 PERL_CALLCONV int       Perl_runops_debug(pTHX);
1542 PERL_CALLCONV void      Perl_sv_catpvf_mg(pTHX_ SV *sv, const char* pat, ...)
1543                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
1544 PERL_CALLCONV void      Perl_sv_vcatpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args);
1545 PERL_CALLCONV void      Perl_sv_catpv_mg(pTHX_ SV *sv, const char *ptr);
1546 PERL_CALLCONV void      Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len);
1547 PERL_CALLCONV void      Perl_sv_catsv_mg(pTHX_ SV *dstr, SV *sstr);
1548 PERL_CALLCONV void      Perl_sv_setpvf_mg(pTHX_ SV *sv, const char* pat, ...)
1549                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
1550 PERL_CALLCONV void      Perl_sv_vsetpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args);
1551 PERL_CALLCONV void      Perl_sv_setiv_mg(pTHX_ SV *sv, IV i);
1552 PERL_CALLCONV void      Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv);
1553 PERL_CALLCONV void      Perl_sv_setuv_mg(pTHX_ SV *sv, UV u);
1554 PERL_CALLCONV void      Perl_sv_setnv_mg(pTHX_ SV *sv, NV num);
1555 PERL_CALLCONV void      Perl_sv_setpv_mg(pTHX_ SV *sv, const char *ptr);
1556 PERL_CALLCONV void      Perl_sv_setpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len);
1557 PERL_CALLCONV void      Perl_sv_setsv_mg(pTHX_ SV *dstr, SV *sstr);
1558 PERL_CALLCONV void      Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len);
1559 PERL_CALLCONV MGVTBL*   Perl_get_vtbl(pTHX_ int vtbl_id);
1560 PERL_CALLCONV char*     Perl_pv_display(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim);
1561 PERL_CALLCONV void      Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
1562                         __attribute__format__(__printf__,pTHX_3,pTHX_4);
1563 PERL_CALLCONV void      Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args);
1564 PERL_CALLCONV void      Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv);
1565 PERL_CALLCONV void      Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv);
1566 PERL_CALLCONV void      Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, const char *name, HV *sv);
1567 PERL_CALLCONV void      Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
1568 PERL_CALLCONV void      Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, const OP *o);
1569 PERL_CALLCONV void      Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, const PMOP *pm);
1570 PERL_CALLCONV void      Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
1571 PERL_CALLCONV void      Perl_magic_dump(pTHX_ const MAGIC *mg);
1572 PERL_CALLCONV void      Perl_reginitcolors(pTHX);
1573 PERL_CALLCONV char*     Perl_sv_2pv_nolen(pTHX_ SV* sv);
1574 PERL_CALLCONV char*     Perl_sv_2pvutf8_nolen(pTHX_ SV* sv);
1575 PERL_CALLCONV char*     Perl_sv_2pvbyte_nolen(pTHX_ SV* sv);
1576 /* PERL_CALLCONV char*  sv_pv(pTHX_ SV *sv); */
1577 /* PERL_CALLCONV char*  sv_pvutf8(pTHX_ SV *sv); */
1578 /* PERL_CALLCONV char*  sv_pvbyte(pTHX_ SV *sv); */
1579 /* PERL_CALLCONV STRLEN sv_utf8_upgrade(pTHX_ SV *sv); */
1580 PERL_CALLCONV bool      Perl_sv_utf8_downgrade(pTHX_ SV *sv, bool fail_ok);
1581 PERL_CALLCONV void      Perl_sv_utf8_encode(pTHX_ SV *sv);
1582 PERL_CALLCONV bool      Perl_sv_utf8_decode(pTHX_ SV *sv);
1583 PERL_CALLCONV void      Perl_sv_force_normal(pTHX_ SV *sv);
1584 PERL_CALLCONV void      Perl_sv_force_normal_flags(pTHX_ SV *sv, U32 flags);
1585 PERL_CALLCONV void      Perl_tmps_grow(pTHX_ I32 n);
1586 PERL_CALLCONV SV*       Perl_sv_rvweaken(pTHX_ SV *sv);
1587 PERL_CALLCONV int       Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg);
1588 PERL_CALLCONV OP*       Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block);
1589 PERL_CALLCONV CV*       Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block);
1590 PERL_CALLCONV void      Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block) __attribute__((noreturn));
1591 PERL_CALLCONV OP *      Perl_my_attrs(pTHX_ OP *o, OP *attrs)
1592 #ifdef USE_ITHREADS
1593                         __attribute__((nonnull(2)))
1594 #else
1595                         __attribute__((nonnull(1)))
1596 #endif
1597 ;
1598 PERL_CALLCONV void      Perl_boot_core_xsutils(pTHX);
1599 #if defined(USE_ITHREADS)
1600 PERL_CALLCONV PERL_CONTEXT*     Perl_cx_dup(pTHX_ PERL_CONTEXT* cx, I32 ix, I32 max, CLONE_PARAMS* param);
1601 PERL_CALLCONV PERL_SI*  Perl_si_dup(pTHX_ PERL_SI* si, CLONE_PARAMS* param);
1602 PERL_CALLCONV ANY*      Perl_ss_dup(pTHX_ PerlInterpreter* proto_perl, CLONE_PARAMS* param);
1603 PERL_CALLCONV void*     Perl_any_dup(pTHX_ void* v, PerlInterpreter* proto_perl);
1604 PERL_CALLCONV HE*       Perl_he_dup(pTHX_ HE* e, bool shared, CLONE_PARAMS* param);
1605 PERL_CALLCONV REGEXP*   Perl_re_dup(pTHX_ REGEXP* r, CLONE_PARAMS* param);
1606 PERL_CALLCONV PerlIO*   Perl_fp_dup(pTHX_ PerlIO* fp, char type, CLONE_PARAMS* param);
1607 PERL_CALLCONV DIR*      Perl_dirp_dup(pTHX_ DIR* dp);
1608 PERL_CALLCONV GP*       Perl_gp_dup(pTHX_ GP* gp, CLONE_PARAMS* param);
1609 PERL_CALLCONV MAGIC*    Perl_mg_dup(pTHX_ MAGIC* mg, CLONE_PARAMS* param);
1610 PERL_CALLCONV SV*       Perl_sv_dup(pTHX_ SV* sstr, CLONE_PARAMS* param);
1611 PERL_CALLCONV void      Perl_rvpv_dup(pTHX_ SV* dstr, SV *sstr, CLONE_PARAMS* param);
1612 #if defined(HAVE_INTERP_INTERN)
1613 PERL_CALLCONV void      Perl_sys_intern_dup(pTHX_ struct interp_intern* src, struct interp_intern* dst);
1614 #endif
1615 PERL_CALLCONV PTR_TBL_t*        Perl_ptr_table_new(pTHX);
1616 PERL_CALLCONV void*     Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *tbl, void *sv)
1617 #ifdef USE_ITHREADS
1618                         __attribute__((nonnull(2,3)))
1619 #else
1620                         __attribute__((nonnull(1,2)))
1621 #endif
1622 ;
1623 PERL_CALLCONV void      Perl_ptr_table_store(pTHX_ PTR_TBL_t *tbl, void *oldsv, void *newsv)
1624 #ifdef USE_ITHREADS
1625                         __attribute__((nonnull(2)))
1626 #else
1627                         __attribute__((nonnull(1)))
1628 #endif
1629 ;
1630 PERL_CALLCONV void      Perl_ptr_table_split(pTHX_ PTR_TBL_t *tbl)
1631 #ifdef USE_ITHREADS
1632                         __attribute__((nonnull(2)))
1633 #else
1634                         __attribute__((nonnull(1)))
1635 #endif
1636 ;
1637 PERL_CALLCONV void      Perl_ptr_table_clear(pTHX_ PTR_TBL_t *tbl);
1638 PERL_CALLCONV void      Perl_ptr_table_free(pTHX_ PTR_TBL_t *tbl);
1639 #endif
1640 #if defined(HAVE_INTERP_INTERN)
1641 PERL_CALLCONV void      Perl_sys_intern_clear(pTHX);
1642 PERL_CALLCONV void      Perl_sys_intern_init(pTHX);
1643 #endif
1644
1645 PERL_CALLCONV char *    Perl_custom_op_name(pTHX_ const OP* op)
1646 #ifdef USE_ITHREADS
1647                         __attribute__((nonnull(2)))
1648 #else
1649                         __attribute__((nonnull(1)))
1650 #endif
1651 ;
1652 PERL_CALLCONV char *    Perl_custom_op_desc(pTHX_ const OP* op)
1653 #ifdef USE_ITHREADS
1654                         __attribute__((nonnull(2)))
1655 #else
1656                         __attribute__((nonnull(1)))
1657 #endif
1658 ;
1659
1660 #if defined(PERL_COPY_ON_WRITE)
1661 PERL_CALLCONV int       Perl_sv_release_IVX(pTHX_ SV *sv);
1662 #endif
1663
1664 PERL_CALLCONV void      Perl_sv_nosharing(pTHX_ SV *);
1665 PERL_CALLCONV void      Perl_sv_nolocking(pTHX_ SV *);
1666 PERL_CALLCONV void      Perl_sv_nounlocking(pTHX_ SV *);
1667 PERL_CALLCONV int       Perl_nothreadhook(pTHX);
1668
1669 END_EXTERN_C
1670
1671 #if defined(PERL_IN_DOOP_C) || defined(PERL_DECL_PROT)
1672 STATIC I32      S_do_trans_simple(pTHX_ SV *sv);
1673 STATIC I32      S_do_trans_count(pTHX_ SV *sv);
1674 STATIC I32      S_do_trans_complex(pTHX_ SV *sv);
1675 STATIC I32      S_do_trans_simple_utf8(pTHX_ SV *sv);
1676 STATIC I32      S_do_trans_count_utf8(pTHX_ SV *sv);
1677 STATIC I32      S_do_trans_complex_utf8(pTHX_ SV *sv);
1678 #endif
1679
1680 #if defined(PERL_IN_GV_C) || defined(PERL_DECL_PROT)
1681 STATIC void     S_gv_init_sv(pTHX_ GV *gv, I32 sv_type);
1682 STATIC void     S_require_errno(pTHX_ GV *gv);
1683 #endif
1684
1685 #if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT)
1686 STATIC void     S_hsplit(pTHX_ HV *hv);
1687 STATIC void     S_hfreeentries(pTHX_ HV *hv);
1688 STATIC void     S_more_he(pTHX);
1689 STATIC HE*      S_new_he(pTHX);
1690 STATIC void     S_del_he(pTHX_ HE *p);
1691 STATIC HEK*     S_save_hek_flags(pTHX_ const char *str, I32 len, U32 hash, int flags);
1692 STATIC void     S_hv_magic_check(pTHX_ HV *hv, bool *needs_copy, bool *needs_store);
1693 STATIC void     S_unshare_hek_or_pvn(pTHX_ HEK* hek, const char* sv, I32 len, U32 hash);
1694 STATIC HEK*     S_share_hek_flags(pTHX_ const char* sv, I32 len, U32 hash, int flags);
1695 STATIC void     S_hv_notallowed(pTHX_ int flags, const char *key, I32 klen, const char *msg) __attribute__((noreturn));
1696 #endif
1697
1698 #if defined(PERL_IN_MG_C) || defined(PERL_DECL_PROT)
1699 STATIC void     S_save_magic(pTHX_ I32 mgs_ix, SV *sv);
1700 STATIC int      S_magic_methpack(pTHX_ SV *sv, const MAGIC *mg, const char *meth);
1701 STATIC int      S_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, const char *meth, I32 f, int n, SV *val);
1702 #endif
1703
1704 #if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
1705 STATIC I32      S_list_assignment(pTHX_ const OP *o);
1706 STATIC void     S_bad_type(pTHX_ I32 n, const char *t, const char *name, const OP *kid);
1707 STATIC void     S_cop_free(pTHX_ COP *cop);
1708 STATIC OP*      S_modkids(pTHX_ OP *o, I32 type);
1709 STATIC void     S_no_bareword_allowed(pTHX_ const OP *o);
1710 STATIC OP*      S_no_fh_allowed(pTHX_ OP *o);
1711 STATIC OP*      S_scalarboolean(pTHX_ OP *o);
1712 STATIC OP*      S_too_few_arguments(pTHX_ OP *o, const char* name);
1713 STATIC OP*      S_too_many_arguments(pTHX_ OP *o, const char* name);
1714 STATIC OP*      S_newDEFSVOP(pTHX);
1715 STATIC OP*      S_new_logop(pTHX_ I32 type, I32 flags, OP **firstp, OP **otherp);
1716 STATIC void     S_simplify_sort(pTHX_ OP *o);
1717 STATIC bool     S_is_handle_constructor(pTHX_ const OP *o, I32 argnum);
1718 STATIC char*    S_gv_ename(pTHX_ GV *gv);
1719 STATIC bool     S_scalar_mod_type(pTHX_ const OP *o, I32 type);
1720 STATIC OP *     S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp);
1721 STATIC OP *     S_dup_attrlist(pTHX_ OP *o);
1722 STATIC void     S_apply_attrs(pTHX_ HV *stash, SV *target, OP *attrs, bool for_my);
1723 STATIC void     S_apply_attrs_my(pTHX_ HV *stash, OP *target, OP *attrs, OP **imopsp);
1724 #endif
1725 #if defined(PL_OP_SLAB_ALLOC)
1726 PERL_CALLCONV void*     Perl_Slab_Alloc(pTHX_ int m, size_t sz);
1727 PERL_CALLCONV void      Perl_Slab_Free(pTHX_ void *op);
1728 #endif
1729
1730 #if defined(PERL_IN_PERL_C) || defined(PERL_DECL_PROT)
1731 STATIC void     S_find_beginning(pTHX);
1732 STATIC void     S_forbid_setid(pTHX_ const char * s);
1733 STATIC void     S_incpush(pTHX_ const char *dir, bool addsubdirs, bool addoldvers, bool usesep, bool canrelocate);
1734 STATIC void     S_init_interp(pTHX);
1735 STATIC void     S_init_ids(pTHX);
1736 STATIC void     S_init_lexer(pTHX);
1737 STATIC void     S_init_main_stash(pTHX);
1738 STATIC void     S_init_perllib(pTHX);
1739 STATIC void     S_init_postdump_symbols(pTHX_ int, char **, char **);
1740 STATIC void     S_init_predump_symbols(pTHX);
1741 STATIC void     S_my_exit_jump(pTHX) __attribute__((noreturn));
1742 STATIC void     S_nuke_stacks(pTHX);
1743 STATIC void     S_open_script(pTHX_ const char *scriptname, bool dosearch, SV *sv);
1744 STATIC void     S_usage(pTHX_ const char *name);
1745 STATIC void     S_validate_suid(pTHX_ const char *validarg, const char *scriptname);
1746 #  if defined(IAMSUID)
1747 STATIC int      S_fd_on_nosuid_fs(pTHX_ int fd);
1748 #  endif
1749 STATIC void*    S_parse_body(pTHX_ char **env, XSINIT_t xsinit);
1750 STATIC void     S_run_body(pTHX_ I32 oldscope) __attribute__((noreturn));
1751 STATIC void     S_call_body(pTHX_ const OP *myop, bool is_eval);
1752 STATIC void*    S_call_list_body(pTHX_ CV *cv);
1753 #endif
1754
1755 #if defined(PERL_IN_PP_C) || defined(PERL_DECL_PROT)
1756 STATIC SV*      S_refto(pTHX_ SV* sv);
1757 #endif
1758
1759 #if defined(PERL_IN_PP_PACK_C) || defined(PERL_DECL_PROT)
1760 STATIC I32      S_unpack_rec(pTHX_ struct tempsym* symptr, const char *s, const char *strbeg, const char *strend, const char **new_s);
1761 STATIC SV **    S_pack_rec(pTHX_ SV *cat, struct tempsym* symptr, SV **beglist, SV **endlist);
1762 STATIC SV*      S_mul128(pTHX_ SV *sv, U8 m)
1763 #ifdef USE_ITHREADS
1764                         __attribute__((nonnull(2)))
1765 #else
1766                         __attribute__((nonnull(1)))
1767 #endif
1768 ;
1769 STATIC I32      S_measure_struct(pTHX_ struct tempsym* symptr)
1770 #ifdef USE_ITHREADS
1771                         __attribute__((nonnull(2)))
1772 #else
1773                         __attribute__((nonnull(1)))
1774 #endif
1775 ;
1776 STATIC bool     S_next_symbol(pTHX_ struct tempsym* symptr)
1777 #ifdef USE_ITHREADS
1778                         __attribute__((nonnull(2)))
1779 #else
1780                         __attribute__((nonnull(1)))
1781 #endif
1782 ;
1783 STATIC SV*      S_is_an_int(pTHX_ const char *s, STRLEN l)
1784 #ifdef USE_ITHREADS
1785                         __attribute__((nonnull(2)))
1786 #else
1787                         __attribute__((nonnull(1)))
1788 #endif
1789 ;
1790 STATIC int      S_div128(pTHX_ SV *pnum, bool *done)
1791 #ifdef USE_ITHREADS
1792                         __attribute__((nonnull(2,3)))
1793 #else
1794                         __attribute__((nonnull(1,2)))
1795 #endif
1796 ;
1797 STATIC const char *     S_group_end(pTHX_ const char *pat, const char *patend, char ender)
1798 #ifdef USE_ITHREADS
1799                         __attribute__((nonnull(2,3)))
1800 #else
1801                         __attribute__((nonnull(1,2)))
1802 #endif
1803 ;
1804 STATIC const char *     S_get_num(pTHX_ const char *ppat, I32 *lenptr)
1805 #ifdef USE_ITHREADS
1806                         __attribute__((nonnull(2,3)))
1807 #else
1808                         __attribute__((nonnull(1,2)))
1809 #endif
1810 ;
1811 #endif
1812
1813 #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT)
1814 STATIC OP*      S_docatch(pTHX_ OP *o);
1815 STATIC void*    S_docatch_body(pTHX);
1816 STATIC OP*      S_dofindlabel(pTHX_ OP *o, const char *label, OP **opstack, OP **oplimit);
1817 STATIC OP*      S_doparseform(pTHX_ SV *sv);
1818 STATIC bool     S_num_overflow(NV value, I32 fldsize, I32 frcsize);
1819 STATIC I32      S_dopoptoeval(pTHX_ I32 startingblock);
1820 STATIC I32      S_dopoptolabel(pTHX_ const char *label)
1821 #ifdef USE_ITHREADS
1822                         __attribute__((nonnull(2)))
1823 #else
1824                         __attribute__((nonnull(1)))
1825 #endif
1826 ;
1827 STATIC I32      S_dopoptoloop(pTHX_ I32 startingblock);
1828 STATIC I32      S_dopoptosub(pTHX_ I32 startingblock);
1829 STATIC I32      S_dopoptosub_at(pTHX_ PERL_CONTEXT* cxstk, I32 startingblock);
1830 STATIC void     S_save_lines(pTHX_ AV *array, SV *sv);
1831 STATIC OP*      S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq);
1832 STATIC PerlIO * S_doopen_pm(pTHX_ const char *name, const char *mode);
1833 STATIC bool     S_path_is_absolute(pTHX_ const char *name)
1834 #ifdef USE_ITHREADS
1835                         __attribute__((nonnull(2)))
1836 #else
1837                         __attribute__((nonnull(1)))
1838 #endif
1839 ;
1840 #endif
1841
1842 #if defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT)
1843 STATIC void     S_do_oddball(pTHX_ HV *hash, SV **relem, SV **firstrelem);
1844 STATIC CV*      S_get_db_sub(pTHX_ SV **svp, CV *cv);
1845 STATIC SV*      S_method_common(pTHX_ SV* meth, U32* hashp);
1846 #endif
1847
1848 #if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT)
1849 STATIC OP*      S_doform(pTHX_ CV *cv, GV *gv, OP *retop);
1850 STATIC int      S_emulate_eaccess(pTHX_ const char* path, Mode_t mode);
1851 #  if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
1852 STATIC int      S_dooneliner(pTHX_ char *cmd, char *filename);
1853 #  endif
1854 #endif
1855
1856 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT)
1857 STATIC regnode* S_reg(pTHX_ struct RExC_state_t*, I32, I32 *);
1858 STATIC regnode* S_reganode(pTHX_ struct RExC_state_t*, U8, U32);
1859 STATIC regnode* S_regatom(pTHX_ struct RExC_state_t*, I32 *);
1860 STATIC regnode* S_regbranch(pTHX_ struct RExC_state_t*, I32 *, I32);
1861 STATIC void     S_reguni(pTHX_ struct RExC_state_t*, UV, char *, STRLEN*);
1862 STATIC regnode* S_regclass(pTHX_ struct RExC_state_t*);
1863 STATIC I32      S_regcurly(pTHX_ char *);
1864 STATIC regnode* S_reg_node(pTHX_ struct RExC_state_t*, U8);
1865 STATIC regnode* S_regpiece(pTHX_ struct RExC_state_t*, I32 *);
1866 STATIC void     S_reginsert(pTHX_ struct RExC_state_t*, U8, regnode *);
1867 STATIC void     S_regoptail(pTHX_ struct RExC_state_t*, regnode *, regnode *);
1868 STATIC void     S_regtail(pTHX_ struct RExC_state_t*, regnode *, regnode *);
1869 STATIC char*    S_regwhite(pTHX_ char *, char *);
1870 STATIC char*    S_nextchar(pTHX_ struct RExC_state_t*);
1871 #  ifdef DEBUGGING
1872 STATIC regnode* S_dumpuntil(pTHX_ regnode *start, regnode *node, regnode *last, SV* sv, I32 l);
1873 STATIC void     S_put_byte(pTHX_ SV* sv, int c);
1874 #  endif
1875 STATIC void     S_scan_commit(pTHX_ struct RExC_state_t*, struct scan_data_t *data);
1876 STATIC void     S_cl_anything(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl);
1877 STATIC int      S_cl_is_anything(pTHX_ struct regnode_charclass_class *cl);
1878 STATIC void     S_cl_init(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl);
1879 STATIC void     S_cl_init_zero(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl);
1880 STATIC void     S_cl_and(pTHX_ struct regnode_charclass_class *cl, struct regnode_charclass_class *and_with);
1881 STATIC void     S_cl_or(pTHX_ struct RExC_state_t*, struct regnode_charclass_class *cl, struct regnode_charclass_class *or_with);
1882 STATIC I32      S_study_chunk(pTHX_ struct RExC_state_t*, regnode **scanp, I32 *deltap, regnode *last, struct scan_data_t *data, U32 flags, U32 depth);
1883 STATIC I32      S_add_data(pTHX_ struct RExC_state_t*, I32 n, const char *s);
1884 STATIC void     S_re_croak2(pTHX_ const char* pat1, const char* pat2, ...) __attribute__((noreturn));
1885 STATIC I32      S_regpposixcc(pTHX_ struct RExC_state_t*, I32 value);
1886 STATIC void     S_checkposixcc(pTHX_ struct RExC_state_t*);
1887
1888 STATIC I32      S_make_trie(pTHX_ struct RExC_state_t*, regnode *startbranch, regnode *first, regnode *last, regnode *tail, U32 flags);
1889 #endif
1890
1891 #if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT)
1892 STATIC I32      S_regmatch(pTHX_ regnode *prog);
1893 STATIC I32      S_regrepeat(pTHX_ regnode *p, I32 max);
1894 STATIC I32      S_regrepeat_hard(pTHX_ regnode *p, I32 max, I32 *lp);
1895 STATIC I32      S_regtry(pTHX_ regexp *prog, char *startpos);
1896 STATIC bool     S_reginclass(pTHX_ regnode *n, U8 *p, STRLEN *lenp, bool do_utf8sv_is_utf8);
1897 STATIC CHECKPOINT       S_regcppush(pTHX_ I32 parenfloor);
1898 STATIC char*    S_regcppop(pTHX);
1899 STATIC char*    S_regcp_set_to(pTHX_ I32 ss);
1900 STATIC void     S_cache_re(pTHX_ regexp *prog);
1901 STATIC U8*      S_reghop(pTHX_ U8 *pos, I32 off);
1902 STATIC U8*      S_reghop3(pTHX_ U8 *pos, I32 off, U8 *lim);
1903 STATIC U8*      S_reghopmaybe(pTHX_ U8 *pos, I32 off);
1904 STATIC U8*      S_reghopmaybe3(pTHX_ U8 *pos, I32 off, U8 *lim);
1905 STATIC char*    S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, I32 norun);
1906 STATIC void     S_to_utf8_substr(pTHX_ regexp * prog);
1907 STATIC void     S_to_byte_substr(pTHX_ regexp * prog);
1908 #endif
1909
1910 #if defined(PERL_IN_DUMP_C) || defined(PERL_DECL_PROT)
1911 STATIC CV*      S_deb_curcv(pTHX_ I32 ix);
1912 STATIC void     S_debprof(pTHX_ const OP *o);
1913 #endif
1914
1915 #if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT)
1916 STATIC SV*      S_save_scalar_at(pTHX_ SV **sptr);
1917 #endif
1918
1919 #if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
1920 STATIC IV       S_asIV(pTHX_ SV* sv);
1921 STATIC UV       S_asUV(pTHX_ SV* sv);
1922 STATIC SV*      S_more_sv(pTHX);
1923 STATIC void     S_more_xiv(pTHX);
1924 STATIC void     S_more_xnv(pTHX);
1925 STATIC void     S_more_xpv(pTHX);
1926 STATIC void     S_more_xpviv(pTHX);
1927 STATIC void     S_more_xpvnv(pTHX);
1928 STATIC void     S_more_xpvcv(pTHX);
1929 STATIC void     S_more_xpvav(pTHX);
1930 STATIC void     S_more_xpvhv(pTHX);
1931 STATIC void     S_more_xpvmg(pTHX);
1932 STATIC void     S_more_xpvlv(pTHX);
1933 STATIC void     S_more_xpvbm(pTHX);
1934 STATIC void     S_more_xrv(pTHX);
1935 STATIC XPVIV*   S_new_xiv(pTHX);
1936 STATIC XPVNV*   S_new_xnv(pTHX);
1937 STATIC XPV*     S_new_xpv(pTHX);
1938 STATIC XPVIV*   S_new_xpviv(pTHX);
1939 STATIC XPVNV*   S_new_xpvnv(pTHX);
1940 STATIC XPVCV*   S_new_xpvcv(pTHX);
1941 STATIC XPVAV*   S_new_xpvav(pTHX);
1942 STATIC XPVHV*   S_new_xpvhv(pTHX);
1943 STATIC XPVMG*   S_new_xpvmg(pTHX);
1944 STATIC XPVLV*   S_new_xpvlv(pTHX);
1945 STATIC XPVBM*   S_new_xpvbm(pTHX);
1946 STATIC XRV*     S_new_xrv(pTHX);
1947 STATIC void     S_del_xiv(pTHX_ XPVIV* p);
1948 STATIC void     S_del_xnv(pTHX_ XPVNV* p);
1949 STATIC void     S_del_xpv(pTHX_ XPV* p);
1950 STATIC void     S_del_xpviv(pTHX_ XPVIV* p);
1951 STATIC void     S_del_xpvnv(pTHX_ XPVNV* p);
1952 STATIC void     S_del_xpvcv(pTHX_ XPVCV* p);
1953 STATIC void     S_del_xpvav(pTHX_ XPVAV* p);
1954 STATIC void     S_del_xpvhv(pTHX_ XPVHV* p);
1955 STATIC void     S_del_xpvmg(pTHX_ XPVMG* p);
1956 STATIC void     S_del_xpvlv(pTHX_ XPVLV* p);
1957 STATIC void     S_del_xpvbm(pTHX_ XPVBM* p);
1958 STATIC void     S_del_xrv(pTHX_ XRV* p);
1959 STATIC void     S_sv_unglob(pTHX_ SV* sv);
1960 STATIC void     S_not_a_number(pTHX_ SV *sv);
1961 STATIC I32      S_visit(pTHX_ SVFUNC_t f, U32 flags, U32 mask);
1962 STATIC void     S_sv_add_backref(pTHX_ SV *tsv, SV *sv);
1963 STATIC void     S_sv_del_backref(pTHX_ SV *sv);
1964 #  ifdef DEBUGGING
1965 STATIC void     S_del_sv(pTHX_ SV *p);
1966 #  endif
1967 #  if !defined(NV_PRESERVES_UV)
1968 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *sv, I32 numtype);
1969 #  endif
1970 STATIC I32      S_expect_number(pTHX_ char** pattern);
1971 #
1972 #  if defined(USE_ITHREADS)
1973 STATIC SV*      S_gv_share(pTHX_ SV *sv, CLONE_PARAMS *param);
1974 #  endif
1975 STATIC bool     S_utf8_mg_pos(pTHX_ SV *sv, MAGIC **mgp, STRLEN **cachep, I32 i, I32 *offsetp, I32 uoff, U8 **sp, U8 *start, U8 *send);
1976 STATIC bool     S_utf8_mg_pos_init(pTHX_ SV *sv, MAGIC **mgp, STRLEN **cachep, I32 i, I32 *offsetp, U8 *s, U8 *start);
1977 #if defined(PERL_COPY_ON_WRITE)
1978 STATIC void     S_sv_release_COW(pTHX_ SV *sv, char *pvx, STRLEN cur, STRLEN len, U32 hash, SV *after);
1979 #endif
1980 #endif
1981
1982 #if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
1983 STATIC void     S_check_uni(pTHX);
1984 STATIC void     S_force_next(pTHX_ I32 type);
1985 STATIC char*    S_force_version(pTHX_ char *start, int guessing);
1986 STATIC char*    S_force_word(pTHX_ char *start, int token, int check_keyword, int allow_pack, int allow_tick);
1987 STATIC SV*      S_tokeq(pTHX_ SV *sv);
1988 STATIC int      S_pending_ident(pTHX);
1989 STATIC char*    S_scan_const(pTHX_ char *start);
1990 STATIC char*    S_scan_formline(pTHX_ char *s);
1991 STATIC char*    S_scan_heredoc(pTHX_ char *s);
1992 STATIC char*    S_scan_ident(pTHX_ char *s, char *send, char *dest, STRLEN destlen, I32 ck_uni);
1993 STATIC char*    S_scan_inputsymbol(pTHX_ char *start);
1994 STATIC char*    S_scan_pat(pTHX_ char *start, I32 type);
1995 STATIC char*    S_scan_str(pTHX_ char *start, int keep_quoted, int keep_delims);
1996 STATIC char*    S_scan_subst(pTHX_ char *start);
1997 STATIC char*    S_scan_trans(pTHX_ char *start);
1998 STATIC char*    S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp);
1999 STATIC char*    S_skipspace(pTHX_ char *s);
2000 STATIC char*    S_swallow_bom(pTHX_ U8 *s);
2001 STATIC void     S_checkcomma(pTHX_ char *s, char *name, const char *what);
2002 STATIC void     S_force_ident(pTHX_ const char *s, int kind);
2003 STATIC void     S_incline(pTHX_ char *s);
2004 STATIC int      S_intuit_method(pTHX_ char *s, GV *gv);
2005 STATIC int      S_intuit_more(pTHX_ char *s);
2006 STATIC I32      S_lop(pTHX_ I32 f, int x, char *s);
2007 STATIC void     S_missingterm(pTHX_ char *s) __attribute__((noreturn));
2008 STATIC void     S_no_op(pTHX_ const char *what, char *s);
2009 STATIC void     S_set_csh(pTHX);
2010 STATIC I32      S_sublex_done(pTHX);
2011 STATIC I32      S_sublex_push(pTHX);
2012 STATIC I32      S_sublex_start(pTHX);
2013 STATIC char *   S_filter_gets(pTHX_ SV *sv, PerlIO *fp, STRLEN append);
2014 STATIC HV *     S_find_in_my_stash(pTHX_ const char *pkgname, I32 len);
2015 STATIC SV*      S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, SV *sv, SV *pv, const char *type);
2016 #  if defined(DEBUGGING)
2017 STATIC int      S_tokereport(pTHX_ const char *s, I32 rv);
2018 #  endif
2019 STATIC int      S_ao(pTHX_ int toketype);
2020 STATIC void     S_depcom(pTHX);
2021 STATIC const char*      S_incl_perldb(pTHX);
2022 #if 0
2023 STATIC I32      S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen);
2024 STATIC I32      S_utf16rev_textfilter(pTHX_ int idx, SV *sv, int maxlen);
2025 #endif
2026 #  if defined(PERL_CR_FILTER)
2027 STATIC I32      S_cr_textfilter(pTHX_ int idx, SV *sv, int maxlen);
2028 #  endif
2029 #endif
2030
2031 #if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT)
2032 STATIC SV*      S_isa_lookup(pTHX_ HV *stash, const char *name, HV *name_stash, int len, int level);
2033 #endif
2034
2035 #if defined(PERL_IN_LOCALE_C) || defined(PERL_DECL_PROT)
2036 #if defined(USE_LOCALE_NUMERIC) || defined(USE_LOCALE_COLLATE)
2037 STATIC char*    S_stdize_locale(pTHX_ char* locs);
2038 #endif
2039 #endif
2040
2041 #if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT)
2042 STATIC COP*     S_closest_cop(pTHX_ COP *cop, OP *o);
2043 STATIC SV*      S_mess_alloc(pTHX);
2044 #endif
2045
2046 #if defined(PERL_IN_NUMERIC_C) || defined(PERL_DECL_PROT)
2047 STATIC NV       S_mulexp10(NV value, I32 exponent);
2048 #endif
2049
2050 START_EXTERN_C
2051
2052 PERL_CALLCONV void      Perl_sv_setsv_flags(pTHX_ SV* dsv, SV* ssv, I32 flags)
2053 #ifdef USE_ITHREADS
2054                         __attribute__((nonnull(2)))
2055 #else
2056                         __attribute__((nonnull(1)))
2057 #endif
2058 ;
2059 PERL_CALLCONV void      Perl_sv_catpvn_flags(pTHX_ SV* sv, const char* ptr, STRLEN len, I32 flags)
2060 #ifdef USE_ITHREADS
2061                         __attribute__((nonnull(2,3)))
2062 #else
2063                         __attribute__((nonnull(1,2)))
2064 #endif
2065 ;
2066 PERL_CALLCONV void      Perl_sv_catsv_flags(pTHX_ SV* dsv, SV* ssv, I32 flags)
2067 #ifdef USE_ITHREADS
2068                         __attribute__((nonnull(2)))
2069 #else
2070                         __attribute__((nonnull(1)))
2071 #endif
2072 ;
2073 PERL_CALLCONV STRLEN    Perl_sv_utf8_upgrade_flags(pTHX_ SV *sv, I32 flags)
2074 #ifdef USE_ITHREADS
2075                         __attribute__((nonnull(2)))
2076 #else
2077                         __attribute__((nonnull(1)))
2078 #endif
2079 ;
2080 PERL_CALLCONV char*     Perl_sv_pvn_force_flags(pTHX_ SV* sv, STRLEN* lp, I32 flags)
2081 #ifdef USE_ITHREADS
2082                         __attribute__((nonnull(3)))
2083 #else
2084                         __attribute__((nonnull(2)))
2085 #endif
2086 ;
2087 PERL_CALLCONV void      Perl_sv_copypv(pTHX_ SV* dsv, SV* ssv)
2088 #ifdef USE_ITHREADS
2089                         __attribute__((nonnull(2,3)))
2090 #else
2091                         __attribute__((nonnull(1,2)))
2092 #endif
2093 ;
2094 PERL_CALLCONV char*     Perl_my_atof2(pTHX_ const char *s, NV* value)
2095 #ifdef USE_ITHREADS
2096                         __attribute__((nonnull(2,3)))
2097 #else
2098                         __attribute__((nonnull(1,2)))
2099 #endif
2100 ;
2101 PERL_CALLCONV int       Perl_my_socketpair(int family, int type, int protocol, int fd[2]);
2102 #ifdef PERL_COPY_ON_WRITE
2103 PERL_CALLCONV SV*       Perl_sv_setsv_cow(pTHX_ SV* dsv, SV* ssv);
2104 #endif
2105
2106 #if defined(USE_PERLIO) && !defined(USE_SFIO)
2107 PERL_CALLCONV int       Perl_PerlIO_close(pTHX_ PerlIO *);
2108 PERL_CALLCONV int       Perl_PerlIO_fill(pTHX_ PerlIO *);
2109 PERL_CALLCONV int       Perl_PerlIO_fileno(pTHX_ PerlIO *);
2110 PERL_CALLCONV int       Perl_PerlIO_eof(pTHX_ PerlIO *);
2111 PERL_CALLCONV int       Perl_PerlIO_error(pTHX_ PerlIO *);
2112 PERL_CALLCONV int       Perl_PerlIO_flush(pTHX_ PerlIO *);
2113 PERL_CALLCONV void      Perl_PerlIO_clearerr(pTHX_ PerlIO *);
2114 PERL_CALLCONV void      Perl_PerlIO_set_cnt(pTHX_ PerlIO *, int);
2115 PERL_CALLCONV void      Perl_PerlIO_set_ptrcnt(pTHX_ PerlIO *, STDCHAR *, int);
2116 PERL_CALLCONV void      Perl_PerlIO_setlinebuf(pTHX_ PerlIO *);
2117 PERL_CALLCONV SSize_t   Perl_PerlIO_read(pTHX_ PerlIO *, void *, Size_t);
2118 PERL_CALLCONV SSize_t   Perl_PerlIO_write(pTHX_ PerlIO *, const void *, Size_t);
2119 PERL_CALLCONV SSize_t   Perl_PerlIO_unread(pTHX_ PerlIO *, const void *, Size_t);
2120 PERL_CALLCONV Off_t     Perl_PerlIO_tell(pTHX_ PerlIO *);
2121 PERL_CALLCONV int       Perl_PerlIO_seek(pTHX_ PerlIO *, Off_t, int);
2122
2123 PERL_CALLCONV STDCHAR * Perl_PerlIO_get_base(pTHX_ PerlIO *);
2124 PERL_CALLCONV STDCHAR * Perl_PerlIO_get_ptr(pTHX_ PerlIO *);
2125 PERL_CALLCONV int       Perl_PerlIO_get_bufsiz(pTHX_ PerlIO *);
2126 PERL_CALLCONV int       Perl_PerlIO_get_cnt(pTHX_ PerlIO *);
2127
2128 PERL_CALLCONV PerlIO *  Perl_PerlIO_stdin(pTHX);
2129 PERL_CALLCONV PerlIO *  Perl_PerlIO_stdout(pTHX);
2130 PERL_CALLCONV PerlIO *  Perl_PerlIO_stderr(pTHX);
2131 #endif /* PERLIO_LAYERS */
2132
2133 PERL_CALLCONV void      Perl_deb_stack_all(pTHX);
2134 #ifdef PERL_IN_DEB_C
2135 STATIC void     S_deb_stack_n(pTHX_ SV** stack_base, I32 stack_min, I32 stack_max, I32 mark_min, I32 mark_max);
2136 #endif
2137
2138 PERL_CALLCONV PADLIST*  Perl_pad_new(pTHX_ int flags);
2139 PERL_CALLCONV void      Perl_pad_undef(pTHX_ CV* cv);
2140 PERL_CALLCONV PADOFFSET Perl_pad_add_name(pTHX_ const char *name, HV* typestash, HV* ourstash, bool clone)
2141 #ifdef USE_ITHREADS
2142                         __attribute__((nonnull(2)))
2143 #else
2144                         __attribute__((nonnull(1)))
2145 #endif
2146 ;
2147 PERL_CALLCONV PADOFFSET Perl_pad_add_anon(pTHX_ SV* sv, OPCODE op_type);
2148 PERL_CALLCONV void      Perl_pad_check_dup(pTHX_ const char* name, bool is_our, const HV* ourstash);
2149 #ifdef DEBUGGING
2150 PERL_CALLCONV void      Perl_pad_setsv(pTHX_ PADOFFSET po, SV* sv);
2151 #endif
2152 PERL_CALLCONV void      Perl_pad_block_start(pTHX_ int full);
2153 PERL_CALLCONV void      Perl_pad_tidy(pTHX_ padtidy_type type);
2154 PERL_CALLCONV void      Perl_do_dump_pad(pTHX_ I32 level, PerlIO *file, PADLIST *padlist, int full);
2155 PERL_CALLCONV void      Perl_pad_fixup_inner_anons(pTHX_ PADLIST *padlist, CV *old_cv, CV *new_cv);
2156
2157 PERL_CALLCONV void      Perl_pad_push(pTHX_ PADLIST *padlist, int depth);
2158 PERL_CALLCONV HV*       Perl_pad_compname_type(pTHX_ const PADOFFSET po);
2159
2160 #if defined(PERL_IN_PAD_C) || defined(PERL_DECL_PROT)
2161 STATIC PADOFFSET        S_pad_findlex(pTHX_ const char *name, const CV* cv, U32 seq, int warn, SV** out_capture, SV** out_name_sv, int *out_flags);
2162 #  if defined(DEBUGGING)
2163 STATIC void     S_cv_dump(pTHX_ const CV *cv, const char *title);
2164 #  endif
2165 #endif
2166 PERL_CALLCONV CV*       Perl_find_runcv(pTHX_ U32 *db_seqp);
2167 PERL_CALLCONV void      Perl_free_tied_hv_pool(pTHX);
2168 #if defined(DEBUGGING)
2169 PERL_CALLCONV int       Perl_get_debug_opts(pTHX_ const char **s, bool givehelp);
2170 #endif
2171 PERL_CALLCONV void      Perl_save_set_svflags(pTHX_ SV* sv, U32 mask, U32 val);
2172 PERL_CALLCONV void      Perl_hv_assert(pTHX_ HV* tb);
2173
2174 #if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT)
2175 STATIC SV*      S_hv_delete_common(pTHX_ HV* tb, SV* key_sv, const char* key, STRLEN klen, int k_flags, I32 d_flags, U32 hash);
2176 STATIC HE*      S_hv_fetch_common(pTHX_ HV* tb, SV* key_sv, const char* key, STRLEN klen, int flags, int action, SV* val, U32 hash);
2177 #endif
2178
2179 PERL_CALLCONV void      Perl_hv_clear_placeholders(pTHX_ HV* hb);
2180
2181 PERL_CALLCONV SV*       Perl_hv_scalar(pTHX_ HV* hv);
2182 PERL_CALLCONV SV*       Perl_magic_scalarpack(pTHX_ HV* hv, MAGIC*      mg);
2183 #ifdef PERL_IN_SV_C
2184 STATIC SV*      S_find_uninit_var(pTHX_ OP* obase, SV* uninit_sv, bool top);
2185 #endif
2186
2187 #ifdef PERL_NEED_MY_HTOLE16
2188 PERL_CALLCONV U16       Perl_my_htole16(U16 n);
2189 #endif
2190 #ifdef PERL_NEED_MY_LETOH16
2191 PERL_CALLCONV U16       Perl_my_letoh16(U16 n);
2192 #endif
2193 #ifdef PERL_NEED_MY_HTOBE16
2194 PERL_CALLCONV U16       Perl_my_htobe16(U16 n);
2195 #endif
2196 #ifdef PERL_NEED_MY_BETOH16
2197 PERL_CALLCONV U16       Perl_my_betoh16(U16 n);
2198 #endif
2199 #ifdef PERL_NEED_MY_HTOLE32
2200 PERL_CALLCONV U32       Perl_my_htole32(U32 n);
2201 #endif
2202 #ifdef PERL_NEED_MY_LETOH32
2203 PERL_CALLCONV U32       Perl_my_letoh32(U32 n);
2204 #endif
2205 #ifdef PERL_NEED_MY_HTOBE32
2206 PERL_CALLCONV U32       Perl_my_htobe32(U32 n);
2207 #endif
2208 #ifdef PERL_NEED_MY_BETOH32
2209 PERL_CALLCONV U32       Perl_my_betoh32(U32 n);
2210 #endif
2211 #ifdef PERL_NEED_MY_HTOLE64
2212 PERL_CALLCONV U64       Perl_my_htole64(U64 n);
2213 #endif
2214 #ifdef PERL_NEED_MY_LETOH64
2215 PERL_CALLCONV U64       Perl_my_letoh64(U64 n);
2216 #endif
2217 #ifdef PERL_NEED_MY_HTOBE64
2218 PERL_CALLCONV U64       Perl_my_htobe64(U64 n);
2219 #endif
2220 #ifdef PERL_NEED_MY_BETOH64
2221 PERL_CALLCONV U64       Perl_my_betoh64(U64 n);
2222 #endif
2223
2224 #ifdef PERL_NEED_MY_HTOLES
2225 PERL_CALLCONV short     Perl_my_htoles(short n);
2226 #endif
2227 #ifdef PERL_NEED_MY_LETOHS
2228 PERL_CALLCONV short     Perl_my_letohs(short n);
2229 #endif
2230 #ifdef PERL_NEED_MY_HTOBES
2231 PERL_CALLCONV short     Perl_my_htobes(short n);
2232 #endif
2233 #ifdef PERL_NEED_MY_BETOHS
2234 PERL_CALLCONV short     Perl_my_betohs(short n);
2235 #endif
2236 #ifdef PERL_NEED_MY_HTOLEI
2237 PERL_CALLCONV int       Perl_my_htolei(int n);
2238 #endif
2239 #ifdef PERL_NEED_MY_LETOHI
2240 PERL_CALLCONV int       Perl_my_letohi(int n);
2241 #endif
2242 #ifdef PERL_NEED_MY_HTOBEI
2243 PERL_CALLCONV int       Perl_my_htobei(int n);
2244 #endif
2245 #ifdef PERL_NEED_MY_BETOHI
2246 PERL_CALLCONV int       Perl_my_betohi(int n);
2247 #endif
2248 #ifdef PERL_NEED_MY_HTOLEL
2249 PERL_CALLCONV long      Perl_my_htolel(long n);
2250 #endif
2251 #ifdef PERL_NEED_MY_LETOHL
2252 PERL_CALLCONV long      Perl_my_letohl(long n);
2253 #endif
2254 #ifdef PERL_NEED_MY_HTOBEL
2255 PERL_CALLCONV long      Perl_my_htobel(long n);
2256 #endif
2257 #ifdef PERL_NEED_MY_BETOHL
2258 PERL_CALLCONV long      Perl_my_betohl(long n);
2259 #endif
2260
2261 PERL_CALLCONV void      Perl_my_swabn(void* ptr, int n);
2262
2263 PERL_CALLCONV GV*       Perl_gv_fetchpvn_flags(pTHX_ const char* name, STRLEN len, I32 flags, I32 sv_type);
2264 PERL_CALLCONV GV*       Perl_gv_fetchsv(pTHX_ SV *name, I32 flags, I32 sv_type);
2265 PERL_CALLCONV bool      Perl_is_gv_magical_sv(pTHX_ SV *name, U32 flags);
2266
2267 PERL_CALLCONV char*     Perl_savesvpv(pTHX_ SV* sv);
2268
2269 END_EXTERN_C