This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
2e71be8325172b0a727d889a1acac34d9c30299e
[perl5.git] / proto.h
1 /*  -*- buffer-read-only: t -*-
2  *
3  *    proto.h
4  *
5  *    Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6  *    2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, by Larry Wall and others
7  *
8  *    You may distribute under the terms of either the GNU General Public
9  *    License or the Artistic License, as specified in the README file.
10  *
11  * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
12  * This file is built by embed.pl from data in embed.fnc, embed.pl,
13  * pp.sym, intrpvar.h, and perlvars.h.
14  * Any changes made here will be lost!
15  *
16  * Edit those files and run 'make regen_headers' to effect changes.
17  */
18
19 START_EXTERN_C
20
21 #if defined(PERL_IMPLICIT_SYS)
22 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)
23                         __attribute__nonnull__(1)
24                         __attribute__nonnull__(2)
25                         __attribute__nonnull__(3)
26                         __attribute__nonnull__(4)
27                         __attribute__nonnull__(5)
28                         __attribute__nonnull__(6)
29                         __attribute__nonnull__(7)
30                         __attribute__nonnull__(8)
31                         __attribute__nonnull__(9);
32
33 #endif
34 PERL_CALLCONV PerlInterpreter*  perl_alloc(void);
35 PERL_CALLCONV void      perl_construct(PerlInterpreter* interp)
36                         __attribute__nonnull__(1);
37
38 PERL_CALLCONV int       perl_destruct(PerlInterpreter* interp)
39                         __attribute__nonnull__(1);
40
41 PERL_CALLCONV void      perl_free(PerlInterpreter* interp)
42                         __attribute__nonnull__(1);
43
44 PERL_CALLCONV int       perl_run(PerlInterpreter* interp)
45                         __attribute__nonnull__(1);
46
47 PERL_CALLCONV int       perl_parse(PerlInterpreter* interp, XSINIT_t xsinit, int argc, char** argv, char** env)
48                         __attribute__nonnull__(1);
49
50 PERL_CALLCONV bool      Perl_doing_taint(int argc, char** argv, char** env)
51                         __attribute__warn_unused_result__;
52
53 #if defined(USE_ITHREADS)
54 PERL_CALLCONV PerlInterpreter*  perl_clone(PerlInterpreter* interp, UV flags)
55                         __attribute__nonnull__(1);
56
57 #  if defined(PERL_IMPLICIT_SYS)
58 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)
59                         __attribute__nonnull__(1)
60                         __attribute__nonnull__(3)
61                         __attribute__nonnull__(4)
62                         __attribute__nonnull__(5)
63                         __attribute__nonnull__(6)
64                         __attribute__nonnull__(7)
65                         __attribute__nonnull__(8)
66                         __attribute__nonnull__(9)
67                         __attribute__nonnull__(10)
68                         __attribute__nonnull__(11);
69
70 #  endif
71 #endif
72
73 PERL_CALLCONV Malloc_t  Perl_malloc(MEM_SIZE nbytes)
74                         __attribute__malloc__
75                         __attribute__warn_unused_result__;
76
77 PERL_CALLCONV Malloc_t  Perl_calloc(MEM_SIZE elements, MEM_SIZE size)
78                         __attribute__malloc__
79                         __attribute__warn_unused_result__;
80
81 PERL_CALLCONV Malloc_t  Perl_realloc(Malloc_t where, MEM_SIZE nbytes)
82                         __attribute__malloc__
83                         __attribute__warn_unused_result__;
84
85 PERL_CALLCONV Free_t    Perl_mfree(Malloc_t where);
86 #if defined(MYMALLOC)
87 PERL_CALLCONV MEM_SIZE  Perl_malloced_size(void *p)
88                         __attribute__warn_unused_result__
89                         __attribute__nonnull__(1);
90
91 #endif
92
93 PERL_CALLCONV void*     Perl_get_context(void)
94                         __attribute__warn_unused_result__;
95
96 PERL_CALLCONV void      Perl_set_context(void *t)
97                         __attribute__nonnull__(1);
98
99
100 END_EXTERN_C
101
102 /* functions with flag 'n' should come before here */
103 START_EXTERN_C
104 #  include "pp_proto.h"
105 PERL_CALLCONV SV*       Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir)
106                         __attribute__nonnull__(pTHX_1)
107                         __attribute__nonnull__(pTHX_2);
108
109 PERL_CALLCONV bool      Perl_Gv_AMupdate(pTHX_ HV* stash)
110                         __attribute__nonnull__(pTHX_1);
111
112 PERL_CALLCONV CV*       Perl_gv_handler(pTHX_ HV* stash, I32 id)
113                         __attribute__warn_unused_result__;
114
115 PERL_CALLCONV OP*       Perl_append_elem(pTHX_ I32 optype, OP* first, OP* last);
116 PERL_CALLCONV OP*       Perl_append_list(pTHX_ I32 optype, LISTOP* first, LISTOP* last);
117 PERL_CALLCONV I32       Perl_apply(pTHX_ I32 type, SV** mark, SV** sp)
118                         __attribute__nonnull__(pTHX_2)
119                         __attribute__nonnull__(pTHX_3);
120
121 PERL_CALLCONV void      Perl_apply_attrs_string(pTHX_ const char *stashpv, CV *cv, const char *attrstr, STRLEN len)
122                         __attribute__nonnull__(pTHX_1)
123                         __attribute__nonnull__(pTHX_2)
124                         __attribute__nonnull__(pTHX_3);
125
126 PERL_CALLCONV void      Perl_av_clear(pTHX_ AV* ar)
127                         __attribute__nonnull__(pTHX_1);
128
129 PERL_CALLCONV SV*       Perl_av_delete(pTHX_ AV* ar, I32 key, I32 flags)
130                         __attribute__nonnull__(pTHX_1);
131
132 PERL_CALLCONV bool      Perl_av_exists(pTHX_ AV* ar, I32 key)
133                         __attribute__warn_unused_result__
134                         __attribute__nonnull__(pTHX_1);
135
136 PERL_CALLCONV void      Perl_av_extend(pTHX_ AV* ar, I32 key)
137                         __attribute__nonnull__(pTHX_1);
138
139 PERL_CALLCONV AV*       Perl_av_fake(pTHX_ I32 size, SV** svp)
140                         __attribute__warn_unused_result__
141                         __attribute__nonnull__(pTHX_2);
142
143 PERL_CALLCONV SV**      Perl_av_fetch(pTHX_ AV* ar, I32 key, I32 lval)
144                         __attribute__warn_unused_result__
145                         __attribute__nonnull__(pTHX_1);
146
147 PERL_CALLCONV void      Perl_av_fill(pTHX_ AV* ar, I32 fill)
148                         __attribute__nonnull__(pTHX_1);
149
150 PERL_CALLCONV I32       Perl_av_len(pTHX_ const AV* ar)
151                         __attribute__warn_unused_result__
152                         __attribute__nonnull__(pTHX_1);
153
154 PERL_CALLCONV AV*       Perl_av_make(pTHX_ I32 size, SV** svp)
155                         __attribute__warn_unused_result__
156                         __attribute__nonnull__(pTHX_2);
157
158 PERL_CALLCONV SV*       Perl_av_pop(pTHX_ AV* ar)
159                         __attribute__nonnull__(pTHX_1);
160
161 PERL_CALLCONV void      Perl_av_create_and_push(pTHX_ AV **const avp, SV *const val)
162                         __attribute__nonnull__(pTHX_1)
163                         __attribute__nonnull__(pTHX_2);
164
165 PERL_CALLCONV void      Perl_av_push(pTHX_ AV* ar, SV* val)
166                         __attribute__nonnull__(pTHX_1)
167                         __attribute__nonnull__(pTHX_2);
168
169 PERL_CALLCONV void      Perl_av_reify(pTHX_ AV* ar)
170                         __attribute__nonnull__(pTHX_1);
171
172 PERL_CALLCONV SV*       Perl_av_shift(pTHX_ AV* ar)
173                         __attribute__warn_unused_result__
174                         __attribute__nonnull__(pTHX_1);
175
176 PERL_CALLCONV SV**      Perl_av_store(pTHX_ AV* ar, I32 key, SV* val)
177                         __attribute__nonnull__(pTHX_1);
178
179 PERL_CALLCONV void      Perl_av_undef(pTHX_ AV* ar)
180                         __attribute__nonnull__(pTHX_1);
181
182 PERL_CALLCONV SV**      Perl_av_create_and_unshift_one(pTHX_ AV **const avp, SV *const val)
183                         __attribute__nonnull__(pTHX_1)
184                         __attribute__nonnull__(pTHX_2);
185
186 PERL_CALLCONV void      Perl_av_unshift(pTHX_ AV* ar, I32 num)
187                         __attribute__nonnull__(pTHX_1);
188
189 PERL_CALLCONV SV**      Perl_av_arylen_p(pTHX_ AV* av)
190                         __attribute__nonnull__(pTHX_1);
191
192 PERL_CALLCONV IV*       Perl_av_iter_p(pTHX_ AV* av)
193                         __attribute__nonnull__(pTHX_1);
194
195 #if defined(PERL_IN_AV_C) || defined(PERL_DECL_PROT)
196 STATIC MAGIC*   S_get_aux_mg(pTHX_ AV *av)
197                         __attribute__nonnull__(pTHX_1);
198
199 #endif
200 PERL_CALLCONV OP*       Perl_bind_match(pTHX_ I32 type, OP* left, OP* pat)
201                         __attribute__warn_unused_result__
202                         __attribute__nonnull__(pTHX_2)
203                         __attribute__nonnull__(pTHX_3);
204
205 PERL_CALLCONV OP*       Perl_block_end(pTHX_ I32 floor, OP* seq)
206                         __attribute__warn_unused_result__;
207
208 PERL_CALLCONV I32       Perl_block_gimme(pTHX)
209                         __attribute__warn_unused_result__;
210
211 PERL_CALLCONV int       Perl_block_start(pTHX_ int full)
212                         __attribute__warn_unused_result__;
213
214 PERL_CALLCONV void      Perl_boot_core_UNIVERSAL(pTHX);
215 PERL_CALLCONV void      Perl_boot_core_PerlIO(pTHX);
216 PERL_CALLCONV void      Perl_call_list(pTHX_ I32 oldscope, AV* av_list)
217                         __attribute__nonnull__(pTHX_2);
218
219 PERL_CALLCONV bool      Perl_cando(pTHX_ Mode_t mode, bool effective, const Stat_t* statbufp)
220                         __attribute__warn_unused_result__
221                         __attribute__nonnull__(pTHX_3);
222
223 PERL_CALLCONV U32       Perl_cast_ulong(pTHX_ NV f)
224                         __attribute__warn_unused_result__;
225
226 PERL_CALLCONV I32       Perl_cast_i32(pTHX_ NV f)
227                         __attribute__warn_unused_result__;
228
229 PERL_CALLCONV IV        Perl_cast_iv(pTHX_ NV f)
230                         __attribute__warn_unused_result__;
231
232 PERL_CALLCONV UV        Perl_cast_uv(pTHX_ NV f)
233                         __attribute__warn_unused_result__;
234
235 #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
236 PERL_CALLCONV I32       Perl_my_chsize(pTHX_ int fd, Off_t length)
237                         __attribute__warn_unused_result__;
238
239 #endif
240 PERL_CALLCONV OP*       Perl_convert(pTHX_ I32 optype, I32 flags, OP* o)
241                         __attribute__warn_unused_result__;
242
243 PERL_CALLCONV PERL_CONTEXT*     Perl_create_eval_scope(pTHX_ U32 flags);
244 PERL_CALLCONV void      Perl_croak(pTHX_ const char* pat, ...)
245                         __attribute__noreturn__
246                         __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
247
248 PERL_CALLCONV void      Perl_vcroak(pTHX_ const char* pat, va_list* args)
249                         __attribute__noreturn__;
250
251 #if defined(PERL_IMPLICIT_CONTEXT)
252 PERL_CALLCONV void      Perl_croak_nocontext(const char* pat, ...)
253                         __attribute__noreturn__
254                         __attribute__format__(__printf__,1,2)
255                         __attribute__nonnull__(1);
256
257 PERL_CALLCONV OP*       Perl_die_nocontext(const char* pat, ...)
258                         __attribute__format__(__printf__,1,2)
259                         __attribute__nonnull__(1);
260
261 PERL_CALLCONV void      Perl_deb_nocontext(const char* pat, ...)
262                         __attribute__format__(__printf__,1,2)
263                         __attribute__nonnull__(1);
264
265 PERL_CALLCONV char*     Perl_form_nocontext(const char* pat, ...)
266                         __attribute__format__(__printf__,1,2)
267                         __attribute__nonnull__(1);
268
269 PERL_CALLCONV void      Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...)
270                         __attribute__nonnull__(2)
271                         __attribute__nonnull__(3);
272
273 PERL_CALLCONV SV*       Perl_mess_nocontext(const char* pat, ...)
274                         __attribute__format__(__printf__,1,2)
275                         __attribute__nonnull__(1);
276
277 PERL_CALLCONV void      Perl_warn_nocontext(const char* pat, ...)
278                         __attribute__format__(__printf__,1,2)
279                         __attribute__nonnull__(1);
280
281 PERL_CALLCONV void      Perl_warner_nocontext(U32 err, const char* pat, ...)
282                         __attribute__format__(__printf__,2,3)
283                         __attribute__nonnull__(2);
284
285 PERL_CALLCONV SV*       Perl_newSVpvf_nocontext(const char* pat, ...)
286                         __attribute__format__(__printf__,1,2)
287                         __attribute__nonnull__(1);
288
289 PERL_CALLCONV void      Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...)
290                         __attribute__format__(__printf__,2,3)
291                         __attribute__nonnull__(1)
292                         __attribute__nonnull__(2);
293
294 PERL_CALLCONV void      Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...)
295                         __attribute__format__(__printf__,2,3)
296                         __attribute__nonnull__(1)
297                         __attribute__nonnull__(2);
298
299 PERL_CALLCONV void      Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...)
300                         __attribute__format__(__printf__,2,3)
301                         __attribute__nonnull__(1)
302                         __attribute__nonnull__(2);
303
304 PERL_CALLCONV void      Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...)
305                         __attribute__format__(__printf__,2,3)
306                         __attribute__nonnull__(1)
307                         __attribute__nonnull__(2);
308
309 PERL_CALLCONV int       Perl_fprintf_nocontext(PerlIO* stream, const char* fmt, ...)
310                         __attribute__format__(__printf__,2,3)
311                         __attribute__nonnull__(1)
312                         __attribute__nonnull__(2);
313
314 PERL_CALLCONV int       Perl_printf_nocontext(const char* fmt, ...)
315                         __attribute__format__(__printf__,1,2)
316                         __attribute__nonnull__(1);
317
318 #endif
319 PERL_CALLCONV void      Perl_cv_ckproto(pTHX_ const CV* cv, const GV* gv, const char* p)
320                         __attribute__nonnull__(pTHX_1);
321
322 PERL_CALLCONV void      Perl_cv_ckproto_len(pTHX_ const CV* cv, const GV* gv, const char* p, const STRLEN len)
323                         __attribute__nonnull__(pTHX_1);
324
325 PERL_CALLCONV CV*       Perl_cv_clone(pTHX_ CV* proto)
326                         __attribute__nonnull__(pTHX_1);
327
328 PERL_CALLCONV SV*       Perl_gv_const_sv(pTHX_ GV* gv)
329                         __attribute__warn_unused_result__
330                         __attribute__nonnull__(pTHX_1);
331
332 PERL_CALLCONV SV*       Perl_cv_const_sv(pTHX_ CV* cv)
333                         __attribute__warn_unused_result__;
334
335 PERL_CALLCONV SV*       Perl_op_const_sv(pTHX_ const OP* o, CV* cv)
336                         __attribute__warn_unused_result__;
337
338 PERL_CALLCONV void      Perl_cv_undef(pTHX_ CV* cv)
339                         __attribute__nonnull__(pTHX_1);
340
341 PERL_CALLCONV void      Perl_cx_dump(pTHX_ PERL_CONTEXT* cx)
342                         __attribute__nonnull__(pTHX_1);
343
344 PERL_CALLCONV SV*       Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
345 PERL_CALLCONV void      Perl_filter_del(pTHX_ filter_t funcp)
346                         __attribute__nonnull__(pTHX_1);
347
348 PERL_CALLCONV I32       Perl_filter_read(pTHX_ int idx, SV* buffer, int maxlen)
349                         __attribute__warn_unused_result__
350                         __attribute__nonnull__(pTHX_2);
351
352 PERL_CALLCONV char**    Perl_get_op_descs(pTHX)
353                         __attribute__warn_unused_result__
354                         __attribute__pure__;
355
356 PERL_CALLCONV char**    Perl_get_op_names(pTHX)
357                         __attribute__warn_unused_result__
358                         __attribute__pure__;
359
360 PERL_CALLCONV const char*       Perl_get_no_modify(pTHX)
361                         __attribute__warn_unused_result__
362                         __attribute__pure__;
363
364 PERL_CALLCONV U32*      Perl_get_opargs(pTHX)
365                         __attribute__warn_unused_result__
366                         __attribute__pure__;
367
368 PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX)
369                         __attribute__warn_unused_result__
370                         __attribute__pure__;
371
372 PERL_CALLCONV I32       Perl_cxinc(pTHX)
373                         __attribute__warn_unused_result__;
374
375 PERL_CALLCONV void      Perl_deb(pTHX_ const char* pat, ...)
376                         __attribute__format__(__printf__,pTHX_1,pTHX_2)
377                         __attribute__nonnull__(pTHX_1);
378
379 PERL_CALLCONV void      Perl_vdeb(pTHX_ const char* pat, va_list* args)
380                         __attribute__nonnull__(pTHX_1);
381
382 PERL_CALLCONV void      Perl_debprofdump(pTHX);
383 PERL_CALLCONV I32       Perl_debop(pTHX_ const OP* o)
384                         __attribute__nonnull__(pTHX_1);
385
386 PERL_CALLCONV I32       Perl_debstack(pTHX);
387 PERL_CALLCONV I32       Perl_debstackptrs(pTHX);
388 PERL_CALLCONV char*     Perl_delimcpy(pTHX_ char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen)
389                         __attribute__nonnull__(pTHX_1)
390                         __attribute__nonnull__(pTHX_2)
391                         __attribute__nonnull__(pTHX_3)
392                         __attribute__nonnull__(pTHX_4)
393                         __attribute__nonnull__(pTHX_6);
394
395 PERL_CALLCONV void      Perl_delete_eval_scope(pTHX);
396 PERL_CALLCONV void      Perl_deprecate(pTHX_ const char *const s)
397                         __attribute__nonnull__(pTHX_1);
398
399 PERL_CALLCONV void      Perl_deprecate_old(pTHX_ const char *const s)
400                         __attribute__nonnull__(pTHX_1);
401
402 PERL_CALLCONV OP*       Perl_die(pTHX_ const char* pat, ...)
403                         __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
404
405 PERL_CALLCONV OP*       Perl_vdie(pTHX_ const char* pat, va_list* args);
406 PERL_CALLCONV OP*       Perl_die_where(pTHX_ const char* message, STRLEN msglen);
407 PERL_CALLCONV void      Perl_dounwind(pTHX_ I32 cxix);
408 /* PERL_CALLCONV bool   Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp)
409                         __attribute__nonnull__(pTHX_2)
410                         __attribute__nonnull__(pTHX_3); */
411
412 PERL_CALLCONV bool      Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int do_report)
413                         __attribute__nonnull__(pTHX_2)
414                         __attribute__nonnull__(pTHX_3);
415
416 PERL_CALLCONV int       Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
417                         __attribute__nonnull__(pTHX_1);
418
419 PERL_CALLCONV void      Perl_do_chop(pTHX_ SV* asv, SV* sv)
420                         __attribute__nonnull__(pTHX_1)
421                         __attribute__nonnull__(pTHX_2);
422
423 PERL_CALLCONV bool      Perl_do_close(pTHX_ GV* gv, bool not_implicit);
424 PERL_CALLCONV bool      Perl_do_eof(pTHX_ GV* gv)
425                         __attribute__nonnull__(pTHX_1);
426
427
428 #ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION
429 /* PERL_CALLCONV bool   Perl_do_exec(pTHX_ const char* cmd)
430                         __attribute__nonnull__(pTHX_1); */
431
432 #else
433 PERL_CALLCONV bool      Perl_do_exec(pTHX_ const char* cmd)
434                         __attribute__nonnull__(pTHX_1);
435
436 #endif
437
438 #if defined(WIN32) || defined(__SYMBIAN32__)
439 PERL_CALLCONV int       Perl_do_aspawn(pTHX_ SV* really, SV** mark, SV** sp)
440                         __attribute__nonnull__(pTHX_1)
441                         __attribute__nonnull__(pTHX_2)
442                         __attribute__nonnull__(pTHX_3);
443
444 PERL_CALLCONV int       Perl_do_spawn(pTHX_ char* cmd)
445                         __attribute__nonnull__(pTHX_1);
446
447 PERL_CALLCONV int       Perl_do_spawn_nowait(pTHX_ char* cmd)
448                         __attribute__nonnull__(pTHX_1);
449
450 #endif
451 #if !defined(WIN32)
452 PERL_CALLCONV bool      Perl_do_exec3(pTHX_ const char* cmd, int fd, int do_report)
453                         __attribute__nonnull__(pTHX_1);
454
455 #endif
456 PERL_CALLCONV void      Perl_do_execfree(pTHX);
457 #ifdef PERL_IN_DOIO_C
458 STATIC void     S_exec_failed(pTHX_ const char *cmd, int fd, int do_report)
459                         __attribute__nonnull__(pTHX_1);
460
461 #endif
462 #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
463 PERL_CALLCONV I32       Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp)
464                         __attribute__nonnull__(pTHX_2)
465                         __attribute__nonnull__(pTHX_3);
466
467 PERL_CALLCONV I32       Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp)
468                         __attribute__nonnull__(pTHX_2)
469                         __attribute__nonnull__(pTHX_3);
470
471 PERL_CALLCONV I32       Perl_do_msgrcv(pTHX_ SV** mark, SV** sp)
472                         __attribute__nonnull__(pTHX_1)
473                         __attribute__nonnull__(pTHX_2);
474
475 PERL_CALLCONV I32       Perl_do_msgsnd(pTHX_ SV** mark, SV** sp)
476                         __attribute__nonnull__(pTHX_1)
477                         __attribute__nonnull__(pTHX_2);
478
479 PERL_CALLCONV I32       Perl_do_semop(pTHX_ SV** mark, SV** sp)
480                         __attribute__nonnull__(pTHX_1)
481                         __attribute__nonnull__(pTHX_2);
482
483 PERL_CALLCONV I32       Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp)
484                         __attribute__nonnull__(pTHX_2)
485                         __attribute__nonnull__(pTHX_3);
486
487 #endif
488 PERL_CALLCONV void      Perl_do_join(pTHX_ SV* sv, SV* del, SV** mark, SV** sp)
489                         __attribute__nonnull__(pTHX_1)
490                         __attribute__nonnull__(pTHX_2)
491                         __attribute__nonnull__(pTHX_3)
492                         __attribute__nonnull__(pTHX_4);
493
494 PERL_CALLCONV OP*       Perl_do_kv(pTHX);
495 /* PERL_CALLCONV bool   Perl_do_open(pTHX_ GV* gv, const char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp)
496                         __attribute__nonnull__(pTHX_1)
497                         __attribute__nonnull__(pTHX_2); */
498
499 PERL_CALLCONV bool      Perl_do_open9(pTHX_ GV *gv, const char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV *svs, I32 num)
500                         __attribute__nonnull__(pTHX_1)
501                         __attribute__nonnull__(pTHX_2)
502                         __attribute__nonnull__(pTHX_8);
503
504 PERL_CALLCONV bool      Perl_do_openn(pTHX_ GV *gv, const char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV **svp, I32 num)
505                         __attribute__nonnull__(pTHX_1)
506                         __attribute__nonnull__(pTHX_2);
507
508 PERL_CALLCONV bool      Perl_do_print(pTHX_ SV* sv, PerlIO* fp)
509                         __attribute__nonnull__(pTHX_2);
510
511 PERL_CALLCONV OP*       Perl_do_readline(pTHX)
512                         __attribute__warn_unused_result__;
513
514 PERL_CALLCONV I32       Perl_do_chomp(pTHX_ SV* sv)
515                         __attribute__nonnull__(pTHX_1);
516
517 PERL_CALLCONV bool      Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
518 PERL_CALLCONV void      Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg)
519                         __attribute__nonnull__(pTHX_1)
520                         __attribute__nonnull__(pTHX_3);
521
522 PERL_CALLCONV Off_t     Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence)
523                         __attribute__nonnull__(pTHX_1);
524
525 PERL_CALLCONV Off_t     Perl_do_tell(pTHX_ GV* gv)
526                         __attribute__warn_unused_result__
527                         __attribute__nonnull__(pTHX_1);
528
529 PERL_CALLCONV I32       Perl_do_trans(pTHX_ SV* sv)
530                         __attribute__nonnull__(pTHX_1);
531
532 PERL_CALLCONV UV        Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size)
533                         __attribute__nonnull__(pTHX_1);
534
535 PERL_CALLCONV void      Perl_do_vecset(pTHX_ SV* sv)
536                         __attribute__nonnull__(pTHX_1);
537
538 PERL_CALLCONV void      Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right)
539                         __attribute__nonnull__(pTHX_2)
540                         __attribute__nonnull__(pTHX_3)
541                         __attribute__nonnull__(pTHX_4);
542
543 PERL_CALLCONV OP*       Perl_dofile(pTHX_ OP* term, I32 force_builtin)
544                         __attribute__nonnull__(pTHX_1);
545
546 PERL_CALLCONV I32       Perl_dowantarray(pTHX)
547                         __attribute__warn_unused_result__;
548
549 PERL_CALLCONV void      Perl_dump_all(pTHX);
550 PERL_CALLCONV void      Perl_dump_eval(pTHX);
551 #if defined(DUMP_FDS)
552 PERL_CALLCONV void      Perl_dump_fds(pTHX_ char* s)
553                         __attribute__nonnull__(pTHX_1);
554
555 #endif
556 PERL_CALLCONV void      Perl_dump_form(pTHX_ const GV* gv)
557                         __attribute__nonnull__(pTHX_1);
558
559 PERL_CALLCONV void      Perl_gv_dump(pTHX_ GV* gv)
560                         __attribute__nonnull__(pTHX_1);
561
562 PERL_CALLCONV void      Perl_op_dump(pTHX_ const OP* arg)
563                         __attribute__nonnull__(pTHX_1);
564
565 PERL_CALLCONV void      Perl_pmop_dump(pTHX_ PMOP* pm);
566 PERL_CALLCONV void      Perl_dump_packsubs(pTHX_ const HV* stash)
567                         __attribute__nonnull__(pTHX_1);
568
569 PERL_CALLCONV void      Perl_dump_sub(pTHX_ const GV* gv)
570                         __attribute__nonnull__(pTHX_1);
571
572 PERL_CALLCONV void      Perl_fbm_compile(pTHX_ SV* sv, U32 flags)
573                         __attribute__nonnull__(pTHX_1);
574
575 PERL_CALLCONV char*     Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlestr, U32 flags)
576                         __attribute__warn_unused_result__
577                         __attribute__nonnull__(pTHX_1)
578                         __attribute__nonnull__(pTHX_2)
579                         __attribute__nonnull__(pTHX_3);
580
581 PERL_CALLCONV char*     Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char *const *const search_ext, I32 flags)
582                         __attribute__nonnull__(pTHX_1);
583
584 PERL_CALLCONV OP*       Perl_force_list(pTHX_ OP* arg);
585 PERL_CALLCONV OP*       Perl_fold_constants(pTHX_ OP* arg)
586                         __attribute__nonnull__(pTHX_1);
587
588 PERL_CALLCONV char*     Perl_form(pTHX_ const char* pat, ...)
589                         __attribute__format__(__printf__,pTHX_1,pTHX_2)
590                         __attribute__nonnull__(pTHX_1);
591
592 PERL_CALLCONV char*     Perl_vform(pTHX_ const char* pat, va_list* args)
593                         __attribute__nonnull__(pTHX_1);
594
595 PERL_CALLCONV void      Perl_free_tmps(pTHX);
596 PERL_CALLCONV OP*       Perl_gen_constant_list(pTHX_ OP* o);
597 #if !defined(HAS_GETENV_LEN)
598 PERL_CALLCONV char*     Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len)
599                         __attribute__nonnull__(pTHX_1)
600                         __attribute__nonnull__(pTHX_2);
601
602 #endif
603 PERL_CALLCONV void      Perl_get_db_sub(pTHX_ SV **svp, CV *cv)
604                         __attribute__nonnull__(pTHX_2);
605
606 PERL_CALLCONV void      Perl_gp_free(pTHX_ GV* gv);
607 PERL_CALLCONV GP*       Perl_gp_ref(pTHX_ GP* gp);
608 PERL_CALLCONV GV*       Perl_gv_AVadd(pTHX_ GV* gv)
609                         __attribute__nonnull__(pTHX_1);
610
611 PERL_CALLCONV GV*       Perl_gv_HVadd(pTHX_ GV* gv)
612                         __attribute__nonnull__(pTHX_1);
613
614 PERL_CALLCONV GV*       Perl_gv_IOadd(pTHX_ GV* gv)
615                         __attribute__nonnull__(pTHX_1);
616
617 PERL_CALLCONV GV*       Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method)
618                         __attribute__warn_unused_result__
619                         __attribute__nonnull__(pTHX_2);
620
621 PERL_CALLCONV void      Perl_gv_check(pTHX_ const HV* stash)
622                         __attribute__nonnull__(pTHX_1);
623
624 PERL_CALLCONV void      Perl_gv_efullname(pTHX_ SV* sv, const GV* gv)
625                         __attribute__nonnull__(pTHX_1)
626                         __attribute__nonnull__(pTHX_2);
627
628 /* PERL_CALLCONV void   Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
629                         __attribute__nonnull__(pTHX_1)
630                         __attribute__nonnull__(pTHX_2); */
631
632 PERL_CALLCONV void      Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
633                         __attribute__nonnull__(pTHX_1)
634                         __attribute__nonnull__(pTHX_2);
635
636 PERL_CALLCONV GV*       Perl_gv_fetchfile(pTHX_ const char* name)
637                         __attribute__nonnull__(pTHX_1);
638
639 PERL_CALLCONV GV*       Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN len, const U32 flags)
640                         __attribute__nonnull__(pTHX_1);
641
642 PERL_CALLCONV GV*       Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
643                         __attribute__nonnull__(pTHX_2);
644
645 PERL_CALLCONV GV*       Perl_gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
646                         __attribute__nonnull__(pTHX_2);
647
648 /* PERL_CALLCONV GV*    Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name)
649                         __attribute__nonnull__(pTHX_2); */
650
651 PERL_CALLCONV GV*       Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload)
652                         __attribute__nonnull__(pTHX_2);
653
654 PERL_CALLCONV GV*       Perl_gv_fetchpv(pTHX_ const char* name, I32 add, I32 sv_type)
655                         __attribute__nonnull__(pTHX_1);
656
657 PERL_CALLCONV void      Perl_gv_fullname(pTHX_ SV* sv, const GV* gv)
658                         __attribute__nonnull__(pTHX_1)
659                         __attribute__nonnull__(pTHX_2);
660
661 /* PERL_CALLCONV void   Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
662                         __attribute__nonnull__(pTHX_1)
663                         __attribute__nonnull__(pTHX_2); */
664
665 PERL_CALLCONV void      Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
666                         __attribute__nonnull__(pTHX_1)
667                         __attribute__nonnull__(pTHX_2);
668
669 PERL_CALLCONV GP *      Perl_newGP(pTHX_ GV *const gv)
670                         __attribute__nonnull__(pTHX_1);
671
672 PERL_CALLCONV void      Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi)
673                         __attribute__nonnull__(pTHX_1)
674                         __attribute__nonnull__(pTHX_3);
675
676 PERL_CALLCONV void      Perl_gv_name_set(pTHX_ GV* gv, const char *name, U32 len, U32 flags)
677                         __attribute__nonnull__(pTHX_1)
678                         __attribute__nonnull__(pTHX_2);
679
680 PERL_CALLCONV HV*       Perl_gv_stashpv(pTHX_ const char* name, I32 flags)
681                         __attribute__nonnull__(pTHX_1);
682
683 PERL_CALLCONV HV*       Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 flags)
684                         __attribute__nonnull__(pTHX_1);
685
686 PERL_CALLCONV HV*       Perl_gv_stashsv(pTHX_ SV* sv, I32 flags)
687                         __attribute__nonnull__(pTHX_1);
688
689 PERL_CALLCONV void      Perl_hv_clear(pTHX_ HV* tb);
690 PERL_CALLCONV HV *      Perl_hv_copy_hints_hv(pTHX_ HV *const ohv)
691                         __attribute__nonnull__(pTHX_1);
692
693 PERL_CALLCONV void      Perl_hv_delayfree_ent(pTHX_ HV* hv, HE* entry)
694                         __attribute__nonnull__(pTHX_1);
695
696 /* PERL_CALLCONV SV*    Perl_hv_delete(pTHX_ HV* tb, const char* key, I32 klen, I32 flags)
697                         __attribute__nonnull__(pTHX_2); */
698
699 /* PERL_CALLCONV SV*    Perl_hv_delete_ent(pTHX_ HV* tb, SV* key, I32 flags, U32 hash)
700                         __attribute__nonnull__(pTHX_2); */
701
702 /* PERL_CALLCONV bool   Perl_hv_exists(pTHX_ HV* tb, const char* key, I32 klen)
703                         __attribute__warn_unused_result__
704                         __attribute__nonnull__(pTHX_2); */
705
706 /* PERL_CALLCONV bool   Perl_hv_exists_ent(pTHX_ HV* tb, SV* key, U32 hash)
707                         __attribute__warn_unused_result__
708                         __attribute__nonnull__(pTHX_2); */
709
710 /* PERL_CALLCONV SV**   Perl_hv_fetch(pTHX_ HV* tb, const char* key, I32 klen, I32 lval)
711                         __attribute__nonnull__(pTHX_2); */
712
713 /* PERL_CALLCONV HE*    Perl_hv_fetch_ent(pTHX_ HV* tb, SV* key, I32 lval, U32 hash)
714                         __attribute__nonnull__(pTHX_2); */
715
716 PERL_CALLCONV void*     Perl_hv_common(pTHX_ HV* tb, SV* keysv, const char* key, STRLEN klen, int flags, int action, SV* val, U32 hash);
717 PERL_CALLCONV void*     Perl_hv_common_key_len(pTHX_ HV *hv, const char *key, I32 klen_i32, const int action, SV *val, const U32 hash)
718                         __attribute__nonnull__(pTHX_2);
719
720 PERL_CALLCONV void      Perl_hv_free_ent(pTHX_ HV* hv, HE* entryK)
721                         __attribute__nonnull__(pTHX_1);
722
723 PERL_CALLCONV I32       Perl_hv_iterinit(pTHX_ HV* tb)
724                         __attribute__nonnull__(pTHX_1);
725
726 PERL_CALLCONV char*     Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
727                         __attribute__warn_unused_result__
728                         __attribute__nonnull__(pTHX_1)
729                         __attribute__nonnull__(pTHX_2);
730
731 PERL_CALLCONV SV*       Perl_hv_iterkeysv(pTHX_ HE* entry)
732                         __attribute__warn_unused_result__
733                         __attribute__nonnull__(pTHX_1);
734
735 /* PERL_CALLCONV HE*    Perl_hv_iternext(pTHX_ HV* tb)
736                         __attribute__warn_unused_result__
737                         __attribute__nonnull__(pTHX_1); */
738
739 PERL_CALLCONV SV*       Perl_hv_iternextsv(pTHX_ HV* hv, char** key, I32* retlen)
740                         __attribute__warn_unused_result__
741                         __attribute__nonnull__(pTHX_1)
742                         __attribute__nonnull__(pTHX_2)
743                         __attribute__nonnull__(pTHX_3);
744
745 PERL_CALLCONV HE*       Perl_hv_iternext_flags(pTHX_ HV* tb, I32 flags)
746                         __attribute__warn_unused_result__
747                         __attribute__nonnull__(pTHX_1);
748
749 PERL_CALLCONV SV*       Perl_hv_iterval(pTHX_ HV* tb, HE* entry)
750                         __attribute__warn_unused_result__
751                         __attribute__nonnull__(pTHX_1)
752                         __attribute__nonnull__(pTHX_2);
753
754 PERL_CALLCONV void      Perl_hv_ksplit(pTHX_ HV* hv, IV newmax)
755                         __attribute__nonnull__(pTHX_1);
756
757 /* PERL_CALLCONV void   Perl_hv_magic(pTHX_ HV* hv, GV* gv, int how)
758                         __attribute__nonnull__(pTHX_1); */
759
760 PERL_CALLCONV HV *      Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c);
761 PERL_CALLCONV SV *      Perl_refcounted_he_fetch(pTHX_ const struct refcounted_he *chain, SV *keysv, const char *key, STRLEN klen, int flags, U32 hash);
762 PERL_CALLCONV void      Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
763 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, SV *const key, SV *const value);
764 /* PERL_CALLCONV SV**   Perl_hv_store(pTHX_ HV* tb, const char* key, I32 klen, SV* val, U32 hash); */
765 /* PERL_CALLCONV HE*    Perl_hv_store_ent(pTHX_ HV* tb, SV* key, SV* val, U32 hash); */
766 /* PERL_CALLCONV SV**   Perl_hv_store_flags(pTHX_ HV* tb, const char* key, I32 klen, SV* val, U32 hash, int flags); */
767 PERL_CALLCONV void      Perl_hv_undef(pTHX_ HV* tb);
768 PERL_CALLCONV I32       Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len)
769                         __attribute__pure__
770                         __attribute__nonnull__(pTHX_1)
771                         __attribute__nonnull__(pTHX_2);
772
773 PERL_CALLCONV I32       Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len)
774                         __attribute__pure__
775                         __attribute__nonnull__(pTHX_1)
776                         __attribute__nonnull__(pTHX_2);
777
778 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)
779                         __attribute__nonnull__(pTHX_1)
780                         __attribute__nonnull__(pTHX_5);
781
782 PERL_CALLCONV bool      Perl_ingroup(pTHX_ Gid_t testgid, bool effective)
783                         __attribute__warn_unused_result__;
784
785 PERL_CALLCONV void      Perl_init_argv_symbols(pTHX_ int argc, char **argv)
786                         __attribute__nonnull__(pTHX_2);
787
788 PERL_CALLCONV void      Perl_init_debugger(pTHX);
789 PERL_CALLCONV void      Perl_init_stacks(pTHX);
790 PERL_CALLCONV void      Perl_init_tm(pTHX_ struct tm *ptm)
791                         __attribute__nonnull__(pTHX_1);
792
793 PERL_CALLCONV U32       Perl_intro_my(pTHX);
794 PERL_CALLCONV char*     Perl_instr(pTHX_ const char* big, const char* little)
795                         __attribute__warn_unused_result__
796                         __attribute__pure__
797                         __attribute__nonnull__(pTHX_1)
798                         __attribute__nonnull__(pTHX_2);
799
800 PERL_CALLCONV bool      Perl_io_close(pTHX_ IO* io, bool not_implicit)
801                         __attribute__nonnull__(pTHX_1);
802
803 PERL_CALLCONV OP*       Perl_invert(pTHX_ OP* cmd)
804                         __attribute__warn_unused_result__;
805
806 PERL_CALLCONV bool      Perl_is_gv_magical(pTHX_ const char *name, STRLEN len, U32 flags)
807                         __attribute__warn_unused_result__
808                         __attribute__nonnull__(pTHX_1);
809
810 PERL_CALLCONV I32       Perl_is_lvalue_sub(pTHX)
811                         __attribute__warn_unused_result__;
812
813 PERL_CALLCONV U32       Perl_to_uni_upper_lc(pTHX_ U32 c)
814                         __attribute__warn_unused_result__
815                         __attribute__pure__;
816
817 PERL_CALLCONV U32       Perl_to_uni_title_lc(pTHX_ U32 c)
818                         __attribute__warn_unused_result__
819                         __attribute__pure__;
820
821 PERL_CALLCONV U32       Perl_to_uni_lower_lc(pTHX_ U32 c)
822                         __attribute__warn_unused_result__
823                         __attribute__pure__;
824
825 PERL_CALLCONV bool      Perl_is_uni_alnum(pTHX_ UV c)
826                         __attribute__warn_unused_result__
827                         __attribute__pure__;
828
829 PERL_CALLCONV bool      Perl_is_uni_alnumc(pTHX_ UV c)
830                         __attribute__warn_unused_result__
831                         __attribute__pure__;
832
833 PERL_CALLCONV bool      Perl_is_uni_idfirst(pTHX_ UV c)
834                         __attribute__warn_unused_result__
835                         __attribute__pure__;
836
837 PERL_CALLCONV bool      Perl_is_uni_alpha(pTHX_ UV c)
838                         __attribute__warn_unused_result__
839                         __attribute__pure__;
840
841 PERL_CALLCONV bool      Perl_is_uni_ascii(pTHX_ UV c)
842                         __attribute__warn_unused_result__
843                         __attribute__pure__;
844
845 PERL_CALLCONV bool      Perl_is_uni_space(pTHX_ UV c)
846                         __attribute__warn_unused_result__
847                         __attribute__pure__;
848
849 PERL_CALLCONV bool      Perl_is_uni_cntrl(pTHX_ UV c)
850                         __attribute__warn_unused_result__
851                         __attribute__pure__;
852
853 PERL_CALLCONV bool      Perl_is_uni_graph(pTHX_ UV c)
854                         __attribute__warn_unused_result__
855                         __attribute__pure__;
856
857 PERL_CALLCONV bool      Perl_is_uni_digit(pTHX_ UV c)
858                         __attribute__warn_unused_result__
859                         __attribute__pure__;
860
861 PERL_CALLCONV bool      Perl_is_uni_upper(pTHX_ UV c)
862                         __attribute__warn_unused_result__
863                         __attribute__pure__;
864
865 PERL_CALLCONV bool      Perl_is_uni_lower(pTHX_ UV c)
866                         __attribute__warn_unused_result__
867                         __attribute__pure__;
868
869 PERL_CALLCONV bool      Perl_is_uni_print(pTHX_ UV c)
870                         __attribute__warn_unused_result__
871                         __attribute__pure__;
872
873 PERL_CALLCONV bool      Perl_is_uni_punct(pTHX_ UV c)
874                         __attribute__warn_unused_result__
875                         __attribute__pure__;
876
877 PERL_CALLCONV bool      Perl_is_uni_xdigit(pTHX_ UV c)
878                         __attribute__warn_unused_result__
879                         __attribute__pure__;
880
881 PERL_CALLCONV UV        Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp)
882                         __attribute__nonnull__(pTHX_2)
883                         __attribute__nonnull__(pTHX_3);
884
885 PERL_CALLCONV UV        Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp)
886                         __attribute__nonnull__(pTHX_2)
887                         __attribute__nonnull__(pTHX_3);
888
889 PERL_CALLCONV UV        Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp)
890                         __attribute__nonnull__(pTHX_2)
891                         __attribute__nonnull__(pTHX_3);
892
893 PERL_CALLCONV UV        Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp)
894                         __attribute__nonnull__(pTHX_2)
895                         __attribute__nonnull__(pTHX_3);
896
897 PERL_CALLCONV bool      Perl_is_uni_alnum_lc(pTHX_ UV c)
898                         __attribute__warn_unused_result__
899                         __attribute__pure__;
900
901 PERL_CALLCONV bool      Perl_is_uni_alnumc_lc(pTHX_ UV c)
902                         __attribute__warn_unused_result__
903                         __attribute__pure__;
904
905 PERL_CALLCONV bool      Perl_is_uni_idfirst_lc(pTHX_ UV c)
906                         __attribute__warn_unused_result__
907                         __attribute__pure__;
908
909 PERL_CALLCONV bool      Perl_is_uni_alpha_lc(pTHX_ UV c)
910                         __attribute__warn_unused_result__
911                         __attribute__pure__;
912
913 PERL_CALLCONV bool      Perl_is_uni_ascii_lc(pTHX_ UV c)
914                         __attribute__warn_unused_result__
915                         __attribute__pure__;
916
917 PERL_CALLCONV bool      Perl_is_uni_space_lc(pTHX_ UV c)
918                         __attribute__warn_unused_result__
919                         __attribute__pure__;
920
921 PERL_CALLCONV bool      Perl_is_uni_cntrl_lc(pTHX_ UV c)
922                         __attribute__warn_unused_result__
923                         __attribute__pure__;
924
925 PERL_CALLCONV bool      Perl_is_uni_graph_lc(pTHX_ UV c)
926                         __attribute__warn_unused_result__
927                         __attribute__pure__;
928
929 PERL_CALLCONV bool      Perl_is_uni_digit_lc(pTHX_ UV c)
930                         __attribute__warn_unused_result__
931                         __attribute__pure__;
932
933 PERL_CALLCONV bool      Perl_is_uni_upper_lc(pTHX_ UV c)
934                         __attribute__warn_unused_result__
935                         __attribute__pure__;
936
937 PERL_CALLCONV bool      Perl_is_uni_lower_lc(pTHX_ UV c)
938                         __attribute__warn_unused_result__
939                         __attribute__pure__;
940
941 PERL_CALLCONV bool      Perl_is_uni_print_lc(pTHX_ UV c)
942                         __attribute__warn_unused_result__
943                         __attribute__pure__;
944
945 PERL_CALLCONV bool      Perl_is_uni_punct_lc(pTHX_ UV c)
946                         __attribute__warn_unused_result__
947                         __attribute__pure__;
948
949 PERL_CALLCONV bool      Perl_is_uni_xdigit_lc(pTHX_ UV c)
950                         __attribute__warn_unused_result__
951                         __attribute__pure__;
952
953 PERL_CALLCONV STRLEN    Perl_is_utf8_char(pTHX_ const U8 *p)
954                         __attribute__nonnull__(pTHX_1);
955
956 PERL_CALLCONV bool      Perl_is_utf8_string(pTHX_ const U8 *s, STRLEN len)
957                         __attribute__nonnull__(pTHX_1);
958
959 /* PERL_CALLCONV bool   Perl_is_utf8_string_loc(pTHX_ const U8 *s, STRLEN len, const U8 **p)
960                         __attribute__nonnull__(pTHX_1); */
961
962 PERL_CALLCONV bool      Perl_is_utf8_string_loclen(pTHX_ const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)
963                         __attribute__nonnull__(pTHX_1);
964
965 PERL_CALLCONV bool      Perl_is_utf8_alnum(pTHX_ const U8 *p)
966                         __attribute__warn_unused_result__
967                         __attribute__nonnull__(pTHX_1);
968
969 PERL_CALLCONV bool      Perl_is_utf8_alnumc(pTHX_ const U8 *p)
970                         __attribute__warn_unused_result__
971                         __attribute__nonnull__(pTHX_1);
972
973 PERL_CALLCONV bool      Perl_is_utf8_idfirst(pTHX_ const U8 *p)
974                         __attribute__warn_unused_result__
975                         __attribute__nonnull__(pTHX_1);
976
977 PERL_CALLCONV bool      Perl_is_utf8_idcont(pTHX_ const U8 *p)
978                         __attribute__warn_unused_result__
979                         __attribute__nonnull__(pTHX_1);
980
981 PERL_CALLCONV bool      Perl_is_utf8_alpha(pTHX_ const U8 *p)
982                         __attribute__warn_unused_result__
983                         __attribute__nonnull__(pTHX_1);
984
985 PERL_CALLCONV bool      Perl_is_utf8_ascii(pTHX_ const U8 *p)
986                         __attribute__warn_unused_result__
987                         __attribute__nonnull__(pTHX_1);
988
989 PERL_CALLCONV bool      Perl_is_utf8_space(pTHX_ const U8 *p)
990                         __attribute__warn_unused_result__
991                         __attribute__nonnull__(pTHX_1);
992
993 PERL_CALLCONV bool      Perl_is_utf8_cntrl(pTHX_ const U8 *p)
994                         __attribute__warn_unused_result__
995                         __attribute__nonnull__(pTHX_1);
996
997 PERL_CALLCONV bool      Perl_is_utf8_digit(pTHX_ const U8 *p)
998                         __attribute__warn_unused_result__
999                         __attribute__nonnull__(pTHX_1);
1000
1001 PERL_CALLCONV bool      Perl_is_utf8_graph(pTHX_ const U8 *p)
1002                         __attribute__warn_unused_result__
1003                         __attribute__nonnull__(pTHX_1);
1004
1005 PERL_CALLCONV bool      Perl_is_utf8_upper(pTHX_ const U8 *p)
1006                         __attribute__warn_unused_result__
1007                         __attribute__nonnull__(pTHX_1);
1008
1009 PERL_CALLCONV bool      Perl_is_utf8_lower(pTHX_ const U8 *p)
1010                         __attribute__warn_unused_result__
1011                         __attribute__nonnull__(pTHX_1);
1012
1013 PERL_CALLCONV bool      Perl_is_utf8_print(pTHX_ const U8 *p)
1014                         __attribute__warn_unused_result__
1015                         __attribute__nonnull__(pTHX_1);
1016
1017 PERL_CALLCONV bool      Perl_is_utf8_punct(pTHX_ const U8 *p)
1018                         __attribute__warn_unused_result__
1019                         __attribute__nonnull__(pTHX_1);
1020
1021 PERL_CALLCONV bool      Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1022                         __attribute__warn_unused_result__
1023                         __attribute__nonnull__(pTHX_1);
1024
1025 PERL_CALLCONV bool      Perl_is_utf8_mark(pTHX_ const U8 *p)
1026                         __attribute__warn_unused_result__
1027                         __attribute__nonnull__(pTHX_1);
1028
1029 PERL_CALLCONV OP*       Perl_jmaybe(pTHX_ OP* arg)
1030                         __attribute__nonnull__(pTHX_1);
1031
1032 PERL_CALLCONV I32       Perl_keyword(pTHX_ const char* d, I32 len, bool all_keywords)
1033                         __attribute__pure__
1034                         __attribute__nonnull__(pTHX_1);
1035
1036 PERL_CALLCONV void      Perl_leave_scope(pTHX_ I32 base);
1037 PERL_CALLCONV void      Perl_lex_end(pTHX);
1038 PERL_CALLCONV void      Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, bool new_filter);
1039 PERL_CALLCONV void      Perl_op_null(pTHX_ OP* o)
1040                         __attribute__nonnull__(pTHX_1);
1041
1042 PERL_CALLCONV void      Perl_op_clear(pTHX_ OP* o)
1043                         __attribute__nonnull__(pTHX_1);
1044
1045 PERL_CALLCONV void      Perl_op_refcnt_lock(pTHX);
1046 PERL_CALLCONV void      Perl_op_refcnt_unlock(pTHX);
1047 PERL_CALLCONV OP*       Perl_linklist(pTHX_ OP* o)
1048                         __attribute__nonnull__(pTHX_1);
1049
1050 PERL_CALLCONV OP*       Perl_list(pTHX_ OP* o);
1051 PERL_CALLCONV OP*       Perl_listkids(pTHX_ OP* o);
1052 PERL_CALLCONV void      Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...)
1053                         __attribute__nonnull__(pTHX_2);
1054
1055 PERL_CALLCONV void      Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args)
1056                         __attribute__nonnull__(pTHX_2);
1057
1058 PERL_CALLCONV OP*       Perl_localize(pTHX_ OP* arg, I32 lexical)
1059                         __attribute__nonnull__(pTHX_1);
1060
1061 PERL_CALLCONV I32       Perl_looks_like_number(pTHX_ SV *const sv)
1062                         __attribute__warn_unused_result__
1063                         __attribute__nonnull__(pTHX_1);
1064
1065 PERL_CALLCONV UV        Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
1066                         __attribute__nonnull__(pTHX_1)
1067                         __attribute__nonnull__(pTHX_2)
1068                         __attribute__nonnull__(pTHX_3);
1069
1070 PERL_CALLCONV UV        Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
1071                         __attribute__nonnull__(pTHX_1)
1072                         __attribute__nonnull__(pTHX_2)
1073                         __attribute__nonnull__(pTHX_3);
1074
1075 PERL_CALLCONV int       Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
1076                         __attribute__nonnull__(pTHX_1);
1077
1078 PERL_CALLCONV bool      Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
1079                         __attribute__warn_unused_result__
1080                         __attribute__nonnull__(pTHX_1)
1081                         __attribute__nonnull__(pTHX_2);
1082
1083 PERL_CALLCONV UV        Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
1084                         __attribute__nonnull__(pTHX_1)
1085                         __attribute__nonnull__(pTHX_2)
1086                         __attribute__nonnull__(pTHX_3);
1087
1088 PERL_CALLCONV int       Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg)
1089                         __attribute__nonnull__(pTHX_1)
1090                         __attribute__nonnull__(pTHX_2);
1091
1092 PERL_CALLCONV int       Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg)
1093                         __attribute__nonnull__(pTHX_1)
1094                         __attribute__nonnull__(pTHX_2);
1095
1096 PERL_CALLCONV int       Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg)
1097                         __attribute__nonnull__(pTHX_1)
1098                         __attribute__nonnull__(pTHX_2);
1099
1100 PERL_CALLCONV int       Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg)
1101                         __attribute__nonnull__(pTHX_1)
1102                         __attribute__nonnull__(pTHX_2);
1103
1104 PERL_CALLCONV int       Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg)
1105                         __attribute__nonnull__(pTHX_1)
1106                         __attribute__nonnull__(pTHX_2);
1107
1108 PERL_CALLCONV int       Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg)
1109                         __attribute__nonnull__(pTHX_1)
1110                         __attribute__nonnull__(pTHX_2);
1111
1112 PERL_CALLCONV int       Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg)
1113                         __attribute__nonnull__(pTHX_1)
1114                         __attribute__nonnull__(pTHX_2);
1115
1116 PERL_CALLCONV int       Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg)
1117                         __attribute__nonnull__(pTHX_1)
1118                         __attribute__nonnull__(pTHX_2);
1119
1120 PERL_CALLCONV int       Perl_magic_get(pTHX_ SV* sv, MAGIC* mg)
1121                         __attribute__nonnull__(pTHX_1)
1122                         __attribute__nonnull__(pTHX_2);
1123
1124 PERL_CALLCONV int       Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg)
1125                         __attribute__nonnull__(pTHX_1)
1126                         __attribute__nonnull__(pTHX_2);
1127
1128 PERL_CALLCONV int       Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg)
1129                         __attribute__nonnull__(pTHX_1)
1130                         __attribute__nonnull__(pTHX_2);
1131
1132 PERL_CALLCONV int       Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg)
1133                         __attribute__nonnull__(pTHX_1)
1134                         __attribute__nonnull__(pTHX_2);
1135
1136 PERL_CALLCONV int       Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg)
1137                         __attribute__nonnull__(pTHX_1)
1138                         __attribute__nonnull__(pTHX_2);
1139
1140 PERL_CALLCONV int       Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg)
1141                         __attribute__nonnull__(pTHX_1)
1142                         __attribute__nonnull__(pTHX_2);
1143
1144 PERL_CALLCONV int       Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg)
1145                         __attribute__nonnull__(pTHX_1)
1146                         __attribute__nonnull__(pTHX_2);
1147
1148 PERL_CALLCONV int       Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg)
1149                         __attribute__nonnull__(pTHX_1)
1150                         __attribute__nonnull__(pTHX_2);
1151
1152 PERL_CALLCONV int       Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg)
1153                         __attribute__nonnull__(pTHX_1)
1154                         __attribute__nonnull__(pTHX_2);
1155
1156 PERL_CALLCONV int       Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg)
1157                         __attribute__nonnull__(pTHX_1)
1158                         __attribute__nonnull__(pTHX_2);
1159
1160 PERL_CALLCONV int       Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg)
1161                         __attribute__nonnull__(pTHX_1)
1162                         __attribute__nonnull__(pTHX_2);
1163
1164 PERL_CALLCONV U32       Perl_magic_len(pTHX_ SV* sv, MAGIC* mg)
1165                         __attribute__nonnull__(pTHX_1)
1166                         __attribute__nonnull__(pTHX_2);
1167
1168 PERL_CALLCONV int       Perl_magic_nextpack(pTHX_ SV* sv, MAGIC* mg, SV* key)
1169                         __attribute__nonnull__(pTHX_1)
1170                         __attribute__nonnull__(pTHX_2)
1171                         __attribute__nonnull__(pTHX_3);
1172
1173 PERL_CALLCONV U32       Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg)
1174                         __attribute__nonnull__(pTHX_1)
1175                         __attribute__nonnull__(pTHX_2);
1176
1177 PERL_CALLCONV int       Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg)
1178                         __attribute__nonnull__(pTHX_1)
1179                         __attribute__nonnull__(pTHX_2);
1180
1181 PERL_CALLCONV int       Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
1182                         __attribute__noreturn__
1183                         __attribute__nonnull__(pTHX_1)
1184                         __attribute__nonnull__(pTHX_2);
1185
1186 PERL_CALLCONV int       Perl_magic_set(pTHX_ SV* sv, MAGIC* mg)
1187                         __attribute__nonnull__(pTHX_1)
1188                         __attribute__nonnull__(pTHX_2);
1189
1190 PERL_CALLCONV int       Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg)
1191                         __attribute__nonnull__(pTHX_1)
1192                         __attribute__nonnull__(pTHX_2);
1193
1194 PERL_CALLCONV int       Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg)
1195                         __attribute__nonnull__(pTHX_1)
1196                         __attribute__nonnull__(pTHX_2);
1197
1198 PERL_CALLCONV int       Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg)
1199                         __attribute__nonnull__(pTHX_1)
1200                         __attribute__nonnull__(pTHX_2);
1201
1202 PERL_CALLCONV int       Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg)
1203                         __attribute__nonnull__(pTHX_1)
1204                         __attribute__nonnull__(pTHX_2);
1205
1206 PERL_CALLCONV int       Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg)
1207                         __attribute__nonnull__(pTHX_1)
1208                         __attribute__nonnull__(pTHX_2);
1209
1210 PERL_CALLCONV int       Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg)
1211                         __attribute__nonnull__(pTHX_1)
1212                         __attribute__nonnull__(pTHX_2);
1213
1214 PERL_CALLCONV int       Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg)
1215                         __attribute__nonnull__(pTHX_1)
1216                         __attribute__nonnull__(pTHX_2);
1217
1218 PERL_CALLCONV int       Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg)
1219                         __attribute__nonnull__(pTHX_1)
1220                         __attribute__nonnull__(pTHX_2);
1221
1222 PERL_CALLCONV int       Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg)
1223                         __attribute__nonnull__(pTHX_1)
1224                         __attribute__nonnull__(pTHX_2);
1225
1226 PERL_CALLCONV int       Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg)
1227                         __attribute__nonnull__(pTHX_1)
1228                         __attribute__nonnull__(pTHX_2);
1229
1230 PERL_CALLCONV int       Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg)
1231                         __attribute__nonnull__(pTHX_1)
1232                         __attribute__nonnull__(pTHX_2);
1233
1234 PERL_CALLCONV int       Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg)
1235                         __attribute__nonnull__(pTHX_1)
1236                         __attribute__nonnull__(pTHX_2);
1237
1238 PERL_CALLCONV int       Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg)
1239                         __attribute__nonnull__(pTHX_1)
1240                         __attribute__nonnull__(pTHX_2);
1241
1242 PERL_CALLCONV int       Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg)
1243                         __attribute__nonnull__(pTHX_1)
1244                         __attribute__nonnull__(pTHX_2);
1245
1246 PERL_CALLCONV int       Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg)
1247                         __attribute__nonnull__(pTHX_1)
1248                         __attribute__nonnull__(pTHX_2);
1249
1250 PERL_CALLCONV int       Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg)
1251                         __attribute__nonnull__(pTHX_1)
1252                         __attribute__nonnull__(pTHX_2);
1253
1254 PERL_CALLCONV int       Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg)
1255                         __attribute__nonnull__(pTHX_1)
1256                         __attribute__nonnull__(pTHX_2);
1257
1258 PERL_CALLCONV int       Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg)
1259                         __attribute__nonnull__(pTHX_1)
1260                         __attribute__nonnull__(pTHX_2);
1261
1262 PERL_CALLCONV int       Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg)
1263                         __attribute__nonnull__(pTHX_1)
1264                         __attribute__nonnull__(pTHX_2);
1265
1266 PERL_CALLCONV int       Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg)
1267                         __attribute__nonnull__(pTHX_1)
1268                         __attribute__nonnull__(pTHX_2);
1269
1270 PERL_CALLCONV U32       Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg)
1271                         __attribute__nonnull__(pTHX_1)
1272                         __attribute__nonnull__(pTHX_2);
1273
1274 PERL_CALLCONV int       Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg)
1275                         __attribute__nonnull__(pTHX_1)
1276                         __attribute__nonnull__(pTHX_2);
1277
1278 PERL_CALLCONV void      Perl_magicname(pTHX_ const char* sym, const char* name, I32 namlen)
1279                         __attribute__nonnull__(pTHX_1);
1280
1281 PERL_CALLCONV void      Perl_markstack_grow(pTHX);
1282 #if defined(USE_LOCALE_COLLATE)
1283 PERL_CALLCONV int       Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg)
1284                         __attribute__nonnull__(pTHX_1)
1285                         __attribute__nonnull__(pTHX_2);
1286
1287 PERL_CALLCONV char*     Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen)
1288                         __attribute__nonnull__(pTHX_1)
1289                         __attribute__nonnull__(pTHX_3);
1290
1291 #endif
1292 PERL_CALLCONV SV*       Perl_mess(pTHX_ const char* pat, ...)
1293                         __attribute__format__(__printf__,pTHX_1,pTHX_2)
1294                         __attribute__nonnull__(pTHX_1);
1295
1296 PERL_CALLCONV SV*       Perl_vmess(pTHX_ const char* pat, va_list* args)
1297                         __attribute__nonnull__(pTHX_1);
1298
1299 PERL_CALLCONV void      Perl_qerror(pTHX_ SV* err)
1300                         __attribute__nonnull__(pTHX_1);
1301
1302 PERL_CALLCONV void      Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp)
1303                         __attribute__nonnull__(pTHX_1)
1304                         __attribute__nonnull__(pTHX_3);
1305
1306 PERL_CALLCONV void      Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags)
1307                         __attribute__nonnull__(pTHX_1)
1308                         __attribute__nonnull__(pTHX_3);
1309
1310 PERL_CALLCONV int       Perl_mg_clear(pTHX_ SV* sv)
1311                         __attribute__nonnull__(pTHX_1);
1312
1313 PERL_CALLCONV int       Perl_mg_copy(pTHX_ SV* sv, SV* nsv, const char* key, I32 klen)
1314                         __attribute__nonnull__(pTHX_1)
1315                         __attribute__nonnull__(pTHX_2);
1316
1317 PERL_CALLCONV void      Perl_mg_localize(pTHX_ SV* sv, SV* nsv)
1318                         __attribute__nonnull__(pTHX_1)
1319                         __attribute__nonnull__(pTHX_2);
1320
1321 PERL_CALLCONV MAGIC*    Perl_mg_find(pTHX_ const SV* sv, int type)
1322                         __attribute__warn_unused_result__;
1323
1324 PERL_CALLCONV int       Perl_mg_free(pTHX_ SV* sv)
1325                         __attribute__nonnull__(pTHX_1);
1326
1327 PERL_CALLCONV int       Perl_mg_get(pTHX_ SV* sv)
1328                         __attribute__nonnull__(pTHX_1);
1329
1330 PERL_CALLCONV U32       Perl_mg_length(pTHX_ SV* sv)
1331                         __attribute__nonnull__(pTHX_1);
1332
1333 PERL_CALLCONV void      Perl_mg_magical(pTHX_ SV* sv)
1334                         __attribute__nonnull__(pTHX_1);
1335
1336 PERL_CALLCONV int       Perl_mg_set(pTHX_ SV* sv)
1337                         __attribute__nonnull__(pTHX_1);
1338
1339 PERL_CALLCONV I32       Perl_mg_size(pTHX_ SV* sv)
1340                         __attribute__nonnull__(pTHX_1);
1341
1342 PERL_CALLCONV void      Perl_mini_mktime(pTHX_ struct tm *ptm)
1343                         __attribute__nonnull__(pTHX_1);
1344
1345 PERL_CALLCONV OP*       Perl_mod(pTHX_ OP* o, I32 type);
1346 PERL_CALLCONV int       Perl_mode_from_discipline(pTHX_ SV* discp);
1347 PERL_CALLCONV const char*       Perl_moreswitches(pTHX_ const char* s)
1348                         __attribute__nonnull__(pTHX_1);
1349
1350 PERL_CALLCONV OP*       Perl_my(pTHX_ OP* o)
1351                         __attribute__nonnull__(pTHX_1);
1352
1353 PERL_CALLCONV NV        Perl_my_atof(pTHX_ const char *s)
1354                         __attribute__nonnull__(pTHX_1);
1355
1356 #if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
1357 PERL_CALLCONV char*     Perl_my_bcopy(const char* from, char* to, I32 len)
1358                         __attribute__nonnull__(1)
1359                         __attribute__nonnull__(2);
1360
1361 #endif
1362 #if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
1363 PERL_CALLCONV char*     Perl_my_bzero(char* loc, I32 len)
1364                         __attribute__nonnull__(1);
1365
1366 #endif
1367 PERL_CALLCONV void      Perl_my_exit(pTHX_ U32 status)
1368                         __attribute__noreturn__;
1369
1370 PERL_CALLCONV void      Perl_my_failure_exit(pTHX)
1371                         __attribute__noreturn__;
1372
1373 PERL_CALLCONV I32       Perl_my_fflush_all(pTHX);
1374 PERL_CALLCONV Pid_t     Perl_my_fork(void);
1375 PERL_CALLCONV void      Perl_atfork_lock(void);
1376 PERL_CALLCONV void      Perl_atfork_unlock(void);
1377 PERL_CALLCONV I32       Perl_my_lstat(pTHX);
1378 #if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
1379 PERL_CALLCONV I32       Perl_my_memcmp(const char* s1, const char* s2, I32 len)
1380                         __attribute__pure__
1381                         __attribute__nonnull__(1)
1382                         __attribute__nonnull__(2);
1383
1384 #endif
1385 #if !defined(HAS_MEMSET)
1386 PERL_CALLCONV void*     Perl_my_memset(char* loc, I32 ch, I32 len)
1387                         __attribute__nonnull__(1);
1388
1389 #endif
1390 PERL_CALLCONV I32       Perl_my_pclose(pTHX_ PerlIO* ptr);
1391 PERL_CALLCONV PerlIO*   Perl_my_popen(pTHX_ const char* cmd, const char* mode)
1392                         __attribute__nonnull__(pTHX_1)
1393                         __attribute__nonnull__(pTHX_2);
1394
1395 PERL_CALLCONV PerlIO*   Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args)
1396                         __attribute__nonnull__(pTHX_1)
1397                         __attribute__nonnull__(pTHX_3);
1398
1399 PERL_CALLCONV void      Perl_my_setenv(pTHX_ const char* nam, const char* val);
1400 PERL_CALLCONV I32       Perl_my_stat(pTHX);
1401 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)
1402                         __attribute__nonnull__(pTHX_1);
1403
1404 #if defined(MYSWAP)
1405 PERL_CALLCONV short     Perl_my_swap(pTHX_ short s)
1406                         __attribute__malloc__
1407                         __attribute__warn_unused_result__
1408                         __attribute__pure__;
1409
1410 PERL_CALLCONV long      Perl_my_htonl(pTHX_ long l)
1411                         __attribute__malloc__
1412                         __attribute__warn_unused_result__
1413                         __attribute__pure__;
1414
1415 PERL_CALLCONV long      Perl_my_ntohl(pTHX_ long l)
1416                         __attribute__malloc__
1417                         __attribute__warn_unused_result__
1418                         __attribute__pure__;
1419
1420 #endif
1421 PERL_CALLCONV void      Perl_my_unexec(pTHX);
1422 PERL_CALLCONV OP*       Perl_newANONLIST(pTHX_ OP* o)
1423                         __attribute__malloc__
1424                         __attribute__warn_unused_result__;
1425
1426 PERL_CALLCONV OP*       Perl_newANONHASH(pTHX_ OP* o)
1427                         __attribute__malloc__
1428                         __attribute__warn_unused_result__;
1429
1430 PERL_CALLCONV OP*       Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
1431 PERL_CALLCONV OP*       Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
1432                         __attribute__malloc__
1433                         __attribute__warn_unused_result__;
1434
1435 PERL_CALLCONV OP*       Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
1436                         __attribute__malloc__
1437                         __attribute__warn_unused_result__
1438                         __attribute__nonnull__(pTHX_2);
1439
1440 PERL_CALLCONV CV*       Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
1441 #ifdef PERL_MAD
1442 PERL_CALLCONV OP*       Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
1443 #else
1444 PERL_CALLCONV void      Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
1445 #endif
1446 PERL_CALLCONV OP*       Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sv, OP* expr, OP* block, OP* cont)
1447                         __attribute__malloc__
1448                         __attribute__warn_unused_result__
1449                         __attribute__nonnull__(pTHX_5);
1450
1451 PERL_CALLCONV OP*       Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
1452                         __attribute__malloc__
1453                         __attribute__warn_unused_result__
1454                         __attribute__nonnull__(pTHX_1)
1455                         __attribute__nonnull__(pTHX_2);
1456
1457 PERL_CALLCONV OP*       Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP* left, OP* right)
1458                         __attribute__malloc__
1459                         __attribute__warn_unused_result__
1460                         __attribute__nonnull__(pTHX_3)
1461                         __attribute__nonnull__(pTHX_4);
1462
1463 PERL_CALLCONV OP*       Perl_newLOOPEX(pTHX_ I32 type, OP* label)
1464                         __attribute__malloc__
1465                         __attribute__warn_unused_result__
1466                         __attribute__nonnull__(pTHX_2);
1467
1468 PERL_CALLCONV OP*       Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
1469                         __attribute__malloc__
1470                         __attribute__warn_unused_result__;
1471
1472 PERL_CALLCONV OP*       Perl_newNULLLIST(pTHX)
1473                         __attribute__malloc__
1474                         __attribute__warn_unused_result__;
1475
1476 PERL_CALLCONV OP*       Perl_newOP(pTHX_ I32 optype, I32 flags)
1477                         __attribute__malloc__
1478                         __attribute__warn_unused_result__;
1479
1480 PERL_CALLCONV void      Perl_newPROG(pTHX_ OP* o)
1481                         __attribute__nonnull__(pTHX_1);
1482
1483 PERL_CALLCONV OP*       Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
1484                         __attribute__malloc__
1485                         __attribute__warn_unused_result__
1486                         __attribute__nonnull__(pTHX_2)
1487                         __attribute__nonnull__(pTHX_3);
1488
1489 PERL_CALLCONV OP*       Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
1490                         __attribute__malloc__
1491                         __attribute__warn_unused_result__;
1492
1493 PERL_CALLCONV OP*       Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
1494                         __attribute__malloc__
1495                         __attribute__warn_unused_result__;
1496
1497 PERL_CALLCONV CV*       Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
1498 PERL_CALLCONV CV *      Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags)
1499                         __attribute__nonnull__(pTHX_2)
1500                         __attribute__nonnull__(pTHX_3);
1501
1502 PERL_CALLCONV CV*       Perl_newXS(pTHX_ const char* name, XSUBADDR_t f, const char* filename)
1503                         __attribute__nonnull__(pTHX_2)
1504                         __attribute__nonnull__(pTHX_3);
1505
1506 /* PERL_CALLCONV AV*    Perl_newAV(pTHX)
1507                         __attribute__warn_unused_result__; */
1508
1509 PERL_CALLCONV OP*       Perl_newAVREF(pTHX_ OP* o)
1510                         __attribute__malloc__
1511                         __attribute__warn_unused_result__
1512                         __attribute__nonnull__(pTHX_1);
1513
1514 PERL_CALLCONV OP*       Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
1515                         __attribute__malloc__
1516                         __attribute__warn_unused_result__;
1517
1518 PERL_CALLCONV OP*       Perl_newCVREF(pTHX_ I32 flags, OP* o)
1519                         __attribute__malloc__
1520                         __attribute__warn_unused_result__;
1521
1522 PERL_CALLCONV OP*       Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
1523                         __attribute__malloc__
1524                         __attribute__warn_unused_result__
1525                         __attribute__nonnull__(pTHX_3);
1526
1527 PERL_CALLCONV GV*       Perl_newGVgen(pTHX_ const char* pack)
1528                         __attribute__malloc__
1529                         __attribute__warn_unused_result__
1530                         __attribute__nonnull__(pTHX_1);
1531
1532 PERL_CALLCONV OP*       Perl_newGVREF(pTHX_ I32 type, OP* o)
1533                         __attribute__malloc__
1534                         __attribute__warn_unused_result__;
1535
1536 PERL_CALLCONV OP*       Perl_newHVREF(pTHX_ OP* o)
1537                         __attribute__malloc__
1538                         __attribute__warn_unused_result__
1539                         __attribute__nonnull__(pTHX_1);
1540
1541 /* PERL_CALLCONV HV*    Perl_newHV(pTHX)
1542                         __attribute__warn_unused_result__; */
1543
1544 PERL_CALLCONV HV*       Perl_newHVhv(pTHX_ HV* hv)
1545                         __attribute__malloc__
1546                         __attribute__warn_unused_result__;
1547
1548 PERL_CALLCONV IO*       Perl_newIO(pTHX)
1549                         __attribute__malloc__
1550                         __attribute__warn_unused_result__;
1551
1552 PERL_CALLCONV OP*       Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
1553                         __attribute__malloc__
1554                         __attribute__warn_unused_result__;
1555
1556 #ifdef USE_ITHREADS
1557 PERL_CALLCONV OP*       Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv)
1558                         __attribute__malloc__
1559                         __attribute__warn_unused_result__
1560                         __attribute__nonnull__(pTHX_3);
1561
1562 #endif
1563 PERL_CALLCONV OP*       Perl_newPMOP(pTHX_ I32 type, I32 flags)
1564                         __attribute__malloc__
1565                         __attribute__warn_unused_result__;
1566
1567 PERL_CALLCONV OP*       Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
1568                         __attribute__malloc__
1569                         __attribute__warn_unused_result__;
1570
1571 PERL_CALLCONV SV*       Perl_newRV(pTHX_ SV* sv)
1572                         __attribute__malloc__
1573                         __attribute__warn_unused_result__
1574                         __attribute__nonnull__(pTHX_1);
1575
1576 PERL_CALLCONV SV*       Perl_newRV_noinc(pTHX_ SV* sv)
1577                         __attribute__malloc__
1578                         __attribute__warn_unused_result__
1579                         __attribute__nonnull__(pTHX_1);
1580
1581 PERL_CALLCONV SV*       Perl_newSV(pTHX_ STRLEN len)
1582                         __attribute__malloc__
1583                         __attribute__warn_unused_result__;
1584
1585 PERL_CALLCONV OP*       Perl_newSVREF(pTHX_ OP* o)
1586                         __attribute__malloc__
1587                         __attribute__warn_unused_result__
1588                         __attribute__nonnull__(pTHX_1);
1589
1590 PERL_CALLCONV OP*       Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
1591                         __attribute__malloc__
1592                         __attribute__warn_unused_result__
1593                         __attribute__nonnull__(pTHX_3);
1594
1595 PERL_CALLCONV SV*       Perl_newSViv(pTHX_ IV i)
1596                         __attribute__malloc__
1597                         __attribute__warn_unused_result__;
1598
1599 PERL_CALLCONV SV*       Perl_newSVuv(pTHX_ UV u)
1600                         __attribute__malloc__
1601                         __attribute__warn_unused_result__;
1602
1603 PERL_CALLCONV SV*       Perl_newSVnv(pTHX_ NV n)
1604                         __attribute__malloc__
1605                         __attribute__warn_unused_result__;
1606
1607 PERL_CALLCONV SV*       Perl_newSVpv(pTHX_ const char* s, STRLEN len)
1608                         __attribute__malloc__
1609                         __attribute__warn_unused_result__;
1610
1611 PERL_CALLCONV SV*       Perl_newSVpvn(pTHX_ const char* s, STRLEN len)
1612                         __attribute__malloc__
1613                         __attribute__warn_unused_result__;
1614
1615 PERL_CALLCONV SV*       Perl_newSVpvn_flags(pTHX_ const char* s, STRLEN len, U32 flags)
1616                         __attribute__malloc__
1617                         __attribute__warn_unused_result__;
1618
1619 PERL_CALLCONV SV*       Perl_newSVhek(pTHX_ const HEK *hek)
1620                         __attribute__malloc__
1621                         __attribute__warn_unused_result__;
1622
1623 PERL_CALLCONV SV*       Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
1624                         __attribute__malloc__
1625                         __attribute__warn_unused_result__;
1626
1627 PERL_CALLCONV SV*       Perl_newSVpvf(pTHX_ const char* pat, ...)
1628                         __attribute__malloc__
1629                         __attribute__warn_unused_result__
1630                         __attribute__format__(__printf__,pTHX_1,pTHX_2)
1631                         __attribute__nonnull__(pTHX_1);
1632
1633 PERL_CALLCONV SV*       Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args)
1634                         __attribute__malloc__
1635                         __attribute__warn_unused_result__
1636                         __attribute__nonnull__(pTHX_1);
1637
1638 PERL_CALLCONV SV*       Perl_newSVrv(pTHX_ SV* rv, const char* classname)
1639                         __attribute__nonnull__(pTHX_1);
1640
1641 PERL_CALLCONV SV*       Perl_newSVsv(pTHX_ SV* old)
1642                         __attribute__malloc__
1643                         __attribute__warn_unused_result__;
1644
1645 PERL_CALLCONV SV*       Perl_newSV_type(pTHX_ svtype type)
1646                         __attribute__malloc__
1647                         __attribute__warn_unused_result__;
1648
1649 PERL_CALLCONV OP*       Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
1650                         __attribute__malloc__
1651                         __attribute__warn_unused_result__;
1652
1653 PERL_CALLCONV OP*       Perl_newWHENOP(pTHX_ OP* cond, OP* block)
1654                         __attribute__malloc__
1655                         __attribute__warn_unused_result__
1656                         __attribute__nonnull__(pTHX_2);
1657
1658 PERL_CALLCONV OP*       Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my)
1659                         __attribute__malloc__
1660                         __attribute__warn_unused_result__;
1661
1662 PERL_CALLCONV PERL_SI*  Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
1663                         __attribute__malloc__
1664                         __attribute__warn_unused_result__;
1665
1666 PERL_CALLCONV char*     Perl_scan_vstring(pTHX_ const char *vstr, const char *const end, SV *sv)
1667                         __attribute__nonnull__(pTHX_1)
1668                         __attribute__nonnull__(pTHX_2)
1669                         __attribute__nonnull__(pTHX_3);
1670
1671 PERL_CALLCONV const char*       Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv)
1672                         __attribute__nonnull__(pTHX_1)
1673                         __attribute__nonnull__(pTHX_2);
1674
1675 PERL_CALLCONV SV*       Perl_new_version(pTHX_ SV *ver)
1676                         __attribute__nonnull__(pTHX_1);
1677
1678 PERL_CALLCONV SV*       Perl_upg_version(pTHX_ SV *ver, bool qv)
1679                         __attribute__nonnull__(pTHX_1);
1680
1681 PERL_CALLCONV bool      Perl_vverify(pTHX_ SV *vs)
1682                         __attribute__nonnull__(pTHX_1);
1683
1684 PERL_CALLCONV SV*       Perl_vnumify(pTHX_ SV *vs)
1685                         __attribute__nonnull__(pTHX_1);
1686
1687 PERL_CALLCONV SV*       Perl_vnormal(pTHX_ SV *vs)
1688                         __attribute__nonnull__(pTHX_1);
1689
1690 PERL_CALLCONV SV*       Perl_vstringify(pTHX_ SV *vs)
1691                         __attribute__nonnull__(pTHX_1);
1692
1693 PERL_CALLCONV int       Perl_vcmp(pTHX_ SV *lhv, SV *rhv)
1694                         __attribute__nonnull__(pTHX_1)
1695                         __attribute__nonnull__(pTHX_2);
1696
1697 PERL_CALLCONV PerlIO*   Perl_nextargv(pTHX_ GV* gv)
1698                         __attribute__nonnull__(pTHX_1);
1699
1700 PERL_CALLCONV char*     Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
1701                         __attribute__pure__
1702                         __attribute__nonnull__(pTHX_1)
1703                         __attribute__nonnull__(pTHX_2)
1704                         __attribute__nonnull__(pTHX_3)
1705                         __attribute__nonnull__(pTHX_4);
1706
1707 PERL_CALLCONV OP*       Perl_oopsCV(pTHX_ OP* o)
1708                         __attribute__noreturn__
1709                         __attribute__nonnull__(pTHX_1);
1710
1711 PERL_CALLCONV void      Perl_op_free(pTHX_ OP* arg);
1712 #ifdef PERL_MAD
1713 PERL_CALLCONV OP*       Perl_package(pTHX_ OP* o)
1714                         __attribute__nonnull__(pTHX_1);
1715
1716 #else
1717 PERL_CALLCONV void      Perl_package(pTHX_ OP* o)
1718                         __attribute__nonnull__(pTHX_1);
1719
1720 #endif
1721 PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
1722 PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name)
1723                         __attribute__nonnull__(pTHX_1);
1724
1725 PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name)
1726                         __attribute__warn_unused_result__
1727                         __attribute__nonnull__(pTHX_1);
1728
1729 PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX);
1730 PERL_CALLCONV OP*       Perl_oopsAV(pTHX_ OP* o)
1731                         __attribute__warn_unused_result__
1732                         __attribute__nonnull__(pTHX_1);
1733
1734 PERL_CALLCONV OP*       Perl_oopsHV(pTHX_ OP* o)
1735                         __attribute__warn_unused_result__
1736                         __attribute__nonnull__(pTHX_1);
1737
1738 PERL_CALLCONV void      Perl_pad_leavemy(pTHX);
1739 PERL_CALLCONV SV*       Perl_pad_sv(pTHX_ PADOFFSET po);
1740 PERL_CALLCONV void      Perl_pad_free(pTHX_ PADOFFSET po);
1741 PERL_CALLCONV void      Perl_pad_reset(pTHX);
1742 PERL_CALLCONV void      Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
1743 PERL_CALLCONV void      Perl_peep(pTHX_ OP* o);
1744 PERL_CALLCONV PerlIO*   Perl_start_glob(pTHX_ SV* pattern, IO *io)
1745                         __attribute__nonnull__(pTHX_1)
1746                         __attribute__nonnull__(pTHX_2);
1747
1748 #if defined(USE_REENTRANT_API)
1749 PERL_CALLCONV void      Perl_reentrant_size(pTHX);
1750 PERL_CALLCONV void      Perl_reentrant_init(pTHX);
1751 PERL_CALLCONV void      Perl_reentrant_free(pTHX);
1752 PERL_CALLCONV void*     Perl_reentrant_retry(const char*, ...)
1753                         __attribute__nonnull__(1);
1754
1755 #endif
1756 PERL_CALLCONV void      Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
1757 PERL_CALLCONV I32       Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv)
1758                         __attribute__nonnull__(pTHX_1)
1759                         __attribute__nonnull__(pTHX_3);
1760
1761 PERL_CALLCONV I32       Perl_call_method(pTHX_ const char* methname, I32 flags)
1762                         __attribute__nonnull__(pTHX_1);
1763
1764 PERL_CALLCONV I32       Perl_call_pv(pTHX_ const char* sub_name, I32 flags)
1765                         __attribute__nonnull__(pTHX_1);
1766
1767 PERL_CALLCONV I32       Perl_call_sv(pTHX_ SV* sv, VOL I32 flags)
1768                         __attribute__nonnull__(pTHX_1);
1769
1770 PERL_CALLCONV void      Perl_despatch_signals(pTHX);
1771 PERL_CALLCONV OP *      Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref)
1772                         __attribute__nonnull__(pTHX_1);
1773
1774 PERL_CALLCONV SV*       Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error)
1775                         __attribute__nonnull__(pTHX_1);
1776
1777 PERL_CALLCONV I32       Perl_eval_sv(pTHX_ SV* sv, I32 flags)
1778                         __attribute__nonnull__(pTHX_1);
1779
1780 PERL_CALLCONV SV*       Perl_get_sv(pTHX_ const char* name, I32 create)
1781                         __attribute__nonnull__(pTHX_1);
1782
1783 PERL_CALLCONV AV*       Perl_get_av(pTHX_ const char* name, I32 create)
1784                         __attribute__nonnull__(pTHX_1);
1785
1786 PERL_CALLCONV HV*       Perl_get_hv(pTHX_ const char* name, I32 create)
1787                         __attribute__nonnull__(pTHX_1);
1788
1789 PERL_CALLCONV CV*       Perl_get_cv(pTHX_ const char* name, I32 flags)
1790                         __attribute__nonnull__(pTHX_1);
1791
1792 PERL_CALLCONV CV*       Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags)
1793                         __attribute__nonnull__(pTHX_1);
1794
1795 PERL_CALLCONV int       Perl_init_i18nl10n(pTHX_ int printwarn);
1796 PERL_CALLCONV int       Perl_init_i18nl14n(pTHX_ int printwarn);
1797 PERL_CALLCONV void      Perl_new_collate(pTHX_ const char* newcoll);
1798 PERL_CALLCONV void      Perl_new_ctype(pTHX_ const char* newctype)
1799                         __attribute__nonnull__(pTHX_1);
1800
1801 PERL_CALLCONV void      Perl_new_numeric(pTHX_ const char* newcoll);
1802 PERL_CALLCONV void      Perl_set_numeric_local(pTHX);
1803 PERL_CALLCONV void      Perl_set_numeric_radix(pTHX);
1804 PERL_CALLCONV void      Perl_set_numeric_standard(pTHX);
1805 PERL_CALLCONV void      Perl_require_pv(pTHX_ const char* pv)
1806                         __attribute__nonnull__(pTHX_1);
1807
1808 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)
1809                         __attribute__nonnull__(pTHX_1)
1810                         __attribute__nonnull__(pTHX_2)
1811                         __attribute__nonnull__(pTHX_3)
1812                         __attribute__nonnull__(pTHX_4)
1813                         __attribute__nonnull__(pTHX_5)
1814                         __attribute__nonnull__(pTHX_6);
1815
1816 PERL_CALLCONV void      Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist)
1817                         __attribute__nonnull__(pTHX_1)
1818                         __attribute__nonnull__(pTHX_2)
1819                         __attribute__nonnull__(pTHX_3)
1820                         __attribute__nonnull__(pTHX_4)
1821                         __attribute__nonnull__(pTHX_5);
1822
1823 #ifdef PERL_USES_PL_PIDSTATUS
1824 PERL_CALLCONV void      Perl_pidgone(pTHX_ Pid_t pid, int status);
1825 #endif
1826 PERL_CALLCONV void      Perl_pmflag(pTHX_ U32* pmfl, int ch)
1827                         __attribute__nonnull__(pTHX_1);
1828
1829 PERL_CALLCONV OP*       Perl_pmruntime(pTHX_ OP* pm, OP* expr, bool isreg)
1830                         __attribute__nonnull__(pTHX_1)
1831                         __attribute__nonnull__(pTHX_2);
1832
1833 PERL_CALLCONV OP*       Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl)
1834                         __attribute__nonnull__(pTHX_1)
1835                         __attribute__nonnull__(pTHX_2)
1836                         __attribute__nonnull__(pTHX_3);
1837
1838 PERL_CALLCONV void      Perl_pop_scope(pTHX);
1839 PERL_CALLCONV OP*       Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
1840 PERL_CALLCONV void      Perl_push_scope(pTHX);
1841 /* PERL_CALLCONV OP*    Perl_ref(pTHX_ OP* o, I32 type); */
1842 PERL_CALLCONV OP*       Perl_refkids(pTHX_ OP* o, I32 type);
1843 PERL_CALLCONV void      Perl_regdump(pTHX_ const regexp* r)
1844                         __attribute__nonnull__(pTHX_1);
1845
1846 PERL_CALLCONV void      Perl_regdump(pTHX_ const regexp* r)
1847                         __attribute__nonnull__(pTHX_1);
1848
1849 PERL_CALLCONV SV*       Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *n, bool doinit, SV **listsvp, SV **altsvp)
1850                         __attribute__nonnull__(pTHX_2);
1851
1852 PERL_CALLCONV I32       Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave)
1853                         __attribute__nonnull__(pTHX_1)
1854                         __attribute__nonnull__(pTHX_2)
1855                         __attribute__nonnull__(pTHX_3)
1856                         __attribute__nonnull__(pTHX_4)
1857                         __attribute__nonnull__(pTHX_6);
1858
1859 PERL_CALLCONV void      Perl_pregfree(pTHX_ REGEXP* r);
1860 PERL_CALLCONV void      Perl_pregfree2(pTHX_ REGEXP* prog)
1861                         __attribute__nonnull__(pTHX_1);
1862
1863 PERL_CALLCONV REGEXP*   Perl_reg_temp_copy(pTHX_ REGEXP* r)
1864                         __attribute__nonnull__(pTHX_1);
1865
1866 PERL_CALLCONV void      Perl_regfree_internal(pTHX_ REGEXP * const rx)
1867                         __attribute__nonnull__(pTHX_1);
1868
1869 #if defined(USE_ITHREADS)
1870 PERL_CALLCONV void*     Perl_regdupe_internal(pTHX_ REGEXP * const r, CLONE_PARAMS* param)
1871                         __attribute__nonnull__(pTHX_1)
1872                         __attribute__nonnull__(pTHX_2);
1873
1874 #endif
1875 PERL_CALLCONV REGEXP*   Perl_pregcomp(pTHX_ const SV * const pattern, const U32 flags)
1876                         __attribute__nonnull__(pTHX_1);
1877
1878 PERL_CALLCONV REGEXP*   Perl_re_compile(pTHX_ const SV * const pattern, U32 flags)
1879                         __attribute__nonnull__(pTHX_1);
1880
1881 PERL_CALLCONV char*     Perl_re_intuit_start(pTHX_ REGEXP * const rx, SV* sv, char* strpos, char* strend, const U32 flags, re_scream_pos_data *data)
1882                         __attribute__nonnull__(pTHX_1)
1883                         __attribute__nonnull__(pTHX_3)
1884                         __attribute__nonnull__(pTHX_4);
1885
1886 PERL_CALLCONV SV*       Perl_re_intuit_string(pTHX_ REGEXP * const rx)
1887                         __attribute__nonnull__(pTHX_1);
1888
1889 PERL_CALLCONV I32       Perl_regexec_flags(pTHX_ REGEXP * const rx, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags)
1890                         __attribute__nonnull__(pTHX_1)
1891                         __attribute__nonnull__(pTHX_2)
1892                         __attribute__nonnull__(pTHX_3)
1893                         __attribute__nonnull__(pTHX_4)
1894                         __attribute__nonnull__(pTHX_6);
1895
1896 PERL_CALLCONV regnode*  Perl_regnext(pTHX_ regnode* p)
1897                         __attribute__warn_unused_result__;
1898
1899
1900 PERL_CALLCONV SV*       Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags)
1901                         __attribute__nonnull__(pTHX_1);
1902
1903 PERL_CALLCONV SV*       Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags)
1904                         __attribute__nonnull__(pTHX_1);
1905
1906 PERL_CALLCONV SV*       Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags)
1907                         __attribute__nonnull__(pTHX_1)
1908                         __attribute__nonnull__(pTHX_2);
1909
1910 PERL_CALLCONV bool      Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags)
1911                         __attribute__nonnull__(pTHX_1)
1912                         __attribute__nonnull__(pTHX_2);
1913
1914 PERL_CALLCONV SV*       Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags)
1915                         __attribute__nonnull__(pTHX_1);
1916
1917 PERL_CALLCONV SV*       Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags)
1918                         __attribute__nonnull__(pTHX_1);
1919
1920 PERL_CALLCONV SV*       Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags)
1921                         __attribute__nonnull__(pTHX_1);
1922
1923 PERL_CALLCONV SV*       Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags)
1924                         __attribute__nonnull__(pTHX_1);
1925
1926
1927 PERL_CALLCONV void      Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv)
1928                         __attribute__nonnull__(pTHX_1);
1929
1930 PERL_CALLCONV void      Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value)
1931                         __attribute__nonnull__(pTHX_1);
1932
1933 PERL_CALLCONV I32       Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren)
1934                         __attribute__nonnull__(pTHX_1)
1935                         __attribute__nonnull__(pTHX_2);
1936
1937
1938 PERL_CALLCONV SV*       Perl_reg_qr_package(pTHX_ REGEXP * const rx)
1939                         __attribute__nonnull__(pTHX_1);
1940
1941
1942 PERL_CALLCONV void      Perl_regprop(pTHX_ const regexp *prog, SV* sv, const regnode* o)
1943                         __attribute__nonnull__(pTHX_2)
1944                         __attribute__nonnull__(pTHX_3);
1945
1946 PERL_CALLCONV void      Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count)
1947                         __attribute__nonnull__(pTHX_1)
1948                         __attribute__nonnull__(pTHX_2);
1949
1950 PERL_CALLCONV char*     Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
1951                         __attribute__pure__
1952                         __attribute__nonnull__(pTHX_1)
1953                         __attribute__nonnull__(pTHX_2)
1954                         __attribute__nonnull__(pTHX_3)
1955                         __attribute__nonnull__(pTHX_4);
1956
1957 PERL_CALLCONV Sighandler_t      Perl_rsignal(pTHX_ int i, Sighandler_t t);
1958 PERL_CALLCONV int       Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
1959 PERL_CALLCONV int       Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save)
1960                         __attribute__nonnull__(pTHX_3);
1961
1962 PERL_CALLCONV Sighandler_t      Perl_rsignal_state(pTHX_ int i);
1963 PERL_CALLCONV void      Perl_rxres_free(pTHX_ void** rsp)
1964                         __attribute__nonnull__(pTHX_1);
1965
1966 PERL_CALLCONV void      Perl_rxres_restore(pTHX_ void** rsp, REGEXP* prx)
1967                         __attribute__nonnull__(pTHX_1)
1968                         __attribute__nonnull__(pTHX_2);
1969
1970 PERL_CALLCONV void      Perl_rxres_save(pTHX_ void** rsp, REGEXP* prx)
1971                         __attribute__nonnull__(pTHX_1)
1972                         __attribute__nonnull__(pTHX_2);
1973
1974 #if !defined(HAS_RENAME)
1975 PERL_CALLCONV I32       Perl_same_dirent(pTHX_ const char* a, const char* b)
1976                         __attribute__nonnull__(pTHX_1)
1977                         __attribute__nonnull__(pTHX_2);
1978
1979 #endif
1980 PERL_CALLCONV char*     Perl_savepv(pTHX_ const char* pv)
1981                         __attribute__malloc__
1982                         __attribute__warn_unused_result__;
1983
1984 PERL_CALLCONV char*     Perl_savepvn(pTHX_ const char* pv, I32 len)
1985                         __attribute__malloc__
1986                         __attribute__warn_unused_result__;
1987
1988 PERL_CALLCONV char*     Perl_savesharedpv(pTHX_ const char* pv)
1989                         __attribute__malloc__
1990                         __attribute__warn_unused_result__;
1991
1992 PERL_CALLCONV char*     Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
1993                         __attribute__malloc__
1994                         __attribute__warn_unused_result__
1995                         __attribute__nonnull__(pTHX_1);
1996
1997 PERL_CALLCONV char*     Perl_savesvpv(pTHX_ SV* sv)
1998                         __attribute__malloc__
1999                         __attribute__warn_unused_result__
2000                         __attribute__nonnull__(pTHX_1);
2001
2002 PERL_CALLCONV void      Perl_savestack_grow(pTHX);
2003 PERL_CALLCONV void      Perl_savestack_grow_cnt(pTHX_ I32 need);
2004 PERL_CALLCONV void      Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr)
2005                         __attribute__nonnull__(pTHX_1)
2006                         __attribute__nonnull__(pTHX_3);
2007
2008 PERL_CALLCONV I32       Perl_save_alloc(pTHX_ I32 size, I32 pad);
2009 PERL_CALLCONV void      Perl_save_aptr(pTHX_ AV** aptr)
2010                         __attribute__nonnull__(pTHX_1);
2011
2012 PERL_CALLCONV AV*       Perl_save_ary(pTHX_ GV* gv)
2013                         __attribute__nonnull__(pTHX_1);
2014
2015 PERL_CALLCONV void      Perl_save_bool(pTHX_ bool* boolp)
2016                         __attribute__nonnull__(pTHX_1);
2017
2018 PERL_CALLCONV void      Perl_save_clearsv(pTHX_ SV** svp)
2019                         __attribute__nonnull__(pTHX_1);
2020
2021 PERL_CALLCONV void      Perl_save_delete(pTHX_ HV* hv, char* key, I32 klen)
2022                         __attribute__nonnull__(pTHX_1)
2023                         __attribute__nonnull__(pTHX_2);
2024
2025 PERL_CALLCONV void      Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p)
2026                         __attribute__nonnull__(pTHX_2);
2027
2028 PERL_CALLCONV void      Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
2029 PERL_CALLCONV void      Perl_save_freesv(pTHX_ SV* sv);
2030 PERL_CALLCONV void      Perl_save_freeop(pTHX_ OP* o);
2031 PERL_CALLCONV void      Perl_save_freepv(pTHX_ char* pv);
2032 PERL_CALLCONV void      Perl_save_generic_svref(pTHX_ SV** sptr)
2033                         __attribute__nonnull__(pTHX_1);
2034
2035 PERL_CALLCONV void      Perl_save_generic_pvref(pTHX_ char** str)
2036                         __attribute__nonnull__(pTHX_1);
2037
2038 PERL_CALLCONV void      Perl_save_shared_pvref(pTHX_ char** str)
2039                         __attribute__nonnull__(pTHX_1);
2040
2041 PERL_CALLCONV void      Perl_save_gp(pTHX_ GV* gv, I32 empty)
2042                         __attribute__nonnull__(pTHX_1);
2043
2044 PERL_CALLCONV HV*       Perl_save_hash(pTHX_ GV* gv)
2045                         __attribute__nonnull__(pTHX_1);
2046
2047 PERL_CALLCONV void      Perl_save_helem(pTHX_ HV* hv, SV *key, SV **sptr)
2048                         __attribute__nonnull__(pTHX_1)
2049                         __attribute__nonnull__(pTHX_2)
2050                         __attribute__nonnull__(pTHX_3);
2051
2052 PERL_CALLCONV void      Perl_save_hptr(pTHX_ HV** hptr)
2053                         __attribute__nonnull__(pTHX_1);
2054
2055 PERL_CALLCONV void      Perl_save_I16(pTHX_ I16* intp)
2056                         __attribute__nonnull__(pTHX_1);
2057
2058 PERL_CALLCONV void      Perl_save_I32(pTHX_ I32* intp)
2059                         __attribute__nonnull__(pTHX_1);
2060
2061 PERL_CALLCONV void      Perl_save_I8(pTHX_ I8* bytep)
2062                         __attribute__nonnull__(pTHX_1);
2063
2064 PERL_CALLCONV void      Perl_save_int(pTHX_ int* intp)
2065                         __attribute__nonnull__(pTHX_1);
2066
2067 PERL_CALLCONV void      Perl_save_item(pTHX_ SV* item)
2068                         __attribute__nonnull__(pTHX_1);
2069
2070 PERL_CALLCONV void      Perl_save_iv(pTHX_ IV* iv)
2071                         __attribute__nonnull__(pTHX_1);
2072
2073 PERL_CALLCONV void      Perl_save_list(pTHX_ SV** sarg, I32 maxsarg)
2074                         __attribute__nonnull__(pTHX_1);
2075
2076 PERL_CALLCONV void      Perl_save_long(pTHX_ long* longp)
2077                         __attribute__nonnull__(pTHX_1);
2078
2079 PERL_CALLCONV void      Perl_save_mortalizesv(pTHX_ SV* sv)
2080                         __attribute__nonnull__(pTHX_1);
2081
2082 PERL_CALLCONV void      Perl_save_nogv(pTHX_ GV* gv);
2083 PERL_CALLCONV void      Perl_save_op(pTHX);
2084 PERL_CALLCONV SV*       Perl_save_scalar(pTHX_ GV* gv)
2085                         __attribute__nonnull__(pTHX_1);
2086
2087 PERL_CALLCONV void      Perl_save_pptr(pTHX_ char** pptr)
2088                         __attribute__nonnull__(pTHX_1);
2089
2090 PERL_CALLCONV void      Perl_save_vptr(pTHX_ void* pptr)
2091                         __attribute__nonnull__(pTHX_1);
2092
2093 PERL_CALLCONV void      Perl_save_re_context(pTHX);
2094 PERL_CALLCONV void      Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
2095 PERL_CALLCONV void      Perl_save_sptr(pTHX_ SV** sptr)
2096                         __attribute__nonnull__(pTHX_1);
2097
2098 PERL_CALLCONV SV*       Perl_save_svref(pTHX_ SV** sptr)
2099                         __attribute__nonnull__(pTHX_1);
2100
2101 PERL_CALLCONV OP*       Perl_sawparens(pTHX_ OP* o);
2102 PERL_CALLCONV OP*       Perl_scalar(pTHX_ OP* o);
2103 PERL_CALLCONV OP*       Perl_scalarkids(pTHX_ OP* o);
2104 PERL_CALLCONV OP*       Perl_scalarseq(pTHX_ OP* o);
2105 PERL_CALLCONV OP*       Perl_scalarvoid(pTHX_ OP* o)
2106                         __attribute__nonnull__(pTHX_1);
2107
2108 PERL_CALLCONV NV        Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2109                         __attribute__nonnull__(pTHX_1)
2110                         __attribute__nonnull__(pTHX_3);
2111
2112 PERL_CALLCONV NV        Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2113                         __attribute__nonnull__(pTHX_1)
2114                         __attribute__nonnull__(pTHX_3);
2115
2116 PERL_CALLCONV char*     Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp)
2117                         __attribute__nonnull__(pTHX_1)
2118                         __attribute__nonnull__(pTHX_2);
2119
2120 PERL_CALLCONV NV        Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2121                         __attribute__nonnull__(pTHX_1)
2122                         __attribute__nonnull__(pTHX_3);
2123
2124 PERL_CALLCONV OP*       Perl_scope(pTHX_ OP* o);
2125 PERL_CALLCONV char*     Perl_screaminstr(pTHX_ SV *bigstr, SV *littlestr, I32 start_shift, I32 end_shift, I32 *old_posp, I32 last)
2126                         __attribute__nonnull__(pTHX_1)
2127                         __attribute__nonnull__(pTHX_2)
2128                         __attribute__nonnull__(pTHX_5);
2129
2130 #if !defined(VMS)
2131 PERL_CALLCONV I32       Perl_setenv_getix(pTHX_ const char* nam)
2132                         __attribute__nonnull__(pTHX_1);
2133
2134 #endif
2135 PERL_CALLCONV void      Perl_setdefout(pTHX_ GV* gv);
2136 PERL_CALLCONV HEK*      Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash)
2137                         __attribute__nonnull__(pTHX_1);
2138
2139 #if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
2140 PERL_CALLCONV Signal_t  Perl_sighandler(int sig, siginfo_t *info, void *uap);
2141 PERL_CALLCONV Signal_t  Perl_csighandler(int sig, siginfo_t *info, void *uap);
2142 #else
2143 PERL_CALLCONV Signal_t  Perl_sighandler(int sig);
2144 PERL_CALLCONV Signal_t  Perl_csighandler(int sig);
2145 #endif
2146 PERL_CALLCONV SV**      Perl_stack_grow(pTHX_ SV** sp, SV** p, int n)
2147                         __attribute__nonnull__(pTHX_1)
2148                         __attribute__nonnull__(pTHX_2);
2149
2150 PERL_CALLCONV I32       Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
2151 PERL_CALLCONV void      Perl_sub_crush_depth(pTHX_ CV* cv)
2152                         __attribute__nonnull__(pTHX_1);
2153
2154 PERL_CALLCONV bool      Perl_sv_2bool(pTHX_ SV* sv)
2155                         __attribute__nonnull__(pTHX_1);
2156
2157 PERL_CALLCONV CV*       Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref)
2158                         __attribute__nonnull__(pTHX_2)
2159                         __attribute__nonnull__(pTHX_3);
2160
2161 PERL_CALLCONV IO*       Perl_sv_2io(pTHX_ SV* sv)
2162                         __attribute__nonnull__(pTHX_1);
2163
2164 #ifdef PERL_IN_SV_C
2165 STATIC bool     S_glob_2number(pTHX_ GV* const gv)
2166                         __attribute__nonnull__(pTHX_1);
2167
2168 STATIC char*    S_glob_2pv(pTHX_ GV* const gv, STRLEN * const len)
2169                         __attribute__nonnull__(pTHX_1);
2170
2171 #endif
2172 /* PERL_CALLCONV IV     Perl_sv_2iv(pTHX_ SV *sv); */
2173 PERL_CALLCONV IV        Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
2174 PERL_CALLCONV SV*       Perl_sv_2mortal(pTHX_ SV* sv);
2175 PERL_CALLCONV NV        Perl_sv_2nv(pTHX_ SV *const sv);
2176 PERL_CALLCONV SV*       Perl_sv_2num(pTHX_ SV *const sv)
2177                         __attribute__nonnull__(pTHX_1);
2178
2179 /* PERL_CALLCONV char*  Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp); */
2180 PERL_CALLCONV char*     Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
2181 PERL_CALLCONV char*     Perl_sv_2pvutf8(pTHX_ SV* sv, STRLEN* lp)
2182                         __attribute__nonnull__(pTHX_1);
2183
2184 PERL_CALLCONV char*     Perl_sv_2pvbyte(pTHX_ SV *const sv, STRLEN *const lp)
2185                         __attribute__nonnull__(pTHX_1);
2186
2187 PERL_CALLCONV char*     Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp)
2188                         __attribute__nonnull__(pTHX_1);
2189
2190 /* PERL_CALLCONV UV     Perl_sv_2uv(pTHX_ SV *sv); */
2191 PERL_CALLCONV UV        Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
2192 PERL_CALLCONV IV        Perl_sv_iv(pTHX_ SV* sv)
2193                         __attribute__nonnull__(pTHX_1);
2194
2195 PERL_CALLCONV UV        Perl_sv_uv(pTHX_ SV* sv)
2196                         __attribute__nonnull__(pTHX_1);
2197
2198 PERL_CALLCONV NV        Perl_sv_nv(pTHX_ SV* sv)
2199                         __attribute__nonnull__(pTHX_1);
2200
2201 PERL_CALLCONV char*     Perl_sv_pvn(pTHX_ SV *sv, STRLEN *len)
2202                         __attribute__nonnull__(pTHX_1)
2203                         __attribute__nonnull__(pTHX_2);
2204
2205 PERL_CALLCONV char*     Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *len)
2206                         __attribute__nonnull__(pTHX_1)
2207                         __attribute__nonnull__(pTHX_2);
2208
2209 PERL_CALLCONV char*     Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *len)
2210                         __attribute__nonnull__(pTHX_1)
2211                         __attribute__nonnull__(pTHX_2);
2212
2213 PERL_CALLCONV I32       Perl_sv_true(pTHX_ SV *sv);
2214 PERL_CALLCONV void      Perl_sv_add_arena(pTHX_ char *const ptr, const U32 size, const U32 flags)
2215                         __attribute__nonnull__(pTHX_1);
2216
2217 PERL_CALLCONV int       Perl_sv_backoff(pTHX_ SV *const sv)
2218                         __attribute__nonnull__(pTHX_1);
2219
2220 PERL_CALLCONV SV*       Perl_sv_bless(pTHX_ SV* sv, HV* stash)
2221                         __attribute__nonnull__(pTHX_1)
2222                         __attribute__nonnull__(pTHX_2);
2223
2224 PERL_CALLCONV void      Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...)
2225                         __attribute__format__(__printf__,pTHX_2,pTHX_3)
2226                         __attribute__nonnull__(pTHX_1)
2227                         __attribute__nonnull__(pTHX_2);
2228
2229 PERL_CALLCONV void      Perl_sv_vcatpvf(pTHX_ SV* sv, const char* pat, va_list* args)
2230                         __attribute__nonnull__(pTHX_1)
2231                         __attribute__nonnull__(pTHX_2);
2232
2233 PERL_CALLCONV void      Perl_sv_catpv(pTHX_ SV* sv, const char* ptr)
2234                         __attribute__nonnull__(pTHX_1);
2235
2236 /* PERL_CALLCONV void   Perl_sv_catpvn(pTHX_ SV* sv, const char* ptr, STRLEN len)
2237                         __attribute__nonnull__(pTHX_1)
2238                         __attribute__nonnull__(pTHX_2); */
2239
2240 /* PERL_CALLCONV void   Perl_sv_catsv(pTHX_ SV* dsv, SV* ssv)
2241                         __attribute__nonnull__(pTHX_1); */
2242
2243 PERL_CALLCONV void      Perl_sv_chop(pTHX_ SV* sv, const char* ptr)
2244                         __attribute__nonnull__(pTHX_1);
2245
2246 PERL_CALLCONV I32       Perl_sv_clean_all(pTHX);
2247 PERL_CALLCONV void      Perl_sv_clean_objs(pTHX);
2248 PERL_CALLCONV void      Perl_sv_clear(pTHX_ SV* sv)
2249                         __attribute__nonnull__(pTHX_1);
2250
2251 PERL_CALLCONV I32       Perl_sv_cmp(pTHX_ SV* sv1, SV* sv2)
2252                         __attribute__nonnull__(pTHX_1)
2253                         __attribute__nonnull__(pTHX_2);
2254
2255 PERL_CALLCONV I32       Perl_sv_cmp_locale(pTHX_ SV* sv1, SV* sv2)
2256                         __attribute__nonnull__(pTHX_1)
2257                         __attribute__nonnull__(pTHX_2);
2258
2259 #if defined(USE_LOCALE_COLLATE)
2260 PERL_CALLCONV char*     Perl_sv_collxfrm(pTHX_ SV* sv, STRLEN* nxp)
2261                         __attribute__nonnull__(pTHX_1)
2262                         __attribute__nonnull__(pTHX_2);
2263
2264 #endif
2265 PERL_CALLCONV OP*       Perl_sv_compile_2op(pTHX_ SV* sv, OP** startp, const char* code, PAD** padp)
2266                         __attribute__nonnull__(pTHX_1)
2267                         __attribute__nonnull__(pTHX_2)
2268                         __attribute__nonnull__(pTHX_3)
2269                         __attribute__nonnull__(pTHX_4);
2270
2271 PERL_CALLCONV int       Perl_getcwd_sv(pTHX_ SV* sv)
2272                         __attribute__nonnull__(pTHX_1);
2273
2274 PERL_CALLCONV void      Perl_sv_dec(pTHX_ SV* sv);
2275 PERL_CALLCONV void      Perl_sv_dump(pTHX_ SV* sv)
2276                         __attribute__nonnull__(pTHX_1);
2277
2278 PERL_CALLCONV bool      Perl_sv_derived_from(pTHX_ SV* sv, const char *const name)
2279                         __attribute__warn_unused_result__
2280                         __attribute__nonnull__(pTHX_1)
2281                         __attribute__nonnull__(pTHX_2);
2282
2283 PERL_CALLCONV bool      Perl_sv_does(pTHX_ SV* sv, const char *const name)
2284                         __attribute__warn_unused_result__
2285                         __attribute__nonnull__(pTHX_1)
2286                         __attribute__nonnull__(pTHX_2);
2287
2288 PERL_CALLCONV I32       Perl_sv_eq(pTHX_ SV* sv1, SV* sv2);
2289 PERL_CALLCONV void      Perl_sv_free(pTHX_ SV* sv);
2290 PERL_CALLCONV void      Perl_sv_free2(pTHX_ SV* sv)
2291                         __attribute__nonnull__(pTHX_1);
2292
2293 PERL_CALLCONV void      Perl_sv_free_arenas(pTHX);
2294 PERL_CALLCONV char*     Perl_sv_gets(pTHX_ SV* sv, PerlIO* fp, I32 append)
2295                         __attribute__nonnull__(pTHX_1)
2296                         __attribute__nonnull__(pTHX_2);
2297
2298 PERL_CALLCONV char*     Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen)
2299                         __attribute__nonnull__(pTHX_1);
2300
2301 PERL_CALLCONV void      Perl_sv_inc(pTHX_ SV* sv);
2302 PERL_CALLCONV void      Perl_sv_insert(pTHX_ SV* bigsv, STRLEN offset, STRLEN len, const char* little, STRLEN littlelen)
2303                         __attribute__nonnull__(pTHX_1)
2304                         __attribute__nonnull__(pTHX_4);
2305
2306 PERL_CALLCONV int       Perl_sv_isa(pTHX_ SV* sv, const char* name)
2307                         __attribute__nonnull__(pTHX_2);
2308
2309 PERL_CALLCONV int       Perl_sv_isobject(pTHX_ SV* sv);
2310 PERL_CALLCONV STRLEN    Perl_sv_len(pTHX_ SV* sv);
2311 PERL_CALLCONV STRLEN    Perl_sv_len_utf8(pTHX_ SV* sv);
2312 PERL_CALLCONV void      Perl_sv_magic(pTHX_ SV* sv, SV* obj, int how, const char* name, I32 namlen)
2313                         __attribute__nonnull__(pTHX_1);
2314
2315 PERL_CALLCONV MAGIC *   Perl_sv_magicext(pTHX_ SV* sv, SV* obj, int how, const MGVTBL *vtbl, const char* name, I32 namlen)
2316                         __attribute__nonnull__(pTHX_1);
2317
2318 PERL_CALLCONV SV*       Perl_sv_mortalcopy(pTHX_ SV* oldsv)
2319                         __attribute__malloc__
2320                         __attribute__warn_unused_result__;
2321
2322 PERL_CALLCONV SV*       Perl_sv_newmortal(pTHX)
2323                         __attribute__warn_unused_result__;
2324
2325 PERL_CALLCONV SV*       Perl_sv_newref(pTHX_ SV* sv);
2326 PERL_CALLCONV char*     Perl_sv_peek(pTHX_ SV* sv);
2327 PERL_CALLCONV void      Perl_sv_pos_u2b(pTHX_ SV* sv, I32* offsetp, I32* lenp)
2328                         __attribute__nonnull__(pTHX_2);
2329
2330 PERL_CALLCONV void      Perl_sv_pos_b2u(pTHX_ SV* sv, I32* offsetp)
2331                         __attribute__nonnull__(pTHX_2);
2332
2333 /* PERL_CALLCONV char*  Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp)
2334                         __attribute__nonnull__(pTHX_1); */
2335
2336 PERL_CALLCONV char*     Perl_sv_pvutf8n_force(pTHX_ SV* sv, STRLEN* lp)
2337                         __attribute__nonnull__(pTHX_1);
2338
2339 PERL_CALLCONV char*     Perl_sv_pvbyten_force(pTHX_ SV* sv, STRLEN* lp)
2340                         __attribute__nonnull__(pTHX_1);
2341
2342 PERL_CALLCONV char*     Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding)
2343                         __attribute__nonnull__(pTHX_1)
2344                         __attribute__nonnull__(pTHX_2);
2345
2346 PERL_CALLCONV bool      Perl_sv_cat_decode(pTHX_ SV* dsv, SV *encoding, SV *ssv, int *offset, char* tstr, int tlen)
2347                         __attribute__nonnull__(pTHX_1)
2348                         __attribute__nonnull__(pTHX_2)
2349                         __attribute__nonnull__(pTHX_3)
2350                         __attribute__nonnull__(pTHX_4)
2351                         __attribute__nonnull__(pTHX_5);
2352
2353 PERL_CALLCONV const char*       Perl_sv_reftype(pTHX_ const SV* sv, int ob)
2354                         __attribute__warn_unused_result__
2355                         __attribute__nonnull__(pTHX_1);
2356
2357 PERL_CALLCONV void      Perl_sv_replace(pTHX_ SV* sv, SV* nsv)
2358                         __attribute__nonnull__(pTHX_1)
2359                         __attribute__nonnull__(pTHX_2);
2360
2361 PERL_CALLCONV void      Perl_sv_report_used(pTHX);
2362 PERL_CALLCONV void      Perl_sv_reset(pTHX_ const char* s, HV* stash)
2363                         __attribute__nonnull__(pTHX_1);
2364
2365 PERL_CALLCONV void      Perl_sv_setpvf(pTHX_ SV* sv, const char* pat, ...)
2366                         __attribute__format__(__printf__,pTHX_2,pTHX_3)
2367                         __attribute__nonnull__(pTHX_1)
2368                         __attribute__nonnull__(pTHX_2);
2369
2370 PERL_CALLCONV void      Perl_sv_vsetpvf(pTHX_ SV* sv, const char* pat, va_list* args)
2371                         __attribute__nonnull__(pTHX_1)
2372                         __attribute__nonnull__(pTHX_2);
2373
2374 PERL_CALLCONV void      Perl_sv_setiv(pTHX_ SV *const sv, const IV num)
2375                         __attribute__nonnull__(pTHX_1);
2376
2377 PERL_CALLCONV void      Perl_sv_setpviv(pTHX_ SV* sv, IV num)
2378                         __attribute__nonnull__(pTHX_1);
2379
2380 PERL_CALLCONV void      Perl_sv_setuv(pTHX_ SV *const sv, const UV num)
2381                         __attribute__nonnull__(pTHX_1);
2382
2383 PERL_CALLCONV void      Perl_sv_setnv(pTHX_ SV *const sv, const NV num)
2384                         __attribute__nonnull__(pTHX_1);
2385
2386 PERL_CALLCONV SV*       Perl_sv_setref_iv(pTHX_ SV* rv, const char* classname, IV iv)
2387                         __attribute__nonnull__(pTHX_1);
2388
2389 PERL_CALLCONV SV*       Perl_sv_setref_uv(pTHX_ SV* rv, const char* classname, UV uv)
2390                         __attribute__nonnull__(pTHX_1);
2391
2392 PERL_CALLCONV SV*       Perl_sv_setref_nv(pTHX_ SV* rv, const char* classname, NV nv)
2393                         __attribute__nonnull__(pTHX_1);
2394
2395 PERL_CALLCONV SV*       Perl_sv_setref_pv(pTHX_ SV* rv, const char* classname, void* pv)
2396                         __attribute__nonnull__(pTHX_1);
2397
2398 PERL_CALLCONV SV*       Perl_sv_setref_pvn(pTHX_ SV* rv, const char* classname, const char* pv, STRLEN n)
2399                         __attribute__nonnull__(pTHX_1)
2400                         __attribute__nonnull__(pTHX_3);
2401
2402 PERL_CALLCONV void      Perl_sv_setpv(pTHX_ SV* sv, const char* ptr)
2403                         __attribute__nonnull__(pTHX_1);
2404
2405 PERL_CALLCONV void      Perl_sv_setpvn(pTHX_ SV* sv, const char* ptr, STRLEN len)
2406                         __attribute__nonnull__(pTHX_1);
2407
2408 /* PERL_CALLCONV void   Perl_sv_setsv(pTHX_ SV* dsv, SV* ssv)
2409                         __attribute__nonnull__(pTHX_1); */
2410
2411 /* PERL_CALLCONV void   Perl_sv_taint(pTHX_ SV* sv)
2412                         __attribute__nonnull__(pTHX_1); */
2413
2414 PERL_CALLCONV bool      Perl_sv_tainted(pTHX_ SV* sv)
2415                         __attribute__warn_unused_result__
2416                         __attribute__nonnull__(pTHX_1);
2417
2418 PERL_CALLCONV int       Perl_sv_unmagic(pTHX_ SV* sv, int type)
2419                         __attribute__nonnull__(pTHX_1);
2420
2421 /* PERL_CALLCONV void   Perl_sv_unref(pTHX_ SV* sv)
2422                         __attribute__nonnull__(pTHX_1); */
2423
2424 PERL_CALLCONV void      Perl_sv_unref_flags(pTHX_ SV* sv, U32 flags)
2425                         __attribute__nonnull__(pTHX_1);
2426
2427 PERL_CALLCONV void      Perl_sv_untaint(pTHX_ SV* sv)
2428                         __attribute__nonnull__(pTHX_1);
2429
2430 PERL_CALLCONV void      Perl_sv_upgrade(pTHX_ SV *const sv, svtype new_type)
2431                         __attribute__nonnull__(pTHX_1);
2432
2433 /* PERL_CALLCONV void   Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len)
2434                         __attribute__nonnull__(pTHX_1); */
2435
2436 PERL_CALLCONV void      Perl_sv_usepvn_flags(pTHX_ SV* sv, char* ptr, STRLEN len, U32 flags)
2437                         __attribute__nonnull__(pTHX_1);
2438
2439 PERL_CALLCONV void      Perl_sv_vcatpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted)
2440                         __attribute__nonnull__(pTHX_1)
2441                         __attribute__nonnull__(pTHX_2);
2442
2443 PERL_CALLCONV void      Perl_sv_vsetpvfn(pTHX_ SV* sv, const char* pat, STRLEN patlen, va_list* args, SV** svargs, I32 svmax, bool *maybe_tainted)
2444                         __attribute__nonnull__(pTHX_1)
2445                         __attribute__nonnull__(pTHX_2);
2446
2447 PERL_CALLCONV NV        Perl_str_to_version(pTHX_ SV *sv)
2448                         __attribute__warn_unused_result__
2449                         __attribute__nonnull__(pTHX_1);
2450
2451 PERL_CALLCONV SV*       Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* listsv, I32 minbits, I32 none)
2452                         __attribute__nonnull__(pTHX_1)
2453                         __attribute__nonnull__(pTHX_2)
2454                         __attribute__nonnull__(pTHX_3);
2455
2456 PERL_CALLCONV UV        Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8)
2457                         __attribute__nonnull__(pTHX_1)
2458                         __attribute__nonnull__(pTHX_2);
2459
2460 PERL_CALLCONV void      Perl_taint_env(pTHX);
2461 PERL_CALLCONV void      Perl_taint_proper(pTHX_ const char* f, const char *const s)
2462                         __attribute__nonnull__(pTHX_2);
2463
2464 PERL_CALLCONV UV        Perl_to_utf8_case(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, SV **swashp, const char *normal, const char *special)
2465                         __attribute__nonnull__(pTHX_1)
2466                         __attribute__nonnull__(pTHX_2)
2467                         __attribute__nonnull__(pTHX_4)
2468                         __attribute__nonnull__(pTHX_5)
2469                         __attribute__nonnull__(pTHX_6);
2470
2471 PERL_CALLCONV UV        Perl_to_utf8_lower(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
2472                         __attribute__nonnull__(pTHX_1)
2473                         __attribute__nonnull__(pTHX_2);
2474
2475 PERL_CALLCONV UV        Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
2476                         __attribute__nonnull__(pTHX_1)
2477                         __attribute__nonnull__(pTHX_2);
2478
2479 PERL_CALLCONV UV        Perl_to_utf8_title(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
2480                         __attribute__nonnull__(pTHX_1)
2481                         __attribute__nonnull__(pTHX_2);
2482
2483 PERL_CALLCONV UV        Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
2484                         __attribute__nonnull__(pTHX_1)
2485                         __attribute__nonnull__(pTHX_2);
2486
2487 #if defined(UNLINK_ALL_VERSIONS)
2488 PERL_CALLCONV I32       Perl_unlnk(pTHX_ const char* f)
2489                         __attribute__nonnull__(pTHX_1);
2490
2491 #endif
2492 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)
2493                         __attribute__nonnull__(pTHX_1)
2494                         __attribute__nonnull__(pTHX_2)
2495                         __attribute__nonnull__(pTHX_3)
2496                         __attribute__nonnull__(pTHX_5);
2497
2498 PERL_CALLCONV I32       Perl_unpackstring(pTHX_ const char *pat, const char *patend, const char *s, const char *strend, U32 flags)
2499                         __attribute__nonnull__(pTHX_1)
2500                         __attribute__nonnull__(pTHX_2)
2501                         __attribute__nonnull__(pTHX_3)
2502                         __attribute__nonnull__(pTHX_4);
2503
2504 PERL_CALLCONV void      Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
2505 PERL_CALLCONV void      Perl_unshare_hek(pTHX_ HEK* hek);
2506 #ifdef PERL_MAD
2507 PERL_CALLCONV OP *      Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg)
2508                         __attribute__nonnull__(pTHX_4);
2509
2510 #else
2511 PERL_CALLCONV void      Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg)
2512                         __attribute__nonnull__(pTHX_4);
2513
2514 #endif
2515 PERL_CALLCONV U8*       Perl_utf16_to_utf8(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen)
2516                         __attribute__nonnull__(pTHX_1)
2517                         __attribute__nonnull__(pTHX_2)
2518                         __attribute__nonnull__(pTHX_4);
2519
2520 PERL_CALLCONV U8*       Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen)
2521                         __attribute__nonnull__(pTHX_1)
2522                         __attribute__nonnull__(pTHX_2)
2523                         __attribute__nonnull__(pTHX_4);
2524
2525 PERL_CALLCONV STRLEN    Perl_utf8_length(pTHX_ const U8* s, const U8 *e)
2526                         __attribute__warn_unused_result__
2527                         __attribute__pure__
2528                         __attribute__nonnull__(pTHX_1)
2529                         __attribute__nonnull__(pTHX_2);
2530
2531 PERL_CALLCONV IV        Perl_utf8_distance(pTHX_ const U8 *a, const U8 *b)
2532                         __attribute__warn_unused_result__
2533                         __attribute__pure__
2534                         __attribute__nonnull__(pTHX_1)
2535                         __attribute__nonnull__(pTHX_2);
2536
2537 PERL_CALLCONV U8*       Perl_utf8_hop(pTHX_ const U8 *s, I32 off)
2538                         __attribute__warn_unused_result__
2539                         __attribute__pure__
2540                         __attribute__nonnull__(pTHX_1);
2541
2542 PERL_CALLCONV U8*       Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *len)
2543                         __attribute__nonnull__(pTHX_1)
2544                         __attribute__nonnull__(pTHX_2);
2545
2546 PERL_CALLCONV U8*       Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *len, bool *is_utf8)
2547                         __attribute__nonnull__(pTHX_1)
2548                         __attribute__nonnull__(pTHX_2);
2549
2550 PERL_CALLCONV U8*       Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *len)
2551                         __attribute__nonnull__(pTHX_1)
2552                         __attribute__nonnull__(pTHX_2);
2553
2554 PERL_CALLCONV UV        Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen)
2555                         __attribute__nonnull__(pTHX_1);
2556
2557 PERL_CALLCONV UV        Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
2558                         __attribute__nonnull__(pTHX_1);
2559
2560
2561 #ifdef EBCDIC
2562 PERL_CALLCONV UV        Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
2563                         __attribute__nonnull__(pTHX_1);
2564
2565 #else
2566 /* PERL_CALLCONV UV     Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
2567                         __attribute__nonnull__(pTHX_1); */
2568
2569 #endif
2570
2571 PERL_CALLCONV UV        Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
2572                         __attribute__nonnull__(pTHX_1);
2573
2574
2575 #ifdef EBCDIC
2576 PERL_CALLCONV U8*       Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv)
2577                         __attribute__nonnull__(pTHX_1);
2578
2579 #else
2580 /* PERL_CALLCONV U8*    Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv)
2581                         __attribute__nonnull__(pTHX_1); */
2582
2583 #endif
2584
2585 /* PERL_CALLCONV U8*    Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
2586                         __attribute__nonnull__(pTHX_1); */
2587
2588 PERL_CALLCONV U8*       Perl_uvchr_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
2589                         __attribute__nonnull__(pTHX_1);
2590
2591 PERL_CALLCONV U8*       Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
2592                         __attribute__nonnull__(pTHX_1);
2593
2594 PERL_CALLCONV char*     Perl_pv_uni_display(pTHX_ SV *dsv, const U8 *spv, STRLEN len, STRLEN pvlim, UV flags)
2595                         __attribute__nonnull__(pTHX_1)
2596                         __attribute__nonnull__(pTHX_2);
2597
2598 PERL_CALLCONV char*     Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim, UV flags)
2599                         __attribute__warn_unused_result__
2600                         __attribute__nonnull__(pTHX_1)
2601                         __attribute__nonnull__(pTHX_2);
2602
2603 PERL_CALLCONV void      Perl_vivify_defelem(pTHX_ SV* sv)
2604                         __attribute__nonnull__(pTHX_1);
2605
2606 PERL_CALLCONV void      Perl_vivify_ref(pTHX_ SV* sv, U32 to_what)
2607                         __attribute__nonnull__(pTHX_1);
2608
2609 PERL_CALLCONV I32       Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags)
2610                         __attribute__nonnull__(pTHX_2);
2611
2612 PERL_CALLCONV U32       Perl_parse_unicode_opts(pTHX_ const char **popt)
2613                         __attribute__nonnull__(pTHX_1);
2614
2615 PERL_CALLCONV U32       Perl_seed(pTHX);
2616 PERL_CALLCONV UV        Perl_get_hash_seed(pTHX)
2617                         __attribute__warn_unused_result__;
2618
2619 PERL_CALLCONV void      Perl_report_evil_fh(pTHX_ const GV *gv, const IO *io, I32 op);
2620 PERL_CALLCONV void      Perl_report_uninit(pTHX_ SV* uninit_sv);
2621 PERL_CALLCONV void      Perl_warn(pTHX_ const char* pat, ...)
2622                         __attribute__format__(__printf__,pTHX_1,pTHX_2)
2623                         __attribute__nonnull__(pTHX_1);
2624
2625 PERL_CALLCONV void      Perl_vwarn(pTHX_ const char* pat, va_list* args)
2626                         __attribute__nonnull__(pTHX_1);
2627
2628 PERL_CALLCONV void      Perl_warner(pTHX_ U32 err, const char* pat, ...)
2629                         __attribute__format__(__printf__,pTHX_2,pTHX_3)
2630                         __attribute__nonnull__(pTHX_2);
2631
2632 PERL_CALLCONV void      Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args)
2633                         __attribute__nonnull__(pTHX_2);
2634
2635 PERL_CALLCONV void      Perl_watch(pTHX_ char** addr)
2636                         __attribute__nonnull__(pTHX_1);
2637
2638 PERL_CALLCONV I32       Perl_whichsig(pTHX_ const char* sig)
2639                         __attribute__nonnull__(pTHX_1);
2640
2641 PERL_CALLCONV void      Perl_write_to_stderr(pTHX_ const char* message, int msglen)
2642                         __attribute__nonnull__(pTHX_1);
2643
2644 PERL_CALLCONV int       Perl_yyerror(pTHX_ const char *const s)
2645                         __attribute__nonnull__(pTHX_1);
2646
2647 PERL_CALLCONV int       Perl_yylex(pTHX);
2648 PERL_CALLCONV int       Perl_yyparse(pTHX);
2649 PERL_CALLCONV void      Perl_parser_free(pTHX_ const yy_parser *parser)
2650                         __attribute__nonnull__(pTHX_1);
2651
2652 PERL_CALLCONV int       Perl_yywarn(pTHX_ const char *const s)
2653                         __attribute__nonnull__(pTHX_1);
2654
2655 #if defined(MYMALLOC)
2656 PERL_CALLCONV void      Perl_dump_mstats(pTHX_ char* s)
2657                         __attribute__nonnull__(pTHX_1);
2658
2659 PERL_CALLCONV int       Perl_get_mstats(pTHX_ perl_mstats_t *buf, int buflen, int level)
2660                         __attribute__nonnull__(pTHX_1);
2661
2662 #endif
2663 PERL_CALLCONV Malloc_t  Perl_safesysmalloc(MEM_SIZE nbytes)
2664                         __attribute__malloc__
2665                         __attribute__warn_unused_result__;
2666
2667 PERL_CALLCONV Malloc_t  Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size)
2668                         __attribute__malloc__
2669                         __attribute__warn_unused_result__;
2670
2671 PERL_CALLCONV Malloc_t  Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes)
2672                         __attribute__malloc__
2673                         __attribute__warn_unused_result__;
2674
2675 PERL_CALLCONV Free_t    Perl_safesysfree(Malloc_t where);
2676 #if defined(PERL_GLOBAL_STRUCT)
2677 PERL_CALLCONV struct perl_vars *        Perl_GetVars(pTHX);
2678 PERL_CALLCONV struct perl_vars* Perl_init_global_struct(pTHX);
2679 PERL_CALLCONV void      Perl_free_global_struct(pTHX_ struct perl_vars *plvarsp)
2680                         __attribute__nonnull__(pTHX_1);
2681
2682 #endif
2683 PERL_CALLCONV int       Perl_runops_standard(pTHX);
2684 PERL_CALLCONV int       Perl_runops_debug(pTHX);
2685 PERL_CALLCONV void      Perl_sv_catpvf_mg(pTHX_ SV *sv, const char* pat, ...)
2686                         __attribute__format__(__printf__,pTHX_2,pTHX_3)
2687                         __attribute__nonnull__(pTHX_1)
2688                         __attribute__nonnull__(pTHX_2);
2689
2690 PERL_CALLCONV void      Perl_sv_vcatpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args)
2691                         __attribute__nonnull__(pTHX_1)
2692                         __attribute__nonnull__(pTHX_2);
2693
2694 PERL_CALLCONV void      Perl_sv_catpv_mg(pTHX_ SV *sv, const char *ptr)
2695                         __attribute__nonnull__(pTHX_1);
2696
2697 /* PERL_CALLCONV void   Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len)
2698                         __attribute__nonnull__(pTHX_1)
2699                         __attribute__nonnull__(pTHX_2); */
2700
2701 /* PERL_CALLCONV void   Perl_sv_catsv_mg(pTHX_ SV *dstr, SV *sstr)
2702                         __attribute__nonnull__(pTHX_1); */
2703
2704 PERL_CALLCONV void      Perl_sv_setpvf_mg(pTHX_ SV *sv, const char* pat, ...)
2705                         __attribute__format__(__printf__,pTHX_2,pTHX_3)
2706                         __attribute__nonnull__(pTHX_1)
2707                         __attribute__nonnull__(pTHX_2);
2708
2709 PERL_CALLCONV void      Perl_sv_vsetpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args)
2710                         __attribute__nonnull__(pTHX_1)
2711                         __attribute__nonnull__(pTHX_2);
2712
2713 PERL_CALLCONV void      Perl_sv_setiv_mg(pTHX_ SV *const sv, const IV i)
2714                         __attribute__nonnull__(pTHX_1);
2715
2716 PERL_CALLCONV void      Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv)
2717                         __attribute__nonnull__(pTHX_1);
2718
2719 PERL_CALLCONV void      Perl_sv_setuv_mg(pTHX_ SV *const sv, const UV u)
2720                         __attribute__nonnull__(pTHX_1);
2721
2722 PERL_CALLCONV void      Perl_sv_setnv_mg(pTHX_ SV *const sv, const NV num)
2723                         __attribute__nonnull__(pTHX_1);
2724
2725 PERL_CALLCONV void      Perl_sv_setpv_mg(pTHX_ SV *sv, const char *ptr)
2726                         __attribute__nonnull__(pTHX_1);
2727
2728 PERL_CALLCONV void      Perl_sv_setpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len)
2729                         __attribute__nonnull__(pTHX_1)
2730                         __attribute__nonnull__(pTHX_2);
2731
2732 PERL_CALLCONV void      Perl_sv_setsv_mg(pTHX_ SV *dstr, SV *sstr)
2733                         __attribute__nonnull__(pTHX_1);
2734
2735 /* PERL_CALLCONV void   Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len)
2736                         __attribute__nonnull__(pTHX_1); */
2737
2738 PERL_CALLCONV MGVTBL*   Perl_get_vtbl(pTHX_ int vtbl_id)
2739                         __attribute__warn_unused_result__;
2740
2741 PERL_CALLCONV char*     Perl_pv_display(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
2742                         __attribute__nonnull__(pTHX_1)
2743                         __attribute__nonnull__(pTHX_2);
2744
2745 PERL_CALLCONV char*     Perl_pv_escape(pTHX_ SV *dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags)
2746                         __attribute__nonnull__(pTHX_1)
2747                         __attribute__nonnull__(pTHX_2);
2748
2749 PERL_CALLCONV char*     Perl_pv_pretty(pTHX_ SV *dsv, char const * const str, const STRLEN count, const STRLEN max, char const * const start_color, char const * const end_color, const U32 flags)
2750                         __attribute__nonnull__(pTHX_1)
2751                         __attribute__nonnull__(pTHX_2);
2752
2753 PERL_CALLCONV void      Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
2754                         __attribute__format__(__printf__,pTHX_3,pTHX_4)
2755                         __attribute__nonnull__(pTHX_2)
2756                         __attribute__nonnull__(pTHX_3);
2757
2758 PERL_CALLCONV void      Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args)
2759                         __attribute__nonnull__(pTHX_2)
2760                         __attribute__nonnull__(pTHX_3);
2761
2762 PERL_CALLCONV void      Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv)
2763                         __attribute__nonnull__(pTHX_2)
2764                         __attribute__nonnull__(pTHX_3);
2765
2766 PERL_CALLCONV void      Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv)
2767                         __attribute__nonnull__(pTHX_2)
2768                         __attribute__nonnull__(pTHX_3);
2769
2770 PERL_CALLCONV void      Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, const char *name, HV *sv)
2771                         __attribute__nonnull__(pTHX_2)
2772                         __attribute__nonnull__(pTHX_3);
2773
2774 PERL_CALLCONV void      Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim)
2775                         __attribute__nonnull__(pTHX_2)
2776                         __attribute__nonnull__(pTHX_3);
2777
2778 PERL_CALLCONV void      Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, const OP *o)
2779                         __attribute__nonnull__(pTHX_2);
2780
2781 PERL_CALLCONV void      Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, const PMOP *pm)
2782                         __attribute__nonnull__(pTHX_2);
2783
2784 PERL_CALLCONV void      Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim)
2785                         __attribute__nonnull__(pTHX_2);
2786
2787 PERL_CALLCONV void      Perl_magic_dump(pTHX_ const MAGIC *mg);
2788 PERL_CALLCONV void      Perl_reginitcolors(pTHX);
2789 /* PERL_CALLCONV char*  Perl_sv_2pv_nolen(pTHX_ SV* sv)
2790                         __attribute__warn_unused_result__
2791                         __attribute__nonnull__(pTHX_1); */
2792
2793 /* PERL_CALLCONV char*  Perl_sv_2pvutf8_nolen(pTHX_ SV* sv)
2794                         __attribute__warn_unused_result__
2795                         __attribute__nonnull__(pTHX_1); */
2796
2797 /* PERL_CALLCONV char*  Perl_sv_2pvbyte_nolen(pTHX_ SV* sv)
2798                         __attribute__warn_unused_result__
2799                         __attribute__nonnull__(pTHX_1); */
2800
2801 /* PERL_CALLCONV char*  Perl_sv_pv(pTHX_ SV *sv)
2802                         __attribute__warn_unused_result__
2803                         __attribute__nonnull__(pTHX_1); */
2804
2805 /* PERL_CALLCONV char*  Perl_sv_pvutf8(pTHX_ SV *sv)
2806                         __attribute__warn_unused_result__
2807                         __attribute__nonnull__(pTHX_1); */
2808
2809 /* PERL_CALLCONV char*  Perl_sv_pvbyte(pTHX_ SV *sv)
2810                         __attribute__warn_unused_result__
2811                         __attribute__nonnull__(pTHX_1); */
2812
2813 /* PERL_CALLCONV STRLEN Perl_sv_utf8_upgrade(pTHX_ SV *sv)
2814                         __attribute__nonnull__(pTHX_1); */
2815
2816 PERL_CALLCONV bool      Perl_sv_utf8_downgrade(pTHX_ SV *sv, bool fail_ok)
2817                         __attribute__nonnull__(pTHX_1);
2818
2819 PERL_CALLCONV void      Perl_sv_utf8_encode(pTHX_ SV *sv)
2820                         __attribute__nonnull__(pTHX_1);
2821
2822 PERL_CALLCONV bool      Perl_sv_utf8_decode(pTHX_ SV *sv)
2823                         __attribute__nonnull__(pTHX_1);
2824
2825 /* PERL_CALLCONV void   Perl_sv_force_normal(pTHX_ SV *sv)
2826                         __attribute__nonnull__(pTHX_1); */
2827
2828 PERL_CALLCONV void      Perl_sv_force_normal_flags(pTHX_ SV *sv, U32 flags)
2829                         __attribute__nonnull__(pTHX_1);
2830
2831 PERL_CALLCONV void      Perl_tmps_grow(pTHX_ I32 n);
2832 PERL_CALLCONV SV*       Perl_sv_rvweaken(pTHX_ SV *sv)
2833                         __attribute__nonnull__(pTHX_1);
2834
2835 PERL_CALLCONV int       Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg)
2836                         __attribute__nonnull__(pTHX_1)
2837                         __attribute__nonnull__(pTHX_2);
2838
2839 PERL_CALLCONV OP*       Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block);
2840 PERL_CALLCONV CV*       Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block);
2841 #ifdef PERL_MAD
2842 PERL_CALLCONV OP *      Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
2843                         __attribute__noreturn__;
2844
2845 #else
2846 PERL_CALLCONV void      Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
2847                         __attribute__noreturn__;
2848
2849 #endif
2850 PERL_CALLCONV OP *      Perl_my_attrs(pTHX_ OP *o, OP *attrs)
2851                         __attribute__nonnull__(pTHX_1);
2852
2853 PERL_CALLCONV void      Perl_boot_core_xsutils(pTHX);
2854 #if defined(USE_ITHREADS)
2855 PERL_CALLCONV PERL_CONTEXT*     Perl_cx_dup(pTHX_ PERL_CONTEXT* cx, I32 ix, I32 max, CLONE_PARAMS* param)
2856                         __attribute__warn_unused_result__
2857                         __attribute__nonnull__(pTHX_4);
2858
2859 PERL_CALLCONV PERL_SI*  Perl_si_dup(pTHX_ PERL_SI* si, CLONE_PARAMS* param)
2860                         __attribute__warn_unused_result__
2861                         __attribute__nonnull__(pTHX_2);
2862
2863 PERL_CALLCONV ANY*      Perl_ss_dup(pTHX_ PerlInterpreter* proto_perl, CLONE_PARAMS* param)
2864                         __attribute__malloc__
2865                         __attribute__warn_unused_result__
2866                         __attribute__nonnull__(pTHX_1)
2867                         __attribute__nonnull__(pTHX_2);
2868
2869 PERL_CALLCONV void*     Perl_any_dup(pTHX_ void* v, const PerlInterpreter* proto_perl)
2870                         __attribute__warn_unused_result__
2871                         __attribute__nonnull__(pTHX_2);
2872
2873 PERL_CALLCONV HE*       Perl_he_dup(pTHX_ const HE* e, bool shared, CLONE_PARAMS* param)
2874                         __attribute__warn_unused_result__
2875                         __attribute__nonnull__(pTHX_3);
2876
2877 PERL_CALLCONV HEK*      Perl_hek_dup(pTHX_ HEK* e, CLONE_PARAMS* param)
2878                         __attribute__warn_unused_result__
2879                         __attribute__nonnull__(pTHX_2);
2880
2881 PERL_CALLCONV void      Perl_re_dup_guts(pTHX_ const REGEXP *sstr, REGEXP *dstr, CLONE_PARAMS* param)
2882                         __attribute__nonnull__(pTHX_1)
2883                         __attribute__nonnull__(pTHX_2)
2884                         __attribute__nonnull__(pTHX_3);
2885
2886 PERL_CALLCONV PerlIO*   Perl_fp_dup(pTHX_ PerlIO* fp, char type, CLONE_PARAMS* param)
2887                         __attribute__nonnull__(pTHX_3);
2888
2889 PERL_CALLCONV DIR*      Perl_dirp_dup(pTHX_ DIR* dp)
2890                         __attribute__warn_unused_result__;
2891
2892 PERL_CALLCONV GP*       Perl_gp_dup(pTHX_ GP* gp, CLONE_PARAMS* param)
2893                         __attribute__warn_unused_result__
2894                         __attribute__nonnull__(pTHX_2);
2895
2896 PERL_CALLCONV MAGIC*    Perl_mg_dup(pTHX_ MAGIC* mg, CLONE_PARAMS* param)
2897                         __attribute__warn_unused_result__
2898                         __attribute__nonnull__(pTHX_2);
2899
2900 PERL_CALLCONV SV*       Perl_sv_dup(pTHX_ const SV* sstr, CLONE_PARAMS* param)
2901                         __attribute__warn_unused_result__
2902                         __attribute__nonnull__(pTHX_2);
2903
2904 PERL_CALLCONV void      Perl_rvpv_dup(pTHX_ SV* dstr, const SV *sstr, CLONE_PARAMS* param)
2905                         __attribute__nonnull__(pTHX_1)
2906                         __attribute__nonnull__(pTHX_2)
2907                         __attribute__nonnull__(pTHX_3);
2908
2909 PERL_CALLCONV yy_parser*        Perl_parser_dup(pTHX_ const yy_parser *proto, CLONE_PARAMS* param)
2910                         __attribute__nonnull__(pTHX_2);
2911
2912 #endif
2913 PERL_CALLCONV PTR_TBL_t*        Perl_ptr_table_new(pTHX)
2914                         __attribute__malloc__
2915                         __attribute__warn_unused_result__;
2916
2917 PERL_CALLCONV void*     Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *tbl, const void *sv)
2918                         __attribute__warn_unused_result__
2919                         __attribute__nonnull__(pTHX_1)
2920                         __attribute__nonnull__(pTHX_2);
2921
2922 PERL_CALLCONV void      Perl_ptr_table_store(pTHX_ PTR_TBL_t *tbl, const void *oldsv, void *newsv)
2923                         __attribute__nonnull__(pTHX_1)
2924                         __attribute__nonnull__(pTHX_3);
2925
2926 PERL_CALLCONV void      Perl_ptr_table_split(pTHX_ PTR_TBL_t *tbl)
2927                         __attribute__nonnull__(pTHX_1);
2928
2929 PERL_CALLCONV void      Perl_ptr_table_clear(pTHX_ PTR_TBL_t *tbl);
2930 PERL_CALLCONV void      Perl_ptr_table_free(pTHX_ PTR_TBL_t *tbl);
2931 #if defined(USE_ITHREADS)
2932 #  if defined(HAVE_INTERP_INTERN)
2933 PERL_CALLCONV void      Perl_sys_intern_dup(pTHX_ struct interp_intern* src, struct interp_intern* dst)
2934                         __attribute__nonnull__(pTHX_1)
2935                         __attribute__nonnull__(pTHX_2);
2936
2937 #  endif
2938 #endif
2939 #if defined(HAVE_INTERP_INTERN)
2940 PERL_CALLCONV void      Perl_sys_intern_clear(pTHX);
2941 PERL_CALLCONV void      Perl_sys_intern_init(pTHX);
2942 #endif
2943
2944 PERL_CALLCONV const char *      Perl_custom_op_name(pTHX_ const OP* op)
2945                         __attribute__warn_unused_result__
2946                         __attribute__nonnull__(pTHX_1);
2947
2948 PERL_CALLCONV const char *      Perl_custom_op_desc(pTHX_ const OP* op)
2949                         __attribute__warn_unused_result__
2950                         __attribute__nonnull__(pTHX_1);
2951
2952
2953 PERL_CALLCONV void      Perl_sv_nosharing(pTHX_ SV *sv);
2954 /* PERL_CALLCONV void   Perl_sv_nolocking(pTHX_ SV *sv); */
2955 PERL_CALLCONV bool      Perl_sv_destroyable(pTHX_ SV *sv);
2956 #ifdef NO_MATHOMS
2957 /* PERL_CALLCONV void   Perl_sv_nounlocking(pTHX_ SV *sv); */
2958 #else
2959 PERL_CALLCONV void      Perl_sv_nounlocking(pTHX_ SV *sv);
2960 #endif
2961 PERL_CALLCONV int       Perl_nothreadhook(pTHX);
2962
2963 END_EXTERN_C
2964
2965 #if defined(PERL_IN_DOOP_C) || defined(PERL_DECL_PROT)
2966 STATIC I32      S_do_trans_simple(pTHX_ SV * const sv)
2967                         __attribute__warn_unused_result__
2968                         __attribute__nonnull__(pTHX_1);
2969
2970 STATIC I32      S_do_trans_count(pTHX_ SV * const sv)
2971                         __attribute__warn_unused_result__
2972                         __attribute__nonnull__(pTHX_1);
2973
2974 STATIC I32      S_do_trans_complex(pTHX_ SV * const sv)
2975                         __attribute__warn_unused_result__
2976                         __attribute__nonnull__(pTHX_1);
2977
2978 STATIC I32      S_do_trans_simple_utf8(pTHX_ SV * const sv)
2979                         __attribute__warn_unused_result__
2980                         __attribute__nonnull__(pTHX_1);
2981
2982 STATIC I32      S_do_trans_count_utf8(pTHX_ SV * const sv)
2983                         __attribute__warn_unused_result__
2984                         __attribute__nonnull__(pTHX_1);
2985
2986 STATIC I32      S_do_trans_complex_utf8(pTHX_ SV * const sv)
2987                         __attribute__warn_unused_result__
2988                         __attribute__nonnull__(pTHX_1);
2989
2990 #endif
2991
2992 #if defined(PERL_IN_GV_C) || defined(PERL_DECL_PROT)
2993 STATIC void     S_gv_init_sv(pTHX_ GV *gv, I32 sv_type)
2994                         __attribute__nonnull__(pTHX_1);
2995
2996 STATIC HV*      S_gv_get_super_pkg(pTHX_ const char* name, I32 namelen)
2997                         __attribute__nonnull__(pTHX_1);
2998
2999 STATIC HV*      S_require_tie_mod(pTHX_ GV *gv, const char *varpv, SV* namesv, const char *methpv, const U32 flags)
3000                         __attribute__nonnull__(pTHX_1)
3001                         __attribute__nonnull__(pTHX_2)
3002                         __attribute__nonnull__(pTHX_3)
3003                         __attribute__nonnull__(pTHX_4);
3004
3005 #endif
3006
3007 PERL_CALLCONV void*     Perl_get_arena(pTHX_ const size_t svtype, const U32 misc)
3008                         __attribute__malloc__
3009                         __attribute__warn_unused_result__;
3010
3011
3012 #if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT)
3013 STATIC void     S_hsplit(pTHX_ HV *hv)
3014                         __attribute__nonnull__(pTHX_1);
3015
3016 STATIC void     S_hfreeentries(pTHX_ HV *hv)
3017                         __attribute__nonnull__(pTHX_1);
3018
3019 STATIC HE*      S_new_he(pTHX)
3020                         __attribute__malloc__
3021                         __attribute__warn_unused_result__;
3022
3023 STATIC HEK*     S_save_hek_flags(const char *str, I32 len, U32 hash, int flags)
3024                         __attribute__malloc__
3025                         __attribute__warn_unused_result__
3026                         __attribute__nonnull__(1);
3027
3028 STATIC void     S_hv_magic_check(HV *hv, bool *needs_copy, bool *needs_store)
3029                         __attribute__nonnull__(1)
3030                         __attribute__nonnull__(2)
3031                         __attribute__nonnull__(3);
3032
3033 STATIC void     S_unshare_hek_or_pvn(pTHX_ const HEK* hek, const char* str, I32 len, U32 hash);
3034 STATIC HEK*     S_share_hek_flags(pTHX_ const char* sv, I32 len, U32 hash, int flags)
3035                         __attribute__warn_unused_result__
3036                         __attribute__nonnull__(pTHX_1);
3037
3038 STATIC void     S_hv_notallowed(pTHX_ int flags, const char *key, I32 klen, const char *msg)
3039                         __attribute__noreturn__
3040                         __attribute__nonnull__(pTHX_2)
3041                         __attribute__nonnull__(pTHX_4);
3042
3043 STATIC struct xpvhv_aux*        S_hv_auxinit(HV *hv)
3044                         __attribute__nonnull__(1);
3045
3046 STATIC SV*      S_hv_delete_common(pTHX_ HV* tb, SV* keysv, const char* key, STRLEN klen, int k_flags, I32 d_flags, U32 hash);
3047 STATIC void     S_clear_placeholders(pTHX_ HV* hb, U32 items)
3048                         __attribute__nonnull__(pTHX_1);
3049
3050 STATIC SV *     S_refcounted_he_value(pTHX_ const struct refcounted_he *he)
3051                         __attribute__nonnull__(pTHX_1);
3052
3053 #endif
3054
3055 #if defined(PERL_IN_MG_C) || defined(PERL_DECL_PROT)
3056 STATIC void     S_save_magic(pTHX_ I32 mgs_ix, SV *sv)
3057                         __attribute__nonnull__(pTHX_2);
3058
3059 STATIC int      S_magic_methpack(pTHX_ SV *sv, const MAGIC *mg, const char *meth)
3060                         __attribute__nonnull__(pTHX_1)
3061                         __attribute__nonnull__(pTHX_2)
3062                         __attribute__nonnull__(pTHX_3);
3063
3064 STATIC int      S_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, const char *meth, I32 f, int n, SV *val)
3065                         __attribute__nonnull__(pTHX_1)
3066                         __attribute__nonnull__(pTHX_2)
3067                         __attribute__nonnull__(pTHX_3);
3068
3069 STATIC void     S_restore_magic(pTHX_ const void *p);
3070 STATIC void     S_unwind_handler_stack(pTHX_ const void *p)
3071                         __attribute__nonnull__(pTHX_1);
3072
3073
3074 #endif
3075
3076 #if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
3077 PERL_CALLCONV OP*       Perl_ck_anoncode(pTHX_ OP *o)
3078                         __attribute__warn_unused_result__
3079                         __attribute__nonnull__(pTHX_1);
3080
3081 PERL_CALLCONV OP*       Perl_ck_bitop(pTHX_ OP *o)
3082                         __attribute__warn_unused_result__
3083                         __attribute__nonnull__(pTHX_1);
3084
3085 PERL_CALLCONV OP*       Perl_ck_concat(pTHX_ OP *o)
3086                         __attribute__warn_unused_result__
3087                         __attribute__nonnull__(pTHX_1);
3088
3089 PERL_CALLCONV OP*       Perl_ck_defined(pTHX_ OP *o)
3090                         __attribute__warn_unused_result__
3091                         __attribute__nonnull__(pTHX_1);
3092
3093 PERL_CALLCONV OP*       Perl_ck_delete(pTHX_ OP *o)
3094                         __attribute__warn_unused_result__
3095                         __attribute__nonnull__(pTHX_1);
3096
3097 PERL_CALLCONV OP*       Perl_ck_die(pTHX_ OP *o)
3098                         __attribute__warn_unused_result__
3099                         __attribute__nonnull__(pTHX_1);
3100
3101 PERL_CALLCONV OP*       Perl_ck_eof(pTHX_ OP *o)
3102                         __attribute__warn_unused_result__
3103                         __attribute__nonnull__(pTHX_1);
3104
3105 PERL_CALLCONV OP*       Perl_ck_eval(pTHX_ OP *o)
3106                         __attribute__warn_unused_result__
3107                         __attribute__nonnull__(pTHX_1);
3108
3109 PERL_CALLCONV OP*       Perl_ck_exec(pTHX_ OP *o)
3110                         __attribute__warn_unused_result__
3111                         __attribute__nonnull__(pTHX_1);
3112
3113 PERL_CALLCONV OP*       Perl_ck_exists(pTHX_ OP *o)
3114                         __attribute__warn_unused_result__
3115                         __attribute__nonnull__(pTHX_1);
3116
3117 PERL_CALLCONV OP*       Perl_ck_exit(pTHX_ OP *o)
3118                         __attribute__warn_unused_result__
3119                         __attribute__nonnull__(pTHX_1);
3120
3121 PERL_CALLCONV OP*       Perl_ck_ftst(pTHX_ OP *o)
3122                         __attribute__warn_unused_result__
3123                         __attribute__nonnull__(pTHX_1);
3124
3125 PERL_CALLCONV OP*       Perl_ck_fun(pTHX_ OP *o)
3126                         __attribute__warn_unused_result__
3127                         __attribute__nonnull__(pTHX_1);
3128
3129 PERL_CALLCONV OP*       Perl_ck_glob(pTHX_ OP *o)
3130                         __attribute__warn_unused_result__
3131                         __attribute__nonnull__(pTHX_1);
3132
3133 PERL_CALLCONV OP*       Perl_ck_grep(pTHX_ OP *o)
3134                         __attribute__warn_unused_result__
3135                         __attribute__nonnull__(pTHX_1);
3136
3137 PERL_CALLCONV OP*       Perl_ck_index(pTHX_ OP *o)
3138                         __attribute__warn_unused_result__
3139                         __attribute__nonnull__(pTHX_1);
3140
3141 PERL_CALLCONV OP*       Perl_ck_join(pTHX_ OP *o)
3142                         __attribute__warn_unused_result__
3143                         __attribute__nonnull__(pTHX_1);
3144
3145 PERL_CALLCONV OP*       Perl_ck_lengthconst(pTHX_ OP *o)
3146                         __attribute__warn_unused_result__
3147                         __attribute__nonnull__(pTHX_1);
3148
3149 PERL_CALLCONV OP*       Perl_ck_lfun(pTHX_ OP *o)
3150                         __attribute__warn_unused_result__
3151                         __attribute__nonnull__(pTHX_1);
3152
3153 PERL_CALLCONV OP*       Perl_ck_listiob(pTHX_ OP *o)
3154                         __attribute__warn_unused_result__
3155                         __attribute__nonnull__(pTHX_1);
3156
3157 PERL_CALLCONV OP*       Perl_ck_match(pTHX_ OP *o)
3158                         __attribute__warn_unused_result__
3159                         __attribute__nonnull__(pTHX_1);
3160
3161 PERL_CALLCONV OP*       Perl_ck_method(pTHX_ OP *o)
3162                         __attribute__warn_unused_result__
3163                         __attribute__nonnull__(pTHX_1);
3164
3165 PERL_CALLCONV OP*       Perl_ck_null(pTHX_ OP *o)
3166                         __attribute__warn_unused_result__
3167                         __attribute__nonnull__(pTHX_1);
3168
3169 PERL_CALLCONV OP*       Perl_ck_open(pTHX_ OP *o)
3170                         __attribute__warn_unused_result__
3171                         __attribute__nonnull__(pTHX_1);
3172
3173 PERL_CALLCONV OP*       Perl_ck_readline(pTHX_ OP *o)
3174                         __attribute__warn_unused_result__
3175                         __attribute__nonnull__(pTHX_1);
3176
3177 PERL_CALLCONV OP*       Perl_ck_repeat(pTHX_ OP *o)
3178                         __attribute__warn_unused_result__
3179                         __attribute__nonnull__(pTHX_1);
3180
3181 PERL_CALLCONV OP*       Perl_ck_require(pTHX_ OP *o)
3182                         __attribute__warn_unused_result__
3183                         __attribute__nonnull__(pTHX_1);
3184
3185 PERL_CALLCONV OP*       Perl_ck_return(pTHX_ OP *o)
3186                         __attribute__warn_unused_result__
3187                         __attribute__nonnull__(pTHX_1);
3188
3189 PERL_CALLCONV OP*       Perl_ck_rfun(pTHX_ OP *o)
3190                         __attribute__warn_unused_result__
3191                         __attribute__nonnull__(pTHX_1);
3192
3193 PERL_CALLCONV OP*       Perl_ck_rvconst(pTHX_ OP *o)
3194                         __attribute__warn_unused_result__
3195                         __attribute__nonnull__(pTHX_1);
3196
3197 PERL_CALLCONV OP*       Perl_ck_sassign(pTHX_ OP *o)
3198                         __attribute__warn_unused_result__
3199                         __attribute__nonnull__(pTHX_1);
3200
3201 PERL_CALLCONV OP*       Perl_ck_select(pTHX_ OP *o)
3202                         __attribute__warn_unused_result__
3203                         __attribute__nonnull__(pTHX_1);
3204
3205 PERL_CALLCONV OP*       Perl_ck_shift(pTHX_ OP *o)
3206                         __attribute__warn_unused_result__
3207                         __attribute__nonnull__(pTHX_1);
3208
3209 PERL_CALLCONV OP*       Perl_ck_sort(pTHX_ OP *o)
3210                         __attribute__warn_unused_result__
3211                         __attribute__nonnull__(pTHX_1);
3212
3213 PERL_CALLCONV OP*       Perl_ck_spair(pTHX_ OP *o)
3214                         __attribute__warn_unused_result__
3215                         __attribute__nonnull__(pTHX_1);
3216
3217 PERL_CALLCONV OP*       Perl_ck_split(pTHX_ OP *o)
3218                         __attribute__warn_unused_result__
3219                         __attribute__nonnull__(pTHX_1);
3220
3221 PERL_CALLCONV OP*       Perl_ck_subr(pTHX_ OP *o)
3222                         __attribute__warn_unused_result__
3223                         __attribute__nonnull__(pTHX_1);
3224
3225 PERL_CALLCONV OP*       Perl_ck_substr(pTHX_ OP *o)
3226                         __attribute__warn_unused_result__
3227                         __attribute__nonnull__(pTHX_1);
3228
3229 PERL_CALLCONV OP*       Perl_ck_svconst(pTHX_ OP *o)
3230                         __attribute__warn_unused_result__
3231                         __attribute__nonnull__(pTHX_1);
3232
3233 PERL_CALLCONV OP*       Perl_ck_trunc(pTHX_ OP *o)
3234                         __attribute__warn_unused_result__
3235                         __attribute__nonnull__(pTHX_1);
3236
3237 PERL_CALLCONV OP*       Perl_ck_unpack(pTHX_ OP *o)
3238                         __attribute__warn_unused_result__
3239                         __attribute__nonnull__(pTHX_1);
3240
3241 PERL_CALLCONV OP*       Perl_ck_each(pTHX_ OP *o)
3242                         __attribute__warn_unused_result__
3243                         __attribute__nonnull__(pTHX_1);
3244
3245 STATIC bool     S_is_handle_constructor(const OP *o, I32 numargs)
3246                         __attribute__warn_unused_result__
3247                         __attribute__nonnull__(1);
3248
3249 STATIC I32      S_is_list_assignment(pTHX_ const OP *o)
3250                         __attribute__warn_unused_result__;
3251
3252 #  ifdef USE_ITHREADS
3253 STATIC void     S_forget_pmop(pTHX_ PMOP *const o, U32 flags)
3254                         __attribute__nonnull__(pTHX_1);
3255
3256 #  else
3257 STATIC void     S_forget_pmop(pTHX_ PMOP *const o)
3258                         __attribute__nonnull__(pTHX_1);
3259
3260 #  endif
3261 STATIC void     S_find_and_forget_pmops(pTHX_ OP *o)
3262                         __attribute__nonnull__(pTHX_1);
3263
3264 STATIC void     S_cop_free(pTHX_ COP *cop)
3265                         __attribute__nonnull__(pTHX_1);
3266
3267 STATIC OP*      S_modkids(pTHX_ OP *o, I32 type);
3268 STATIC OP*      S_scalarboolean(pTHX_ OP *o)
3269                         __attribute__nonnull__(pTHX_1);
3270
3271 STATIC OP*      S_newDEFSVOP(pTHX)
3272                         __attribute__warn_unused_result__;
3273
3274 STATIC OP*      S_new_logop(pTHX_ I32 type, I32 flags, OP **firstp, OP **otherp)
3275                         __attribute__warn_unused_result__
3276                         __attribute__nonnull__(pTHX_3)
3277                         __attribute__nonnull__(pTHX_4);
3278
3279 STATIC void     S_simplify_sort(pTHX_ OP *o)
3280                         __attribute__nonnull__(pTHX_1);
3281
3282 STATIC const char*      S_gv_ename(pTHX_ GV *gv)
3283                         __attribute__nonnull__(pTHX_1);
3284
3285 STATIC bool     S_scalar_mod_type(const OP *o, I32 type)
3286                         __attribute__warn_unused_result__
3287                         __attribute__nonnull__(1);
3288
3289 STATIC OP *     S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp)
3290                         __attribute__nonnull__(pTHX_3);
3291
3292 STATIC OP *     S_dup_attrlist(pTHX_ OP *o)
3293                         __attribute__nonnull__(pTHX_1);
3294
3295 STATIC void     S_apply_attrs(pTHX_ HV *stash, SV *target, OP *attrs, bool for_my)
3296                         __attribute__nonnull__(pTHX_1)
3297                         __attribute__nonnull__(pTHX_2);
3298
3299 STATIC void     S_apply_attrs_my(pTHX_ HV *stash, OP *target, OP *attrs, OP **imopsp)
3300                         __attribute__nonnull__(pTHX_1)
3301                         __attribute__nonnull__(pTHX_2)
3302                         __attribute__nonnull__(pTHX_4);
3303
3304 STATIC void     S_bad_type(pTHX_ I32 n, const char *t, const char *name, const OP *kid)
3305                         __attribute__nonnull__(pTHX_2)
3306                         __attribute__nonnull__(pTHX_3)
3307                         __attribute__nonnull__(pTHX_4);
3308
3309 STATIC void     S_no_bareword_allowed(pTHX_ const OP *o)
3310                         __attribute__nonnull__(pTHX_1);
3311
3312 STATIC OP*      S_no_fh_allowed(pTHX_ OP *o)
3313                         __attribute__warn_unused_result__
3314                         __attribute__nonnull__(pTHX_1);
3315
3316 STATIC OP*      S_too_few_arguments(pTHX_ OP *o, const char* name)
3317                         __attribute__warn_unused_result__
3318                         __attribute__nonnull__(pTHX_1)
3319                         __attribute__nonnull__(pTHX_2);
3320
3321 STATIC OP*      S_too_many_arguments(pTHX_ OP *o, const char* name)
3322                         __attribute__warn_unused_result__
3323                         __attribute__nonnull__(pTHX_1)
3324                         __attribute__nonnull__(pTHX_2);
3325
3326 STATIC bool     S_looks_like_bool(pTHX_ const OP* o)
3327                         __attribute__nonnull__(pTHX_1);
3328
3329 STATIC OP*      S_newGIVWHENOP(pTHX_ OP* cond, OP *block, I32 enter_opcode, I32 leave_opcode, PADOFFSET entertarg)
3330                         __attribute__nonnull__(pTHX_2);
3331
3332 STATIC OP*      S_ref_array_or_hash(pTHX_ OP* cond);
3333 STATIC void     S_process_special_blocks(pTHX_ const char *const fullname, GV *const gv, CV *const cv)
3334                         __attribute__nonnull__(pTHX_1)
3335                         __attribute__nonnull__(pTHX_2)
3336                         __attribute__nonnull__(pTHX_3);
3337
3338 #endif
3339 #if defined(PL_OP_SLAB_ALLOC)
3340 PERL_CALLCONV void*     Perl_Slab_Alloc(pTHX_ size_t sz)
3341                         __attribute__malloc__
3342                         __attribute__warn_unused_result__;
3343
3344 PERL_CALLCONV void      Perl_Slab_Free(pTHX_ void *op)
3345                         __attribute__nonnull__(pTHX_1);
3346
3347 #  if defined(PERL_DEBUG_READONLY_OPS)
3348 PERL_CALLCONV void      Perl_pending_Slabs_to_ro(pTHX);
3349 PERL_CALLCONV OP *      Perl_op_refcnt_inc(pTHX_ OP *o);
3350 PERL_CALLCONV PADOFFSET Perl_op_refcnt_dec(pTHX_ OP *o)
3351                         __attribute__nonnull__(pTHX_1);
3352
3353 #    if defined(PERL_IN_OP_C)
3354 STATIC void     S_Slab_to_rw(pTHX_ void *op)
3355                         __attribute__nonnull__(pTHX_1);
3356
3357 #    endif
3358 #  endif
3359 #endif
3360
3361 #if defined(PERL_IN_PERL_C) || defined(PERL_DECL_PROT)
3362 STATIC void     S_find_beginning(pTHX_ SV* linestr_sv, PerlIO *rsfp)
3363                         __attribute__nonnull__(pTHX_1)
3364                         __attribute__nonnull__(pTHX_2);
3365
3366 STATIC void     S_forbid_setid(pTHX_ const char flag, const bool suidscript);
3367 STATIC void     S_incpush(pTHX_ const char *dir, bool addsubdirs, bool addoldvers, bool usesep, bool canrelocate);
3368 STATIC void     S_init_interp(pTHX);
3369 STATIC void     S_init_ids(pTHX);
3370 STATIC void     S_init_main_stash(pTHX);
3371 STATIC void     S_init_perllib(pTHX);
3372 STATIC void     S_init_postdump_symbols(pTHX_ int argc, char **argv, char **env)
3373                         __attribute__nonnull__(pTHX_2);
3374
3375 STATIC void     S_init_predump_symbols(pTHX);
3376 STATIC void     S_my_exit_jump(pTHX)
3377                         __attribute__noreturn__;
3378
3379 STATIC void     S_nuke_stacks(pTHX);
3380 STATIC int      S_open_script(pTHX_ const char *scriptname, bool dosearch, bool *suidscript, PerlIO **rsfpp)
3381                         __attribute__nonnull__(pTHX_1)
3382                         __attribute__nonnull__(pTHX_3)
3383                         __attribute__nonnull__(pTHX_4);
3384
3385 STATIC void     S_usage(pTHX_ const char *name)
3386                         __attribute__nonnull__(pTHX_1);
3387
3388 #ifdef DOSUID
3389 #  ifdef IAMSUID
3390 STATIC void     S_validate_suid(pTHX_ const char *validarg, int fdscript, bool suidscript, SV* linestr_sv, PerlIO *rsfp)
3391                         __attribute__nonnull__(pTHX_1)
3392                         __attribute__nonnull__(pTHX_4)
3393                         __attribute__nonnull__(pTHX_5);
3394
3395 #  else
3396 STATIC void     S_validate_suid(pTHX_ const char *validarg, const char *scriptname, int fdscript, SV* linestr_sv, PerlIO *rsfp)
3397                         __attribute__nonnull__(pTHX_1)
3398                         __attribute__nonnull__(pTHX_2)
3399                         __attribute__nonnull__(pTHX_4)
3400                         __attribute__nonnull__(pTHX_5);
3401
3402 #  endif
3403 #else
3404 #  ifndef SETUID_SCRIPTS_ARE_SECURE_NOW
3405 STATIC void     S_validate_suid(pTHX_ PerlIO *rsfp)
3406                         __attribute__nonnull__(pTHX_1);
3407
3408 #  endif
3409 #endif
3410
3411 #  if defined(IAMSUID)
3412 STATIC int      S_fd_on_nosuid_fs(pTHX_ int fd);
3413 #  endif
3414 STATIC void*    S_parse_body(pTHX_ char **env, XSINIT_t xsinit);
3415 STATIC void     S_run_body(pTHX_ I32 oldscope)
3416                         __attribute__noreturn__;
3417
3418 STATIC SV *     S_incpush_if_exists(pTHX_ SV *dir)
3419                         __attribute__nonnull__(pTHX_1);
3420
3421 #endif
3422
3423 #if defined(PERL_IN_PP_C) || defined(PERL_DECL_PROT)
3424 STATIC SV*      S_refto(pTHX_ SV* sv)
3425                         __attribute__warn_unused_result__
3426                         __attribute__nonnull__(pTHX_1);
3427
3428 #endif
3429 #if defined(PERL_IN_PP_C) || defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT)
3430 PERL_CALLCONV GV*       Perl_softref2xv(pTHX_ SV *const sv, const char *const what, const U32 type, SV ***spp)
3431                         __attribute__warn_unused_result__
3432                         __attribute__nonnull__(pTHX_1)
3433                         __attribute__nonnull__(pTHX_2)
3434                         __attribute__nonnull__(pTHX_4);
3435
3436 #endif
3437
3438 #if defined(PERL_IN_PP_PACK_C) || defined(PERL_DECL_PROT)
3439 STATIC I32      S_unpack_rec(pTHX_ struct tempsym* symptr, const char *s, const char *strbeg, const char *strend, const char **new_s)
3440                         __attribute__nonnull__(pTHX_1)
3441                         __attribute__nonnull__(pTHX_2)
3442                         __attribute__nonnull__(pTHX_3)
3443                         __attribute__nonnull__(pTHX_4);
3444
3445 STATIC SV **    S_pack_rec(pTHX_ SV *cat, struct tempsym* symptr, SV **beglist, SV **endlist)
3446                         __attribute__nonnull__(pTHX_1)
3447                         __attribute__nonnull__(pTHX_2)
3448                         __attribute__nonnull__(pTHX_3)
3449                         __attribute__nonnull__(pTHX_4);
3450
3451 STATIC SV*      S_mul128(pTHX_ SV *sv, U8 m)
3452                         __attribute__nonnull__(pTHX_1);
3453
3454 STATIC I32      S_measure_struct(pTHX_ struct tempsym* symptr)
3455                         __attribute__nonnull__(pTHX_1);
3456
3457 STATIC bool     S_next_symbol(pTHX_ struct tempsym* symptr)
3458                         __attribute__nonnull__(pTHX_1);
3459
3460 STATIC SV*      S_is_an_int(pTHX_ const char *s, STRLEN l)
3461                         __attribute__warn_unused_result__
3462                         __attribute__nonnull__(pTHX_1);
3463
3464 STATIC int      S_div128(pTHX_ SV *pnum, bool *done)
3465                         __attribute__nonnull__(pTHX_1)
3466                         __attribute__nonnull__(pTHX_2);
3467
3468 STATIC const char *     S_group_end(pTHX_ const char *pat, const char *patend, char ender)
3469                         __attribute__nonnull__(pTHX_1)
3470                         __attribute__nonnull__(pTHX_2);
3471
3472 STATIC const char *     S_get_num(pTHX_ const char *ppat, I32 *lenptr)
3473                         __attribute__warn_unused_result__
3474                         __attribute__nonnull__(pTHX_1)
3475                         __attribute__nonnull__(pTHX_2);
3476
3477 STATIC bool     S_need_utf8(const char *pat, const char *patend)
3478                         __attribute__nonnull__(1)
3479                         __attribute__nonnull__(2);
3480
3481 STATIC char     S_first_symbol(const char *pat, const char *patend)
3482                         __attribute__nonnull__(1)
3483                         __attribute__nonnull__(2);
3484
3485 STATIC char *   S_sv_exp_grow(pTHX_ SV *sv, STRLEN needed)
3486                         __attribute__warn_unused_result__
3487                         __attribute__nonnull__(pTHX_1);
3488
3489 STATIC char *   S_bytes_to_uni(const U8 *start, STRLEN len, char *dest)
3490                         __attribute__warn_unused_result__
3491                         __attribute__nonnull__(1)
3492                         __attribute__nonnull__(3);
3493
3494 #endif
3495
3496 #if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT)
3497 STATIC OP*      S_docatch(pTHX_ OP *o)
3498                         __attribute__warn_unused_result__;
3499
3500 STATIC OP*      S_dofindlabel(pTHX_ OP *o, const char *label, OP **opstack, OP **oplimit)
3501                         __attribute__warn_unused_result__
3502                         __attribute__nonnull__(pTHX_1)
3503                         __attribute__nonnull__(pTHX_2)
3504                         __attribute__nonnull__(pTHX_3)
3505                         __attribute__nonnull__(pTHX_4);
3506
3507 STATIC OP*      S_doparseform(pTHX_ SV *sv)
3508                         __attribute__warn_unused_result__
3509                         __attribute__nonnull__(pTHX_1);
3510
3511 STATIC bool     S_num_overflow(NV value, I32 fldsize, I32 frcsize)
3512                         __attribute__warn_unused_result__;
3513
3514 STATIC I32      S_dopoptoeval(pTHX_ I32 startingblock)
3515                         __attribute__warn_unused_result__;
3516
3517 STATIC I32      S_dopoptogiven(pTHX_ I32 startingblock)
3518                         __attribute__warn_unused_result__;
3519
3520 STATIC I32      S_dopoptolabel(pTHX_ const char *label)
3521                         __attribute__warn_unused_result__
3522                         __attribute__nonnull__(pTHX_1);
3523
3524 STATIC I32      S_dopoptoloop(pTHX_ I32 startingblock)
3525                         __attribute__warn_unused_result__;
3526
3527 STATIC I32      S_dopoptosub_at(pTHX_ const PERL_CONTEXT* cxstk, I32 startingblock)
3528                         __attribute__warn_unused_result__
3529                         __attribute__nonnull__(pTHX_1);
3530
3531 STATIC I32      S_dopoptowhen(pTHX_ I32 startingblock)
3532                         __attribute__warn_unused_result__;
3533
3534 STATIC void     S_save_lines(pTHX_ AV *array, SV *sv)
3535                         __attribute__nonnull__(pTHX_2);
3536
3537 STATIC bool     S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq);
3538 STATIC PerlIO * S_check_type_and_open(pTHX_ const char *name)
3539                         __attribute__warn_unused_result__
3540                         __attribute__nonnull__(pTHX_1);
3541
3542 #ifndef PERL_DISABLE_PMC
3543 STATIC PerlIO * S_doopen_pm(pTHX_ const char *name, const STRLEN namelen)
3544                         __attribute__warn_unused_result__
3545                         __attribute__nonnull__(pTHX_1);
3546
3547 #endif
3548 STATIC bool     S_path_is_absolute(const char *name)
3549                         __attribute__warn_unused_result__
3550                         __attribute__nonnull__(1);
3551
3552 STATIC I32      S_run_user_filter(pTHX_ int idx, SV *buf_sv, int maxlen)
3553                         __attribute__warn_unused_result__
3554                         __attribute__nonnull__(pTHX_2);
3555
3556 STATIC PMOP*    S_make_matcher(pTHX_ REGEXP* re)
3557                         __attribute__warn_unused_result__
3558                         __attribute__nonnull__(pTHX_1);
3559
3560 STATIC bool     S_matcher_matches_sv(pTHX_ PMOP* matcher, SV* sv)
3561                         __attribute__warn_unused_result__
3562                         __attribute__nonnull__(pTHX_1)
3563                         __attribute__nonnull__(pTHX_2);
3564
3565 STATIC void     S_destroy_matcher(pTHX_ PMOP* matcher)
3566                         __attribute__nonnull__(pTHX_1);
3567
3568 STATIC OP*      S_do_smartmatch(pTHX_ HV* seen_this, HV* seen_other);
3569 #endif
3570
3571 #if defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT)
3572 STATIC void     S_do_oddball(pTHX_ HV *hash, SV **relem, SV **firstrelem)
3573                         __attribute__nonnull__(pTHX_1)
3574                         __attribute__nonnull__(pTHX_2)
3575                         __attribute__nonnull__(pTHX_3);
3576
3577 STATIC SV*      S_method_common(pTHX_ SV* meth, U32* hashp)
3578                         __attribute__warn_unused_result__
3579                         __attribute__nonnull__(pTHX_1);
3580
3581 #endif
3582
3583 #if defined(PERL_IN_PP_SORT_C) || defined(PERL_DECL_PROT)
3584 STATIC I32      S_sv_ncmp(pTHX_ SV *a, SV *b)
3585                         __attribute__nonnull__(pTHX_1)
3586                         __attribute__nonnull__(pTHX_2);
3587
3588 STATIC I32      S_sv_i_ncmp(pTHX_ SV *a, SV *b)
3589                         __attribute__nonnull__(pTHX_1)
3590                         __attribute__nonnull__(pTHX_2);
3591
3592 STATIC I32      S_amagic_ncmp(pTHX_ SV *a, SV *b)
3593                         __attribute__nonnull__(pTHX_1)
3594                         __attribute__nonnull__(pTHX_2);
3595
3596 STATIC I32      S_amagic_i_ncmp(pTHX_ SV *a, SV *b)
3597                         __attribute__nonnull__(pTHX_1)
3598                         __attribute__nonnull__(pTHX_2);
3599
3600 STATIC I32      S_amagic_cmp(pTHX_ SV *a, SV *b)
3601                         __attribute__nonnull__(pTHX_1)
3602                         __attribute__nonnull__(pTHX_2);
3603
3604 STATIC I32      S_amagic_cmp_locale(pTHX_ SV *a, SV *b)
3605                         __attribute__nonnull__(pTHX_1)
3606                         __attribute__nonnull__(pTHX_2);
3607
3608 STATIC I32      S_sortcv(pTHX_ SV *a, SV *b)
3609                         __attribute__nonnull__(pTHX_1)
3610                         __attribute__nonnull__(pTHX_2);
3611
3612 STATIC I32      S_sortcv_xsub(pTHX_ SV *a, SV *b)
3613                         __attribute__nonnull__(pTHX_1)
3614                         __attribute__nonnull__(pTHX_2);
3615
3616 STATIC I32      S_sortcv_stacked(pTHX_ SV *a, SV *b)
3617                         __attribute__nonnull__(pTHX_1)
3618                         __attribute__nonnull__(pTHX_2);
3619
3620 STATIC void     S_qsortsvu(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t compare)
3621                         __attribute__nonnull__(pTHX_1)
3622                         __attribute__nonnull__(pTHX_3);
3623
3624 #endif
3625
3626 #if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT)
3627 STATIC OP*      S_doform(pTHX_ CV *cv, GV *gv, OP *retop)
3628                         __attribute__nonnull__(pTHX_1)
3629                         __attribute__nonnull__(pTHX_2)
3630                         __attribute__nonnull__(pTHX_3);
3631
3632 #  if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
3633 STATIC int      S_dooneliner(pTHX_ const char *cmd, const char *filename)
3634                         __attribute__warn_unused_result__
3635                         __attribute__nonnull__(pTHX_1)
3636                         __attribute__nonnull__(pTHX_2);
3637
3638 #  endif
3639 STATIC SV *     S_space_join_names_mortal(pTHX_ char *const *array)
3640                         __attribute__nonnull__(pTHX_1);
3641
3642 #endif
3643
3644 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT)
3645 STATIC regnode* S_reg(pTHX_ struct RExC_state_t *state, I32 paren, I32 *flagp, U32 depth)
3646                         __attribute__nonnull__(pTHX_1)
3647                         __attribute__nonnull__(pTHX_3);
3648
3649 STATIC regnode* S_reganode(pTHX_ struct RExC_state_t *state, U8 op, U32 arg)
3650                         __attribute__nonnull__(pTHX_1);
3651
3652 STATIC regnode* S_regatom(pTHX_ struct RExC_state_t *state, I32 *flagp, U32 depth)
3653                         __attribute__nonnull__(pTHX_1)
3654                         __attribute__nonnull__(pTHX_2);
3655
3656 STATIC regnode* S_regbranch(pTHX_ struct RExC_state_t *state, I32 *flagp, I32 first, U32 depth)
3657                         __attribute__nonnull__(pTHX_1)
3658                         __attribute__nonnull__(pTHX_2);
3659
3660 STATIC STRLEN   S_reguni(pTHX_ const struct RExC_state_t *state, UV uv, char *s)
3661                         __attribute__nonnull__(pTHX_1)
3662                         __attribute__nonnull__(pTHX_3);
3663
3664 STATIC regnode* S_regclass(pTHX_ struct RExC_state_t *state, U32 depth)
3665                         __attribute__nonnull__(pTHX_1);
3666
3667 STATIC I32      S_regcurly(const char *s)
3668                         __attribute__warn_unused_result__
3669                         __attribute__nonnull__(1);
3670
3671 STATIC regnode* S_reg_node(pTHX_ struct RExC_state_t *state, U8 op)
3672                         __attribute__nonnull__(pTHX_1);
3673
3674 STATIC UV       S_reg_recode(pTHX_ const char value, SV **encp)
3675                         __attribute__nonnull__(pTHX_2);
3676
3677 STATIC regnode* S_regpiece(pTHX_ struct RExC_state_t *state, I32 *flagp, U32 depth)
3678                         __attribute__nonnull__(pTHX_1)
3679                         __attribute__nonnull__(pTHX_2);
3680
3681 STATIC regnode* S_reg_namedseq(pTHX_ struct RExC_state_t *state, UV *valuep)
3682                         __attribute__nonnull__(pTHX_1);
3683
3684 STATIC void     S_reginsert(pTHX_ struct RExC_state_t *state, U8 op, regnode *opnd, U32 depth)
3685                         __attribute__nonnull__(pTHX_1)
3686                         __attribute__nonnull__(pTHX_3);
3687
3688 STATIC void     S_regtail(pTHX_ struct RExC_state_t *state, regnode *p, const regnode *val, U32 depth)
3689                         __attribute__nonnull__(pTHX_1)
3690                         __attribute__nonnull__(pTHX_2)
3691                         __attribute__nonnull__(pTHX_3);
3692
3693 STATIC SV *     S_reg_scan_name(pTHX_ struct RExC_state_t *state, U32 flags)
3694                         __attribute__nonnull__(pTHX_1);
3695
3696 STATIC U32      S_join_exact(pTHX_ struct RExC_state_t *state, regnode *scan, I32 *min, U32 flags, regnode *val, U32 depth)
3697                         __attribute__nonnull__(pTHX_1)
3698                         __attribute__nonnull__(pTHX_2)
3699                         __attribute__nonnull__(pTHX_3);
3700
3701 STATIC char *   S_regwhite(struct RExC_state_t *state, char *p)
3702                         __attribute__warn_unused_result__
3703                         __attribute__nonnull__(1)
3704                         __attribute__nonnull__(2);
3705
3706 STATIC char *   S_nextchar(pTHX_ struct RExC_state_t *state)
3707                         __attribute__nonnull__(pTHX_1);
3708
3709 STATIC bool     S_reg_skipcomment(pTHX_ struct RExC_state_t *state)
3710                         __attribute__nonnull__(pTHX_1);
3711
3712 STATIC void     S_scan_commit(pTHX_ const struct RExC_state_t* state, struct scan_data_t *data, I32 *minlenp, int is_inf)
3713                         __attribute__nonnull__(pTHX_1)
3714                         __attribute__nonnull__(pTHX_2)
3715                         __attribute__nonnull__(pTHX_3);
3716
3717 STATIC void     S_cl_anything(const struct RExC_state_t* state, struct regnode_charclass_class *cl)
3718                         __attribute__nonnull__(1)
3719                         __attribute__nonnull__(2);
3720
3721 STATIC int      S_cl_is_anything(const struct regnode_charclass_class *cl)
3722                         __attribute__warn_unused_result__
3723                         __attribute__nonnull__(1);
3724
3725 STATIC void     S_cl_init(const struct RExC_state_t* state, struct regnode_charclass_class *cl)
3726                         __attribute__nonnull__(1)
3727                         __attribute__nonnull__(2);
3728
3729 STATIC void     S_cl_init_zero(const struct RExC_state_t* state, struct regnode_charclass_class *cl)
3730                         __attribute__nonnull__(1)
3731                         __attribute__nonnull__(2);
3732
3733 STATIC void     S_cl_and(struct regnode_charclass_class *cl, const struct regnode_charclass_class *and_with)
3734                         __attribute__nonnull__(1)
3735                         __attribute__nonnull__(2);
3736
3737 STATIC void     S_cl_or(const struct RExC_state_t* state, struct regnode_charclass_class *cl, const struct regnode_charclass_class *or_with)
3738                         __attribute__nonnull__(1)
3739                         __attribute__nonnull__(2)
3740                         __attribute__nonnull__(3);
3741
3742 STATIC I32      S_study_chunk(pTHX_ struct RExC_state_t* state, regnode **scanp, I32 *minlenp, I32 *deltap, regnode *last, struct scan_data_t *data, I32 stopparen, U8* recursed, struct regnode_charclass_class *and_withp, U32 flags, U32 depth)
3743                         __attribute__nonnull__(pTHX_1)
3744                         __attribute__nonnull__(pTHX_2)
3745                         __attribute__nonnull__(pTHX_3)
3746                         __attribute__nonnull__(pTHX_4)
3747                         __attribute__nonnull__(pTHX_5);
3748
3749 STATIC U32      S_add_data(struct RExC_state_t* state, U32 n, const char *s)
3750                         __attribute__warn_unused_result__
3751                         __attribute__nonnull__(1)
3752                         __attribute__nonnull__(3);
3753
3754 STATIC void     S_re_croak2(pTHX_ const char* pat1, const char* pat2, ...)
3755                         __attribute__noreturn__
3756                         __attribute__nonnull__(pTHX_1)
3757                         __attribute__nonnull__(pTHX_2);
3758
3759 STATIC I32      S_regpposixcc(pTHX_ struct RExC_state_t* state, I32 value)
3760                         __attribute__nonnull__(pTHX_1);
3761
3762 STATIC void     S_checkposixcc(pTHX_ struct RExC_state_t* state)
3763                         __attribute__nonnull__(pTHX_1);
3764
3765 STATIC I32      S_make_trie(pTHX_ struct RExC_state_t* state, regnode *startbranch, regnode *first, regnode *last, regnode *tail, U32 word_count, U32 flags, U32 depth)
3766                         __attribute__nonnull__(pTHX_1)
3767                         __attribute__nonnull__(pTHX_2)
3768                         __attribute__nonnull__(pTHX_3)
3769                         __attribute__nonnull__(pTHX_4)
3770                         __attribute__nonnull__(pTHX_5);
3771
3772 STATIC void     S_make_trie_failtable(pTHX_ struct RExC_state_t* state, regnode *source, regnode *node, U32 depth)
3773                         __attribute__nonnull__(pTHX_1)
3774                         __attribute__nonnull__(pTHX_2)
3775                         __attribute__nonnull__(pTHX_3);
3776
3777 #  ifdef DEBUGGING
3778 STATIC void     S_regdump_extflags(pTHX_ const char *lead, const U32 flags);
3779 STATIC const regnode*   S_dumpuntil(pTHX_ const regexp *r, const regnode *start, const regnode *node, const regnode *last, const regnode *plast, SV* sv, I32 indent, U32 depth)
3780                         __attribute__nonnull__(pTHX_1)
3781                         __attribute__nonnull__(pTHX_2)
3782                         __attribute__nonnull__(pTHX_3)
3783                         __attribute__nonnull__(pTHX_6);
3784
3785 STATIC void     S_put_byte(pTHX_ SV* sv, int c)
3786                         __attribute__nonnull__(pTHX_1);
3787
3788 STATIC void     S_dump_trie(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 depth)
3789                         __attribute__nonnull__(pTHX_1)
3790                         __attribute__nonnull__(pTHX_3);
3791
3792 STATIC void     S_dump_trie_interim_list(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth)
3793                         __attribute__nonnull__(pTHX_1)
3794                         __attribute__nonnull__(pTHX_3);
3795
3796 STATIC void     S_dump_trie_interim_table(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth)
3797                         __attribute__nonnull__(pTHX_1)
3798                         __attribute__nonnull__(pTHX_3);
3799
3800 STATIC U8       S_regtail_study(pTHX_ struct RExC_state_t *state, regnode *p, const regnode *val, U32 depth)
3801                         __attribute__nonnull__(pTHX_1)
3802                         __attribute__nonnull__(pTHX_2)
3803                         __attribute__nonnull__(pTHX_3);
3804
3805 #  endif
3806 #endif
3807
3808 #if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT)
3809 STATIC I32      S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
3810                         __attribute__warn_unused_result__
3811                         __attribute__nonnull__(pTHX_1)
3812                         __attribute__nonnull__(pTHX_2);
3813
3814 STATIC I32      S_regrepeat(pTHX_ const regexp *prog, const regnode *p, I32 max, int depth)
3815                         __attribute__warn_unused_result__
3816                         __attribute__nonnull__(pTHX_1)
3817                         __attribute__nonnull__(pTHX_2);
3818
3819 STATIC I32      S_regtry(pTHX_ regmatch_info *reginfo, char **startpos)
3820                         __attribute__warn_unused_result__
3821                         __attribute__nonnull__(pTHX_1)
3822                         __attribute__nonnull__(pTHX_2);
3823
3824 STATIC bool     S_reginclass(pTHX_ const regexp *prog, const regnode *n, const U8 *p, STRLEN *lenp, bool do_utf8sv_is_utf8)
3825                         __attribute__warn_unused_result__
3826                         __attribute__nonnull__(pTHX_2)
3827                         __attribute__nonnull__(pTHX_3);
3828
3829 STATIC CHECKPOINT       S_regcppush(pTHX_ I32 parenfloor);
3830 STATIC char*    S_regcppop(pTHX_ const regexp *rex)
3831                         __attribute__nonnull__(pTHX_1);
3832
3833 STATIC U8*      S_reghop3(U8 *pos, I32 off, const U8 *lim)
3834                         __attribute__warn_unused_result__
3835                         __attribute__nonnull__(1)
3836                         __attribute__nonnull__(3);
3837
3838 #ifdef XXX_dmq
3839 STATIC U8*      S_reghop4(U8 *pos, I32 off, const U8 *llim, const U8 *rlim)
3840                         __attribute__warn_unused_result__
3841                         __attribute__nonnull__(1)
3842                         __attribute__nonnull__(3)
3843                         __attribute__nonnull__(4);
3844
3845 #endif
3846 STATIC U8*      S_reghopmaybe3(U8 *pos, I32 off, const U8 *lim)
3847                         __attribute__warn_unused_result__
3848                         __attribute__nonnull__(1)
3849                         __attribute__nonnull__(3);
3850
3851 STATIC char*    S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s, const char *strend, regmatch_info *reginfo)
3852                         __attribute__warn_unused_result__
3853                         __attribute__nonnull__(pTHX_1)
3854                         __attribute__nonnull__(pTHX_2)
3855                         __attribute__nonnull__(pTHX_3)
3856                         __attribute__nonnull__(pTHX_4);
3857
3858 STATIC void     S_swap_match_buff(pTHX_ regexp * prog)
3859                         __attribute__nonnull__(pTHX_1);
3860
3861 STATIC void     S_to_utf8_substr(pTHX_ regexp * prog)
3862                         __attribute__nonnull__(pTHX_1);
3863
3864 STATIC void     S_to_byte_substr(pTHX_ regexp * prog)
3865                         __attribute__nonnull__(pTHX_1);
3866
3867 STATIC I32      S_reg_check_named_buff_matched(pTHX_ const regexp *rex, const regnode *prog)
3868                         __attribute__warn_unused_result__
3869                         __attribute__nonnull__(pTHX_1)
3870                         __attribute__nonnull__(pTHX_2);
3871
3872 #  ifdef DEBUGGING
3873 STATIC void     S_dump_exec_pos(pTHX_ const char *locinput, const regnode *scan, const char *loc_regeol, const char *loc_bostr, const char *loc_reg_starttry, const bool do_utf8)
3874                         __attribute__nonnull__(pTHX_1)
3875                         __attribute__nonnull__(pTHX_2)
3876                         __attribute__nonnull__(pTHX_3)
3877                         __attribute__nonnull__(pTHX_4)
3878                         __attribute__nonnull__(pTHX_5);
3879
3880 STATIC void     S_debug_start_match(pTHX_ const REGEXP *prog, const bool do_utf8, const char *start, const char *end, const char *blurb)
3881                         __attribute__nonnull__(pTHX_1)
3882                         __attribute__nonnull__(pTHX_3)
3883                         __attribute__nonnull__(pTHX_4)
3884                         __attribute__nonnull__(pTHX_5);
3885
3886 #  endif
3887 #endif
3888
3889 #if defined(PERL_IN_DUMP_C) || defined(PERL_DECL_PROT)
3890 STATIC CV*      S_deb_curcv(pTHX_ const I32 ix);
3891 STATIC void     S_debprof(pTHX_ const OP *o)
3892                         __attribute__nonnull__(pTHX_1);
3893
3894 STATIC void     S_sequence(pTHX_ const OP *o);
3895 STATIC void     S_sequence_tail(pTHX_ const OP *o);
3896 STATIC UV       S_sequence_num(pTHX_ const OP *o);
3897 STATIC SV*      S_pm_description(pTHX_ const PMOP *pm)
3898                         __attribute__nonnull__(pTHX_1);
3899
3900 #endif
3901
3902 #if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT)
3903 STATIC SV*      S_save_scalar_at(pTHX_ SV **sptr)
3904                         __attribute__nonnull__(pTHX_1);
3905
3906 #endif
3907
3908 #if defined(PERL_IN_GV_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_PAD_C) || defined(PERL_DECL_PROT)
3909 PERL_CALLCONV void      Perl_sv_add_backref(pTHX_ SV *tsv, SV *sv)
3910                         __attribute__nonnull__(pTHX_1)
3911                         __attribute__nonnull__(pTHX_2);
3912
3913 #endif
3914
3915 #if defined(PERL_IN_HV_C) || defined(PERL_IN_MG_C) || defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
3916 PERL_CALLCONV int       Perl_sv_kill_backrefs(pTHX_ SV *sv, AV *av)
3917                         __attribute__nonnull__(pTHX_1)
3918                         __attribute__nonnull__(pTHX_2);
3919
3920 #endif
3921
3922 #if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
3923 STATIC char *   S_uiv_2buf(char *const buf, const IV iv, UV uv, const int is_uv, char **const peob)
3924                         __attribute__warn_unused_result__
3925                         __attribute__nonnull__(1)
3926                         __attribute__nonnull__(5);
3927
3928 STATIC void     S_sv_unglob(pTHX_ SV* sv)
3929                         __attribute__nonnull__(pTHX_1);
3930
3931 STATIC void     S_not_a_number(pTHX_ SV *const sv)
3932                         __attribute__nonnull__(pTHX_1);
3933
3934 STATIC I32      S_visit(pTHX_ SVFUNC_t f, const U32 flags, const U32 mask)
3935                         __attribute__nonnull__(pTHX_1);
3936
3937 STATIC void     S_sv_del_backref(pTHX_ SV *target, SV *ref)
3938                         __attribute__nonnull__(pTHX_1)
3939                         __attribute__nonnull__(pTHX_2);
3940
3941 STATIC SV *     S_varname(pTHX_ GV *gv, const char gvtype, PADOFFSET targ, SV *keyname, I32 aindex, int subscript_type)
3942                         __attribute__warn_unused_result__;
3943
3944 #  ifdef DEBUGGING
3945 STATIC void     S_del_sv(pTHX_ SV *p)
3946                         __attribute__nonnull__(pTHX_1);
3947
3948 #  endif
3949 #  if !defined(NV_PRESERVES_UV)
3950 #    ifdef DEBUGGING
3951 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *const sv, I32 numtype)
3952                         __attribute__nonnull__(pTHX_1);
3953
3954 #    else
3955 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *const sv)
3956                         __attribute__nonnull__(pTHX_1);
3957
3958 #    endif
3959 #  endif
3960 STATIC I32      S_expect_number(pTHX_ char** pattern)
3961                         __attribute__warn_unused_result__
3962                         __attribute__nonnull__(pTHX_1);
3963
3964 #
3965 STATIC STRLEN   S_sv_pos_u2b_forwards(const U8 *const start, const U8 *const send, STRLEN uoffset)
3966                         __attribute__nonnull__(1)
3967                         __attribute__nonnull__(2);
3968
3969 STATIC STRLEN   S_sv_pos_u2b_midway(const U8 *const start, const U8 *send, STRLEN uoffset, STRLEN uend)
3970                         __attribute__nonnull__(1)
3971                         __attribute__nonnull__(2);
3972
3973 STATIC STRLEN   S_sv_pos_u2b_cached(pTHX_ SV *sv, MAGIC **mgp, const U8 *const start, const U8 *const send, STRLEN uoffset, STRLEN uoffset0, STRLEN boffset0)
3974                         __attribute__nonnull__(pTHX_1)
3975                         __attribute__nonnull__(pTHX_2)
3976                         __attribute__nonnull__(pTHX_3)
3977                         __attribute__nonnull__(pTHX_4);
3978
3979 STATIC void     S_utf8_mg_pos_cache_update(pTHX_ SV *sv, MAGIC **mgp, STRLEN byte, STRLEN utf8, STRLEN blen)
3980                         __attribute__nonnull__(pTHX_1)
3981                         __attribute__nonnull__(pTHX_2);
3982
3983 STATIC STRLEN   S_sv_pos_b2u_midway(pTHX_ const U8 *s, const U8 *const target, const U8 *end, STRLEN endu)
3984                         __attribute__nonnull__(pTHX_1)
3985                         __attribute__nonnull__(pTHX_2)
3986                         __attribute__nonnull__(pTHX_3);
3987
3988 STATIC char *   S_F0convert(NV nv, char *endbuf, STRLEN *len)
3989                         __attribute__nonnull__(2)
3990                         __attribute__nonnull__(3);
3991
3992 #  if defined(PERL_OLD_COPY_ON_WRITE)
3993 STATIC void     S_sv_release_COW(pTHX_ SV *sv, const char *pvx, SV *after)
3994                         __attribute__nonnull__(pTHX_1)
3995                         __attribute__nonnull__(pTHX_2)
3996                         __attribute__nonnull__(pTHX_3);
3997
3998 #  endif
3999 STATIC SV *     S_more_sv(pTHX);
4000 STATIC void *   S_more_bodies(pTHX_ const svtype sv_type);
4001 STATIC bool     S_sv_2iuv_common(pTHX_ SV *const sv)
4002                         __attribute__nonnull__(pTHX_1);
4003
4004 STATIC void     S_glob_assign_glob(pTHX_ SV *dstr, SV *sstr, const int dtype)
4005                         __attribute__nonnull__(pTHX_1)
4006                         __attribute__nonnull__(pTHX_2);
4007
4008 STATIC void     S_glob_assign_ref(pTHX_ SV *dstr, SV *sstr)
4009                         __attribute__nonnull__(pTHX_1)
4010                         __attribute__nonnull__(pTHX_2);
4011
4012 STATIC PTR_TBL_ENT_t *  S_ptr_table_find(PTR_TBL_t *tbl, const void *sv)
4013                         __attribute__warn_unused_result__
4014                         __attribute__nonnull__(1);
4015
4016 #endif
4017
4018 #if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
4019 STATIC void     S_check_uni(pTHX);
4020 STATIC void     S_force_next(pTHX_ I32 type);
4021 STATIC char*    S_force_version(pTHX_ char *start, int guessing)
4022                         __attribute__nonnull__(pTHX_1);
4023
4024 STATIC char*    S_force_word(pTHX_ char *start, int token, int check_keyword, int allow_pack, int allow_tick)
4025                         __attribute__nonnull__(pTHX_1);
4026
4027 STATIC SV*      S_tokeq(pTHX_ SV *sv)
4028                         __attribute__nonnull__(pTHX_1);
4029
4030 STATIC void     S_readpipe_override(pTHX);
4031 STATIC char*    S_scan_const(pTHX_ char *start)
4032                         __attribute__warn_unused_result__
4033                         __attribute__nonnull__(pTHX_1);
4034
4035 STATIC char*    S_scan_formline(pTHX_ char *s)
4036                         __attribute__warn_unused_result__
4037                         __attribute__nonnull__(pTHX_1);
4038
4039 STATIC char*    S_scan_heredoc(pTHX_ char *s)
4040                         __attribute__warn_unused_result__
4041                         __attribute__nonnull__(pTHX_1);
4042
4043 STATIC char*    S_scan_ident(pTHX_ char *s, const char *send, char *dest, STRLEN destlen, I32 ck_uni)
4044                         __attribute__nonnull__(pTHX_1)
4045                         __attribute__nonnull__(pTHX_2)
4046                         __attribute__nonnull__(pTHX_3);
4047
4048 STATIC char*    S_scan_inputsymbol(pTHX_ char *start)
4049                         __attribute__warn_unused_result__
4050                         __attribute__nonnull__(pTHX_1);
4051
4052 STATIC char*    S_scan_pat(pTHX_ char *start, I32 type)
4053                         __attribute__warn_unused_result__
4054                         __attribute__nonnull__(pTHX_1);
4055
4056 STATIC char*    S_scan_str(pTHX_ char *start, int keep_quoted, int keep_delims)
4057                         __attribute__warn_unused_result__
4058                         __attribute__nonnull__(pTHX_1);
4059
4060 STATIC char*    S_scan_subst(pTHX_ char *start)
4061                         __attribute__warn_unused_result__
4062                         __attribute__nonnull__(pTHX_1);
4063
4064 STATIC char*    S_scan_trans(pTHX_ char *start)
4065                         __attribute__warn_unused_result__
4066                         __attribute__nonnull__(pTHX_1);
4067
4068 STATIC char*    S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp)
4069                         __attribute__nonnull__(pTHX_1)
4070                         __attribute__nonnull__(pTHX_2)
4071                         __attribute__nonnull__(pTHX_5);
4072
4073 STATIC void     S_update_debugger_info(pTHX_ SV *orig_sv, const char *const buf, STRLEN len);
4074 STATIC char*    S_skipspace(pTHX_ char *s)
4075                         __attribute__warn_unused_result__
4076                         __attribute__nonnull__(pTHX_1);
4077
4078 STATIC char*    S_swallow_bom(pTHX_ U8 *s)
4079                         __attribute__warn_unused_result__
4080                         __attribute__nonnull__(pTHX_1);
4081
4082 STATIC void     S_checkcomma(pTHX_ const char *s, const char *name, const char *what)
4083                         __attribute__nonnull__(pTHX_1)
4084                         __attribute__nonnull__(pTHX_2)
4085                         __attribute__nonnull__(pTHX_3);
4086
4087 STATIC bool     S_feature_is_enabled(pTHX_ const char *const name, STRLEN namelen)
4088                         __attribute__nonnull__(pTHX_1);
4089
4090 STATIC void     S_force_ident(pTHX_ const char *s, int kind)
4091                         __attribute__nonnull__(pTHX_1);
4092
4093 STATIC void     S_incline(pTHX_ const char *s)
4094                         __attribute__nonnull__(pTHX_1);
4095
4096 STATIC int      S_intuit_method(pTHX_ char *s, GV *gv, CV *cv)
4097                         __attribute__nonnull__(pTHX_1);
4098
4099 STATIC int      S_intuit_more(pTHX_ char *s)
4100                         __attribute__nonnull__(pTHX_1);
4101
4102 STATIC I32      S_lop(pTHX_ I32 f, int x, char *s)
4103                         __attribute__nonnull__(pTHX_3);
4104
4105 STATIC void     S_missingterm(pTHX_ char *s)
4106                         __attribute__noreturn__;
4107
4108 STATIC void     S_no_op(pTHX_ const char *const what, char *s)
4109                         __attribute__nonnull__(pTHX_1);
4110
4111 STATIC I32      S_sublex_done(pTHX)
4112                         __attribute__warn_unused_result__;
4113
4114 STATIC I32      S_sublex_push(pTHX)
4115                         __attribute__warn_unused_result__;
4116
4117 STATIC I32      S_sublex_start(pTHX)
4118                         __attribute__warn_unused_result__;
4119
4120 STATIC char *   S_filter_gets(pTHX_ SV *sv, PerlIO *fp, STRLEN append)
4121                         __attribute__warn_unused_result__
4122                         __attribute__nonnull__(pTHX_1)
4123                         __attribute__nonnull__(pTHX_2);
4124
4125 STATIC HV *     S_find_in_my_stash(pTHX_ const char *pkgname, STRLEN len)
4126                         __attribute__warn_unused_result__
4127                         __attribute__nonnull__(pTHX_1);
4128
4129 STATIC char *   S_tokenize_use(pTHX_ int is_use, char *s)
4130                         __attribute__warn_unused_result__
4131                         __attribute__nonnull__(pTHX_2);
4132
4133 STATIC SV*      S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, STRLEN keylen, SV *sv, SV *pv, const char *type, STRLEN typelen)
4134                         __attribute__nonnull__(pTHX_3)
4135                         __attribute__nonnull__(pTHX_5);
4136