This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move isUTF8_CHAR helper function, and reimplement it
[perl5.git] / proto.h
1 /* -*- buffer-read-only: t -*-
2  *
3  *    proto.h
4  *
5  *    Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
6  *    2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 regen/embed.pl from data in embed.fnc,
13  * regen/embed.pl, regen/opcodes, 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 #ifndef NO_MATHOMS
21 PERL_CALLCONV UV        ASCII_TO_NEED(const UV enc, const UV ch)
22                         __attribute__deprecated__
23                         __attribute__warn_unused_result__
24                         __attribute__pure__;
25 #endif
26
27 PERL_CALLCONV int       Perl_Gv_AMupdate(pTHX_ HV* stash, bool destructing);
28 #define PERL_ARGS_ASSERT_GV_AMUPDATE    \
29         assert(stash)
30 #ifndef NO_MATHOMS
31 PERL_CALLCONV UV        NATIVE_TO_NEED(const UV enc, const UV ch)
32                         __attribute__deprecated__
33                         __attribute__warn_unused_result__
34                         __attribute__pure__;
35 #endif
36
37 PERL_CALLCONV const char *      Perl_PerlIO_context_layers(pTHX_ const char *mode);
38 PERL_CALLCONV void*     Perl_Slab_Alloc(pTHX_ size_t sz)
39                         __attribute__warn_unused_result__;
40
41 PERL_CALLCONV void      Perl_Slab_Free(pTHX_ void *op);
42 #define PERL_ARGS_ASSERT_SLAB_FREE      \
43         assert(op)
44 PERL_CALLCONV bool      Perl__is_in_locale_category(pTHX_ const bool compiling, const int category);
45 PERL_CALLCONV bool      Perl__is_uni_FOO(pTHX_ const U8 classnum, const UV c)
46                         __attribute__warn_unused_result__;
47
48 PERL_CALLCONV bool      Perl__is_uni_perl_idcont(pTHX_ UV c)
49                         __attribute__warn_unused_result__;
50
51 PERL_CALLCONV bool      Perl__is_uni_perl_idstart(pTHX_ UV c)
52                         __attribute__warn_unused_result__;
53
54 PERL_CALLCONV bool      Perl__is_utf8_FOO(pTHX_ const U8 classnum, const U8 *p)
55                         __attribute__warn_unused_result__;
56 #define PERL_ARGS_ASSERT__IS_UTF8_FOO   \
57         assert(p)
58
59 PERL_CALLCONV bool      Perl__is_utf8_idcont(pTHX_ const U8 *p)
60                         __attribute__warn_unused_result__;
61 #define PERL_ARGS_ASSERT__IS_UTF8_IDCONT        \
62         assert(p)
63
64 PERL_CALLCONV bool      Perl__is_utf8_idstart(pTHX_ const U8 *p)
65                         __attribute__warn_unused_result__;
66 #define PERL_ARGS_ASSERT__IS_UTF8_IDSTART       \
67         assert(p)
68
69 PERL_CALLCONV bool      Perl__is_utf8_mark(pTHX_ const U8 *p)
70                         __attribute__warn_unused_result__;
71 #define PERL_ARGS_ASSERT__IS_UTF8_MARK  \
72         assert(p)
73
74 PERL_CALLCONV bool      Perl__is_utf8_perl_idcont(pTHX_ const U8 *p)
75                         __attribute__warn_unused_result__;
76 #define PERL_ARGS_ASSERT__IS_UTF8_PERL_IDCONT   \
77         assert(p)
78
79 PERL_CALLCONV bool      Perl__is_utf8_perl_idstart(pTHX_ const U8 *p)
80                         __attribute__warn_unused_result__;
81 #define PERL_ARGS_ASSERT__IS_UTF8_PERL_IDSTART  \
82         assert(p)
83
84 PERL_CALLCONV bool      Perl__is_utf8_xidcont(pTHX_ const U8 *p)
85                         __attribute__warn_unused_result__;
86 #define PERL_ARGS_ASSERT__IS_UTF8_XIDCONT       \
87         assert(p)
88
89 PERL_CALLCONV bool      Perl__is_utf8_xidstart(pTHX_ const U8 *p)
90                         __attribute__warn_unused_result__;
91 #define PERL_ARGS_ASSERT__IS_UTF8_XIDSTART      \
92         assert(p)
93
94 PERL_CALLCONV UV        Perl__to_uni_fold_flags(pTHX_ UV c, U8 *p, STRLEN *lenp, U8 flags);
95 #define PERL_ARGS_ASSERT__TO_UNI_FOLD_FLAGS     \
96         assert(p); assert(lenp)
97 PERL_CALLCONV UV        Perl__to_utf8_fold_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, U8 flags);
98 #define PERL_ARGS_ASSERT__TO_UTF8_FOLD_FLAGS    \
99         assert(p); assert(ustrp)
100 PERL_CALLCONV UV        Perl__to_utf8_lower_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, bool flags);
101 #define PERL_ARGS_ASSERT__TO_UTF8_LOWER_FLAGS   \
102         assert(p); assert(ustrp)
103 PERL_CALLCONV UV        Perl__to_utf8_title_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, bool flags);
104 #define PERL_ARGS_ASSERT__TO_UTF8_TITLE_FLAGS   \
105         assert(p); assert(ustrp)
106 PERL_CALLCONV UV        Perl__to_utf8_upper_flags(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, bool flags);
107 #define PERL_ARGS_ASSERT__TO_UTF8_UPPER_FLAGS   \
108         assert(p); assert(ustrp)
109 PERL_CALLCONV void      Perl__warn_problematic_locale(void);
110 PERL_CALLCONV LOGOP*    Perl_alloc_LOGOP(pTHX_ I32 type, OP *first, OP *other);
111 PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name, const STRLEN len, const U32 flags);
112 #define PERL_ARGS_ASSERT_ALLOCMY        \
113         assert(name)
114 PERL_CALLCONV SV*       Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir);
115 #define PERL_ARGS_ASSERT_AMAGIC_CALL    \
116         assert(left); assert(right)
117 PERL_CALLCONV SV *      Perl_amagic_deref_call(pTHX_ SV *ref, int method);
118 #define PERL_ARGS_ASSERT_AMAGIC_DEREF_CALL      \
119         assert(ref)
120 PERL_CALLCONV bool      Perl_amagic_is_enabled(pTHX_ int method);
121 PERL_CALLCONV I32       Perl_apply(pTHX_ I32 type, SV** mark, SV** sp);
122 #define PERL_ARGS_ASSERT_APPLY  \
123         assert(mark); assert(sp)
124 PERL_CALLCONV void      Perl_apply_attrs_string(pTHX_ const char *stashpv, CV *cv, const char *attrstr, STRLEN len);
125 #define PERL_ARGS_ASSERT_APPLY_ATTRS_STRING     \
126         assert(stashpv); assert(cv); assert(attrstr)
127 PERL_CALLCONV void      Perl_atfork_lock(void);
128 PERL_CALLCONV void      Perl_atfork_unlock(void);
129 PERL_CALLCONV SV**      Perl_av_arylen_p(pTHX_ AV *av);
130 #define PERL_ARGS_ASSERT_AV_ARYLEN_P    \
131         assert(av)
132 PERL_CALLCONV void      Perl_av_clear(pTHX_ AV *av);
133 #define PERL_ARGS_ASSERT_AV_CLEAR       \
134         assert(av)
135 PERL_CALLCONV void      Perl_av_create_and_push(pTHX_ AV **const avp, SV *const val);
136 #define PERL_ARGS_ASSERT_AV_CREATE_AND_PUSH     \
137         assert(avp); assert(val)
138 PERL_CALLCONV SV**      Perl_av_create_and_unshift_one(pTHX_ AV **const avp, SV *const val);
139 #define PERL_ARGS_ASSERT_AV_CREATE_AND_UNSHIFT_ONE      \
140         assert(avp); assert(val)
141 PERL_CALLCONV SV*       Perl_av_delete(pTHX_ AV *av, SSize_t key, I32 flags);
142 #define PERL_ARGS_ASSERT_AV_DELETE      \
143         assert(av)
144 PERL_CALLCONV bool      Perl_av_exists(pTHX_ AV *av, SSize_t key)
145                         __attribute__warn_unused_result__;
146 #define PERL_ARGS_ASSERT_AV_EXISTS      \
147         assert(av)
148
149 PERL_CALLCONV void      Perl_av_extend(pTHX_ AV *av, SSize_t key);
150 #define PERL_ARGS_ASSERT_AV_EXTEND      \
151         assert(av)
152 PERL_CALLCONV void      Perl_av_extend_guts(pTHX_ AV *av, SSize_t key, SSize_t *maxp, SV ***allocp, SV ***arrayp);
153 #define PERL_ARGS_ASSERT_AV_EXTEND_GUTS \
154         assert(maxp); assert(allocp); assert(arrayp)
155 PERL_CALLCONV SV**      Perl_av_fetch(pTHX_ AV *av, SSize_t key, I32 lval)
156                         __attribute__warn_unused_result__;
157 #define PERL_ARGS_ASSERT_AV_FETCH       \
158         assert(av)
159
160 PERL_CALLCONV void      Perl_av_fill(pTHX_ AV *av, SSize_t fill);
161 #define PERL_ARGS_ASSERT_AV_FILL        \
162         assert(av)
163 PERL_CALLCONV IV*       Perl_av_iter_p(pTHX_ AV *av);
164 #define PERL_ARGS_ASSERT_AV_ITER_P      \
165         assert(av)
166 PERL_CALLCONV SSize_t   Perl_av_len(pTHX_ AV *av)
167                         __attribute__warn_unused_result__;
168 #define PERL_ARGS_ASSERT_AV_LEN \
169         assert(av)
170
171 PERL_CALLCONV AV*       Perl_av_make(pTHX_ SSize_t size, SV **strp)
172                         __attribute__warn_unused_result__;
173 #define PERL_ARGS_ASSERT_AV_MAKE        \
174         assert(strp)
175
176 PERL_CALLCONV SV*       Perl_av_pop(pTHX_ AV *av);
177 #define PERL_ARGS_ASSERT_AV_POP \
178         assert(av)
179 PERL_CALLCONV void      Perl_av_push(pTHX_ AV *av, SV *val);
180 #define PERL_ARGS_ASSERT_AV_PUSH        \
181         assert(av); assert(val)
182 PERL_CALLCONV void      Perl_av_reify(pTHX_ AV *av);
183 #define PERL_ARGS_ASSERT_AV_REIFY       \
184         assert(av)
185 PERL_CALLCONV SV*       Perl_av_shift(pTHX_ AV *av)
186                         __attribute__warn_unused_result__;
187 #define PERL_ARGS_ASSERT_AV_SHIFT       \
188         assert(av)
189
190 PERL_CALLCONV SV**      Perl_av_store(pTHX_ AV *av, SSize_t key, SV *val);
191 #define PERL_ARGS_ASSERT_AV_STORE       \
192         assert(av)
193 /* PERL_CALLCONV SSize_t        Perl_av_tindex(pTHX_ AV *av)
194                         __attribute__warn_unused_result__; */
195
196 PERL_CALLCONV void      Perl_av_undef(pTHX_ AV *av);
197 #define PERL_ARGS_ASSERT_AV_UNDEF       \
198         assert(av)
199 PERL_CALLCONV void      Perl_av_unshift(pTHX_ AV *av, SSize_t num);
200 #define PERL_ARGS_ASSERT_AV_UNSHIFT     \
201         assert(av)
202 PERL_CALLCONV OP*       Perl_bind_match(pTHX_ I32 type, OP *left, OP *right)
203                         __attribute__warn_unused_result__;
204 #define PERL_ARGS_ASSERT_BIND_MATCH     \
205         assert(left); assert(right)
206
207 PERL_CALLCONV OP*       Perl_block_end(pTHX_ I32 floor, OP* seq)
208                         __attribute__warn_unused_result__;
209
210 PERL_CALLCONV U8        Perl_block_gimme(pTHX)
211                         __attribute__warn_unused_result__;
212
213 PERL_CALLCONV int       Perl_block_start(pTHX_ int full)
214                         __attribute__warn_unused_result__;
215
216 PERL_CALLCONV void      Perl_blockhook_register(pTHX_ BHK *hk);
217 #define PERL_ARGS_ASSERT_BLOCKHOOK_REGISTER     \
218         assert(hk)
219 PERL_CALLCONV void      Perl_boot_core_PerlIO(pTHX);
220 PERL_CALLCONV void      Perl_boot_core_UNIVERSAL(pTHX);
221 PERL_CALLCONV void      Perl_boot_core_mro(pTHX);
222 PERL_CALLCONV int       Perl_bytes_cmp_utf8(pTHX_ const U8 *b, STRLEN blen, const U8 *u, STRLEN ulen);
223 #define PERL_ARGS_ASSERT_BYTES_CMP_UTF8 \
224         assert(b); assert(u)
225 PERL_CALLCONV U8*       Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *len, bool *is_utf8);
226 #define PERL_ARGS_ASSERT_BYTES_FROM_UTF8        \
227         assert(s); assert(len)
228 PERL_CALLCONV U8*       Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *len);
229 #define PERL_ARGS_ASSERT_BYTES_TO_UTF8  \
230         assert(s); assert(len)
231 PERL_CALLCONV I32       Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv);
232 #define PERL_ARGS_ASSERT_CALL_ARGV      \
233         assert(sub_name); assert(argv)
234 PERL_CALLCONV void      Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
235 PERL_CALLCONV void      Perl_call_list(pTHX_ I32 oldscope, AV *paramList);
236 #define PERL_ARGS_ASSERT_CALL_LIST      \
237         assert(paramList)
238 PERL_CALLCONV I32       Perl_call_method(pTHX_ const char* methname, I32 flags);
239 #define PERL_ARGS_ASSERT_CALL_METHOD    \
240         assert(methname)
241 PERL_CALLCONV I32       Perl_call_pv(pTHX_ const char* sub_name, I32 flags);
242 #define PERL_ARGS_ASSERT_CALL_PV        \
243         assert(sub_name)
244 PERL_CALLCONV I32       Perl_call_sv(pTHX_ SV* sv, VOL I32 flags);
245 #define PERL_ARGS_ASSERT_CALL_SV        \
246         assert(sv)
247 PERL_CALLCONV const PERL_CONTEXT *      Perl_caller_cx(pTHX_ I32 level, const PERL_CONTEXT **dbcxp);
248 PERL_CALLCONV Malloc_t  Perl_calloc(MEM_SIZE elements, MEM_SIZE size)
249                         __attribute__malloc__
250                         __attribute__warn_unused_result__;
251
252 PERL_CALLCONV bool      Perl_cando(pTHX_ Mode_t mode, bool effective, const Stat_t* statbufp)
253                         __attribute__warn_unused_result__;
254 #define PERL_ARGS_ASSERT_CANDO  \
255         assert(statbufp)
256
257 PERL_CALLCONV I32       Perl_cast_i32(NV f)
258                         __attribute__warn_unused_result__;
259
260 PERL_CALLCONV IV        Perl_cast_iv(NV f)
261                         __attribute__warn_unused_result__;
262
263 PERL_CALLCONV U32       Perl_cast_ulong(NV f)
264                         __attribute__warn_unused_result__;
265
266 PERL_CALLCONV UV        Perl_cast_uv(NV f)
267                         __attribute__warn_unused_result__;
268
269 PERL_CALLCONV bool      Perl_check_utf8_print(pTHX_ const U8 *s, const STRLEN len);
270 #define PERL_ARGS_ASSERT_CHECK_UTF8_PRINT       \
271         assert(s)
272 PERL_CALLCONV OP *      Perl_ck_anoncode(pTHX_ OP *o)
273                         __attribute__warn_unused_result__;
274 #define PERL_ARGS_ASSERT_CK_ANONCODE    \
275         assert(o)
276
277 PERL_CALLCONV OP *      Perl_ck_backtick(pTHX_ OP *o)
278                         __attribute__warn_unused_result__;
279 #define PERL_ARGS_ASSERT_CK_BACKTICK    \
280         assert(o)
281
282 PERL_CALLCONV OP *      Perl_ck_bitop(pTHX_ OP *o)
283                         __attribute__warn_unused_result__;
284 #define PERL_ARGS_ASSERT_CK_BITOP       \
285         assert(o)
286
287 PERL_CALLCONV OP *      Perl_ck_cmp(pTHX_ OP *o)
288                         __attribute__warn_unused_result__;
289 #define PERL_ARGS_ASSERT_CK_CMP \
290         assert(o)
291
292 PERL_CALLCONV OP *      Perl_ck_concat(pTHX_ OP *o)
293                         __attribute__warn_unused_result__;
294 #define PERL_ARGS_ASSERT_CK_CONCAT      \
295         assert(o)
296
297 PERL_CALLCONV OP *      Perl_ck_defined(pTHX_ OP *o)
298                         __attribute__warn_unused_result__;
299 #define PERL_ARGS_ASSERT_CK_DEFINED     \
300         assert(o)
301
302 PERL_CALLCONV OP *      Perl_ck_delete(pTHX_ OP *o)
303                         __attribute__warn_unused_result__;
304 #define PERL_ARGS_ASSERT_CK_DELETE      \
305         assert(o)
306
307 PERL_CALLCONV OP *      Perl_ck_each(pTHX_ OP *o)
308                         __attribute__warn_unused_result__;
309 #define PERL_ARGS_ASSERT_CK_EACH        \
310         assert(o)
311
312 PERL_CALLCONV OP*       Perl_ck_entersub_args_core(pTHX_ OP *entersubop, GV *namegv, SV *protosv);
313 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_CORE  \
314         assert(entersubop); assert(namegv); assert(protosv)
315 PERL_CALLCONV OP*       Perl_ck_entersub_args_list(pTHX_ OP *entersubop);
316 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_LIST  \
317         assert(entersubop)
318 PERL_CALLCONV OP*       Perl_ck_entersub_args_proto(pTHX_ OP *entersubop, GV *namegv, SV *protosv);
319 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_PROTO \
320         assert(entersubop); assert(namegv); assert(protosv)
321 PERL_CALLCONV OP*       Perl_ck_entersub_args_proto_or_list(pTHX_ OP *entersubop, GV *namegv, SV *protosv);
322 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_PROTO_OR_LIST \
323         assert(entersubop); assert(namegv); assert(protosv)
324 PERL_CALLCONV OP *      Perl_ck_eof(pTHX_ OP *o)
325                         __attribute__warn_unused_result__;
326 #define PERL_ARGS_ASSERT_CK_EOF \
327         assert(o)
328
329 PERL_CALLCONV OP *      Perl_ck_eval(pTHX_ OP *o)
330                         __attribute__warn_unused_result__;
331 #define PERL_ARGS_ASSERT_CK_EVAL        \
332         assert(o)
333
334 PERL_CALLCONV OP *      Perl_ck_exec(pTHX_ OP *o)
335                         __attribute__warn_unused_result__;
336 #define PERL_ARGS_ASSERT_CK_EXEC        \
337         assert(o)
338
339 PERL_CALLCONV OP *      Perl_ck_exists(pTHX_ OP *o)
340                         __attribute__warn_unused_result__;
341 #define PERL_ARGS_ASSERT_CK_EXISTS      \
342         assert(o)
343
344 PERL_CALLCONV OP *      Perl_ck_ftst(pTHX_ OP *o)
345                         __attribute__warn_unused_result__;
346 #define PERL_ARGS_ASSERT_CK_FTST        \
347         assert(o)
348
349 PERL_CALLCONV OP *      Perl_ck_fun(pTHX_ OP *o)
350                         __attribute__warn_unused_result__;
351 #define PERL_ARGS_ASSERT_CK_FUN \
352         assert(o)
353
354 PERL_CALLCONV OP *      Perl_ck_glob(pTHX_ OP *o)
355                         __attribute__warn_unused_result__;
356 #define PERL_ARGS_ASSERT_CK_GLOB        \
357         assert(o)
358
359 PERL_CALLCONV OP *      Perl_ck_grep(pTHX_ OP *o)
360                         __attribute__warn_unused_result__;
361 #define PERL_ARGS_ASSERT_CK_GREP        \
362         assert(o)
363
364 PERL_CALLCONV OP *      Perl_ck_index(pTHX_ OP *o)
365                         __attribute__warn_unused_result__;
366 #define PERL_ARGS_ASSERT_CK_INDEX       \
367         assert(o)
368
369 PERL_CALLCONV OP *      Perl_ck_join(pTHX_ OP *o)
370                         __attribute__warn_unused_result__;
371 #define PERL_ARGS_ASSERT_CK_JOIN        \
372         assert(o)
373
374 PERL_CALLCONV OP *      Perl_ck_length(pTHX_ OP *o)
375                         __attribute__warn_unused_result__;
376 #define PERL_ARGS_ASSERT_CK_LENGTH      \
377         assert(o)
378
379 PERL_CALLCONV OP *      Perl_ck_lfun(pTHX_ OP *o)
380                         __attribute__warn_unused_result__;
381 #define PERL_ARGS_ASSERT_CK_LFUN        \
382         assert(o)
383
384 PERL_CALLCONV OP *      Perl_ck_listiob(pTHX_ OP *o)
385                         __attribute__warn_unused_result__;
386 #define PERL_ARGS_ASSERT_CK_LISTIOB     \
387         assert(o)
388
389 PERL_CALLCONV OP *      Perl_ck_match(pTHX_ OP *o)
390                         __attribute__warn_unused_result__;
391 #define PERL_ARGS_ASSERT_CK_MATCH       \
392         assert(o)
393
394 PERL_CALLCONV OP *      Perl_ck_method(pTHX_ OP *o)
395                         __attribute__warn_unused_result__;
396 #define PERL_ARGS_ASSERT_CK_METHOD      \
397         assert(o)
398
399 PERL_CALLCONV OP *      Perl_ck_null(pTHX_ OP *o)
400                         __attribute__warn_unused_result__;
401 #define PERL_ARGS_ASSERT_CK_NULL        \
402         assert(o)
403
404 PERL_CALLCONV OP *      Perl_ck_open(pTHX_ OP *o)
405                         __attribute__warn_unused_result__;
406 #define PERL_ARGS_ASSERT_CK_OPEN        \
407         assert(o)
408
409 PERL_CALLCONV OP *      Perl_ck_prototype(pTHX_ OP *o)
410                         __attribute__warn_unused_result__;
411 #define PERL_ARGS_ASSERT_CK_PROTOTYPE   \
412         assert(o)
413
414 PERL_CALLCONV OP *      Perl_ck_readline(pTHX_ OP *o)
415                         __attribute__warn_unused_result__;
416 #define PERL_ARGS_ASSERT_CK_READLINE    \
417         assert(o)
418
419 PERL_CALLCONV OP *      Perl_ck_refassign(pTHX_ OP *o)
420                         __attribute__warn_unused_result__;
421 #define PERL_ARGS_ASSERT_CK_REFASSIGN   \
422         assert(o)
423
424 PERL_CALLCONV OP *      Perl_ck_repeat(pTHX_ OP *o)
425                         __attribute__warn_unused_result__;
426 #define PERL_ARGS_ASSERT_CK_REPEAT      \
427         assert(o)
428
429 PERL_CALLCONV OP *      Perl_ck_require(pTHX_ OP *o)
430                         __attribute__warn_unused_result__;
431 #define PERL_ARGS_ASSERT_CK_REQUIRE     \
432         assert(o)
433
434 PERL_CALLCONV OP *      Perl_ck_return(pTHX_ OP *o)
435                         __attribute__warn_unused_result__;
436 #define PERL_ARGS_ASSERT_CK_RETURN      \
437         assert(o)
438
439 PERL_CALLCONV OP *      Perl_ck_rfun(pTHX_ OP *o)
440                         __attribute__warn_unused_result__;
441 #define PERL_ARGS_ASSERT_CK_RFUN        \
442         assert(o)
443
444 PERL_CALLCONV OP *      Perl_ck_rvconst(pTHX_ OP *o)
445                         __attribute__warn_unused_result__;
446 #define PERL_ARGS_ASSERT_CK_RVCONST     \
447         assert(o)
448
449 PERL_CALLCONV OP *      Perl_ck_sassign(pTHX_ OP *o)
450                         __attribute__warn_unused_result__;
451 #define PERL_ARGS_ASSERT_CK_SASSIGN     \
452         assert(o)
453
454 PERL_CALLCONV OP *      Perl_ck_select(pTHX_ OP *o)
455                         __attribute__warn_unused_result__;
456 #define PERL_ARGS_ASSERT_CK_SELECT      \
457         assert(o)
458
459 PERL_CALLCONV OP *      Perl_ck_shift(pTHX_ OP *o)
460                         __attribute__warn_unused_result__;
461 #define PERL_ARGS_ASSERT_CK_SHIFT       \
462         assert(o)
463
464 PERL_CALLCONV OP *      Perl_ck_smartmatch(pTHX_ OP *o)
465                         __attribute__warn_unused_result__;
466 #define PERL_ARGS_ASSERT_CK_SMARTMATCH  \
467         assert(o)
468
469 PERL_CALLCONV OP *      Perl_ck_sort(pTHX_ OP *o)
470                         __attribute__warn_unused_result__;
471 #define PERL_ARGS_ASSERT_CK_SORT        \
472         assert(o)
473
474 PERL_CALLCONV OP *      Perl_ck_spair(pTHX_ OP *o)
475                         __attribute__warn_unused_result__;
476 #define PERL_ARGS_ASSERT_CK_SPAIR       \
477         assert(o)
478
479 PERL_CALLCONV OP *      Perl_ck_split(pTHX_ OP *o)
480                         __attribute__warn_unused_result__;
481 #define PERL_ARGS_ASSERT_CK_SPLIT       \
482         assert(o)
483
484 PERL_CALLCONV OP *      Perl_ck_stringify(pTHX_ OP *o)
485                         __attribute__warn_unused_result__;
486 #define PERL_ARGS_ASSERT_CK_STRINGIFY   \
487         assert(o)
488
489 PERL_CALLCONV OP *      Perl_ck_subr(pTHX_ OP *o)
490                         __attribute__warn_unused_result__;
491 #define PERL_ARGS_ASSERT_CK_SUBR        \
492         assert(o)
493
494 PERL_CALLCONV OP *      Perl_ck_substr(pTHX_ OP *o)
495                         __attribute__warn_unused_result__;
496 #define PERL_ARGS_ASSERT_CK_SUBSTR      \
497         assert(o)
498
499 PERL_CALLCONV OP *      Perl_ck_svconst(pTHX_ OP *o)
500                         __attribute__warn_unused_result__;
501 #define PERL_ARGS_ASSERT_CK_SVCONST     \
502         assert(o)
503
504 PERL_CALLCONV OP *      Perl_ck_tell(pTHX_ OP *o)
505                         __attribute__warn_unused_result__;
506 #define PERL_ARGS_ASSERT_CK_TELL        \
507         assert(o)
508
509 PERL_CALLCONV OP *      Perl_ck_trunc(pTHX_ OP *o)
510                         __attribute__warn_unused_result__;
511 #define PERL_ARGS_ASSERT_CK_TRUNC       \
512         assert(o)
513
514 PERL_CALLCONV void      Perl_ck_warner(pTHX_ U32 err, const char* pat, ...)
515                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
516 #define PERL_ARGS_ASSERT_CK_WARNER      \
517         assert(pat)
518
519 PERL_CALLCONV void      Perl_ck_warner_d(pTHX_ U32 err, const char* pat, ...)
520                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
521 #define PERL_ARGS_ASSERT_CK_WARNER_D    \
522         assert(pat)
523
524 PERL_CALLCONV bool      Perl_ckwarn(pTHX_ U32 w);
525 PERL_CALLCONV bool      Perl_ckwarn_d(pTHX_ U32 w);
526 PERL_CALLCONV void      Perl_clear_defarray(pTHX_ AV* av, bool abandon);
527 #define PERL_ARGS_ASSERT_CLEAR_DEFARRAY \
528         assert(av)
529 PERL_CALLCONV const COP*        Perl_closest_cop(pTHX_ const COP *cop, const OP *o, const OP *curop, bool opnext);
530 #define PERL_ARGS_ASSERT_CLOSEST_COP    \
531         assert(cop)
532 PERL_CALLCONV const char *      Perl_cop_fetch_label(pTHX_ COP *const cop, STRLEN *len, U32 *flags);
533 #define PERL_ARGS_ASSERT_COP_FETCH_LABEL        \
534         assert(cop)
535 PERL_CALLCONV void      Perl_cop_store_label(pTHX_ COP *const cop, const char *label, STRLEN len, U32 flags);
536 #define PERL_ARGS_ASSERT_COP_STORE_LABEL        \
537         assert(cop); assert(label)
538 PERL_CALLCONV SV *      Perl_core_prototype(pTHX_ SV *sv, const char *name, const int code, int * const opnum);
539 #define PERL_ARGS_ASSERT_CORE_PROTOTYPE \
540         assert(name)
541 PERL_CALLCONV OP *      Perl_coresub_op(pTHX_ SV *const coreargssv, const int code, const int opnum);
542 #define PERL_ARGS_ASSERT_CORESUB_OP     \
543         assert(coreargssv)
544 PERL_CALLCONV void      Perl_create_eval_scope(pTHX_ OP *retop, U32 flags);
545 PERL_CALLCONV_NO_RET void       Perl_croak(pTHX_ const char* pat, ...)
546                         __attribute__noreturn__
547                         __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
548
549 PERL_CALLCONV_NO_RET void       Perl_croak_caller(const char* pat, ...)
550                         __attribute__noreturn__
551                         __attribute__format__null_ok__(__printf__,1,2);
552
553 PERL_STATIC_NO_RET void S_croak_memory_wrap(void)
554                         __attribute__noreturn__;
555
556 PERL_CALLCONV_NO_RET void       Perl_croak_no_mem(void)
557                         __attribute__noreturn__;
558
559 PERL_CALLCONV_NO_RET void       Perl_croak_no_modify(void)
560                         __attribute__noreturn__;
561
562 PERL_CALLCONV_NO_RET void       Perl_croak_popstack(void)
563                         __attribute__noreturn__;
564
565 PERL_CALLCONV_NO_RET void       Perl_croak_sv(pTHX_ SV *baseex)
566                         __attribute__noreturn__;
567 #define PERL_ARGS_ASSERT_CROAK_SV       \
568         assert(baseex)
569
570 PERL_CALLCONV_NO_RET void       Perl_croak_xs_usage(const CV *const cv, const char *const params)
571                         __attribute__noreturn__;
572 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE \
573         assert(cv); assert(params)
574
575 PERL_CALLCONV regexp_engine const *     Perl_current_re_engine(pTHX);
576 PERL_CALLCONV const char *      Perl_custom_op_desc(pTHX_ const OP *o)
577                         __attribute__warn_unused_result__;
578 #define PERL_ARGS_ASSERT_CUSTOM_OP_DESC \
579         assert(o)
580
581 PERL_CALLCONV XOPRETANY Perl_custom_op_get_field(pTHX_ const OP *o, const xop_flags_enum field)
582                         __attribute__warn_unused_result__;
583 #define PERL_ARGS_ASSERT_CUSTOM_OP_GET_FIELD    \
584         assert(o)
585
586 PERL_CALLCONV const char *      Perl_custom_op_name(pTHX_ const OP *o)
587                         __attribute__warn_unused_result__;
588 #define PERL_ARGS_ASSERT_CUSTOM_OP_NAME \
589         assert(o)
590
591 PERL_CALLCONV void      Perl_custom_op_register(pTHX_ Perl_ppaddr_t ppaddr, const XOP *xop);
592 #define PERL_ARGS_ASSERT_CUSTOM_OP_REGISTER     \
593         assert(ppaddr); assert(xop)
594 /* PERL_CALLCONV const XOP *    Perl_custom_op_xop(pTHX_ const OP *o)
595                         __attribute__pure__; */
596
597 PERL_CALLCONV void      Perl_cv_ckproto_len_flags(pTHX_ const CV* cv, const GV* gv, const char* p, const STRLEN len, const U32 flags);
598 #define PERL_ARGS_ASSERT_CV_CKPROTO_LEN_FLAGS   \
599         assert(cv)
600 PERL_CALLCONV CV*       Perl_cv_clone(pTHX_ CV* proto);
601 #define PERL_ARGS_ASSERT_CV_CLONE       \
602         assert(proto)
603 PERL_CALLCONV CV*       Perl_cv_clone_into(pTHX_ CV* proto, CV *target);
604 #define PERL_ARGS_ASSERT_CV_CLONE_INTO  \
605         assert(proto); assert(target)
606 PERL_CALLCONV SV*       Perl_cv_const_sv(const CV *const cv)
607                         __attribute__warn_unused_result__;
608
609 PERL_CALLCONV SV*       Perl_cv_const_sv_or_av(const CV *const cv)
610                         __attribute__warn_unused_result__;
611
612 PERL_CALLCONV void      Perl_cv_forget_slab(pTHX_ CV *cv);
613 PERL_CALLCONV void      Perl_cv_get_call_checker(pTHX_ CV *cv, Perl_call_checker *ckfun_p, SV **ckobj_p);
614 #define PERL_ARGS_ASSERT_CV_GET_CALL_CHECKER    \
615         assert(cv); assert(ckfun_p); assert(ckobj_p)
616 PERL_CALLCONV SV *      Perl_cv_name(pTHX_ CV *cv, SV *sv, U32 flags);
617 #define PERL_ARGS_ASSERT_CV_NAME        \
618         assert(cv)
619 PERL_CALLCONV void      Perl_cv_set_call_checker(pTHX_ CV *cv, Perl_call_checker ckfun, SV *ckobj);
620 #define PERL_ARGS_ASSERT_CV_SET_CALL_CHECKER    \
621         assert(cv); assert(ckfun); assert(ckobj)
622 PERL_CALLCONV void      Perl_cv_set_call_checker_flags(pTHX_ CV *cv, Perl_call_checker ckfun, SV *ckobj, U32 flags);
623 #define PERL_ARGS_ASSERT_CV_SET_CALL_CHECKER_FLAGS      \
624         assert(cv); assert(ckfun); assert(ckobj)
625 PERL_CALLCONV void      Perl_cv_undef(pTHX_ CV* cv);
626 #define PERL_ARGS_ASSERT_CV_UNDEF       \
627         assert(cv)
628 PERL_CALLCONV void      Perl_cv_undef_flags(pTHX_ CV* cv, U32 flags);
629 #define PERL_ARGS_ASSERT_CV_UNDEF_FLAGS \
630         assert(cv)
631 PERL_CALLCONV GV *      Perl_cvgv_from_hek(pTHX_ CV* cv);
632 #define PERL_ARGS_ASSERT_CVGV_FROM_HEK  \
633         assert(cv)
634 PERL_CALLCONV void      Perl_cvgv_set(pTHX_ CV* cv, GV* gv);
635 #define PERL_ARGS_ASSERT_CVGV_SET       \
636         assert(cv)
637 PERL_CALLCONV void      Perl_cvstash_set(pTHX_ CV* cv, HV* stash);
638 #define PERL_ARGS_ASSERT_CVSTASH_SET    \
639         assert(cv)
640 PERL_CALLCONV void      Perl_cx_dump(pTHX_ PERL_CONTEXT* cx);
641 #define PERL_ARGS_ASSERT_CX_DUMP        \
642         assert(cx)
643 PERL_CALLCONV I32       Perl_cxinc(pTHX)
644                         __attribute__warn_unused_result__;
645
646 PERL_CALLCONV void      Perl_deb(pTHX_ const char* pat, ...)
647                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
648 #define PERL_ARGS_ASSERT_DEB    \
649         assert(pat)
650
651 PERL_CALLCONV void      Perl_deb_stack_all(pTHX);
652 PERL_CALLCONV I32       Perl_debop(pTHX_ const OP* o);
653 #define PERL_ARGS_ASSERT_DEBOP  \
654         assert(o)
655 PERL_CALLCONV void      Perl_debprofdump(pTHX);
656 PERL_CALLCONV I32       Perl_debstack(pTHX);
657 PERL_CALLCONV I32       Perl_debstackptrs(pTHX);
658 PERL_CALLCONV SV *      Perl_defelem_target(pTHX_ SV *sv, MAGIC *mg)
659                         __attribute__warn_unused_result__;
660 #define PERL_ARGS_ASSERT_DEFELEM_TARGET \
661         assert(sv)
662
663 PERL_CALLCONV void      Perl_delete_eval_scope(pTHX);
664 PERL_CALLCONV char*     Perl_delimcpy(char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen);
665 #define PERL_ARGS_ASSERT_DELIMCPY       \
666         assert(to); assert(toend); assert(from); assert(fromend); assert(retlen)
667 PERL_CALLCONV void      Perl_despatch_signals(pTHX);
668 PERL_CALLCONV_NO_RET OP*        Perl_die(pTHX_ const char* pat, ...)
669                         __attribute__noreturn__
670                         __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
671
672 PERL_CALLCONV_NO_RET OP*        Perl_die_sv(pTHX_ SV *baseex)
673                         __attribute__noreturn__;
674 #define PERL_ARGS_ASSERT_DIE_SV \
675         assert(baseex)
676
677 PERL_CALLCONV_NO_RET void       Perl_die_unwind(pTHX_ SV* msv)
678                         __attribute__noreturn__;
679 #define PERL_ARGS_ASSERT_DIE_UNWIND     \
680         assert(msv)
681
682 #ifndef NO_MATHOMS
683 PERL_CALLCONV bool      Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp);
684 #define PERL_ARGS_ASSERT_DO_AEXEC       \
685         assert(mark); assert(sp)
686 #endif
687 PERL_CALLCONV bool      Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int do_report);
688 #define PERL_ARGS_ASSERT_DO_AEXEC5      \
689         assert(mark); assert(sp)
690 PERL_CALLCONV int       Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode);
691 #define PERL_ARGS_ASSERT_DO_BINMODE     \
692         assert(fp)
693 PERL_CALLCONV bool      Perl_do_close(pTHX_ GV* gv, bool not_implicit);
694 PERL_CALLCONV void      Perl_do_dump_pad(pTHX_ I32 level, PerlIO *file, PADLIST *padlist, int full);
695 #define PERL_ARGS_ASSERT_DO_DUMP_PAD    \
696         assert(file)
697 PERL_CALLCONV bool      Perl_do_eof(pTHX_ GV* gv);
698 #define PERL_ARGS_ASSERT_DO_EOF \
699         assert(gv)
700 PERL_CALLCONV void      Perl_do_execfree(pTHX);
701 PERL_CALLCONV void      Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv);
702 #define PERL_ARGS_ASSERT_DO_GV_DUMP     \
703         assert(file); assert(name)
704 PERL_CALLCONV void      Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv);
705 #define PERL_ARGS_ASSERT_DO_GVGV_DUMP   \
706         assert(file); assert(name)
707 PERL_CALLCONV void      Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, const char *name, HV *sv);
708 #define PERL_ARGS_ASSERT_DO_HV_DUMP     \
709         assert(file); assert(name)
710 PERL_CALLCONV void      Perl_do_join(pTHX_ SV *sv, SV *delim, SV **mark, SV **sp);
711 #define PERL_ARGS_ASSERT_DO_JOIN        \
712         assert(sv); assert(delim); assert(mark); assert(sp)
713 PERL_CALLCONV void      Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
714 #define PERL_ARGS_ASSERT_DO_MAGIC_DUMP  \
715         assert(file)
716 PERL_CALLCONV I32       Perl_do_ncmp(pTHX_ SV *const left, SV *const right)
717                         __attribute__warn_unused_result__;
718 #define PERL_ARGS_ASSERT_DO_NCMP        \
719         assert(left); assert(right)
720
721 PERL_CALLCONV void      Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, const OP *o);
722 #define PERL_ARGS_ASSERT_DO_OP_DUMP     \
723         assert(file)
724 #ifndef NO_MATHOMS
725 PERL_CALLCONV bool      Perl_do_open(pTHX_ GV* gv, const char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp);
726 #define PERL_ARGS_ASSERT_DO_OPEN        \
727         assert(gv); assert(name)
728 #endif
729 PERL_CALLCONV bool      Perl_do_open6(pTHX_ GV *gv, const char *oname, STRLEN len, PerlIO *supplied_fp, SV **svp, U32 num);
730 #define PERL_ARGS_ASSERT_DO_OPEN6       \
731         assert(gv); assert(oname)
732 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);
733 #define PERL_ARGS_ASSERT_DO_OPEN9       \
734         assert(gv); assert(name); assert(svs)
735 PERL_CALLCONV bool      Perl_do_open_raw(pTHX_ GV *gv, const char *oname, STRLEN len, int rawmode, int rawperm);
736 #define PERL_ARGS_ASSERT_DO_OPEN_RAW    \
737         assert(gv); assert(oname)
738 PERL_CALLCONV bool      Perl_do_openn(pTHX_ GV *gv, const char *oname, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp, SV **svp, I32 num);
739 #define PERL_ARGS_ASSERT_DO_OPENN       \
740         assert(gv); assert(oname)
741 PERL_CALLCONV void      Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, const PMOP *pm);
742 #define PERL_ARGS_ASSERT_DO_PMOP_DUMP   \
743         assert(file)
744 PERL_CALLCONV bool      Perl_do_print(pTHX_ SV* sv, PerlIO* fp);
745 #define PERL_ARGS_ASSERT_DO_PRINT       \
746         assert(fp)
747 PERL_CALLCONV OP*       Perl_do_readline(pTHX)
748                         __attribute__warn_unused_result__;
749
750 PERL_CALLCONV bool      Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
751 PERL_CALLCONV void      Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg);
752 #define PERL_ARGS_ASSERT_DO_SPRINTF     \
753         assert(sv); assert(sarg)
754 PERL_CALLCONV void      Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
755 #define PERL_ARGS_ASSERT_DO_SV_DUMP     \
756         assert(file)
757 PERL_CALLCONV Off_t     Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
758 #define PERL_ARGS_ASSERT_DO_SYSSEEK     \
759         assert(gv)
760 PERL_CALLCONV Off_t     Perl_do_tell(pTHX_ GV* gv)
761                         __attribute__warn_unused_result__;
762 #define PERL_ARGS_ASSERT_DO_TELL        \
763         assert(gv)
764
765 PERL_CALLCONV I32       Perl_do_trans(pTHX_ SV* sv);
766 #define PERL_ARGS_ASSERT_DO_TRANS       \
767         assert(sv)
768 PERL_CALLCONV UV        Perl_do_vecget(pTHX_ SV* sv, SSize_t offset, int size);
769 #define PERL_ARGS_ASSERT_DO_VECGET      \
770         assert(sv)
771 PERL_CALLCONV void      Perl_do_vecset(pTHX_ SV* sv);
772 #define PERL_ARGS_ASSERT_DO_VECSET      \
773         assert(sv)
774 PERL_CALLCONV void      Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right);
775 #define PERL_ARGS_ASSERT_DO_VOP \
776         assert(sv); assert(left); assert(right)
777 PERL_CALLCONV OP*       Perl_dofile(pTHX_ OP* term, I32 force_builtin);
778 #define PERL_ARGS_ASSERT_DOFILE \
779         assert(term)
780 PERL_CALLCONV bool      Perl_doing_taint(int argc, char** argv, char** env)
781                         __attribute__warn_unused_result__;
782
783 PERL_CALLCONV OP *      Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref);
784 #define PERL_ARGS_ASSERT_DOREF  \
785         assert(o)
786 PERL_CALLCONV void      Perl_dounwind(pTHX_ I32 cxix);
787 PERL_CALLCONV U8        Perl_dowantarray(pTHX)
788                         __attribute__warn_unused_result__;
789
790 PERL_CALLCONV void      Perl_drand48_init_r(perl_drand48_t *random_state, U32 seed);
791 #define PERL_ARGS_ASSERT_DRAND48_INIT_R \
792         assert(random_state)
793 PERL_CALLCONV double    Perl_drand48_r(perl_drand48_t *random_state);
794 #define PERL_ARGS_ASSERT_DRAND48_R      \
795         assert(random_state)
796 PERL_CALLCONV void      Perl_dump_all(pTHX);
797 PERL_CALLCONV void      Perl_dump_all_perl(pTHX_ bool justperl);
798 PERL_CALLCONV void      Perl_dump_eval(pTHX);
799 PERL_CALLCONV void      Perl_dump_form(pTHX_ const GV* gv);
800 #define PERL_ARGS_ASSERT_DUMP_FORM      \
801         assert(gv)
802 PERL_CALLCONV void      Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
803                         __attribute__format__(__printf__,pTHX_3,pTHX_4);
804 #define PERL_ARGS_ASSERT_DUMP_INDENT    \
805         assert(file); assert(pat)
806
807 PERL_CALLCONV void      Perl_dump_packsubs(pTHX_ const HV* stash);
808 #define PERL_ARGS_ASSERT_DUMP_PACKSUBS  \
809         assert(stash)
810 PERL_CALLCONV void      Perl_dump_packsubs_perl(pTHX_ const HV* stash, bool justperl);
811 #define PERL_ARGS_ASSERT_DUMP_PACKSUBS_PERL     \
812         assert(stash)
813 PERL_CALLCONV void      Perl_dump_sub(pTHX_ const GV* gv);
814 #define PERL_ARGS_ASSERT_DUMP_SUB       \
815         assert(gv)
816 PERL_CALLCONV void      Perl_dump_sub_perl(pTHX_ const GV* gv, bool justperl);
817 #define PERL_ARGS_ASSERT_DUMP_SUB_PERL  \
818         assert(gv)
819 PERL_CALLCONV void      Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args);
820 #define PERL_ARGS_ASSERT_DUMP_VINDENT   \
821         assert(file); assert(pat)
822 PERL_CALLCONV void      Perl_emulate_cop_io(pTHX_ const COP *const c, SV *const sv);
823 #define PERL_ARGS_ASSERT_EMULATE_COP_IO \
824         assert(c); assert(sv)
825 PERL_CALLCONV SV*       Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error);
826 #define PERL_ARGS_ASSERT_EVAL_PV        \
827         assert(p)
828 PERL_CALLCONV I32       Perl_eval_sv(pTHX_ SV* sv, I32 flags);
829 #define PERL_ARGS_ASSERT_EVAL_SV        \
830         assert(sv)
831 PERL_CALLCONV void      Perl_fbm_compile(pTHX_ SV* sv, U32 flags);
832 #define PERL_ARGS_ASSERT_FBM_COMPILE    \
833         assert(sv)
834 PERL_CALLCONV char*     Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlestr, U32 flags)
835                         __attribute__warn_unused_result__;
836 #define PERL_ARGS_ASSERT_FBM_INSTR      \
837         assert(big); assert(bigend); assert(littlestr)
838
839 PERL_CALLCONV bool      Perl_feature_is_enabled(pTHX_ const char *const name, STRLEN namelen);
840 #define PERL_ARGS_ASSERT_FEATURE_IS_ENABLED     \
841         assert(name)
842 PERL_CALLCONV SV*       Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
843 PERL_CALLCONV void      Perl_filter_del(pTHX_ filter_t funcp);
844 #define PERL_ARGS_ASSERT_FILTER_DEL     \
845         assert(funcp)
846 PERL_CALLCONV I32       Perl_filter_read(pTHX_ int idx, SV *buf_sv, int maxlen)
847                         __attribute__warn_unused_result__;
848 #define PERL_ARGS_ASSERT_FILTER_READ    \
849         assert(buf_sv)
850
851 PERL_CALLCONV void      Perl_finalize_optree(pTHX_ OP* o);
852 #define PERL_ARGS_ASSERT_FINALIZE_OPTREE        \
853         assert(o)
854 PERL_CALLCONV CV *      Perl_find_lexical_cv(pTHX_ PADOFFSET off);
855 PERL_CALLCONV CV*       Perl_find_runcv(pTHX_ U32 *db_seqp)
856                         __attribute__warn_unused_result__;
857
858 PERL_CALLCONV CV*       Perl_find_runcv_where(pTHX_ U8 cond, IV arg, U32 *db_seqp)
859                         __attribute__warn_unused_result__;
860
861 PERL_CALLCONV SV*       Perl_find_rundefsv(pTHX);
862 PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX)
863                         __attribute__deprecated__;
864
865 PERL_CALLCONV char*     Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char *const *const search_ext, I32 flags);
866 #define PERL_ARGS_ASSERT_FIND_SCRIPT    \
867         assert(scriptname)
868 PERL_CALLCONV I32       Perl_foldEQ(const char* a, const char* b, I32 len)
869                         __attribute__pure__;
870 #define PERL_ARGS_ASSERT_FOLDEQ \
871         assert(a); assert(b)
872
873 PERL_CALLCONV I32       Perl_foldEQ_latin1(const char* a, const char* b, I32 len)
874                         __attribute__pure__;
875 #define PERL_ARGS_ASSERT_FOLDEQ_LATIN1  \
876         assert(a); assert(b)
877
878 PERL_CALLCONV I32       Perl_foldEQ_locale(const char* a, const char* b, I32 len)
879                         __attribute__pure__;
880 #define PERL_ARGS_ASSERT_FOLDEQ_LOCALE  \
881         assert(a); assert(b)
882
883 /* PERL_CALLCONV I32    foldEQ_utf8(pTHX_ const char *s1, char **pe1, UV l1, bool u1, const char *s2, char **pe2, UV l2, bool u2); */
884 PERL_CALLCONV I32       Perl_foldEQ_utf8_flags(pTHX_ const char *s1, char **pe1, UV l1, bool u1, const char *s2, char **pe2, UV l2, bool u2, U32 flags);
885 #define PERL_ARGS_ASSERT_FOLDEQ_UTF8_FLAGS      \
886         assert(s1); assert(s2)
887 PERL_CALLCONV char*     Perl_form(pTHX_ const char* pat, ...)
888                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
889 #define PERL_ARGS_ASSERT_FORM   \
890         assert(pat)
891
892 PERL_CALLCONV void      Perl_free_tied_hv_pool(pTHX);
893 PERL_CALLCONV void      Perl_free_tmps(pTHX);
894 PERL_CALLCONV AV*       Perl_get_av(pTHX_ const char *name, I32 flags);
895 #define PERL_ARGS_ASSERT_GET_AV \
896         assert(name)
897 PERL_CALLCONV void*     Perl_get_context(void)
898                         __attribute__warn_unused_result__;
899
900 PERL_CALLCONV CV*       Perl_get_cv(pTHX_ const char* name, I32 flags);
901 #define PERL_ARGS_ASSERT_GET_CV \
902         assert(name)
903 PERL_CALLCONV CV*       Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags);
904 #define PERL_ARGS_ASSERT_GET_CVN_FLAGS  \
905         assert(name)
906 PERL_CALLCONV void      Perl_get_db_sub(pTHX_ SV **svp, CV *cv);
907 #define PERL_ARGS_ASSERT_GET_DB_SUB     \
908         assert(cv)
909 PERL_CALLCONV void      Perl_get_hash_seed(pTHX_ unsigned char * const seed_buffer);
910 #define PERL_ARGS_ASSERT_GET_HASH_SEED  \
911         assert(seed_buffer)
912 PERL_CALLCONV HV*       Perl_get_hv(pTHX_ const char *name, I32 flags);
913 #define PERL_ARGS_ASSERT_GET_HV \
914         assert(name)
915 PERL_CALLCONV const char*       Perl_get_no_modify(pTHX)
916                         __attribute__warn_unused_result__
917                         __attribute__pure__;
918
919 PERL_CALLCONV char**    Perl_get_op_descs(pTHX)
920                         __attribute__warn_unused_result__
921                         __attribute__pure__;
922
923 PERL_CALLCONV char**    Perl_get_op_names(pTHX)
924                         __attribute__warn_unused_result__
925                         __attribute__pure__;
926
927 PERL_CALLCONV U32*      Perl_get_opargs(pTHX)
928                         __attribute__warn_unused_result__
929                         __attribute__pure__;
930
931 PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX)
932                         __attribute__warn_unused_result__
933                         __attribute__pure__;
934
935 PERL_CALLCONV REGEXP *  Perl_get_re_arg(pTHX_ SV *sv);
936 PERL_CALLCONV SV*       Perl_get_sv(pTHX_ const char *name, I32 flags);
937 #define PERL_ARGS_ASSERT_GET_SV \
938         assert(name)
939 PERL_CALLCONV MGVTBL*   Perl_get_vtbl(pTHX_ int vtbl_id)
940                         __attribute__warn_unused_result__;
941
942 PERL_CALLCONV int       Perl_getcwd_sv(pTHX_ SV* sv);
943 #define PERL_ARGS_ASSERT_GETCWD_SV      \
944         assert(sv)
945 PERL_CALLCONV void      Perl_gp_free(pTHX_ GV* gv);
946 PERL_CALLCONV GP*       Perl_gp_ref(pTHX_ GP* gp);
947 PERL_CALLCONV bool      Perl_grok_atoUV(const char* pv, UV* valptr, const char** endptr);
948 #define PERL_ARGS_ASSERT_GROK_ATOUV     \
949         assert(pv); assert(valptr)
950 PERL_CALLCONV UV        Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result);
951 #define PERL_ARGS_ASSERT_GROK_BIN       \
952         assert(start); assert(len_p); assert(flags)
953 PERL_CALLCONV UV        Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result);
954 #define PERL_ARGS_ASSERT_GROK_HEX       \
955         assert(start); assert(len_p); assert(flags)
956 PERL_CALLCONV int       Perl_grok_infnan(pTHX_ const char** sp, const char *send);
957 #define PERL_ARGS_ASSERT_GROK_INFNAN    \
958         assert(sp); assert(send)
959 PERL_CALLCONV int       Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep);
960 #define PERL_ARGS_ASSERT_GROK_NUMBER    \
961         assert(pv)
962 PERL_CALLCONV int       Perl_grok_number_flags(pTHX_ const char *pv, STRLEN len, UV *valuep, U32 flags);
963 #define PERL_ARGS_ASSERT_GROK_NUMBER_FLAGS      \
964         assert(pv)
965 PERL_CALLCONV bool      Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
966                         __attribute__warn_unused_result__;
967 #define PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX     \
968         assert(sp); assert(send)
969
970 PERL_CALLCONV UV        Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result);
971 #define PERL_ARGS_ASSERT_GROK_OCT       \
972         assert(start); assert(len_p); assert(flags)
973 #ifndef NO_MATHOMS
974 PERL_CALLCONV GV*       Perl_gv_AVadd(pTHX_ GV *gv);
975 #endif
976 #ifndef NO_MATHOMS
977 PERL_CALLCONV GV*       Perl_gv_HVadd(pTHX_ GV *gv);
978 #endif
979 #ifndef NO_MATHOMS
980 PERL_CALLCONV GV*       Perl_gv_IOadd(pTHX_ GV* gv);
981 #endif
982 PERL_CALLCONV GV*       Perl_gv_add_by_type(pTHX_ GV *gv, svtype type);
983 /* PERL_CALLCONV GV*    gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method)
984                         __attribute__warn_unused_result__; */
985
986 PERL_CALLCONV GV*       Perl_gv_autoload_pv(pTHX_ HV* stash, const char* namepv, U32 flags)
987                         __attribute__warn_unused_result__;
988 #define PERL_ARGS_ASSERT_GV_AUTOLOAD_PV \
989         assert(namepv)
990
991 PERL_CALLCONV GV*       Perl_gv_autoload_pvn(pTHX_ HV* stash, const char* name, STRLEN len, U32 flags)
992                         __attribute__warn_unused_result__;
993 #define PERL_ARGS_ASSERT_GV_AUTOLOAD_PVN        \
994         assert(name)
995
996 PERL_CALLCONV GV*       Perl_gv_autoload_sv(pTHX_ HV* stash, SV* namesv, U32 flags)
997                         __attribute__warn_unused_result__;
998 #define PERL_ARGS_ASSERT_GV_AUTOLOAD_SV \
999         assert(namesv)
1000
1001 PERL_CALLCONV void      Perl_gv_check(pTHX_ HV* stash);
1002 #define PERL_ARGS_ASSERT_GV_CHECK       \
1003         assert(stash)
1004 PERL_CALLCONV SV*       Perl_gv_const_sv(pTHX_ GV* gv)
1005                         __attribute__warn_unused_result__;
1006 #define PERL_ARGS_ASSERT_GV_CONST_SV    \
1007         assert(gv)
1008
1009 PERL_CALLCONV void      Perl_gv_dump(pTHX_ GV* gv);
1010 PERL_CALLCONV void      Perl_gv_efullname(pTHX_ SV* sv, const GV* gv);
1011 #define PERL_ARGS_ASSERT_GV_EFULLNAME   \
1012         assert(sv); assert(gv)
1013 #ifndef NO_MATHOMS
1014 PERL_CALLCONV void      Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix);
1015 #define PERL_ARGS_ASSERT_GV_EFULLNAME3  \
1016         assert(sv); assert(gv)
1017 #endif
1018 PERL_CALLCONV void      Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain);
1019 #define PERL_ARGS_ASSERT_GV_EFULLNAME4  \
1020         assert(sv); assert(gv)
1021 PERL_CALLCONV GV*       Perl_gv_fetchfile(pTHX_ const char* name);
1022 #define PERL_ARGS_ASSERT_GV_FETCHFILE   \
1023         assert(name)
1024 PERL_CALLCONV GV*       Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN len, const U32 flags);
1025 #define PERL_ARGS_ASSERT_GV_FETCHFILE_FLAGS     \
1026         assert(name)
1027 /* PERL_CALLCONV GV*    gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level); */
1028 /* PERL_CALLCONV GV*    gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level); */
1029 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pv(pTHX_ HV* stash, const char* name, I32 level, U32 flags);
1030 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PV        \
1031         assert(name)
1032 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pv_autoload(pTHX_ HV* stash, const char* name, I32 level, U32 flags);
1033 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PV_AUTOLOAD       \
1034         assert(name)
1035 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pvn(pTHX_ HV* stash, const char* name, STRLEN len, I32 level, U32 flags);
1036 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PVN       \
1037         assert(name)
1038 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pvn_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level, U32 flags);
1039 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PVN_AUTOLOAD      \
1040         assert(name)
1041 PERL_CALLCONV GV*       Perl_gv_fetchmeth_sv(pTHX_ HV* stash, SV* namesv, I32 level, U32 flags);
1042 #define PERL_ARGS_ASSERT_GV_FETCHMETH_SV        \
1043         assert(namesv)
1044 PERL_CALLCONV GV*       Perl_gv_fetchmeth_sv_autoload(pTHX_ HV* stash, SV* namesv, I32 level, U32 flags);
1045 #define PERL_ARGS_ASSERT_GV_FETCHMETH_SV_AUTOLOAD       \
1046         assert(namesv)
1047 #ifndef NO_MATHOMS
1048 PERL_CALLCONV GV*       Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name);
1049 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD \
1050         assert(stash); assert(name)
1051 #endif
1052 PERL_CALLCONV GV*       Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload);
1053 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_AUTOLOAD        \
1054         assert(stash); assert(name)
1055 PERL_CALLCONV GV*       Perl_gv_fetchmethod_pv_flags(pTHX_ HV* stash, const char* name, U32 flags);
1056 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_PV_FLAGS        \
1057         assert(stash); assert(name)
1058 PERL_CALLCONV GV*       Perl_gv_fetchmethod_pvn_flags(pTHX_ HV* stash, const char* name, const STRLEN len, U32 flags);
1059 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_PVN_FLAGS       \
1060         assert(stash); assert(name)
1061 PERL_CALLCONV GV*       Perl_gv_fetchmethod_sv_flags(pTHX_ HV* stash, SV* namesv, U32 flags);
1062 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_SV_FLAGS        \
1063         assert(stash); assert(namesv)
1064 PERL_CALLCONV GV*       Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, const svtype sv_type);
1065 #define PERL_ARGS_ASSERT_GV_FETCHPV     \
1066         assert(nambeg)
1067 PERL_CALLCONV GV*       Perl_gv_fetchpvn_flags(pTHX_ const char* name, STRLEN len, I32 flags, const svtype sv_type);
1068 #define PERL_ARGS_ASSERT_GV_FETCHPVN_FLAGS      \
1069         assert(name)
1070 PERL_CALLCONV GV*       Perl_gv_fetchsv(pTHX_ SV *name, I32 flags, const svtype sv_type);
1071 #define PERL_ARGS_ASSERT_GV_FETCHSV     \
1072         assert(name)
1073 PERL_CALLCONV void      Perl_gv_fullname(pTHX_ SV* sv, const GV* gv);
1074 #define PERL_ARGS_ASSERT_GV_FULLNAME    \
1075         assert(sv); assert(gv)
1076 #ifndef NO_MATHOMS
1077 PERL_CALLCONV void      Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix);
1078 #define PERL_ARGS_ASSERT_GV_FULLNAME3   \
1079         assert(sv); assert(gv)
1080 #endif
1081 PERL_CALLCONV void      Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain);
1082 #define PERL_ARGS_ASSERT_GV_FULLNAME4   \
1083         assert(sv); assert(gv)
1084 PERL_CALLCONV CV*       Perl_gv_handler(pTHX_ HV* stash, I32 id)
1085                         __attribute__warn_unused_result__;
1086
1087 /* PERL_CALLCONV void   gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi); */
1088 PERL_CALLCONV void      Perl_gv_init_pv(pTHX_ GV* gv, HV* stash, const char* name, U32 flags);
1089 #define PERL_ARGS_ASSERT_GV_INIT_PV     \
1090         assert(gv); assert(name)
1091 PERL_CALLCONV void      Perl_gv_init_pvn(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, U32 flags);
1092 #define PERL_ARGS_ASSERT_GV_INIT_PVN    \
1093         assert(gv); assert(name)
1094 PERL_CALLCONV void      Perl_gv_init_sv(pTHX_ GV* gv, HV* stash, SV* namesv, U32 flags);
1095 #define PERL_ARGS_ASSERT_GV_INIT_SV     \
1096         assert(gv); assert(namesv)
1097 PERL_CALLCONV void      Perl_gv_name_set(pTHX_ GV* gv, const char *name, U32 len, U32 flags);
1098 #define PERL_ARGS_ASSERT_GV_NAME_SET    \
1099         assert(gv); assert(name)
1100 PERL_CALLCONV GV *      Perl_gv_override(pTHX_ const char * const name, const STRLEN len);
1101 #define PERL_ARGS_ASSERT_GV_OVERRIDE    \
1102         assert(name)
1103 PERL_CALLCONV void      Perl_gv_setref(pTHX_ SV *const dstr, SV *const sstr);
1104 #define PERL_ARGS_ASSERT_GV_SETREF      \
1105         assert(dstr); assert(sstr)
1106 PERL_CALLCONV HV*       Perl_gv_stashpv(pTHX_ const char* name, I32 flags);
1107 #define PERL_ARGS_ASSERT_GV_STASHPV     \
1108         assert(name)
1109 PERL_CALLCONV HV*       Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 flags);
1110 #define PERL_ARGS_ASSERT_GV_STASHPVN    \
1111         assert(name)
1112 PERL_CALLCONV HV*       Perl_gv_stashsv(pTHX_ SV* sv, I32 flags);
1113 #define PERL_ARGS_ASSERT_GV_STASHSV     \
1114         assert(sv)
1115 PERL_CALLCONV void      Perl_gv_try_downgrade(pTHX_ GV* gv);
1116 #define PERL_ARGS_ASSERT_GV_TRY_DOWNGRADE       \
1117         assert(gv)
1118 PERL_CALLCONV AV**      Perl_hv_backreferences_p(pTHX_ HV *hv);
1119 #define PERL_ARGS_ASSERT_HV_BACKREFERENCES_P    \
1120         assert(hv)
1121 PERL_CALLCONV SV*       Perl_hv_bucket_ratio(pTHX_ HV *hv)
1122                         __attribute__warn_unused_result__;
1123 #define PERL_ARGS_ASSERT_HV_BUCKET_RATIO        \
1124         assert(hv)
1125
1126 PERL_CALLCONV void      Perl_hv_clear(pTHX_ HV *hv);
1127 PERL_CALLCONV void      Perl_hv_clear_placeholders(pTHX_ HV *hv);
1128 #define PERL_ARGS_ASSERT_HV_CLEAR_PLACEHOLDERS  \
1129         assert(hv)
1130 PERL_CALLCONV void*     Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char* key, STRLEN klen, int flags, int action, SV *val, U32 hash);
1131 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);
1132 #define PERL_ARGS_ASSERT_HV_COMMON_KEY_LEN      \
1133         assert(key)
1134 PERL_CALLCONV HV *      Perl_hv_copy_hints_hv(pTHX_ HV *const ohv)
1135                         __attribute__warn_unused_result__;
1136
1137 PERL_CALLCONV void      Perl_hv_delayfree_ent(pTHX_ HV *hv, HE *entry);
1138 #define PERL_ARGS_ASSERT_HV_DELAYFREE_ENT       \
1139         assert(hv)
1140 #ifndef NO_MATHOMS
1141 PERL_CALLCONV SV*       Perl_hv_delete(pTHX_ HV *hv, const char *key, I32 klen, I32 flags);
1142 #define PERL_ARGS_ASSERT_HV_DELETE      \
1143         assert(key)
1144 #endif
1145 #ifndef NO_MATHOMS
1146 PERL_CALLCONV SV*       Perl_hv_delete_ent(pTHX_ HV *hv, SV *keysv, I32 flags, U32 hash);
1147 #define PERL_ARGS_ASSERT_HV_DELETE_ENT  \
1148         assert(keysv)
1149 #endif
1150 PERL_CALLCONV HE**      Perl_hv_eiter_p(pTHX_ HV *hv)
1151                         __attribute__warn_unused_result__;
1152 #define PERL_ARGS_ASSERT_HV_EITER_P     \
1153         assert(hv)
1154
1155 PERL_CALLCONV void      Perl_hv_eiter_set(pTHX_ HV *hv, HE *eiter);
1156 #define PERL_ARGS_ASSERT_HV_EITER_SET   \
1157         assert(hv)
1158 PERL_CALLCONV void      Perl_hv_ename_add(pTHX_ HV *hv, const char *name, U32 len, U32 flags);
1159 #define PERL_ARGS_ASSERT_HV_ENAME_ADD   \
1160         assert(hv); assert(name)
1161 PERL_CALLCONV void      Perl_hv_ename_delete(pTHX_ HV *hv, const char *name, U32 len, U32 flags);
1162 #define PERL_ARGS_ASSERT_HV_ENAME_DELETE        \
1163         assert(hv); assert(name)
1164 #ifndef NO_MATHOMS
1165 PERL_CALLCONV bool      Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen)
1166                         __attribute__warn_unused_result__;
1167 #define PERL_ARGS_ASSERT_HV_EXISTS      \
1168         assert(key)
1169 #endif
1170
1171 #ifndef NO_MATHOMS
1172 PERL_CALLCONV bool      Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
1173                         __attribute__warn_unused_result__;
1174 #define PERL_ARGS_ASSERT_HV_EXISTS_ENT  \
1175         assert(keysv)
1176 #endif
1177
1178 #ifndef NO_MATHOMS
1179 PERL_CALLCONV SV**      Perl_hv_fetch(pTHX_ HV *hv, const char *key, I32 klen, I32 lval);
1180 #define PERL_ARGS_ASSERT_HV_FETCH       \
1181         assert(key)
1182 #endif
1183 #ifndef NO_MATHOMS
1184 PERL_CALLCONV HE*       Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, U32 hash);
1185 #define PERL_ARGS_ASSERT_HV_FETCH_ENT   \
1186         assert(keysv)
1187 #endif
1188 PERL_CALLCONV STRLEN    Perl_hv_fill(pTHX_ HV *const hv);
1189 #define PERL_ARGS_ASSERT_HV_FILL        \
1190         assert(hv)
1191 PERL_CALLCONV void      Perl_hv_free_ent(pTHX_ HV *hv, HE *entry);
1192 #define PERL_ARGS_ASSERT_HV_FREE_ENT    \
1193         assert(hv)
1194 PERL_CALLCONV I32       Perl_hv_iterinit(pTHX_ HV *hv);
1195 #define PERL_ARGS_ASSERT_HV_ITERINIT    \
1196         assert(hv)
1197 PERL_CALLCONV char*     Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
1198                         __attribute__warn_unused_result__;
1199 #define PERL_ARGS_ASSERT_HV_ITERKEY     \
1200         assert(entry); assert(retlen)
1201
1202 PERL_CALLCONV SV*       Perl_hv_iterkeysv(pTHX_ HE* entry)
1203                         __attribute__warn_unused_result__;
1204 #define PERL_ARGS_ASSERT_HV_ITERKEYSV   \
1205         assert(entry)
1206
1207 #ifndef NO_MATHOMS
1208 PERL_CALLCONV HE*       Perl_hv_iternext(pTHX_ HV *hv)
1209                         __attribute__warn_unused_result__;
1210 #define PERL_ARGS_ASSERT_HV_ITERNEXT    \
1211         assert(hv)
1212 #endif
1213
1214 PERL_CALLCONV HE*       Perl_hv_iternext_flags(pTHX_ HV *hv, I32 flags)
1215                         __attribute__warn_unused_result__;
1216 #define PERL_ARGS_ASSERT_HV_ITERNEXT_FLAGS      \
1217         assert(hv)
1218
1219 PERL_CALLCONV SV*       Perl_hv_iternextsv(pTHX_ HV *hv, char **key, I32 *retlen)
1220                         __attribute__warn_unused_result__;
1221 #define PERL_ARGS_ASSERT_HV_ITERNEXTSV  \
1222         assert(hv); assert(key); assert(retlen)
1223
1224 PERL_CALLCONV SV*       Perl_hv_iterval(pTHX_ HV *hv, HE *entry)
1225                         __attribute__warn_unused_result__;
1226 #define PERL_ARGS_ASSERT_HV_ITERVAL     \
1227         assert(hv); assert(entry)
1228
1229 PERL_CALLCONV void      Perl_hv_ksplit(pTHX_ HV *hv, IV newmax);
1230 #define PERL_ARGS_ASSERT_HV_KSPLIT      \
1231         assert(hv)
1232 #ifndef NO_MATHOMS
1233 PERL_CALLCONV void      Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how);
1234 #define PERL_ARGS_ASSERT_HV_MAGIC       \
1235         assert(hv)
1236 #endif
1237 PERL_CALLCONV void      Perl_hv_name_set(pTHX_ HV *hv, const char *name, U32 len, U32 flags);
1238 #define PERL_ARGS_ASSERT_HV_NAME_SET    \
1239         assert(hv)
1240 PERL_CALLCONV I32       Perl_hv_placeholders_get(pTHX_ const HV *hv)
1241                         __attribute__warn_unused_result__;
1242 #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_GET    \
1243         assert(hv)
1244
1245 PERL_CALLCONV SSize_t*  Perl_hv_placeholders_p(pTHX_ HV *hv)
1246                         __attribute__warn_unused_result__;
1247 #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_P      \
1248         assert(hv)
1249
1250 PERL_CALLCONV void      Perl_hv_placeholders_set(pTHX_ HV *hv, I32 ph);
1251 #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_SET    \
1252         assert(hv)
1253 PERL_CALLCONV void      Perl_hv_rand_set(pTHX_ HV *hv, U32 new_xhv_rand);
1254 #define PERL_ARGS_ASSERT_HV_RAND_SET    \
1255         assert(hv)
1256 PERL_CALLCONV I32*      Perl_hv_riter_p(pTHX_ HV *hv)
1257                         __attribute__warn_unused_result__;
1258 #define PERL_ARGS_ASSERT_HV_RITER_P     \
1259         assert(hv)
1260
1261 PERL_CALLCONV void      Perl_hv_riter_set(pTHX_ HV *hv, I32 riter);
1262 #define PERL_ARGS_ASSERT_HV_RITER_SET   \
1263         assert(hv)
1264 PERL_CALLCONV SV*       Perl_hv_scalar(pTHX_ HV *hv)
1265                         __attribute__warn_unused_result__;
1266 #define PERL_ARGS_ASSERT_HV_SCALAR      \
1267         assert(hv)
1268
1269 #ifndef NO_MATHOMS
1270 PERL_CALLCONV SV**      Perl_hv_store(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash);
1271 #endif
1272 #ifndef NO_MATHOMS
1273 PERL_CALLCONV HE*       Perl_hv_store_ent(pTHX_ HV *hv, SV *key, SV *val, U32 hash);
1274 #endif
1275 #ifndef NO_MATHOMS
1276 PERL_CALLCONV SV**      Perl_hv_store_flags(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash, int flags);
1277 #endif
1278 /* PERL_CALLCONV void   hv_undef(pTHX_ HV *hv); */
1279 PERL_CALLCONV void      Perl_hv_undef_flags(pTHX_ HV *hv, U32 flags);
1280 /* PERL_CALLCONV I32    ibcmp(pTHX_ const char* a, const char* b, I32 len); */
1281 /* PERL_CALLCONV I32    ibcmp_locale(pTHX_ const char* a, const char* b, I32 len); */
1282 /* PERL_CALLCONV I32    ibcmp_utf8(pTHX_ const char *s1, char **pe1, UV l1, bool u1, const char *s2, char **pe2, UV l2, bool u2); */
1283 PERL_CALLCONV void      Perl_init_argv_symbols(pTHX_ int argc, char **argv);
1284 #define PERL_ARGS_ASSERT_INIT_ARGV_SYMBOLS      \
1285         assert(argv)
1286 PERL_CALLCONV void      Perl_init_constants(pTHX);
1287 PERL_CALLCONV void      Perl_init_dbargs(pTHX);
1288 PERL_CALLCONV void      Perl_init_debugger(pTHX);
1289 PERL_CALLCONV int       Perl_init_i18nl10n(pTHX_ int printwarn);
1290 PERL_CALLCONV int       Perl_init_i18nl14n(pTHX_ int printwarn);
1291 PERL_CALLCONV void      Perl_init_stacks(pTHX);
1292 PERL_CALLCONV void      Perl_init_tm(pTHX_ struct tm *ptm);
1293 #define PERL_ARGS_ASSERT_INIT_TM        \
1294         assert(ptm)
1295 #ifndef NO_MATHOMS
1296 PERL_CALLCONV char*     Perl_instr(const char* big, const char* little)
1297                         __attribute__warn_unused_result__
1298                         __attribute__pure__;
1299 #define PERL_ARGS_ASSERT_INSTR  \
1300         assert(big); assert(little)
1301 #endif
1302
1303 PERL_CALLCONV U32       Perl_intro_my(pTHX);
1304 PERL_CALLCONV OP*       Perl_invert(pTHX_ OP* cmd)
1305                         __attribute__warn_unused_result__;
1306
1307 PERL_CALLCONV bool      Perl_io_close(pTHX_ IO* io, GV *gv, bool not_implicit, bool warn_on_fail);
1308 #define PERL_ARGS_ASSERT_IO_CLOSE       \
1309         assert(io)
1310 PERL_CALLCONV bool      Perl_isALNUM_lazy(pTHX_ const char* p)
1311                         __attribute__deprecated__
1312                         __attribute__warn_unused_result__
1313                         __attribute__pure__;
1314 #define PERL_ARGS_ASSERT_ISALNUM_LAZY   \
1315         assert(p)
1316
1317 PERL_CALLCONV bool      Perl_isIDFIRST_lazy(pTHX_ const char* p)
1318                         __attribute__deprecated__
1319                         __attribute__warn_unused_result__
1320                         __attribute__pure__;
1321 #define PERL_ARGS_ASSERT_ISIDFIRST_LAZY \
1322         assert(p)
1323
1324 /* PERL_CALLCONV bool   Perl_is_ascii_string(const U8* const s, const STRLEN len)
1325                         __attribute__warn_unused_result__
1326                         __attribute__pure__; */
1327
1328 /* PERL_CALLCONV bool   Perl_is_invariant_string(const U8* const s, const STRLEN len)
1329                         __attribute__warn_unused_result__
1330                         __attribute__pure__; */
1331
1332 PERL_CALLCONV I32       Perl_is_lvalue_sub(pTHX)
1333                         __attribute__warn_unused_result__;
1334
1335 PERL_CALLCONV bool      Perl_is_uni_alnum(pTHX_ UV c)
1336                         __attribute__deprecated__
1337                         __attribute__warn_unused_result__
1338                         __attribute__pure__;
1339
1340 PERL_CALLCONV bool      Perl_is_uni_alnum_lc(pTHX_ UV c)
1341                         __attribute__deprecated__
1342                         __attribute__warn_unused_result__
1343                         __attribute__pure__;
1344
1345 PERL_CALLCONV bool      Perl_is_uni_alnumc(pTHX_ UV c)
1346                         __attribute__deprecated__
1347                         __attribute__warn_unused_result__
1348                         __attribute__pure__;
1349
1350 PERL_CALLCONV bool      Perl_is_uni_alnumc_lc(pTHX_ UV c)
1351                         __attribute__deprecated__
1352                         __attribute__warn_unused_result__
1353                         __attribute__pure__;
1354
1355 PERL_CALLCONV bool      Perl_is_uni_alpha(pTHX_ UV c)
1356                         __attribute__deprecated__
1357                         __attribute__warn_unused_result__
1358                         __attribute__pure__;
1359
1360 PERL_CALLCONV bool      Perl_is_uni_alpha_lc(pTHX_ UV c)
1361                         __attribute__deprecated__
1362                         __attribute__warn_unused_result__
1363                         __attribute__pure__;
1364
1365 PERL_CALLCONV bool      Perl_is_uni_ascii(pTHX_ UV c)
1366                         __attribute__deprecated__
1367                         __attribute__warn_unused_result__
1368                         __attribute__pure__;
1369
1370 PERL_CALLCONV bool      Perl_is_uni_ascii_lc(pTHX_ UV c)
1371                         __attribute__deprecated__
1372                         __attribute__warn_unused_result__
1373                         __attribute__pure__;
1374
1375 PERL_CALLCONV bool      Perl_is_uni_blank(pTHX_ UV c)
1376                         __attribute__deprecated__
1377                         __attribute__warn_unused_result__
1378                         __attribute__pure__;
1379
1380 PERL_CALLCONV bool      Perl_is_uni_blank_lc(pTHX_ UV c)
1381                         __attribute__deprecated__
1382                         __attribute__warn_unused_result__
1383                         __attribute__pure__;
1384
1385 PERL_CALLCONV bool      Perl_is_uni_cntrl(pTHX_ UV c)
1386                         __attribute__deprecated__
1387                         __attribute__warn_unused_result__
1388                         __attribute__pure__;
1389
1390 PERL_CALLCONV bool      Perl_is_uni_cntrl_lc(pTHX_ UV c)
1391                         __attribute__deprecated__
1392                         __attribute__warn_unused_result__
1393                         __attribute__pure__;
1394
1395 PERL_CALLCONV bool      Perl_is_uni_digit(pTHX_ UV c)
1396                         __attribute__deprecated__
1397                         __attribute__warn_unused_result__
1398                         __attribute__pure__;
1399
1400 PERL_CALLCONV bool      Perl_is_uni_digit_lc(pTHX_ UV c)
1401                         __attribute__deprecated__
1402                         __attribute__warn_unused_result__
1403                         __attribute__pure__;
1404
1405 PERL_CALLCONV bool      Perl_is_uni_graph(pTHX_ UV c)
1406                         __attribute__deprecated__
1407                         __attribute__warn_unused_result__
1408                         __attribute__pure__;
1409
1410 PERL_CALLCONV bool      Perl_is_uni_graph_lc(pTHX_ UV c)
1411                         __attribute__deprecated__
1412                         __attribute__warn_unused_result__
1413                         __attribute__pure__;
1414
1415 PERL_CALLCONV bool      Perl_is_uni_idfirst(pTHX_ UV c)
1416                         __attribute__deprecated__
1417                         __attribute__warn_unused_result__
1418                         __attribute__pure__;
1419
1420 PERL_CALLCONV bool      Perl_is_uni_idfirst_lc(pTHX_ UV c)
1421                         __attribute__deprecated__
1422                         __attribute__warn_unused_result__
1423                         __attribute__pure__;
1424
1425 PERL_CALLCONV bool      Perl_is_uni_lower(pTHX_ UV c)
1426                         __attribute__deprecated__
1427                         __attribute__warn_unused_result__
1428                         __attribute__pure__;
1429
1430 PERL_CALLCONV bool      Perl_is_uni_lower_lc(pTHX_ UV c)
1431                         __attribute__deprecated__
1432                         __attribute__warn_unused_result__
1433                         __attribute__pure__;
1434
1435 PERL_CALLCONV bool      Perl_is_uni_print(pTHX_ UV c)
1436                         __attribute__deprecated__
1437                         __attribute__warn_unused_result__
1438                         __attribute__pure__;
1439
1440 PERL_CALLCONV bool      Perl_is_uni_print_lc(pTHX_ UV c)
1441                         __attribute__deprecated__
1442                         __attribute__warn_unused_result__
1443                         __attribute__pure__;
1444
1445 PERL_CALLCONV bool      Perl_is_uni_punct(pTHX_ UV c)
1446                         __attribute__deprecated__
1447                         __attribute__warn_unused_result__
1448                         __attribute__pure__;
1449
1450 PERL_CALLCONV bool      Perl_is_uni_punct_lc(pTHX_ UV c)
1451                         __attribute__deprecated__
1452                         __attribute__warn_unused_result__
1453                         __attribute__pure__;
1454
1455 PERL_CALLCONV bool      Perl_is_uni_space(pTHX_ UV c)
1456                         __attribute__deprecated__
1457                         __attribute__warn_unused_result__
1458                         __attribute__pure__;
1459
1460 PERL_CALLCONV bool      Perl_is_uni_space_lc(pTHX_ UV c)
1461                         __attribute__deprecated__
1462                         __attribute__warn_unused_result__
1463                         __attribute__pure__;
1464
1465 PERL_CALLCONV bool      Perl_is_uni_upper(pTHX_ UV c)
1466                         __attribute__deprecated__
1467                         __attribute__warn_unused_result__
1468                         __attribute__pure__;
1469
1470 PERL_CALLCONV bool      Perl_is_uni_upper_lc(pTHX_ UV c)
1471                         __attribute__deprecated__
1472                         __attribute__warn_unused_result__
1473                         __attribute__pure__;
1474
1475 PERL_CALLCONV bool      Perl_is_uni_xdigit(pTHX_ UV c)
1476                         __attribute__deprecated__
1477                         __attribute__warn_unused_result__
1478                         __attribute__pure__;
1479
1480 PERL_CALLCONV bool      Perl_is_uni_xdigit_lc(pTHX_ UV c)
1481                         __attribute__deprecated__
1482                         __attribute__warn_unused_result__
1483                         __attribute__pure__;
1484
1485 PERL_CALLCONV bool      Perl_is_utf8_alnum(pTHX_ const U8 *p)
1486                         __attribute__deprecated__
1487                         __attribute__warn_unused_result__;
1488 #define PERL_ARGS_ASSERT_IS_UTF8_ALNUM  \
1489         assert(p)
1490
1491 PERL_CALLCONV bool      Perl_is_utf8_alnumc(pTHX_ const U8 *p)
1492                         __attribute__deprecated__
1493                         __attribute__warn_unused_result__;
1494 #define PERL_ARGS_ASSERT_IS_UTF8_ALNUMC \
1495         assert(p)
1496
1497 PERL_CALLCONV bool      Perl_is_utf8_alpha(pTHX_ const U8 *p)
1498                         __attribute__deprecated__
1499                         __attribute__warn_unused_result__;
1500 #define PERL_ARGS_ASSERT_IS_UTF8_ALPHA  \
1501         assert(p)
1502
1503 PERL_CALLCONV bool      Perl_is_utf8_ascii(pTHX_ const U8 *p)
1504                         __attribute__deprecated__
1505                         __attribute__warn_unused_result__;
1506 #define PERL_ARGS_ASSERT_IS_UTF8_ASCII  \
1507         assert(p)
1508
1509 PERL_CALLCONV bool      Perl_is_utf8_blank(pTHX_ const U8 *p)
1510                         __attribute__deprecated__
1511                         __attribute__warn_unused_result__;
1512 #define PERL_ARGS_ASSERT_IS_UTF8_BLANK  \
1513         assert(p)
1514
1515 PERL_CALLCONV STRLEN    Perl_is_utf8_char(const U8 *s)
1516                         __attribute__deprecated__;
1517 #define PERL_ARGS_ASSERT_IS_UTF8_CHAR   \
1518         assert(s)
1519
1520 #ifndef NO_MATHOMS
1521 PERL_CALLCONV STRLEN    Perl_is_utf8_char_buf(const U8 *buf, const U8 *buf_end);
1522 #define PERL_ARGS_ASSERT_IS_UTF8_CHAR_BUF       \
1523         assert(buf); assert(buf_end)
1524 #endif
1525 PERL_CALLCONV bool      Perl_is_utf8_cntrl(pTHX_ const U8 *p)
1526                         __attribute__deprecated__
1527                         __attribute__warn_unused_result__;
1528 #define PERL_ARGS_ASSERT_IS_UTF8_CNTRL  \
1529         assert(p)
1530
1531 PERL_CALLCONV bool      Perl_is_utf8_digit(pTHX_ const U8 *p)
1532                         __attribute__deprecated__
1533                         __attribute__warn_unused_result__;
1534 #define PERL_ARGS_ASSERT_IS_UTF8_DIGIT  \
1535         assert(p)
1536
1537 PERL_CALLCONV bool      Perl_is_utf8_graph(pTHX_ const U8 *p)
1538                         __attribute__deprecated__
1539                         __attribute__warn_unused_result__;
1540 #define PERL_ARGS_ASSERT_IS_UTF8_GRAPH  \
1541         assert(p)
1542
1543 PERL_CALLCONV bool      Perl_is_utf8_idcont(pTHX_ const U8 *p)
1544                         __attribute__deprecated__
1545                         __attribute__warn_unused_result__;
1546 #define PERL_ARGS_ASSERT_IS_UTF8_IDCONT \
1547         assert(p)
1548
1549 PERL_CALLCONV bool      Perl_is_utf8_idfirst(pTHX_ const U8 *p)
1550                         __attribute__deprecated__
1551                         __attribute__warn_unused_result__;
1552 #define PERL_ARGS_ASSERT_IS_UTF8_IDFIRST        \
1553         assert(p)
1554
1555 PERL_STATIC_INLINE bool S_is_utf8_invariant_string(const U8* const s, STRLEN const len)
1556                         __attribute__warn_unused_result__
1557                         __attribute__pure__;
1558 #define PERL_ARGS_ASSERT_IS_UTF8_INVARIANT_STRING       \
1559         assert(s)
1560
1561 PERL_CALLCONV bool      Perl_is_utf8_lower(pTHX_ const U8 *p)
1562                         __attribute__deprecated__
1563                         __attribute__warn_unused_result__;
1564 #define PERL_ARGS_ASSERT_IS_UTF8_LOWER  \
1565         assert(p)
1566
1567 PERL_CALLCONV bool      Perl_is_utf8_mark(pTHX_ const U8 *p)
1568                         __attribute__deprecated__
1569                         __attribute__warn_unused_result__;
1570 #define PERL_ARGS_ASSERT_IS_UTF8_MARK   \
1571         assert(p)
1572
1573 PERL_CALLCONV bool      Perl_is_utf8_perl_space(pTHX_ const U8 *p)
1574                         __attribute__deprecated__
1575                         __attribute__warn_unused_result__;
1576 #define PERL_ARGS_ASSERT_IS_UTF8_PERL_SPACE     \
1577         assert(p)
1578
1579 PERL_CALLCONV bool      Perl_is_utf8_perl_word(pTHX_ const U8 *p)
1580                         __attribute__deprecated__
1581                         __attribute__warn_unused_result__;
1582 #define PERL_ARGS_ASSERT_IS_UTF8_PERL_WORD      \
1583         assert(p)
1584
1585 PERL_CALLCONV bool      Perl_is_utf8_posix_digit(pTHX_ const U8 *p)
1586                         __attribute__deprecated__
1587                         __attribute__warn_unused_result__;
1588 #define PERL_ARGS_ASSERT_IS_UTF8_POSIX_DIGIT    \
1589         assert(p)
1590
1591 PERL_CALLCONV bool      Perl_is_utf8_print(pTHX_ const U8 *p)
1592                         __attribute__deprecated__
1593                         __attribute__warn_unused_result__;
1594 #define PERL_ARGS_ASSERT_IS_UTF8_PRINT  \
1595         assert(p)
1596
1597 PERL_CALLCONV bool      Perl_is_utf8_punct(pTHX_ const U8 *p)
1598                         __attribute__deprecated__
1599                         __attribute__warn_unused_result__;
1600 #define PERL_ARGS_ASSERT_IS_UTF8_PUNCT  \
1601         assert(p)
1602
1603 PERL_CALLCONV bool      Perl_is_utf8_space(pTHX_ const U8 *p)
1604                         __attribute__deprecated__
1605                         __attribute__warn_unused_result__;
1606 #define PERL_ARGS_ASSERT_IS_UTF8_SPACE  \
1607         assert(p)
1608
1609 PERL_STATIC_INLINE bool Perl_is_utf8_string(const U8 *s, STRLEN len);
1610 #define PERL_ARGS_ASSERT_IS_UTF8_STRING \
1611         assert(s)
1612 #ifndef NO_MATHOMS
1613 PERL_CALLCONV bool      Perl_is_utf8_string_loc(const U8 *s, STRLEN len, const U8 **ep);
1614 #define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC     \
1615         assert(s); assert(ep)
1616 #endif
1617 PERL_STATIC_INLINE bool Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el);
1618 #define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN  \
1619         assert(s)
1620 PERL_CALLCONV bool      Perl_is_utf8_upper(pTHX_ const U8 *p)
1621                         __attribute__deprecated__
1622                         __attribute__warn_unused_result__;
1623 #define PERL_ARGS_ASSERT_IS_UTF8_UPPER  \
1624         assert(p)
1625
1626 PERL_CALLCONV bool      Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1627                         __attribute__deprecated__
1628                         __attribute__warn_unused_result__;
1629 #define PERL_ARGS_ASSERT_IS_UTF8_XDIGIT \
1630         assert(p)
1631
1632 PERL_CALLCONV bool      Perl_is_utf8_xidcont(pTHX_ const U8 *p)
1633                         __attribute__deprecated__
1634                         __attribute__warn_unused_result__;
1635 #define PERL_ARGS_ASSERT_IS_UTF8_XIDCONT        \
1636         assert(p)
1637
1638 PERL_CALLCONV bool      Perl_is_utf8_xidfirst(pTHX_ const U8 *p)
1639                         __attribute__deprecated__
1640                         __attribute__warn_unused_result__;
1641 #define PERL_ARGS_ASSERT_IS_UTF8_XIDFIRST       \
1642         assert(p)
1643
1644 PERL_CALLCONV bool      Perl_isinfnan(NV nv);
1645 PERL_CALLCONV bool      Perl_isinfnansv(pTHX_ SV *sv);
1646 #define PERL_ARGS_ASSERT_ISINFNANSV     \
1647         assert(sv)
1648 PERL_CALLCONV OP*       Perl_jmaybe(pTHX_ OP *o);
1649 #define PERL_ARGS_ASSERT_JMAYBE \
1650         assert(o)
1651 PERL_CALLCONV I32       Perl_keyword(pTHX_ const char *name, I32 len, bool all_keywords)
1652                         __attribute__pure__;
1653 #define PERL_ARGS_ASSERT_KEYWORD        \
1654         assert(name)
1655
1656 PERL_CALLCONV int       Perl_keyword_plugin_standard(pTHX_ char* keyword_ptr, STRLEN keyword_len, OP** op_ptr);
1657 #define PERL_ARGS_ASSERT_KEYWORD_PLUGIN_STANDARD        \
1658         assert(keyword_ptr); assert(op_ptr)
1659 PERL_CALLCONV void      Perl_leave_adjust_stacks(pTHX_ SV **from_sp, SV **to_sp, U8 gimme, int filter);
1660 #define PERL_ARGS_ASSERT_LEAVE_ADJUST_STACKS    \
1661         assert(from_sp); assert(to_sp)
1662 PERL_CALLCONV void      Perl_leave_scope(pTHX_ I32 base);
1663 PERL_CALLCONV bool      Perl_lex_bufutf8(pTHX);
1664 PERL_CALLCONV void      Perl_lex_discard_to(pTHX_ char* ptr);
1665 #define PERL_ARGS_ASSERT_LEX_DISCARD_TO \
1666         assert(ptr)
1667 PERL_CALLCONV char*     Perl_lex_grow_linestr(pTHX_ STRLEN len);
1668 PERL_CALLCONV bool      Perl_lex_next_chunk(pTHX_ U32 flags);
1669 PERL_CALLCONV I32       Perl_lex_peek_unichar(pTHX_ U32 flags);
1670 PERL_CALLCONV void      Perl_lex_read_space(pTHX_ U32 flags);
1671 PERL_CALLCONV void      Perl_lex_read_to(pTHX_ char* ptr);
1672 #define PERL_ARGS_ASSERT_LEX_READ_TO    \
1673         assert(ptr)
1674 PERL_CALLCONV I32       Perl_lex_read_unichar(pTHX_ U32 flags);
1675 PERL_CALLCONV void      Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, U32 flags);
1676 PERL_CALLCONV void      Perl_lex_stuff_pv(pTHX_ const char* pv, U32 flags);
1677 #define PERL_ARGS_ASSERT_LEX_STUFF_PV   \
1678         assert(pv)
1679 PERL_CALLCONV void      Perl_lex_stuff_pvn(pTHX_ const char* pv, STRLEN len, U32 flags);
1680 #define PERL_ARGS_ASSERT_LEX_STUFF_PVN  \
1681         assert(pv)
1682 PERL_CALLCONV void      Perl_lex_stuff_sv(pTHX_ SV* sv, U32 flags);
1683 #define PERL_ARGS_ASSERT_LEX_STUFF_SV   \
1684         assert(sv)
1685 PERL_CALLCONV void      Perl_lex_unstuff(pTHX_ char* ptr);
1686 #define PERL_ARGS_ASSERT_LEX_UNSTUFF    \
1687         assert(ptr)
1688 PERL_CALLCONV OP*       Perl_list(pTHX_ OP* o);
1689 PERL_CALLCONV void      Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...);
1690 #define PERL_ARGS_ASSERT_LOAD_MODULE    \
1691         assert(name)
1692 PERL_CALLCONV OP*       Perl_localize(pTHX_ OP *o, I32 lex);
1693 #define PERL_ARGS_ASSERT_LOCALIZE       \
1694         assert(o)
1695 PERL_CALLCONV I32       Perl_looks_like_number(pTHX_ SV *const sv)
1696                         __attribute__warn_unused_result__;
1697 #define PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER      \
1698         assert(sv)
1699
1700 PERL_CALLCONV int       Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg);
1701 #define PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV    \
1702         assert(sv); assert(mg)
1703 PERL_CALLCONV int       Perl_magic_cleararylen_p(pTHX_ SV* sv, MAGIC* mg);
1704 #define PERL_ARGS_ASSERT_MAGIC_CLEARARYLEN_P    \
1705         assert(sv); assert(mg)
1706 PERL_CALLCONV int       Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg);
1707 #define PERL_ARGS_ASSERT_MAGIC_CLEARENV \
1708         assert(sv); assert(mg)
1709 PERL_CALLCONV int       Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg);
1710 #define PERL_ARGS_ASSERT_MAGIC_CLEARHINT        \
1711         assert(sv); assert(mg)
1712 PERL_CALLCONV int       Perl_magic_clearhints(pTHX_ SV* sv, MAGIC* mg);
1713 #define PERL_ARGS_ASSERT_MAGIC_CLEARHINTS       \
1714         assert(sv); assert(mg)
1715 PERL_CALLCONV int       Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg);
1716 #define PERL_ARGS_ASSERT_MAGIC_CLEARISA \
1717         assert(mg)
1718 PERL_CALLCONV int       Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg);
1719 #define PERL_ARGS_ASSERT_MAGIC_CLEARPACK        \
1720         assert(sv); assert(mg)
1721 PERL_CALLCONV int       Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg);
1722 #define PERL_ARGS_ASSERT_MAGIC_CLEARSIG \
1723         assert(sv); assert(mg)
1724 PERL_CALLCONV int       Perl_magic_copycallchecker(pTHX_ SV* sv, MAGIC *mg, SV *nsv, const char *name, I32 namlen);
1725 #define PERL_ARGS_ASSERT_MAGIC_COPYCALLCHECKER  \
1726         assert(sv); assert(mg); assert(nsv)
1727 PERL_CALLCONV void      Perl_magic_dump(pTHX_ const MAGIC *mg);
1728 PERL_CALLCONV int       Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg);
1729 #define PERL_ARGS_ASSERT_MAGIC_EXISTSPACK       \
1730         assert(sv); assert(mg)
1731 PERL_CALLCONV int       Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg);
1732 #define PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P     \
1733         assert(sv); assert(mg)
1734 PERL_CALLCONV int       Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg);
1735 #define PERL_ARGS_ASSERT_MAGIC_FREEOVRLD        \
1736         assert(sv); assert(mg)
1737 PERL_CALLCONV int       Perl_magic_get(pTHX_ SV* sv, MAGIC* mg);
1738 #define PERL_ARGS_ASSERT_MAGIC_GET      \
1739         assert(sv); assert(mg)
1740 PERL_CALLCONV int       Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg);
1741 #define PERL_ARGS_ASSERT_MAGIC_GETARYLEN        \
1742         assert(sv); assert(mg)
1743 PERL_CALLCONV int       Perl_magic_getdebugvar(pTHX_ SV* sv, MAGIC* mg);
1744 #define PERL_ARGS_ASSERT_MAGIC_GETDEBUGVAR      \
1745         assert(sv); assert(mg)
1746 PERL_CALLCONV int       Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg);
1747 #define PERL_ARGS_ASSERT_MAGIC_GETDEFELEM       \
1748         assert(sv); assert(mg)
1749 PERL_CALLCONV int       Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg);
1750 #define PERL_ARGS_ASSERT_MAGIC_GETNKEYS \
1751         assert(sv); assert(mg)
1752 PERL_CALLCONV int       Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg);
1753 #define PERL_ARGS_ASSERT_MAGIC_GETPACK  \
1754         assert(sv); assert(mg)
1755 PERL_CALLCONV int       Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg);
1756 #define PERL_ARGS_ASSERT_MAGIC_GETPOS   \
1757         assert(sv); assert(mg)
1758 PERL_CALLCONV int       Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg);
1759 #define PERL_ARGS_ASSERT_MAGIC_GETSIG   \
1760         assert(sv); assert(mg)
1761 PERL_CALLCONV int       Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg);
1762 #define PERL_ARGS_ASSERT_MAGIC_GETSUBSTR        \
1763         assert(sv); assert(mg)
1764 PERL_CALLCONV int       Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg);
1765 #define PERL_ARGS_ASSERT_MAGIC_GETTAINT \
1766         assert(sv); assert(mg)
1767 PERL_CALLCONV int       Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg);
1768 #define PERL_ARGS_ASSERT_MAGIC_GETUVAR  \
1769         assert(sv); assert(mg)
1770 PERL_CALLCONV int       Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg);
1771 #define PERL_ARGS_ASSERT_MAGIC_GETVEC   \
1772         assert(sv); assert(mg)
1773 PERL_CALLCONV int       Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg);
1774 #define PERL_ARGS_ASSERT_MAGIC_KILLBACKREFS     \
1775         assert(sv); assert(mg)
1776 PERL_CALLCONV SV*       Perl_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, SV *meth, U32 flags, U32 argc, ...);
1777 #define PERL_ARGS_ASSERT_MAGIC_METHCALL \
1778         assert(sv); assert(mg); assert(meth)
1779 PERL_CALLCONV int       Perl_magic_nextpack(pTHX_ SV *sv, MAGIC *mg, SV *key);
1780 #define PERL_ARGS_ASSERT_MAGIC_NEXTPACK \
1781         assert(sv); assert(mg); assert(key)
1782 PERL_CALLCONV U32       Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg);
1783 #define PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT      \
1784         assert(sv); assert(mg)
1785 PERL_CALLCONV int       Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg);
1786 #define PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET     \
1787         assert(sv); assert(mg)
1788 PERL_CALLCONV SV*       Perl_magic_scalarpack(pTHX_ HV *hv, MAGIC *mg);
1789 #define PERL_ARGS_ASSERT_MAGIC_SCALARPACK       \
1790         assert(hv); assert(mg)
1791 PERL_CALLCONV int       Perl_magic_set(pTHX_ SV* sv, MAGIC* mg);
1792 #define PERL_ARGS_ASSERT_MAGIC_SET      \
1793         assert(sv); assert(mg)
1794 PERL_CALLCONV int       Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg);
1795 #define PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV      \
1796         assert(sv); assert(mg)
1797 PERL_CALLCONV int       Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg);
1798 #define PERL_ARGS_ASSERT_MAGIC_SETARYLEN        \
1799         assert(sv); assert(mg)
1800 PERL_CALLCONV int       Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg);
1801 #define PERL_ARGS_ASSERT_MAGIC_SETDBLINE        \
1802         assert(sv); assert(mg)
1803 PERL_CALLCONV int       Perl_magic_setdebugvar(pTHX_ SV* sv, MAGIC* mg);
1804 #define PERL_ARGS_ASSERT_MAGIC_SETDEBUGVAR      \
1805         assert(sv); assert(mg)
1806 PERL_CALLCONV int       Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg);
1807 #define PERL_ARGS_ASSERT_MAGIC_SETDEFELEM       \
1808         assert(sv); assert(mg)
1809 PERL_CALLCONV int       Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg);
1810 #define PERL_ARGS_ASSERT_MAGIC_SETENV   \
1811         assert(sv); assert(mg)
1812 PERL_CALLCONV int       Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg);
1813 #define PERL_ARGS_ASSERT_MAGIC_SETHINT  \
1814         assert(sv); assert(mg)
1815 PERL_CALLCONV int       Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg);
1816 #define PERL_ARGS_ASSERT_MAGIC_SETISA   \
1817         assert(sv); assert(mg)
1818 PERL_CALLCONV int       Perl_magic_setlvref(pTHX_ SV* sv, MAGIC* mg);
1819 #define PERL_ARGS_ASSERT_MAGIC_SETLVREF \
1820         assert(sv); assert(mg)
1821 PERL_CALLCONV int       Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg);
1822 #define PERL_ARGS_ASSERT_MAGIC_SETMGLOB \
1823         assert(sv); assert(mg)
1824 PERL_CALLCONV int       Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg);
1825 #define PERL_ARGS_ASSERT_MAGIC_SETNKEYS \
1826         assert(sv); assert(mg)
1827 PERL_CALLCONV int       Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg);
1828 #define PERL_ARGS_ASSERT_MAGIC_SETPACK  \
1829         assert(sv); assert(mg)
1830 PERL_CALLCONV int       Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg);
1831 #define PERL_ARGS_ASSERT_MAGIC_SETPOS   \
1832         assert(sv); assert(mg)
1833 PERL_CALLCONV int       Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg);
1834 #define PERL_ARGS_ASSERT_MAGIC_SETREGEXP        \
1835         assert(sv); assert(mg)
1836 PERL_CALLCONV int       Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg);
1837 #define PERL_ARGS_ASSERT_MAGIC_SETSIG   \
1838         assert(mg)
1839 PERL_CALLCONV int       Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg);
1840 #define PERL_ARGS_ASSERT_MAGIC_SETSUBSTR        \
1841         assert(sv); assert(mg)
1842 PERL_CALLCONV int       Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg);
1843 #define PERL_ARGS_ASSERT_MAGIC_SETTAINT \
1844         assert(sv); assert(mg)
1845 PERL_CALLCONV int       Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg);
1846 #define PERL_ARGS_ASSERT_MAGIC_SETUTF8  \
1847         assert(sv); assert(mg)
1848 PERL_CALLCONV int       Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg);
1849 #define PERL_ARGS_ASSERT_MAGIC_SETUVAR  \
1850         assert(sv); assert(mg)
1851 PERL_CALLCONV int       Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg);
1852 #define PERL_ARGS_ASSERT_MAGIC_SETVEC   \
1853         assert(sv); assert(mg)
1854 PERL_CALLCONV U32       Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg);
1855 #define PERL_ARGS_ASSERT_MAGIC_SIZEPACK \
1856         assert(sv); assert(mg)
1857 PERL_CALLCONV int       Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg);
1858 #define PERL_ARGS_ASSERT_MAGIC_WIPEPACK \
1859         assert(sv); assert(mg)
1860 PERL_CALLCONV Malloc_t  Perl_malloc(MEM_SIZE nbytes)
1861                         __attribute__malloc__
1862                         __attribute__warn_unused_result__;
1863
1864 PERL_CALLCONV I32 *     Perl_markstack_grow(pTHX);
1865 PERL_CALLCONV SV*       Perl_mess(pTHX_ const char* pat, ...)
1866                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
1867 #define PERL_ARGS_ASSERT_MESS   \
1868         assert(pat)
1869
1870 PERL_CALLCONV SV*       Perl_mess_sv(pTHX_ SV* basemsg, bool consume);
1871 #define PERL_ARGS_ASSERT_MESS_SV        \
1872         assert(basemsg)
1873 PERL_CALLCONV Free_t    Perl_mfree(Malloc_t where);
1874 PERL_CALLCONV int       Perl_mg_clear(pTHX_ SV* sv);
1875 #define PERL_ARGS_ASSERT_MG_CLEAR       \
1876         assert(sv)
1877 PERL_CALLCONV int       Perl_mg_copy(pTHX_ SV *sv, SV *nsv, const char *key, I32 klen);
1878 #define PERL_ARGS_ASSERT_MG_COPY        \
1879         assert(sv); assert(nsv)
1880 PERL_CALLCONV MAGIC*    Perl_mg_find(const SV* sv, int type)
1881                         __attribute__warn_unused_result__;
1882
1883 PERL_CALLCONV MAGIC*    Perl_mg_find_mglob(pTHX_ SV* sv)
1884                         __attribute__warn_unused_result__;
1885 #define PERL_ARGS_ASSERT_MG_FIND_MGLOB  \
1886         assert(sv)
1887
1888 PERL_CALLCONV MAGIC*    Perl_mg_findext(const SV* sv, int type, const MGVTBL *vtbl)
1889                         __attribute__warn_unused_result__;
1890
1891 PERL_CALLCONV int       Perl_mg_free(pTHX_ SV* sv);
1892 #define PERL_ARGS_ASSERT_MG_FREE        \
1893         assert(sv)
1894 PERL_CALLCONV void      Perl_mg_free_type(pTHX_ SV* sv, int how);
1895 #define PERL_ARGS_ASSERT_MG_FREE_TYPE   \
1896         assert(sv)
1897 PERL_CALLCONV int       Perl_mg_get(pTHX_ SV* sv);
1898 #define PERL_ARGS_ASSERT_MG_GET \
1899         assert(sv)
1900 PERL_CALLCONV U32       Perl_mg_length(pTHX_ SV* sv)
1901                         __attribute__deprecated__;
1902 #define PERL_ARGS_ASSERT_MG_LENGTH      \
1903         assert(sv)
1904
1905 PERL_CALLCONV void      Perl_mg_localize(pTHX_ SV* sv, SV* nsv, bool setmagic);
1906 #define PERL_ARGS_ASSERT_MG_LOCALIZE    \
1907         assert(sv); assert(nsv)
1908 PERL_CALLCONV void      Perl_mg_magical(SV* sv);
1909 #define PERL_ARGS_ASSERT_MG_MAGICAL     \
1910         assert(sv)
1911 PERL_CALLCONV int       Perl_mg_set(pTHX_ SV* sv);
1912 #define PERL_ARGS_ASSERT_MG_SET \
1913         assert(sv)
1914 PERL_CALLCONV I32       Perl_mg_size(pTHX_ SV* sv);
1915 #define PERL_ARGS_ASSERT_MG_SIZE        \
1916         assert(sv)
1917 PERL_CALLCONV void      Perl_mini_mktime(struct tm *ptm);
1918 #define PERL_ARGS_ASSERT_MINI_MKTIME    \
1919         assert(ptm)
1920 PERL_CALLCONV int       Perl_mode_from_discipline(pTHX_ const char* s, STRLEN len);
1921 PERL_CALLCONV void *    Perl_more_bodies(pTHX_ const svtype sv_type, const size_t body_size, const size_t arena_size);
1922 PERL_CALLCONV const char*       Perl_moreswitches(pTHX_ const char* s);
1923 #define PERL_ARGS_ASSERT_MORESWITCHES   \
1924         assert(s)
1925 PERL_CALLCONV const struct mro_alg *    Perl_mro_get_from_name(pTHX_ SV *name);
1926 #define PERL_ARGS_ASSERT_MRO_GET_FROM_NAME      \
1927         assert(name)
1928 PERL_CALLCONV AV*       Perl_mro_get_linear_isa(pTHX_ HV* stash);
1929 #define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA     \
1930         assert(stash)
1931 PERL_CALLCONV SV*       Perl_mro_get_private_data(pTHX_ struct mro_meta *const smeta, const struct mro_alg *const which);
1932 #define PERL_ARGS_ASSERT_MRO_GET_PRIVATE_DATA   \
1933         assert(smeta); assert(which)
1934 PERL_CALLCONV void      Perl_mro_isa_changed_in(pTHX_ HV* stash);
1935 #define PERL_ARGS_ASSERT_MRO_ISA_CHANGED_IN     \
1936         assert(stash)
1937 PERL_CALLCONV struct mro_meta*  Perl_mro_meta_init(pTHX_ HV* stash);
1938 #define PERL_ARGS_ASSERT_MRO_META_INIT  \
1939         assert(stash)
1940 PERL_CALLCONV void      Perl_mro_method_changed_in(pTHX_ HV* stash);
1941 #define PERL_ARGS_ASSERT_MRO_METHOD_CHANGED_IN  \
1942         assert(stash)
1943 PERL_CALLCONV void      Perl_mro_package_moved(pTHX_ HV * const stash, HV * const oldstash, const GV * const gv, U32 flags);
1944 #define PERL_ARGS_ASSERT_MRO_PACKAGE_MOVED      \
1945         assert(gv)
1946 PERL_CALLCONV void      Perl_mro_register(pTHX_ const struct mro_alg *mro);
1947 #define PERL_ARGS_ASSERT_MRO_REGISTER   \
1948         assert(mro)
1949 PERL_CALLCONV void      Perl_mro_set_mro(pTHX_ struct mro_meta *const meta, SV *const name);
1950 #define PERL_ARGS_ASSERT_MRO_SET_MRO    \
1951         assert(meta); assert(name)
1952 PERL_CALLCONV SV*       Perl_mro_set_private_data(pTHX_ struct mro_meta *const smeta, const struct mro_alg *const which, SV *const data);
1953 #define PERL_ARGS_ASSERT_MRO_SET_PRIVATE_DATA   \
1954         assert(smeta); assert(which); assert(data)
1955 PERL_CALLCONV SV*       Perl_multideref_stringify(pTHX_ const OP* o, CV *cv);
1956 #define PERL_ARGS_ASSERT_MULTIDEREF_STRINGIFY   \
1957         assert(o)
1958 PERL_CALLCONV NV        Perl_my_atof(pTHX_ const char *s);
1959 #define PERL_ARGS_ASSERT_MY_ATOF        \
1960         assert(s)
1961 PERL_CALLCONV char*     Perl_my_atof2(pTHX_ const char *s, NV* value);
1962 #define PERL_ARGS_ASSERT_MY_ATOF2       \
1963         assert(s); assert(value)
1964 PERL_CALLCONV OP *      Perl_my_attrs(pTHX_ OP *o, OP *attrs);
1965 #define PERL_ARGS_ASSERT_MY_ATTRS       \
1966         assert(o)
1967 PERL_CALLCONV void      Perl_my_clearenv(pTHX);
1968 PERL_CALLCONV int       Perl_my_dirfd(DIR* dir);
1969 PERL_CALLCONV_NO_RET void       Perl_my_exit(pTHX_ U32 status)
1970                         __attribute__noreturn__;
1971
1972 PERL_CALLCONV_NO_RET void       Perl_my_failure_exit(pTHX)
1973                         __attribute__noreturn__;
1974
1975 PERL_CALLCONV I32       Perl_my_fflush_all(pTHX);
1976 PERL_CALLCONV Pid_t     Perl_my_fork(void);
1977 #ifndef NO_MATHOMS
1978 PERL_CALLCONV I32       Perl_my_lstat(pTHX);
1979 #endif
1980 PERL_CALLCONV I32       Perl_my_lstat_flags(pTHX_ const U32 flags);
1981 PERL_CALLCONV PerlIO*   Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args);
1982 #define PERL_ARGS_ASSERT_MY_POPEN_LIST  \
1983         assert(mode); assert(args)
1984 PERL_CALLCONV void      Perl_my_setenv(pTHX_ const char* nam, const char* val);
1985 PERL_CALLCONV int       Perl_my_snprintf(char *buffer, const Size_t len, const char *format, ...)
1986                         __attribute__format__(__printf__,3,4);
1987 #define PERL_ARGS_ASSERT_MY_SNPRINTF    \
1988         assert(buffer); assert(format)
1989
1990 PERL_CALLCONV int       Perl_my_socketpair(int family, int type, int protocol, int fd[2]);
1991 #ifndef NO_MATHOMS
1992 PERL_CALLCONV I32       Perl_my_stat(pTHX);
1993 #endif
1994 PERL_CALLCONV I32       Perl_my_stat_flags(pTHX_ const U32 flags);
1995 PERL_CALLCONV char*     Perl_my_strerror(pTHX_ const int errnum);
1996 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)
1997                         __attribute__format__(__strftime__,pTHX_1,0);
1998 #define PERL_ARGS_ASSERT_MY_STRFTIME    \
1999         assert(fmt)
2000
2001 PERL_CALLCONV void      Perl_my_unexec(pTHX);
2002 PERL_CALLCONV int       Perl_my_vsnprintf(char *buffer, const Size_t len, const char *format, va_list ap);
2003 #define PERL_ARGS_ASSERT_MY_VSNPRINTF   \
2004         assert(buffer); assert(format)
2005 PERL_CALLCONV OP*       Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block);
2006 PERL_CALLCONV OP*       Perl_newANONHASH(pTHX_ OP* o)
2007                         __attribute__warn_unused_result__;
2008
2009 PERL_CALLCONV OP*       Perl_newANONLIST(pTHX_ OP* o)
2010                         __attribute__warn_unused_result__;
2011
2012 PERL_CALLCONV OP*       Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
2013 PERL_CALLCONV OP*       Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
2014                         __attribute__warn_unused_result__;
2015
2016 /* PERL_CALLCONV CV*    newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block); */
2017 PERL_CALLCONV CV*       Perl_newATTRSUB_x(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block, bool o_is_gv);
2018 #ifndef NO_MATHOMS
2019 PERL_CALLCONV AV*       Perl_newAV(pTHX)
2020                         __attribute__warn_unused_result__;
2021 #endif
2022
2023 PERL_CALLCONV OP*       Perl_newAVREF(pTHX_ OP* o)
2024                         __attribute__warn_unused_result__;
2025 #define PERL_ARGS_ASSERT_NEWAVREF       \
2026         assert(o)
2027
2028 PERL_CALLCONV OP*       Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
2029                         __attribute__warn_unused_result__;
2030
2031 PERL_CALLCONV OP*       Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
2032                         __attribute__warn_unused_result__;
2033 #define PERL_ARGS_ASSERT_NEWCONDOP      \
2034         assert(first)
2035
2036 PERL_CALLCONV CV*       Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
2037 PERL_CALLCONV CV*       Perl_newCONSTSUB_flags(pTHX_ HV* stash, const char* name, STRLEN len, U32 flags, SV* sv);
2038 PERL_CALLCONV OP*       Perl_newCVREF(pTHX_ I32 flags, OP* o)
2039                         __attribute__warn_unused_result__;
2040
2041 PERL_CALLCONV OP*       Perl_newDEFSVOP(pTHX)
2042                         __attribute__warn_unused_result__;
2043
2044 PERL_CALLCONV void      Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
2045 PERL_CALLCONV OP*       Perl_newFOROP(pTHX_ I32 flags, OP* sv, OP* expr, OP* block, OP* cont)
2046                         __attribute__warn_unused_result__;
2047 #define PERL_ARGS_ASSERT_NEWFOROP       \
2048         assert(expr)
2049
2050 PERL_CALLCONV OP*       Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
2051                         __attribute__warn_unused_result__;
2052 #define PERL_ARGS_ASSERT_NEWGIVENOP     \
2053         assert(cond); assert(block)
2054
2055 PERL_CALLCONV GP *      Perl_newGP(pTHX_ GV *const gv);
2056 #define PERL_ARGS_ASSERT_NEWGP  \
2057         assert(gv)
2058 PERL_CALLCONV OP*       Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
2059                         __attribute__warn_unused_result__;
2060 #define PERL_ARGS_ASSERT_NEWGVOP        \
2061         assert(gv)
2062
2063 PERL_CALLCONV OP*       Perl_newGVREF(pTHX_ I32 type, OP* o)
2064                         __attribute__warn_unused_result__;
2065
2066 /* PERL_CALLCONV GV*    newGVgen(pTHX_ const char* pack); */
2067 PERL_CALLCONV GV*       Perl_newGVgen_flags(pTHX_ const char* pack, U32 flags)
2068                         __attribute__warn_unused_result__;
2069 #define PERL_ARGS_ASSERT_NEWGVGEN_FLAGS \
2070         assert(pack)
2071
2072 #ifndef NO_MATHOMS
2073 PERL_CALLCONV HV*       Perl_newHV(pTHX)
2074                         __attribute__warn_unused_result__;
2075 #endif
2076
2077 PERL_CALLCONV OP*       Perl_newHVREF(pTHX_ OP* o)
2078                         __attribute__warn_unused_result__;
2079 #define PERL_ARGS_ASSERT_NEWHVREF       \
2080         assert(o)
2081
2082 PERL_CALLCONV HV*       Perl_newHVhv(pTHX_ HV *hv)
2083                         __attribute__warn_unused_result__;
2084
2085 #ifndef NO_MATHOMS
2086 PERL_CALLCONV IO*       Perl_newIO(pTHX)
2087                         __attribute__warn_unused_result__;
2088 #endif
2089
2090 PERL_CALLCONV OP*       Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
2091                         __attribute__warn_unused_result__;
2092
2093 PERL_CALLCONV OP*       Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP *first, OP *other)
2094                         __attribute__warn_unused_result__;
2095 #define PERL_ARGS_ASSERT_NEWLOGOP       \
2096         assert(first); assert(other)
2097
2098 PERL_CALLCONV OP*       Perl_newLOOPEX(pTHX_ I32 type, OP* label)
2099                         __attribute__warn_unused_result__;
2100 #define PERL_ARGS_ASSERT_NEWLOOPEX      \
2101         assert(label)
2102
2103 PERL_CALLCONV OP*       Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
2104                         __attribute__warn_unused_result__;
2105
2106 PERL_CALLCONV OP*       Perl_newMETHOP(pTHX_ I32 type, I32 flags, OP* dynamic_meth)
2107                         __attribute__warn_unused_result__;
2108 #define PERL_ARGS_ASSERT_NEWMETHOP      \
2109         assert(dynamic_meth)
2110
2111 PERL_CALLCONV OP*       Perl_newMETHOP_named(pTHX_ I32 type, I32 flags, SV* const_meth)
2112                         __attribute__warn_unused_result__;
2113 #define PERL_ARGS_ASSERT_NEWMETHOP_NAMED        \
2114         assert(const_meth)
2115
2116 PERL_CALLCONV CV *      Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block);
2117 #define PERL_ARGS_ASSERT_NEWMYSUB       \
2118         assert(o)
2119 PERL_CALLCONV OP*       Perl_newNULLLIST(pTHX)
2120                         __attribute__warn_unused_result__;
2121
2122 PERL_CALLCONV OP*       Perl_newOP(pTHX_ I32 optype, I32 flags)
2123                         __attribute__warn_unused_result__;
2124
2125 PERL_CALLCONV PADNAMELIST *     Perl_newPADNAMELIST(size_t max)
2126                         __attribute__warn_unused_result__;
2127
2128 PERL_CALLCONV PADNAME * Perl_newPADNAMEouter(PADNAME *outer)
2129                         __attribute__warn_unused_result__;
2130 #define PERL_ARGS_ASSERT_NEWPADNAMEOUTER        \
2131         assert(outer)
2132
2133 PERL_CALLCONV PADNAME * Perl_newPADNAMEpvn(const char *s, STRLEN len)
2134                         __attribute__warn_unused_result__;
2135 #define PERL_ARGS_ASSERT_NEWPADNAMEPVN  \
2136         assert(s)
2137
2138 PERL_CALLCONV OP*       Perl_newPMOP(pTHX_ I32 type, I32 flags)
2139                         __attribute__warn_unused_result__;
2140
2141 PERL_CALLCONV void      Perl_newPROG(pTHX_ OP* o);
2142 #define PERL_ARGS_ASSERT_NEWPROG        \
2143         assert(o)
2144 PERL_CALLCONV OP*       Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
2145                         __attribute__warn_unused_result__;
2146
2147 PERL_CALLCONV OP*       Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
2148                         __attribute__warn_unused_result__;
2149 #define PERL_ARGS_ASSERT_NEWRANGE       \
2150         assert(left); assert(right)
2151
2152 PERL_CALLCONV SV*       Perl_newRV(pTHX_ SV *const sv)
2153                         __attribute__warn_unused_result__;
2154 #define PERL_ARGS_ASSERT_NEWRV  \
2155         assert(sv)
2156
2157 PERL_CALLCONV SV*       Perl_newRV_noinc(pTHX_ SV *const tmpRef)
2158                         __attribute__warn_unused_result__;
2159 #define PERL_ARGS_ASSERT_NEWRV_NOINC    \
2160         assert(tmpRef)
2161
2162 PERL_CALLCONV OP*       Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
2163                         __attribute__warn_unused_result__;
2164
2165 PERL_CALLCONV OP*       Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
2166                         __attribute__warn_unused_result__;
2167
2168 PERL_CALLCONV CV*       Perl_newSTUB(pTHX_ GV *gv, bool fake);
2169 #define PERL_ARGS_ASSERT_NEWSTUB        \
2170         assert(gv)
2171 #ifndef NO_MATHOMS
2172 PERL_CALLCONV CV*       Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
2173 #endif
2174 PERL_CALLCONV SV*       Perl_newSV(pTHX_ const STRLEN len)
2175                         __attribute__warn_unused_result__;
2176
2177 PERL_CALLCONV OP*       Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
2178                         __attribute__warn_unused_result__;
2179 #define PERL_ARGS_ASSERT_NEWSVOP        \
2180         assert(sv)
2181
2182 PERL_CALLCONV OP*       Perl_newSVREF(pTHX_ OP* o)
2183                         __attribute__warn_unused_result__;
2184 #define PERL_ARGS_ASSERT_NEWSVREF       \
2185         assert(o)
2186
2187 PERL_CALLCONV SV*       Perl_newSV_type(pTHX_ const svtype type)
2188                         __attribute__warn_unused_result__;
2189
2190 PERL_CALLCONV SV*       Perl_newSVavdefelem(pTHX_ AV *av, SSize_t ix, bool extendible)
2191                         __attribute__warn_unused_result__;
2192 #define PERL_ARGS_ASSERT_NEWSVAVDEFELEM \
2193         assert(av)
2194
2195 PERL_CALLCONV SV*       Perl_newSVhek(pTHX_ const HEK *const hek)
2196                         __attribute__warn_unused_result__;
2197
2198 PERL_CALLCONV SV*       Perl_newSViv(pTHX_ const IV i)
2199                         __attribute__warn_unused_result__;
2200
2201 PERL_CALLCONV SV*       Perl_newSVnv(pTHX_ const NV n)
2202                         __attribute__warn_unused_result__;
2203
2204 PERL_CALLCONV SV*       Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
2205                         __attribute__warn_unused_result__;
2206
2207 PERL_CALLCONV SV*       Perl_newSVpv_share(pTHX_ const char* s, U32 hash)
2208                         __attribute__warn_unused_result__;
2209
2210 PERL_CALLCONV SV*       Perl_newSVpvf(pTHX_ const char *const pat, ...)
2211                         __attribute__warn_unused_result__
2212                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
2213 #define PERL_ARGS_ASSERT_NEWSVPVF       \
2214         assert(pat)
2215
2216 PERL_CALLCONV SV*       Perl_newSVpvn(pTHX_ const char *const s, const STRLEN len)
2217                         __attribute__warn_unused_result__;
2218
2219 PERL_CALLCONV SV*       Perl_newSVpvn_flags(pTHX_ const char *const s, const STRLEN len, const U32 flags)
2220                         __attribute__warn_unused_result__;
2221
2222 PERL_CALLCONV SV*       Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
2223                         __attribute__warn_unused_result__;
2224
2225 PERL_CALLCONV SV*       Perl_newSVrv(pTHX_ SV *const rv, const char *const classname);
2226 #define PERL_ARGS_ASSERT_NEWSVRV        \
2227         assert(rv)
2228 PERL_CALLCONV SV*       Perl_newSVsv(pTHX_ SV *const old)
2229                         __attribute__warn_unused_result__;
2230
2231 PERL_CALLCONV SV*       Perl_newSVuv(pTHX_ const UV u)
2232                         __attribute__warn_unused_result__;
2233
2234 PERL_CALLCONV OP*       Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
2235                         __attribute__warn_unused_result__;
2236
2237 PERL_CALLCONV OP*       Perl_newUNOP_AUX(pTHX_ I32 type, I32 flags, OP* first, UNOP_AUX_item *aux)
2238                         __attribute__warn_unused_result__;
2239
2240 PERL_CALLCONV OP*       Perl_newWHENOP(pTHX_ OP* cond, OP* block)
2241                         __attribute__warn_unused_result__;
2242 #define PERL_ARGS_ASSERT_NEWWHENOP      \
2243         assert(block)
2244
2245 PERL_CALLCONV OP*       Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, OP* expr, OP* block, OP* cont, I32 has_my)
2246                         __attribute__warn_unused_result__;
2247
2248 PERL_CALLCONV CV*       Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename);
2249 #define PERL_ARGS_ASSERT_NEWXS  \
2250         assert(subaddr); assert(filename)
2251 PERL_CALLCONV CV *      Perl_newXS_deffile(pTHX_ const char *name, XSUBADDR_t subaddr);
2252 #define PERL_ARGS_ASSERT_NEWXS_DEFFILE  \
2253         assert(name); assert(subaddr)
2254 PERL_CALLCONV CV *      Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags);
2255 #define PERL_ARGS_ASSERT_NEWXS_FLAGS    \
2256         assert(subaddr); assert(filename)
2257 PERL_CALLCONV CV *      Perl_newXS_len_flags(pTHX_ const char *name, STRLEN len, XSUBADDR_t subaddr, const char *const filename, const char *const proto, SV **const_svp, U32 flags);
2258 #define PERL_ARGS_ASSERT_NEWXS_LEN_FLAGS        \
2259         assert(subaddr)
2260 PERL_CALLCONV void      Perl_new_collate(pTHX_ const char* newcoll);
2261 PERL_CALLCONV void      Perl_new_ctype(pTHX_ const char* newctype);
2262 #define PERL_ARGS_ASSERT_NEW_CTYPE      \
2263         assert(newctype)
2264 PERL_CALLCONV void      Perl_new_numeric(pTHX_ const char* newcoll);
2265 PERL_CALLCONV PERL_SI*  Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
2266                         __attribute__warn_unused_result__;
2267
2268 PERL_CALLCONV SV*       Perl_new_version(pTHX_ SV *ver);
2269 #define PERL_ARGS_ASSERT_NEW_VERSION    \
2270         assert(ver)
2271 PERL_CALLCONV STRLEN *  Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, STRLEN size)
2272                         __attribute__warn_unused_result__;
2273 #define PERL_ARGS_ASSERT_NEW_WARNINGS_BITFIELD  \
2274         assert(bits)
2275
2276 PERL_CALLCONV PerlIO*   Perl_nextargv(pTHX_ GV* gv, bool nomagicopen);
2277 #define PERL_ARGS_ASSERT_NEXTARGV       \
2278         assert(gv)
2279 PERL_CALLCONV_NO_RET void       Perl_noperl_die(const char* pat, ...)
2280                         __attribute__noreturn__
2281                         __attribute__format__(__printf__,1,2);
2282 #define PERL_ARGS_ASSERT_NOPERL_DIE     \
2283         assert(pat)
2284
2285 PERL_CALLCONV int       Perl_nothreadhook(pTHX);
2286 PERL_CALLCONV OP*       Perl_oopsAV(pTHX_ OP* o)
2287                         __attribute__warn_unused_result__;
2288 #define PERL_ARGS_ASSERT_OOPSAV \
2289         assert(o)
2290
2291 PERL_CALLCONV OP*       Perl_oopsHV(pTHX_ OP* o)
2292                         __attribute__warn_unused_result__;
2293 #define PERL_ARGS_ASSERT_OOPSHV \
2294         assert(o)
2295
2296 PERL_CALLCONV OP*       Perl_op_append_elem(pTHX_ I32 optype, OP* first, OP* last);
2297 PERL_CALLCONV OP*       Perl_op_append_list(pTHX_ I32 optype, OP* first, OP* last);
2298 PERL_CALLCONV void      Perl_op_clear(pTHX_ OP* o);
2299 #define PERL_ARGS_ASSERT_OP_CLEAR       \
2300         assert(o)
2301 PERL_CALLCONV OP*       Perl_op_contextualize(pTHX_ OP* o, I32 context);
2302 #define PERL_ARGS_ASSERT_OP_CONTEXTUALIZE       \
2303         assert(o)
2304 PERL_CALLCONV OP*       Perl_op_convert_list(pTHX_ I32 optype, I32 flags, OP* o)
2305                         __attribute__warn_unused_result__;
2306
2307 PERL_CALLCONV void      Perl_op_dump(pTHX_ const OP *o);
2308 #define PERL_ARGS_ASSERT_OP_DUMP        \
2309         assert(o)
2310 PERL_CALLCONV void      Perl_op_free(pTHX_ OP* arg);
2311 PERL_CALLCONV OP*       Perl_op_linklist(pTHX_ OP *o);
2312 #define PERL_ARGS_ASSERT_OP_LINKLIST    \
2313         assert(o)
2314 /* PERL_CALLCONV OP*    op_lvalue(pTHX_ OP* o, I32 type); */
2315 PERL_CALLCONV OP*       Perl_op_lvalue_flags(pTHX_ OP* o, I32 type, U32 flags);
2316 PERL_CALLCONV void      Perl_op_null(pTHX_ OP* o);
2317 #define PERL_ARGS_ASSERT_OP_NULL        \
2318         assert(o)
2319 PERL_CALLCONV OP*       Perl_op_prepend_elem(pTHX_ I32 optype, OP* first, OP* last);
2320 PERL_CALLCONV void      Perl_op_refcnt_lock(pTHX);
2321 PERL_CALLCONV void      Perl_op_refcnt_unlock(pTHX);
2322 PERL_CALLCONV OP*       Perl_op_scope(pTHX_ OP* o);
2323 PERL_CALLCONV OP*       Perl_op_sibling_splice(OP *parent, OP *start, int del_count, OP* insert);
2324 PERL_CALLCONV OP*       Perl_op_unscope(pTHX_ OP* o);
2325 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);
2326 #define PERL_ARGS_ASSERT_PACK_CAT       \
2327         assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
2328 PERL_CALLCONV void      Perl_package(pTHX_ OP* o);
2329 #define PERL_ARGS_ASSERT_PACKAGE        \
2330         assert(o)
2331 PERL_CALLCONV void      Perl_package_version(pTHX_ OP* v);
2332 #define PERL_ARGS_ASSERT_PACKAGE_VERSION        \
2333         assert(v)
2334 PERL_CALLCONV void      Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist);
2335 #define PERL_ARGS_ASSERT_PACKLIST       \
2336         assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist)
2337 PERL_CALLCONV PADOFFSET Perl_pad_add_anon(pTHX_ CV* func, I32 optype);
2338 #define PERL_ARGS_ASSERT_PAD_ADD_ANON   \
2339         assert(func)
2340 PERL_CALLCONV PADOFFSET Perl_pad_add_name_pv(pTHX_ const char *name, const U32 flags, HV *typestash, HV *ourstash);
2341 #define PERL_ARGS_ASSERT_PAD_ADD_NAME_PV        \
2342         assert(name)
2343 PERL_CALLCONV PADOFFSET Perl_pad_add_name_pvn(pTHX_ const char *namepv, STRLEN namelen, U32 flags, HV *typestash, HV *ourstash);
2344 #define PERL_ARGS_ASSERT_PAD_ADD_NAME_PVN       \
2345         assert(namepv)
2346 PERL_CALLCONV PADOFFSET Perl_pad_add_name_sv(pTHX_ SV *name, U32 flags, HV *typestash, HV *ourstash);
2347 #define PERL_ARGS_ASSERT_PAD_ADD_NAME_SV        \
2348         assert(name)
2349 PERL_CALLCONV void      Perl_pad_add_weakref(pTHX_ CV* func);
2350 #define PERL_ARGS_ASSERT_PAD_ADD_WEAKREF        \
2351         assert(func)
2352 PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
2353 PERL_CALLCONV void      Perl_pad_block_start(pTHX_ int full);
2354 #ifndef NO_MATHOMS
2355 PERL_CALLCONV HV*       Perl_pad_compname_type(pTHX_ const PADOFFSET po)
2356                         __attribute__warn_unused_result__;
2357 #endif
2358
2359 PERL_CALLCONV PADOFFSET Perl_pad_findmy_pv(pTHX_ const char* name, U32 flags);
2360 #define PERL_ARGS_ASSERT_PAD_FINDMY_PV  \
2361         assert(name)
2362 PERL_CALLCONV PADOFFSET Perl_pad_findmy_pvn(pTHX_ const char* namepv, STRLEN namelen, U32 flags);
2363 #define PERL_ARGS_ASSERT_PAD_FINDMY_PVN \
2364         assert(namepv)
2365 PERL_CALLCONV PADOFFSET Perl_pad_findmy_sv(pTHX_ SV* name, U32 flags);
2366 #define PERL_ARGS_ASSERT_PAD_FINDMY_SV  \
2367         assert(name)
2368 PERL_CALLCONV void      Perl_pad_fixup_inner_anons(pTHX_ PADLIST *padlist, CV *old_cv, CV *new_cv);
2369 #define PERL_ARGS_ASSERT_PAD_FIXUP_INNER_ANONS  \
2370         assert(padlist); assert(old_cv); assert(new_cv)
2371 PERL_CALLCONV void      Perl_pad_free(pTHX_ PADOFFSET po);
2372 PERL_CALLCONV OP *      Perl_pad_leavemy(pTHX);
2373 PERL_CALLCONV PADLIST*  Perl_pad_new(pTHX_ int flags)
2374                         __attribute__warn_unused_result__;
2375
2376 PERL_CALLCONV void      Perl_pad_push(pTHX_ PADLIST *padlist, int depth);
2377 #define PERL_ARGS_ASSERT_PAD_PUSH       \
2378         assert(padlist)
2379 PERL_CALLCONV void      Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
2380 PERL_CALLCONV void      Perl_pad_tidy(pTHX_ padtidy_type type);
2381 PERL_CALLCONV PAD **    Perl_padlist_store(pTHX_ PADLIST *padlist, I32 key, PAD *val);
2382 #define PERL_ARGS_ASSERT_PADLIST_STORE  \
2383         assert(padlist)
2384 PERL_CALLCONV void      Perl_padname_free(pTHX_ PADNAME *pn);
2385 #define PERL_ARGS_ASSERT_PADNAME_FREE   \
2386         assert(pn)
2387 PERL_CALLCONV PADNAME * Perl_padnamelist_fetch(PADNAMELIST *pnl, SSize_t key)
2388                         __attribute__warn_unused_result__;
2389 #define PERL_ARGS_ASSERT_PADNAMELIST_FETCH      \
2390         assert(pnl)
2391
2392 PERL_CALLCONV void      Perl_padnamelist_free(pTHX_ PADNAMELIST *pnl);
2393 #define PERL_ARGS_ASSERT_PADNAMELIST_FREE       \
2394         assert(pnl)
2395 PERL_CALLCONV PADNAME **        Perl_padnamelist_store(pTHX_ PADNAMELIST *pnl, SSize_t key, PADNAME *val);
2396 #define PERL_ARGS_ASSERT_PADNAMELIST_STORE      \
2397         assert(pnl)
2398 PERL_CALLCONV OP*       Perl_parse_arithexpr(pTHX_ U32 flags);
2399 PERL_CALLCONV OP*       Perl_parse_barestmt(pTHX_ U32 flags);
2400 PERL_CALLCONV OP*       Perl_parse_block(pTHX_ U32 flags);
2401 PERL_CALLCONV OP*       Perl_parse_fullexpr(pTHX_ U32 flags);
2402 PERL_CALLCONV OP*       Perl_parse_fullstmt(pTHX_ U32 flags);
2403 PERL_CALLCONV SV*       Perl_parse_label(pTHX_ U32 flags);
2404 PERL_CALLCONV OP*       Perl_parse_listexpr(pTHX_ U32 flags);
2405 PERL_CALLCONV OP*       Perl_parse_stmtseq(pTHX_ U32 flags);
2406 PERL_CALLCONV OP*       Perl_parse_termexpr(pTHX_ U32 flags);
2407 PERL_CALLCONV U32       Perl_parse_unicode_opts(pTHX_ const char **popt);
2408 #define PERL_ARGS_ASSERT_PARSE_UNICODE_OPTS     \
2409         assert(popt)
2410 PERL_CALLCONV void      Perl_parser_free(pTHX_ const yy_parser *parser);
2411 #define PERL_ARGS_ASSERT_PARSER_FREE    \
2412         assert(parser)
2413 PERL_CALLCONV void      Perl_peep(pTHX_ OP* o);
2414 PERL_CALLCONV PerlInterpreter*  perl_alloc(void);
2415 PERL_CALLCONV void      perl_construct(PerlInterpreter *my_perl);
2416 #define PERL_ARGS_ASSERT_PERL_CONSTRUCT \
2417         assert(my_perl)
2418 PERL_CALLCONV int       perl_destruct(PerlInterpreter *my_perl);
2419 #define PERL_ARGS_ASSERT_PERL_DESTRUCT  \
2420         assert(my_perl)
2421 PERL_CALLCONV void      perl_free(PerlInterpreter *my_perl);
2422 #define PERL_ARGS_ASSERT_PERL_FREE      \
2423         assert(my_perl)
2424 PERL_CALLCONV int       perl_parse(PerlInterpreter *my_perl, XSINIT_t xsinit, int argc, char** argv, char** env);
2425 #define PERL_ARGS_ASSERT_PERL_PARSE     \
2426         assert(my_perl)
2427 PERL_CALLCONV int       perl_run(PerlInterpreter *my_perl);
2428 #define PERL_ARGS_ASSERT_PERL_RUN       \
2429         assert(my_perl)
2430 PERL_CALLCONV void      Perl_pmop_dump(pTHX_ PMOP* pm);
2431 PERL_CALLCONV OP*       Perl_pmruntime(pTHX_ OP *o, OP *expr, OP *repl, bool isreg, I32 floor);
2432 #define PERL_ARGS_ASSERT_PMRUNTIME      \
2433         assert(o); assert(expr)
2434 PERL_CALLCONV void      Perl_pop_scope(pTHX);
2435 PERL_CALLCONV void      Perl_populate_isa(pTHX_ const char *name, STRLEN len, ...);
2436 #define PERL_ARGS_ASSERT_POPULATE_ISA   \
2437         assert(name)
2438 PERL_CALLCONV REGEXP*   Perl_pregcomp(pTHX_ SV * const pattern, const U32 flags);
2439 #define PERL_ARGS_ASSERT_PREGCOMP       \
2440         assert(pattern)
2441 PERL_CALLCONV I32       Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, SSize_t minend, SV* screamer, U32 nosave);
2442 #define PERL_ARGS_ASSERT_PREGEXEC       \
2443         assert(prog); assert(stringarg); assert(strend); assert(strbeg); assert(screamer)
2444 PERL_CALLCONV void      Perl_pregfree(pTHX_ REGEXP* r);
2445 PERL_CALLCONV void      Perl_pregfree2(pTHX_ REGEXP *rx);
2446 #define PERL_ARGS_ASSERT_PREGFREE2      \
2447         assert(rx)
2448 PERL_CALLCONV const char*       Perl_prescan_version(pTHX_ const char *s, bool strict, const char** errstr, bool *sqv, int *ssaw_decimal, int *swidth, bool *salpha);
2449 #define PERL_ARGS_ASSERT_PRESCAN_VERSION        \
2450         assert(s)
2451 PERL_CALLCONV void      Perl_ptr_table_clear(pTHX_ PTR_TBL_t *const tbl)
2452                         __attribute__deprecated__;
2453
2454 PERL_CALLCONV void*     Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *const tbl, const void *const sv)
2455                         __attribute__warn_unused_result__;
2456 #define PERL_ARGS_ASSERT_PTR_TABLE_FETCH        \
2457         assert(tbl)
2458
2459 PERL_CALLCONV void      Perl_ptr_table_free(pTHX_ PTR_TBL_t *const tbl);
2460 PERL_CALLCONV PTR_TBL_t*        Perl_ptr_table_new(pTHX)
2461                         __attribute__warn_unused_result__;
2462
2463 PERL_CALLCONV void      Perl_ptr_table_split(pTHX_ PTR_TBL_t *const tbl);
2464 #define PERL_ARGS_ASSERT_PTR_TABLE_SPLIT        \
2465         assert(tbl)
2466 PERL_CALLCONV void      Perl_ptr_table_store(pTHX_ PTR_TBL_t *const tbl, const void *const oldsv, void *const newsv);
2467 #define PERL_ARGS_ASSERT_PTR_TABLE_STORE        \
2468         assert(tbl); assert(newsv)
2469 PERL_CALLCONV void      Perl_push_scope(pTHX);
2470 PERL_CALLCONV char*     Perl_pv_display(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim);
2471 #define PERL_ARGS_ASSERT_PV_DISPLAY     \
2472         assert(dsv); assert(pv)
2473 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);
2474 #define PERL_ARGS_ASSERT_PV_ESCAPE      \
2475         assert(str)
2476 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);
2477 #define PERL_ARGS_ASSERT_PV_PRETTY      \
2478         assert(dsv); assert(str)
2479 PERL_CALLCONV char*     Perl_pv_uni_display(pTHX_ SV *dsv, const U8 *spv, STRLEN len, STRLEN pvlim, UV flags);
2480 #define PERL_ARGS_ASSERT_PV_UNI_DISPLAY \
2481         assert(dsv); assert(spv)
2482 PERL_CALLCONV void      Perl_qerror(pTHX_ SV* err);
2483 #define PERL_ARGS_ASSERT_QERROR \
2484         assert(err)
2485 PERL_CALLCONV REGEXP*   Perl_re_compile(pTHX_ SV * const pattern, U32 orig_rx_flags);
2486 #define PERL_ARGS_ASSERT_RE_COMPILE     \
2487         assert(pattern)
2488 PERL_CALLCONV char*     Perl_re_intuit_start(pTHX_ REGEXP * const rx, SV* sv, const char* const strbeg, char* strpos, char* strend, const U32 flags, re_scream_pos_data *data);
2489 #define PERL_ARGS_ASSERT_RE_INTUIT_START        \
2490         assert(rx); assert(strbeg); assert(strpos); assert(strend)
2491 PERL_CALLCONV SV*       Perl_re_intuit_string(pTHX_ REGEXP  *const r);
2492 #define PERL_ARGS_ASSERT_RE_INTUIT_STRING       \
2493         assert(r)
2494 PERL_CALLCONV REGEXP*   Perl_re_op_compile(pTHX_ SV ** const patternp, int pat_count, OP *expr, const regexp_engine* eng, REGEXP *old_re, bool *is_bare_re, U32 rx_flags, U32 pm_flags);
2495 #define PERL_ARGS_ASSERT_RE_OP_COMPILE  \
2496         assert(eng)
2497 PERL_CALLCONV Malloc_t  Perl_realloc(Malloc_t where, MEM_SIZE nbytes)
2498                         __attribute__warn_unused_result__;
2499
2500 PERL_CALLCONV void      Perl_reentrant_free(pTHX);
2501 PERL_CALLCONV void      Perl_reentrant_init(pTHX);
2502 PERL_CALLCONV void*     Perl_reentrant_retry(const char *f, ...);
2503 #define PERL_ARGS_ASSERT_REENTRANT_RETRY        \
2504         assert(f)
2505 PERL_CALLCONV void      Perl_reentrant_size(pTHX);
2506 #ifndef NO_MATHOMS
2507 PERL_CALLCONV OP*       Perl_ref(pTHX_ OP* o, I32 type);
2508 #endif
2509 PERL_CALLCONV HV *      Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c, U32 flags);
2510 PERL_CALLCONV SV *      Perl_refcounted_he_fetch_pv(pTHX_ const struct refcounted_he *chain, const char *key, U32 hash, U32 flags);
2511 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_PV \
2512         assert(key)
2513 PERL_CALLCONV SV *      Perl_refcounted_he_fetch_pvn(pTHX_ const struct refcounted_he *chain, const char *keypv, STRLEN keylen, U32 hash, U32 flags);
2514 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_PVN        \
2515         assert(keypv)
2516 PERL_CALLCONV SV *      Perl_refcounted_he_fetch_sv(pTHX_ const struct refcounted_he *chain, SV *key, U32 hash, U32 flags);
2517 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_SV \
2518         assert(key)
2519 PERL_CALLCONV void      Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
2520 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_inc(pTHX_ struct refcounted_he *he);
2521 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_new_pv(pTHX_ struct refcounted_he *parent, const char *key, U32 hash, SV *value, U32 flags);
2522 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_PV   \
2523         assert(key)
2524 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_new_pvn(pTHX_ struct refcounted_he *parent, const char *keypv, STRLEN keylen, U32 hash, SV *value, U32 flags);
2525 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_PVN  \
2526         assert(keypv)
2527 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_new_sv(pTHX_ struct refcounted_he *parent, SV *key, U32 hash, SV *value, U32 flags);
2528 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_SV   \
2529         assert(key)
2530 PERL_CALLCONV SV*       Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags);
2531 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF \
2532         assert(rx)
2533 PERL_CALLCONV SV*       Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags);
2534 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL     \
2535         assert(rx)
2536 PERL_CALLCONV bool      Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags);
2537 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS  \
2538         assert(rx); assert(key)
2539 PERL_CALLCONV SV*       Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags);
2540 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH   \
2541         assert(rx); assert(namesv)
2542 PERL_CALLCONV SV*       Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags);
2543 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY        \
2544         assert(rx)
2545 PERL_CALLCONV SV*       Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags);
2546 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER    \
2547         assert(rx)
2548 PERL_CALLCONV SV*       Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags);
2549 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY \
2550         assert(rx)
2551 PERL_CALLCONV SV*       Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags);
2552 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR  \
2553         assert(rx)
2554 PERL_CALLCONV void      Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv);
2555 #define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH        \
2556         assert(rx)
2557 PERL_CALLCONV I32       Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren);
2558 #define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH       \
2559         assert(rx); assert(sv)
2560 PERL_CALLCONV void      Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value);
2561 #define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE        \
2562         assert(rx)
2563 PERL_CALLCONV SV*       Perl_reg_qr_package(pTHX_ REGEXP * const rx);
2564 #define PERL_ARGS_ASSERT_REG_QR_PACKAGE \
2565         assert(rx)
2566 PERL_CALLCONV REGEXP*   Perl_reg_temp_copy(pTHX_ REGEXP* ret_x, REGEXP* rx);
2567 #define PERL_ARGS_ASSERT_REG_TEMP_COPY  \
2568         assert(rx)
2569 PERL_CALLCONV SV*       Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **altsvp);
2570 #define PERL_ARGS_ASSERT_REGCLASS_SWASH \
2571         assert(node)
2572 PERL_CALLCONV void      Perl_regdump(pTHX_ const regexp* r);
2573 #define PERL_ARGS_ASSERT_REGDUMP        \
2574         assert(r)
2575 PERL_CALLCONV I32       Perl_regexec_flags(pTHX_ REGEXP *const rx, char *stringarg, char *strend, char *strbeg, SSize_t minend, SV *sv, void *data, U32 flags);
2576 #define PERL_ARGS_ASSERT_REGEXEC_FLAGS  \
2577         assert(rx); assert(stringarg); assert(strend); assert(strbeg); assert(sv)
2578 PERL_CALLCONV void      Perl_regfree_internal(pTHX_ REGEXP *const rx);
2579 #define PERL_ARGS_ASSERT_REGFREE_INTERNAL       \
2580         assert(rx)
2581 PERL_CALLCONV void      Perl_reginitcolors(pTHX);
2582 PERL_CALLCONV regnode*  Perl_regnext(pTHX_ regnode* p)
2583                         __attribute__warn_unused_result__;
2584
2585 PERL_CALLCONV void      Perl_repeatcpy(char* to, const char* from, I32 len, IV count);
2586 #define PERL_ARGS_ASSERT_REPEATCPY      \
2587         assert(to); assert(from)
2588 PERL_CALLCONV void      Perl_report_evil_fh(pTHX_ const GV *gv);
2589 PERL_CALLCONV void      Perl_report_uninit(pTHX_ const SV *uninit_sv);
2590 PERL_CALLCONV void      Perl_report_wrongway_fh(pTHX_ const GV *gv, const char have);
2591 PERL_CALLCONV void      Perl_require_pv(pTHX_ const char* pv);
2592 #define PERL_ARGS_ASSERT_REQUIRE_PV     \
2593         assert(pv)
2594 PERL_CALLCONV char*     Perl_rninstr(const char* big, const char* bigend, const char* little, const char* lend)
2595                         __attribute__pure__;
2596 #define PERL_ARGS_ASSERT_RNINSTR        \
2597         assert(big); assert(bigend); assert(little); assert(lend)
2598
2599 PERL_CALLCONV void      Perl_rpeep(pTHX_ OP* o);
2600 PERL_CALLCONV Sighandler_t      Perl_rsignal(pTHX_ int i, Sighandler_t t);
2601 PERL_CALLCONV int       Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
2602 PERL_CALLCONV int       Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save);
2603 #define PERL_ARGS_ASSERT_RSIGNAL_SAVE   \
2604         assert(save)
2605 PERL_CALLCONV Sighandler_t      Perl_rsignal_state(pTHX_ int i);
2606 PERL_CALLCONV int       Perl_runops_debug(pTHX);
2607 PERL_CALLCONV int       Perl_runops_standard(pTHX);
2608 PERL_CALLCONV CV*       Perl_rv2cv_op_cv(pTHX_ OP *cvop, U32 flags);
2609 #define PERL_ARGS_ASSERT_RV2CV_OP_CV    \
2610         assert(cvop)
2611 PERL_CALLCONV void      Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx);
2612 #define PERL_ARGS_ASSERT_RXRES_SAVE     \
2613         assert(rsp); assert(rx)
2614 PERL_CALLCONV Malloc_t  Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size)
2615                         __attribute__malloc__
2616                         __attribute__warn_unused_result__;
2617
2618 PERL_CALLCONV Free_t    Perl_safesysfree(Malloc_t where);
2619 PERL_CALLCONV Malloc_t  Perl_safesysmalloc(MEM_SIZE nbytes)
2620                         __attribute__malloc__
2621                         __attribute__warn_unused_result__;
2622
2623 PERL_CALLCONV Malloc_t  Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes)
2624                         __attribute__warn_unused_result__;
2625
2626 PERL_CALLCONV void      Perl_save_I16(pTHX_ I16* intp);
2627 #define PERL_ARGS_ASSERT_SAVE_I16       \
2628         assert(intp)
2629 PERL_CALLCONV void      Perl_save_I32(pTHX_ I32* intp);
2630 #define PERL_ARGS_ASSERT_SAVE_I32       \
2631         assert(intp)
2632 PERL_CALLCONV void      Perl_save_I8(pTHX_ I8* bytep);
2633 #define PERL_ARGS_ASSERT_SAVE_I8        \
2634         assert(bytep)
2635 PERL_CALLCONV void      Perl_save_adelete(pTHX_ AV *av, SSize_t key);
2636 #define PERL_ARGS_ASSERT_SAVE_ADELETE   \
2637         assert(av)
2638 /* PERL_CALLCONV void   Perl_save_aelem(pTHX_ AV* av, SSize_t idx, SV **sptr); */
2639 PERL_CALLCONV void      Perl_save_aelem_flags(pTHX_ AV* av, SSize_t idx, SV **sptr, const U32 flags);
2640 #define PERL_ARGS_ASSERT_SAVE_AELEM_FLAGS       \
2641         assert(av); assert(sptr)
2642 PERL_CALLCONV I32       Perl_save_alloc(pTHX_ I32 size, I32 pad);
2643 PERL_CALLCONV void      Perl_save_aptr(pTHX_ AV** aptr);
2644 #define PERL_ARGS_ASSERT_SAVE_APTR      \
2645         assert(aptr)
2646 PERL_CALLCONV AV*       Perl_save_ary(pTHX_ GV* gv);
2647 #define PERL_ARGS_ASSERT_SAVE_ARY       \
2648         assert(gv)
2649 PERL_CALLCONV void      Perl_save_bool(pTHX_ bool* boolp);
2650 #define PERL_ARGS_ASSERT_SAVE_BOOL      \
2651         assert(boolp)
2652 PERL_CALLCONV void      Perl_save_clearsv(pTHX_ SV** svp);
2653 #define PERL_ARGS_ASSERT_SAVE_CLEARSV   \
2654         assert(svp)
2655 PERL_CALLCONV void      Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen);
2656 #define PERL_ARGS_ASSERT_SAVE_DELETE    \
2657         assert(hv); assert(key)
2658 PERL_CALLCONV void      Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p);
2659 #define PERL_ARGS_ASSERT_SAVE_DESTRUCTOR        \
2660         assert(p)
2661 PERL_CALLCONV void      Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
2662 #ifndef NO_MATHOMS
2663 PERL_CALLCONV void      Perl_save_freeop(pTHX_ OP* o);
2664 #endif
2665 #ifndef NO_MATHOMS
2666 PERL_CALLCONV void      Perl_save_freepv(pTHX_ char* pv);
2667 #endif
2668 #ifndef NO_MATHOMS
2669 PERL_CALLCONV void      Perl_save_freesv(pTHX_ SV* sv);
2670 #endif
2671 PERL_CALLCONV void      Perl_save_generic_pvref(pTHX_ char** str);
2672 #define PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF     \
2673         assert(str)
2674 PERL_CALLCONV void      Perl_save_generic_svref(pTHX_ SV** sptr);
2675 #define PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF     \
2676         assert(sptr)
2677 PERL_CALLCONV void      Perl_save_gp(pTHX_ GV* gv, I32 empty);
2678 #define PERL_ARGS_ASSERT_SAVE_GP        \
2679         assert(gv)
2680 PERL_CALLCONV HV*       Perl_save_hash(pTHX_ GV* gv);
2681 #define PERL_ARGS_ASSERT_SAVE_HASH      \
2682         assert(gv)
2683 PERL_CALLCONV void      Perl_save_hdelete(pTHX_ HV *hv, SV *keysv);
2684 #define PERL_ARGS_ASSERT_SAVE_HDELETE   \
2685         assert(hv); assert(keysv)
2686 /* PERL_CALLCONV void   Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr); */
2687 PERL_CALLCONV void      Perl_save_helem_flags(pTHX_ HV *hv, SV *key, SV **sptr, const U32 flags);
2688 #define PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS       \
2689         assert(hv); assert(key); assert(sptr)
2690 PERL_CALLCONV void      Perl_save_hints(pTHX);
2691 PERL_CALLCONV void      Perl_save_hptr(pTHX_ HV** hptr);
2692 #define PERL_ARGS_ASSERT_SAVE_HPTR      \
2693         assert(hptr)
2694 PERL_CALLCONV void      Perl_save_int(pTHX_ int* intp);
2695 #define PERL_ARGS_ASSERT_SAVE_INT       \
2696         assert(intp)
2697 PERL_CALLCONV void      Perl_save_item(pTHX_ SV* item);
2698 #define PERL_ARGS_ASSERT_SAVE_ITEM      \
2699         assert(item)
2700 PERL_CALLCONV void      Perl_save_iv(pTHX_ IV *ivp);
2701 #define PERL_ARGS_ASSERT_SAVE_IV        \
2702         assert(ivp)
2703 PERL_CALLCONV void      Perl_save_list(pTHX_ SV** sarg, I32 maxsarg);
2704 #define PERL_ARGS_ASSERT_SAVE_LIST      \
2705         assert(sarg)
2706 PERL_CALLCONV void      Perl_save_long(pTHX_ long* longp);
2707 #define PERL_ARGS_ASSERT_SAVE_LONG      \
2708         assert(longp)
2709 #ifndef NO_MATHOMS
2710 PERL_CALLCONV void      Perl_save_mortalizesv(pTHX_ SV* sv);
2711 #define PERL_ARGS_ASSERT_SAVE_MORTALIZESV       \
2712         assert(sv)
2713 #endif
2714 PERL_CALLCONV void      Perl_save_nogv(pTHX_ GV* gv);
2715 #define PERL_ARGS_ASSERT_SAVE_NOGV      \
2716         assert(gv)
2717 #ifndef NO_MATHOMS
2718 PERL_CALLCONV void      Perl_save_op(pTHX);
2719 #endif
2720 PERL_CALLCONV void      Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
2721 PERL_CALLCONV void      Perl_save_pptr(pTHX_ char** pptr);
2722 #define PERL_ARGS_ASSERT_SAVE_PPTR      \
2723         assert(pptr)
2724 PERL_CALLCONV void      Perl_save_pushi32ptr(pTHX_ const I32 i, void *const ptr, const int type);
2725 PERL_CALLCONV void      Perl_save_pushptr(pTHX_ void *const ptr, const int type);
2726 PERL_CALLCONV void      Perl_save_pushptrptr(pTHX_ void *const ptr1, void *const ptr2, const int type);
2727 PERL_CALLCONV void      Perl_save_re_context(pTHX);
2728 PERL_CALLCONV SV*       Perl_save_scalar(pTHX_ GV* gv);
2729 #define PERL_ARGS_ASSERT_SAVE_SCALAR    \
2730         assert(gv)
2731 PERL_CALLCONV void      Perl_save_set_svflags(pTHX_ SV *sv, U32 mask, U32 val);
2732 #define PERL_ARGS_ASSERT_SAVE_SET_SVFLAGS       \
2733         assert(sv)
2734 PERL_CALLCONV void      Perl_save_shared_pvref(pTHX_ char** str);
2735 #define PERL_ARGS_ASSERT_SAVE_SHARED_PVREF      \
2736         assert(str)
2737 PERL_CALLCONV void      Perl_save_sptr(pTHX_ SV** sptr);
2738 #define PERL_ARGS_ASSERT_SAVE_SPTR      \
2739         assert(sptr)
2740 PERL_CALLCONV void      Perl_save_strlen(pTHX_ STRLEN* ptr);
2741 #define PERL_ARGS_ASSERT_SAVE_STRLEN    \
2742         assert(ptr)
2743 PERL_CALLCONV SV*       Perl_save_svref(pTHX_ SV** sptr);
2744 #define PERL_ARGS_ASSERT_SAVE_SVREF     \
2745         assert(sptr)
2746 PERL_CALLCONV void      Perl_save_vptr(pTHX_ void *ptr);
2747 #define PERL_ARGS_ASSERT_SAVE_VPTR      \
2748         assert(ptr)
2749 PERL_CALLCONV char*     Perl_savepv(pTHX_ const char* pv)
2750                         __attribute__malloc__
2751                         __attribute__warn_unused_result__;
2752
2753 PERL_CALLCONV char*     Perl_savepvn(pTHX_ const char* pv, I32 len)
2754                         __attribute__malloc__
2755                         __attribute__warn_unused_result__;
2756
2757 PERL_CALLCONV char*     Perl_savesharedpv(pTHX_ const char* pv)
2758                         __attribute__malloc__
2759                         __attribute__warn_unused_result__;
2760
2761 PERL_CALLCONV char*     Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
2762                         __attribute__malloc__
2763                         __attribute__warn_unused_result__;
2764
2765 PERL_CALLCONV char*     Perl_savesharedsvpv(pTHX_ SV *sv)
2766                         __attribute__malloc__
2767                         __attribute__warn_unused_result__;
2768 #define PERL_ARGS_ASSERT_SAVESHAREDSVPV \
2769         assert(sv)
2770
2771 PERL_CALLCONV void      Perl_savestack_grow(pTHX);
2772 PERL_CALLCONV void      Perl_savestack_grow_cnt(pTHX_ I32 need);
2773 PERL_CALLCONV char*     Perl_savesvpv(pTHX_ SV* sv)
2774                         __attribute__malloc__
2775                         __attribute__warn_unused_result__;
2776 #define PERL_ARGS_ASSERT_SAVESVPV       \
2777         assert(sv)
2778
2779 PERL_CALLCONV void      Perl_savetmps(pTHX);
2780 PERL_CALLCONV OP*       Perl_sawparens(pTHX_ OP* o);
2781 PERL_CALLCONV OP*       Perl_scalar(pTHX_ OP* o);
2782 PERL_CALLCONV OP*       Perl_scalarvoid(pTHX_ OP* o);
2783 #define PERL_ARGS_ASSERT_SCALARVOID     \
2784         assert(o)
2785 PERL_CALLCONV NV        Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
2786 #define PERL_ARGS_ASSERT_SCAN_BIN       \
2787         assert(start); assert(retlen)
2788 PERL_CALLCONV NV        Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
2789 #define PERL_ARGS_ASSERT_SCAN_HEX       \
2790         assert(start); assert(retlen)
2791 PERL_CALLCONV char*     Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp);
2792 #define PERL_ARGS_ASSERT_SCAN_NUM       \
2793         assert(s); assert(lvalp)
2794 PERL_CALLCONV NV        Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
2795 #define PERL_ARGS_ASSERT_SCAN_OCT       \
2796         assert(start); assert(retlen)
2797 PERL_CALLCONV const char*       Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv);
2798 #define PERL_ARGS_ASSERT_SCAN_VERSION   \
2799         assert(s); assert(rv)
2800 PERL_CALLCONV char*     Perl_scan_vstring(pTHX_ const char *s, const char *const e, SV *sv);
2801 #define PERL_ARGS_ASSERT_SCAN_VSTRING   \
2802         assert(s); assert(e); assert(sv)
2803 PERL_CALLCONV U32       Perl_seed(pTHX);
2804 PERL_CALLCONV void      Perl_set_caret_X(pTHX);
2805 PERL_CALLCONV void      Perl_set_context(void *t);
2806 #define PERL_ARGS_ASSERT_SET_CONTEXT    \
2807         assert(t)
2808 PERL_CALLCONV void      Perl_set_numeric_local(pTHX);
2809 PERL_CALLCONV void      Perl_set_numeric_radix(pTHX);
2810 PERL_CALLCONV void      Perl_set_numeric_standard(pTHX);
2811 PERL_CALLCONV void      Perl_setdefout(pTHX_ GV* gv);
2812 #define PERL_ARGS_ASSERT_SETDEFOUT      \
2813         assert(gv)
2814 PERL_CALLCONV HEK*      Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash);
2815 #define PERL_ARGS_ASSERT_SHARE_HEK      \
2816         assert(str)
2817 PERL_CALLCONV void      Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp);
2818 #define PERL_ARGS_ASSERT_SORTSV \
2819         assert(cmp)
2820 PERL_CALLCONV void      Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags);
2821 #define PERL_ARGS_ASSERT_SORTSV_FLAGS   \
2822         assert(cmp)
2823 PERL_CALLCONV SV**      Perl_stack_grow(pTHX_ SV** sp, SV** p, SSize_t n);
2824 #define PERL_ARGS_ASSERT_STACK_GROW     \
2825         assert(sp); assert(p)
2826 PERL_CALLCONV PerlIO*   Perl_start_glob(pTHX_ SV *tmpglob, IO *io);
2827 #define PERL_ARGS_ASSERT_START_GLOB     \
2828         assert(tmpglob); assert(io)
2829 PERL_CALLCONV I32       Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
2830 PERL_CALLCONV NV        Perl_str_to_version(pTHX_ SV *sv)
2831                         __attribute__warn_unused_result__;
2832 #define PERL_ARGS_ASSERT_STR_TO_VERSION \
2833         assert(sv)
2834
2835 PERL_CALLCONV void      Perl_sub_crush_depth(pTHX_ CV* cv);
2836 #define PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH        \
2837         assert(cv)
2838 /* PERL_CALLCONV bool   sv_2bool(pTHX_ SV *const sv); */
2839 PERL_CALLCONV bool      Perl_sv_2bool_flags(pTHX_ SV *sv, I32 flags);
2840 #define PERL_ARGS_ASSERT_SV_2BOOL_FLAGS \
2841         assert(sv)
2842 PERL_CALLCONV CV*       Perl_sv_2cv(pTHX_ SV* sv, HV **const st, GV **const gvp, const I32 lref);
2843 #define PERL_ARGS_ASSERT_SV_2CV \
2844         assert(st); assert(gvp)
2845 PERL_CALLCONV IO*       Perl_sv_2io(pTHX_ SV *const sv);
2846 #define PERL_ARGS_ASSERT_SV_2IO \
2847         assert(sv)
2848 #ifndef NO_MATHOMS
2849 PERL_CALLCONV IV        Perl_sv_2iv(pTHX_ SV *sv);
2850 #define PERL_ARGS_ASSERT_SV_2IV \
2851         assert(sv)
2852 #endif
2853 PERL_CALLCONV IV        Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
2854 #define PERL_ARGS_ASSERT_SV_2IV_FLAGS   \
2855         assert(sv)
2856 PERL_CALLCONV SV*       Perl_sv_2mortal(pTHX_ SV *const sv);
2857 PERL_CALLCONV SV*       Perl_sv_2num(pTHX_ SV *const sv);
2858 #define PERL_ARGS_ASSERT_SV_2NUM        \
2859         assert(sv)
2860 PERL_CALLCONV NV        Perl_sv_2nv_flags(pTHX_ SV *const sv, const I32 flags);
2861 #define PERL_ARGS_ASSERT_SV_2NV_FLAGS   \
2862         assert(sv)
2863 #ifndef NO_MATHOMS
2864 PERL_CALLCONV char*     Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp);
2865 #define PERL_ARGS_ASSERT_SV_2PV \
2866         assert(sv)
2867 #endif
2868 PERL_CALLCONV char*     Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
2869 #define PERL_ARGS_ASSERT_SV_2PV_FLAGS   \
2870         assert(sv)
2871 #ifndef NO_MATHOMS
2872 PERL_CALLCONV char*     Perl_sv_2pv_nolen(pTHX_ SV* sv)
2873                         __attribute__warn_unused_result__;
2874 #define PERL_ARGS_ASSERT_SV_2PV_NOLEN   \
2875         assert(sv)
2876 #endif
2877
2878 PERL_CALLCONV char*     Perl_sv_2pvbyte(pTHX_ SV *sv, STRLEN *const lp);
2879 #define PERL_ARGS_ASSERT_SV_2PVBYTE     \
2880         assert(sv)
2881 #ifndef NO_MATHOMS
2882 PERL_CALLCONV char*     Perl_sv_2pvbyte_nolen(pTHX_ SV* sv)
2883                         __attribute__warn_unused_result__;
2884 #define PERL_ARGS_ASSERT_SV_2PVBYTE_NOLEN       \
2885         assert(sv)
2886 #endif
2887
2888 PERL_CALLCONV char*     Perl_sv_2pvutf8(pTHX_ SV *sv, STRLEN *const lp);
2889 #define PERL_ARGS_ASSERT_SV_2PVUTF8     \
2890         assert(sv)
2891 #ifndef NO_MATHOMS
2892 PERL_CALLCONV char*     Perl_sv_2pvutf8_nolen(pTHX_ SV* sv)
2893                         __attribute__warn_unused_result__;
2894 #define PERL_ARGS_ASSERT_SV_2PVUTF8_NOLEN       \
2895         assert(sv)
2896 #endif
2897
2898 #ifndef NO_MATHOMS
2899 PERL_CALLCONV UV        Perl_sv_2uv(pTHX_ SV *sv);
2900 #define PERL_ARGS_ASSERT_SV_2UV \
2901         assert(sv)
2902 #endif
2903 PERL_CALLCONV UV        Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
2904 #define PERL_ARGS_ASSERT_SV_2UV_FLAGS   \
2905         assert(sv)
2906 PERL_CALLCONV void      Perl_sv_backoff(SV *const sv);
2907 #define PERL_ARGS_ASSERT_SV_BACKOFF     \
2908         assert(sv)
2909 PERL_CALLCONV SV*       Perl_sv_bless(pTHX_ SV *const sv, HV *const stash);
2910 #define PERL_ARGS_ASSERT_SV_BLESS       \
2911         assert(sv); assert(stash)
2912 PERL_CALLCONV bool      Perl_sv_cat_decode(pTHX_ SV* dsv, SV *encoding, SV *ssv, int *offset, char* tstr, int tlen);
2913 #define PERL_ARGS_ASSERT_SV_CAT_DECODE  \
2914         assert(dsv); assert(encoding); assert(ssv); assert(offset); assert(tstr)
2915 PERL_CALLCONV void      Perl_sv_catpv(pTHX_ SV *const sv, const char* ptr);
2916 #define PERL_ARGS_ASSERT_SV_CATPV       \
2917         assert(sv)
2918 PERL_CALLCONV void      Perl_sv_catpv_flags(pTHX_ SV *dstr, const char *sstr, const I32 flags);
2919 #define PERL_ARGS_ASSERT_SV_CATPV_FLAGS \
2920         assert(dstr); assert(sstr)
2921 PERL_CALLCONV void      Perl_sv_catpv_mg(pTHX_ SV *const sv, const char *const ptr);
2922 #define PERL_ARGS_ASSERT_SV_CATPV_MG    \
2923         assert(sv)
2924 PERL_CALLCONV void      Perl_sv_catpvf(pTHX_ SV *const sv, const char *const pat, ...)
2925                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
2926 #define PERL_ARGS_ASSERT_SV_CATPVF      \
2927         assert(sv); assert(pat)
2928
2929 PERL_CALLCONV void      Perl_sv_catpvf_mg(pTHX_ SV *const sv, const char *const pat, ...)
2930                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
2931 #define PERL_ARGS_ASSERT_SV_CATPVF_MG   \
2932         assert(sv); assert(pat)
2933
2934 #ifndef NO_MATHOMS
2935 PERL_CALLCONV void      Perl_sv_catpvn(pTHX_ SV *dsv, const char *sstr, STRLEN len);
2936 #define PERL_ARGS_ASSERT_SV_CATPVN      \
2937         assert(dsv); assert(sstr)
2938 #endif
2939 PERL_CALLCONV void      Perl_sv_catpvn_flags(pTHX_ SV *const dstr, const char *sstr, const STRLEN len, const I32 flags);
2940 #define PERL_ARGS_ASSERT_SV_CATPVN_FLAGS        \
2941         assert(dstr); assert(sstr)
2942 #ifndef NO_MATHOMS
2943 PERL_CALLCONV void      Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len);
2944 #define PERL_ARGS_ASSERT_SV_CATPVN_MG   \
2945         assert(sv); assert(ptr)
2946 #endif
2947 #ifndef NO_MATHOMS
2948 PERL_CALLCONV void      Perl_sv_catsv(pTHX_ SV *dstr, SV *sstr);
2949 #define PERL_ARGS_ASSERT_SV_CATSV       \
2950         assert(dstr)
2951 #endif
2952 PERL_CALLCONV void      Perl_sv_catsv_flags(pTHX_ SV *const dsv, SV *const ssv, const I32 flags);
2953 #define PERL_ARGS_ASSERT_SV_CATSV_FLAGS \
2954         assert(dsv)
2955 #ifndef NO_MATHOMS
2956 PERL_CALLCONV void      Perl_sv_catsv_mg(pTHX_ SV *dsv, SV *ssv);
2957 #define PERL_ARGS_ASSERT_SV_CATSV_MG    \
2958         assert(dsv)
2959 #endif
2960 PERL_CALLCONV void      Perl_sv_chop(pTHX_ SV *const sv, const char *const ptr);
2961 #define PERL_ARGS_ASSERT_SV_CHOP        \
2962         assert(sv)
2963 PERL_CALLCONV I32       Perl_sv_clean_all(pTHX);
2964 PERL_CALLCONV void      Perl_sv_clean_objs(pTHX);
2965 PERL_CALLCONV void      Perl_sv_clear(pTHX_ SV *const orig_sv);
2966 #define PERL_ARGS_ASSERT_SV_CLEAR       \
2967         assert(orig_sv)
2968 PERL_CALLCONV I32       Perl_sv_cmp(pTHX_ SV *const sv1, SV *const sv2);
2969 PERL_CALLCONV I32       Perl_sv_cmp_flags(pTHX_ SV *const sv1, SV *const sv2, const U32 flags);
2970 PERL_CALLCONV I32       Perl_sv_cmp_locale(pTHX_ SV *const sv1, SV *const sv2);
2971 PERL_CALLCONV I32       Perl_sv_cmp_locale_flags(pTHX_ SV *const sv1, SV *const sv2, const U32 flags);
2972 #ifndef NO_MATHOMS
2973 PERL_CALLCONV void      Perl_sv_copypv(pTHX_ SV *const dsv, SV *const ssv);
2974 #define PERL_ARGS_ASSERT_SV_COPYPV      \
2975         assert(dsv); assert(ssv)
2976 #endif
2977 PERL_CALLCONV void      Perl_sv_copypv_flags(pTHX_ SV *const dsv, SV *const ssv, const I32 flags);
2978 #define PERL_ARGS_ASSERT_SV_COPYPV_FLAGS        \
2979         assert(dsv); assert(ssv)
2980 /* PERL_CALLCONV void   Perl_sv_copypv_nomg(pTHX_ SV *const dsv, SV *const ssv); */
2981 PERL_CALLCONV void      Perl_sv_dec(pTHX_ SV *const sv);
2982 PERL_CALLCONV void      Perl_sv_dec_nomg(pTHX_ SV *const sv);
2983 PERL_CALLCONV void      Perl_sv_del_backref(pTHX_ SV *const tsv, SV *const sv);
2984 #define PERL_ARGS_ASSERT_SV_DEL_BACKREF \
2985         assert(tsv); assert(sv)
2986 PERL_CALLCONV bool      Perl_sv_derived_from(pTHX_ SV* sv, const char *const name)
2987                         __attribute__warn_unused_result__;
2988 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM        \
2989         assert(sv); assert(name)
2990
2991 PERL_CALLCONV bool      Perl_sv_derived_from_pv(pTHX_ SV* sv, const char *const name, U32 flags)
2992                         __attribute__warn_unused_result__;
2993 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM_PV     \
2994         assert(sv); assert(name)
2995
2996 PERL_CALLCONV bool      Perl_sv_derived_from_pvn(pTHX_ SV* sv, const char *const name, const STRLEN len, U32 flags)
2997                         __attribute__warn_unused_result__;
2998 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM_PVN    \
2999         assert(sv); assert(name)
3000
3001 PERL_CALLCONV bool      Perl_sv_derived_from_sv(pTHX_ SV* sv, SV *namesv, U32 flags)
3002                         __attribute__warn_unused_result__;
3003 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM_SV     \
3004         assert(sv); assert(namesv)
3005
3006 PERL_CALLCONV bool      Perl_sv_destroyable(pTHX_ SV *sv);
3007 PERL_CALLCONV bool      Perl_sv_does(pTHX_ SV* sv, const char *const name)
3008                         __attribute__warn_unused_result__;
3009 #define PERL_ARGS_ASSERT_SV_DOES        \
3010         assert(sv); assert(name)
3011
3012 PERL_CALLCONV bool      Perl_sv_does_pv(pTHX_ SV* sv, const char *const name, U32 flags)
3013                         __attribute__warn_unused_result__;
3014 #define PERL_ARGS_ASSERT_SV_DOES_PV     \
3015         assert(sv); assert(name)
3016
3017 PERL_CALLCONV bool      Perl_sv_does_pvn(pTHX_ SV* sv, const char *const name, const STRLEN len, U32 flags)
3018                         __attribute__warn_unused_result__;
3019 #define PERL_ARGS_ASSERT_SV_DOES_PVN    \
3020         assert(sv); assert(name)
3021
3022 PERL_CALLCONV bool      Perl_sv_does_sv(pTHX_ SV* sv, SV* namesv, U32 flags)
3023                         __attribute__warn_unused_result__;
3024 #define PERL_ARGS_ASSERT_SV_DOES_SV     \
3025         assert(sv); assert(namesv)
3026
3027 PERL_CALLCONV void      Perl_sv_dump(pTHX_ SV* sv);
3028 #define PERL_ARGS_ASSERT_SV_DUMP        \
3029         assert(sv)
3030 /* PERL_CALLCONV I32    sv_eq(pTHX_ SV* sv1, SV* sv2); */
3031 PERL_CALLCONV I32       Perl_sv_eq_flags(pTHX_ SV* sv1, SV* sv2, const U32 flags);
3032 #ifndef NO_MATHOMS
3033 PERL_CALLCONV void      Perl_sv_force_normal(pTHX_ SV *sv);
3034 #define PERL_ARGS_ASSERT_SV_FORCE_NORMAL        \
3035         assert(sv)
3036 #endif
3037 PERL_CALLCONV void      Perl_sv_force_normal_flags(pTHX_ SV *const sv, const U32 flags);
3038 #define PERL_ARGS_ASSERT_SV_FORCE_NORMAL_FLAGS  \
3039         assert(sv)
3040 PERL_CALLCONV void      Perl_sv_free(pTHX_ SV *const sv);
3041 PERL_CALLCONV void      Perl_sv_free2(pTHX_ SV *const sv, const U32 refcnt);
3042 #define PERL_ARGS_ASSERT_SV_FREE2       \
3043         assert(sv)
3044 PERL_CALLCONV void      Perl_sv_free_arenas(pTHX);
3045 PERL_CALLCONV SV*       Perl_sv_get_backrefs(SV *const sv)
3046                         __attribute__pure__;
3047 #define PERL_ARGS_ASSERT_SV_GET_BACKREFS        \
3048         assert(sv)
3049
3050 PERL_CALLCONV char*     Perl_sv_gets(pTHX_ SV *const sv, PerlIO *const fp, I32 append);
3051 #define PERL_ARGS_ASSERT_SV_GETS        \
3052         assert(sv); assert(fp)
3053 PERL_CALLCONV char*     Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen);
3054 #define PERL_ARGS_ASSERT_SV_GROW        \
3055         assert(sv)
3056 PERL_CALLCONV void      Perl_sv_inc(pTHX_ SV *const sv);
3057 PERL_CALLCONV void      Perl_sv_inc_nomg(pTHX_ SV *const sv);
3058 #ifndef NO_MATHOMS
3059 PERL_CALLCONV void      Perl_sv_insert(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen);
3060 #define PERL_ARGS_ASSERT_SV_INSERT      \
3061         assert(bigstr); assert(little)
3062 #endif
3063 PERL_CALLCONV void      Perl_sv_insert_flags(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen, const U32 flags);
3064 #define PERL_ARGS_ASSERT_SV_INSERT_FLAGS        \
3065         assert(bigstr); assert(little)
3066 PERL_CALLCONV int       Perl_sv_isa(pTHX_ SV* sv, const char *const name);
3067 #define PERL_ARGS_ASSERT_SV_ISA \
3068         assert(name)
3069 PERL_CALLCONV int       Perl_sv_isobject(pTHX_ SV* sv);
3070 PERL_CALLCONV IV        Perl_sv_iv(pTHX_ SV* sv);
3071 #define PERL_ARGS_ASSERT_SV_IV  \
3072         assert(sv)
3073 PERL_CALLCONV STRLEN    Perl_sv_len(pTHX_ SV *const sv);
3074 PERL_CALLCONV STRLEN    Perl_sv_len_utf8(pTHX_ SV *const sv);
3075 PERL_CALLCONV STRLEN    Perl_sv_len_utf8_nomg(pTHX_ SV *const sv);
3076 #define PERL_ARGS_ASSERT_SV_LEN_UTF8_NOMG       \
3077         assert(sv)
3078 PERL_CALLCONV void      Perl_sv_magic(pTHX_ SV *const sv, SV *const obj, const int how, const char *const name, const I32 namlen);
3079 #define PERL_ARGS_ASSERT_SV_MAGIC       \
3080         assert(sv)
3081 PERL_CALLCONV MAGIC *   Perl_sv_magicext(pTHX_ SV *const sv, SV *const obj, const int how, const MGVTBL *const vtbl, const char *const name, const I32 namlen);
3082 #define PERL_ARGS_ASSERT_SV_MAGICEXT    \
3083         assert(sv)
3084 PERL_CALLCONV MAGIC *   Perl_sv_magicext_mglob(pTHX_ SV *sv);
3085 #define PERL_ARGS_ASSERT_SV_MAGICEXT_MGLOB      \
3086         assert(sv)
3087 #ifndef NO_MATHOMS
3088 PERL_CALLCONV SV*       Perl_sv_mortalcopy(pTHX_ SV *const oldsv)
3089                         __attribute__warn_unused_result__;
3090 #endif
3091
3092 PERL_CALLCONV SV*       Perl_sv_mortalcopy_flags(pTHX_ SV *const oldsv, U32 flags)
3093                         __attribute__warn_unused_result__;
3094
3095 PERL_CALLCONV SV*       Perl_sv_newmortal(pTHX)
3096                         __attribute__warn_unused_result__;
3097
3098 PERL_CALLCONV SV*       Perl_sv_newref(pTHX_ SV *const sv);
3099 #ifndef NO_MATHOMS
3100 PERL_CALLCONV void      Perl_sv_nolocking(pTHX_ SV *sv);
3101 #endif
3102 PERL_CALLCONV void      Perl_sv_nosharing(pTHX_ SV *sv);
3103 #ifndef NO_MATHOMS
3104 PERL_CALLCONV void      Perl_sv_nounlocking(pTHX_ SV *sv);
3105 #endif
3106 PERL_CALLCONV NV        Perl_sv_nv(pTHX_ SV* sv);
3107 #define PERL_ARGS_ASSERT_SV_NV  \
3108         assert(sv)
3109 PERL_CALLCONV char*     Perl_sv_peek(pTHX_ SV* sv);
3110 PERL_CALLCONV void      Perl_sv_pos_b2u(pTHX_ SV *const sv, I32 *const offsetp);
3111 #define PERL_ARGS_ASSERT_SV_POS_B2U     \
3112         assert(offsetp)
3113 PERL_CALLCONV STRLEN    Perl_sv_pos_b2u_flags(pTHX_ SV *const sv, STRLEN const offset, U32 flags);
3114 #define PERL_ARGS_ASSERT_SV_POS_B2U_FLAGS       \
3115         assert(sv)
3116 PERL_CALLCONV void      Perl_sv_pos_u2b(pTHX_ SV *const sv, I32 *const offsetp, I32 *const lenp);
3117 #define PERL_ARGS_ASSERT_SV_POS_U2B     \
3118         assert(offsetp)
3119 PERL_CALLCONV STRLEN    Perl_sv_pos_u2b_flags(pTHX_ SV *const sv, STRLEN uoffset, STRLEN *const lenp, U32 flags);
3120 #define PERL_ARGS_ASSERT_SV_POS_U2B_FLAGS       \
3121         assert(sv)
3122 #ifndef NO_MATHOMS
3123 PERL_CALLCONV char*     Perl_sv_pv(pTHX_ SV *sv)
3124                         __attribute__warn_unused_result__;
3125 #define PERL_ARGS_ASSERT_SV_PV  \
3126         assert(sv)
3127 #endif
3128
3129 #ifndef NO_MATHOMS
3130 PERL_CALLCONV char*     Perl_sv_pvbyte(pTHX_ SV *sv)
3131                         __attribute__warn_unused_result__;
3132 #define PERL_ARGS_ASSERT_SV_PVBYTE      \
3133         assert(sv)
3134 #endif
3135
3136 PERL_CALLCONV char*     Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp);
3137 #define PERL_ARGS_ASSERT_SV_PVBYTEN     \
3138         assert(sv); assert(lp)
3139 PERL_CALLCONV char*     Perl_sv_pvbyten_force(pTHX_ SV *const sv, STRLEN *const lp);
3140 #define PERL_ARGS_ASSERT_SV_PVBYTEN_FORCE       \
3141         assert(sv)
3142 PERL_CALLCONV char*     Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp);
3143 #define PERL_ARGS_ASSERT_SV_PVN \
3144         assert(sv); assert(lp)
3145 #ifndef NO_MATHOMS
3146 PERL_CALLCONV char*     Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp);
3147 #define PERL_ARGS_ASSERT_SV_PVN_FORCE   \
3148         assert(sv)
3149 #endif
3150 PERL_CALLCONV char*     Perl_sv_pvn_force_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
3151 #define PERL_ARGS_ASSERT_SV_PVN_FORCE_FLAGS     \
3152         assert(sv)
3153 PERL_CALLCONV char*     Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp);
3154 #define PERL_ARGS_ASSERT_SV_PVN_NOMG    \
3155         assert(sv)
3156 #ifndef NO_MATHOMS
3157 PERL_CALLCONV char*     Perl_sv_pvutf8(pTHX_ SV *sv)
3158                         __attribute__warn_unused_result__;
3159 #define PERL_ARGS_ASSERT_SV_PVUTF8      \
3160         assert(sv)
3161 #endif
3162
3163 PERL_CALLCONV char*     Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp);
3164 #define PERL_ARGS_ASSERT_SV_PVUTF8N     \
3165         assert(sv); assert(lp)
3166 PERL_CALLCONV char*     Perl_sv_pvutf8n_force(pTHX_ SV *const sv, STRLEN *const lp);
3167 #define PERL_ARGS_ASSERT_SV_PVUTF8N_FORCE       \
3168         assert(sv)
3169 PERL_CALLCONV char*     Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding);
3170 #define PERL_ARGS_ASSERT_SV_RECODE_TO_UTF8      \
3171         assert(sv); assert(encoding)
3172 PERL_CALLCONV SV*       Perl_sv_ref(pTHX_ SV *dst, const SV *const sv, const int ob);
3173 #define PERL_ARGS_ASSERT_SV_REF \
3174         assert(sv)
3175 PERL_CALLCONV const char*       Perl_sv_reftype(pTHX_ const SV *const sv, const int ob)
3176                         __attribute__warn_unused_result__;
3177 #define PERL_ARGS_ASSERT_SV_REFTYPE     \
3178         assert(sv)
3179
3180 PERL_CALLCONV void      Perl_sv_replace(pTHX_ SV *const sv, SV *const nsv);
3181 #define PERL_ARGS_ASSERT_SV_REPLACE     \
3182         assert(sv); assert(nsv)
3183 PERL_CALLCONV void      Perl_sv_report_used(pTHX);
3184 PERL_CALLCONV void      Perl_sv_reset(pTHX_ const char* s, HV *const stash);
3185 #define PERL_ARGS_ASSERT_SV_RESET       \
3186         assert(s)
3187 PERL_CALLCONV void      Perl_sv_resetpvn(pTHX_ const char* s, STRLEN len, HV *const stash);
3188 PERL_CALLCONV SV*       Perl_sv_rvweaken(pTHX_ SV *const sv);
3189 #define PERL_ARGS_ASSERT_SV_RVWEAKEN    \
3190         assert(sv)
3191 PERL_CALLCONV void      Perl_sv_sethek(pTHX_ SV *const sv, const HEK *const hek);
3192 #define PERL_ARGS_ASSERT_SV_SETHEK      \
3193         assert(sv)
3194 PERL_CALLCONV void      Perl_sv_setiv(pTHX_ SV *const sv, const IV num);
3195 #define PERL_ARGS_ASSERT_SV_SETIV       \
3196         assert(sv)
3197 PERL_CALLCONV void      Perl_sv_setiv_mg(pTHX_ SV *const sv, const IV i);
3198 #define PERL_ARGS_ASSERT_SV_SETIV_MG    \
3199         assert(sv)
3200 PERL_CALLCONV void      Perl_sv_setnv(pTHX_ SV *const sv, const NV num);
3201 #define PERL_ARGS_ASSERT_SV_SETNV       \
3202         assert(sv)
3203 PERL_CALLCONV void      Perl_sv_setnv_mg(pTHX_ SV *const sv, const NV num);
3204 #define PERL_ARGS_ASSERT_SV_SETNV_MG    \
3205         assert(sv)
3206 PERL_CALLCONV void      Perl_sv_setpv(pTHX_ SV *const sv, const char *const ptr);
3207 #define PERL_ARGS_ASSERT_SV_SETPV       \
3208         assert(sv)
3209 PERL_CALLCONV void      Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr);
3210 #define PERL_ARGS_ASSERT_SV_SETPV_MG    \
3211         assert(sv)
3212 PERL_CALLCONV void      Perl_sv_setpvf(pTHX_ SV *const sv, const char *const pat, ...)
3213                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3214 #define PERL_ARGS_ASSERT_SV_SETPVF      \
3215         assert(sv); assert(pat)
3216
3217 PERL_CALLCONV void      Perl_sv_setpvf_mg(pTHX_ SV *const sv, const char *const pat, ...)
3218                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3219 #define PERL_ARGS_ASSERT_SV_SETPVF_MG   \
3220         assert(sv); assert(pat)
3221
3222 #ifndef NO_MATHOMS
3223 PERL_CALLCONV void      Perl_sv_setpviv(pTHX_ SV *const sv, const IV num);
3224 #define PERL_ARGS_ASSERT_SV_SETPVIV     \
3225         assert(sv)
3226 #endif
3227 #ifndef NO_MATHOMS
3228 PERL_CALLCONV void      Perl_sv_setpviv_mg(pTHX_ SV *const sv, const IV iv);
3229 #define PERL_ARGS_ASSERT_SV_SETPVIV_MG  \
3230         assert(sv)
3231 #endif
3232 PERL_CALLCONV void      Perl_sv_setpvn(pTHX_ SV *const sv, const char *const ptr, const STRLEN len);
3233 #define PERL_ARGS_ASSERT_SV_SETPVN      \
3234         assert(sv)
3235 PERL_CALLCONV void      Perl_sv_setpvn_mg(pTHX_ SV *const sv, const char *const ptr, const STRLEN len);
3236 #define PERL_ARGS_ASSERT_SV_SETPVN_MG   \
3237         assert(sv); assert(ptr)
3238 PERL_CALLCONV SV*       Perl_sv_setref_iv(pTHX_ SV *const rv, const char *const classname, const IV iv);
3239 #define PERL_ARGS_ASSERT_SV_SETREF_IV   \
3240         assert(rv)
3241 PERL_CALLCONV SV*       Perl_sv_setref_nv(pTHX_ SV *const rv, const char *const classname, const NV nv);
3242 #define PERL_ARGS_ASSERT_SV_SETREF_NV   \
3243         assert(rv)
3244 PERL_CALLCONV SV*       Perl_sv_setref_pv(pTHX_ SV *const rv, const char *const classname, void *const pv);
3245 #define PERL_ARGS_ASSERT_SV_SETREF_PV   \
3246         assert(rv)
3247 PERL_CALLCONV SV*       Perl_sv_setref_pvn(pTHX_ SV *const rv, const char *const classname, const char *const pv, const STRLEN n);
3248 #define PERL_ARGS_ASSERT_SV_SETREF_PVN  \
3249         assert(rv); assert(pv)
3250 PERL_CALLCONV SV*       Perl_sv_setref_uv(pTHX_ SV *const rv, const char *const classname, const UV uv);
3251 #define PERL_ARGS_ASSERT_SV_SETREF_UV   \
3252         assert(rv)
3253 #ifndef NO_MATHOMS
3254 PERL_CALLCONV void      Perl_sv_setsv(pTHX_ SV *dstr, SV *sstr);
3255 #define PERL_ARGS_ASSERT_SV_SETSV       \
3256         assert(dstr)
3257 #endif
3258 PERL_CALLCONV void      Perl_sv_setsv_flags(pTHX_ SV *dstr, SV *sstr, const I32 flags);
3259 #define PERL_ARGS_ASSERT_SV_SETSV_FLAGS \
3260         assert(dstr)
3261 PERL_CALLCONV void      Perl_sv_setsv_mg(pTHX_ SV *const dstr, SV *const sstr);
3262 #define PERL_ARGS_ASSERT_SV_SETSV_MG    \
3263         assert(dstr)
3264 PERL_CALLCONV void      Perl_sv_setuv(pTHX_ SV *const sv, const UV num);
3265 #define PERL_ARGS_ASSERT_SV_SETUV       \
3266         assert(sv)
3267 PERL_CALLCONV void      Perl_sv_setuv_mg(pTHX_ SV *const sv, const UV u);
3268 #define PERL_ARGS_ASSERT_SV_SETUV_MG    \
3269         assert(sv)
3270 #ifndef NO_MATHOMS
3271 PERL_CALLCONV void      Perl_sv_taint(pTHX_ SV* sv);
3272 #define PERL_ARGS_ASSERT_SV_TAINT       \
3273         assert(sv)
3274 #endif
3275 PERL_CALLCONV bool      Perl_sv_tainted(pTHX_ SV *const sv)
3276                         __attribute__warn_unused_result__;
3277 #define PERL_ARGS_ASSERT_SV_TAINTED     \
3278         assert(sv)
3279
3280 PERL_CALLCONV I32       Perl_sv_true(pTHX_ SV *const sv);
3281 PERL_CALLCONV char*     Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim, UV flags)
3282                         __attribute__warn_unused_result__;
3283 #define PERL_ARGS_ASSERT_SV_UNI_DISPLAY \
3284         assert(dsv); assert(ssv)
3285
3286 PERL_CALLCONV int       Perl_sv_unmagic(pTHX_ SV *const sv, const int type);
3287 #define PERL_ARGS_ASSERT_SV_UNMAGIC     \
3288         assert(sv)
3289 PERL_CALLCONV int       Perl_sv_unmagicext(pTHX_ SV *const sv, const int type, MGVTBL *vtbl);
3290 #define PERL_ARGS_ASSERT_SV_UNMAGICEXT  \
3291         assert(sv)
3292 #ifndef NO_MATHOMS
3293 PERL_CALLCONV void      Perl_sv_unref(pTHX_ SV* sv);
3294 #define PERL_ARGS_ASSERT_SV_UNREF       \
3295         assert(sv)
3296 #endif
3297 PERL_CALLCONV void      Perl_sv_unref_flags(pTHX_ SV *const ref, const U32 flags);
3298 #define PERL_ARGS_ASSERT_SV_UNREF_FLAGS \
3299         assert(ref)
3300 PERL_CALLCONV void      Perl_sv_untaint(pTHX_ SV *const sv);
3301 #define PERL_ARGS_ASSERT_SV_UNTAINT     \
3302         assert(sv)
3303 PERL_CALLCONV void      Perl_sv_upgrade(pTHX_ SV *const sv, svtype new_type);
3304 #define PERL_ARGS_ASSERT_SV_UPGRADE     \
3305         assert(sv)
3306 #ifndef NO_MATHOMS
3307 PERL_CALLCONV void      Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len);
3308 #define PERL_ARGS_ASSERT_SV_USEPVN      \
3309         assert(sv)
3310 #endif
3311 PERL_CALLCONV void      Perl_sv_usepvn_flags(pTHX_ SV *const sv, char* ptr, const STRLEN len, const U32 flags);
3312 #define PERL_ARGS_ASSERT_SV_USEPVN_FLAGS        \
3313         assert(sv)
3314 #ifndef NO_MATHOMS
3315 PERL_CALLCONV void      Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len);
3316 #define PERL_ARGS_ASSERT_SV_USEPVN_MG   \
3317         assert(sv)
3318 #endif
3319 PERL_CALLCONV bool      Perl_sv_utf8_decode(pTHX_ SV *const sv);
3320 #define PERL_ARGS_ASSERT_SV_UTF8_DECODE \
3321         assert(sv)
3322 PERL_CALLCONV bool      Perl_sv_utf8_downgrade(pTHX_ SV *const sv, const bool fail_ok);
3323 #define PERL_ARGS_ASSERT_SV_UTF8_DOWNGRADE      \
3324         assert(sv)
3325 PERL_CALLCONV void      Perl_sv_utf8_encode(pTHX_ SV *const sv);
3326 #define PERL_ARGS_ASSERT_SV_UTF8_ENCODE \
3327         assert(sv)
3328 #ifndef NO_MATHOMS
3329 PERL_CALLCONV STRLEN    Perl_sv_utf8_upgrade(pTHX_ SV *sv);
3330 #define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE        \
3331         assert(sv)
3332 #endif
3333 /* PERL_CALLCONV STRLEN Perl_sv_utf8_upgrade_flags(pTHX_ SV *const sv, const I32 flags); */
3334 PERL_CALLCONV STRLEN    Perl_sv_utf8_upgrade_flags_grow(pTHX_ SV *const sv, const I32 flags, STRLEN extra);
3335 #define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE_FLAGS_GROW     \
3336         assert(sv)
3337 /* PERL_CALLCONV STRLEN sv_utf8_upgrade_nomg(pTHX_ SV *sv); */
3338 PERL_CALLCONV UV        Perl_sv_uv(pTHX_ SV* sv);
3339 #define PERL_ARGS_ASSERT_SV_UV  \
3340         assert(sv)
3341 PERL_CALLCONV void      Perl_sv_vcatpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3342 #define PERL_ARGS_ASSERT_SV_VCATPVF     \
3343         assert(sv); assert(pat)
3344 PERL_CALLCONV void      Perl_sv_vcatpvf_mg(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3345 #define PERL_ARGS_ASSERT_SV_VCATPVF_MG  \
3346         assert(sv); assert(pat)
3347 PERL_CALLCONV void      Perl_sv_vcatpvfn(pTHX_ SV *const sv, const char *const pat, const STRLEN patlen, va_list *const args, SV **const svargs, const I32 svmax, bool *const maybe_tainted);
3348 #define PERL_ARGS_ASSERT_SV_VCATPVFN    \
3349         assert(sv); assert(pat)
3350 PERL_CALLCONV void      Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN patlen, va_list *const args, SV **const svargs, const I32 svmax, bool *const maybe_tainted, const U32 flags);
3351 #define PERL_ARGS_ASSERT_SV_VCATPVFN_FLAGS      \
3352         assert(sv); assert(pat)
3353 PERL_CALLCONV void      Perl_sv_vsetpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3354 #define PERL_ARGS_ASSERT_SV_VSETPVF     \
3355         assert(sv); assert(pat)
3356 PERL_CALLCONV void      Perl_sv_vsetpvf_mg(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3357 #define PERL_ARGS_ASSERT_SV_VSETPVF_MG  \
3358         assert(sv); assert(pat)
3359 PERL_CALLCONV void      Perl_sv_vsetpvfn(pTHX_ SV *const sv, const char *const pat, const STRLEN patlen, va_list *const args, SV **const svargs, const I32 svmax, bool *const maybe_tainted);
3360 #define PERL_ARGS_ASSERT_SV_VSETPVFN    \
3361         assert(sv); assert(pat)
3362 PERL_CALLCONV UV        Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8);
3363 #define PERL_ARGS_ASSERT_SWASH_FETCH    \
3364         assert(swash); assert(ptr)
3365 PERL_CALLCONV SV*       Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* listsv, I32 minbits, I32 none)
3366                         __attribute__warn_unused_result__;
3367 #define PERL_ARGS_ASSERT_SWASH_INIT     \
3368         assert(pkg); assert(name); assert(listsv)
3369
3370 PERL_CALLCONV void      Perl_sync_locale(pTHX);
3371 PERL_CALLCONV void      Perl_sys_init(int* argc, char*** argv);
3372 #define PERL_ARGS_ASSERT_SYS_INIT       \
3373         assert(argc); assert(argv)
3374 PERL_CALLCONV void      Perl_sys_init3(int* argc, char*** argv, char*** env);
3375 #define PERL_ARGS_ASSERT_SYS_INIT3      \
3376         assert(argc); assert(argv); assert(env)
3377 PERL_CALLCONV void      Perl_sys_term(void);
3378 PERL_CALLCONV void      Perl_taint_env(pTHX);
3379 PERL_CALLCONV void      Perl_taint_proper(pTHX_ const char* f, const char *const s);
3380 #define PERL_ARGS_ASSERT_TAINT_PROPER   \
3381         assert(s)
3382 PERL_CALLCONV OP *      Perl_tied_method(pTHX_ SV *methname, SV **sp, SV *const sv, const MAGIC *const mg, const U32 flags, U32 argc, ...);
3383 #define PERL_ARGS_ASSERT_TIED_METHOD    \
3384         assert(methname); assert(sp); assert(sv); assert(mg)
3385 PERL_CALLCONV SSize_t   Perl_tmps_grow_p(pTHX_ SSize_t ix);
3386 /* PERL_CALLCONV UV     Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp); */
3387 PERL_CALLCONV UV        Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp);
3388 #define PERL_ARGS_ASSERT_TO_UNI_LOWER   \
3389         assert(p); assert(lenp)
3390 PERL_CALLCONV U32       Perl_to_uni_lower_lc(pTHX_ U32 c)
3391                         __attribute__deprecated__
3392                         __attribute__warn_unused_result__
3393                         __attribute__pure__;
3394
3395 PERL_CALLCONV UV        Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp);
3396 #define PERL_ARGS_ASSERT_TO_UNI_TITLE   \
3397         assert(p); assert(lenp)
3398 PERL_CALLCONV U32       Perl_to_uni_title_lc(pTHX_ U32 c)
3399                         __attribute__deprecated__
3400                         __attribute__warn_unused_result__
3401                         __attribute__pure__;
3402
3403 PERL_CALLCONV UV        Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp);
3404 #define PERL_ARGS_ASSERT_TO_UNI_UPPER   \
3405         assert(p); assert(lenp)
3406 PERL_CALLCONV U32       Perl_to_uni_upper_lc(pTHX_ U32 c)
3407                         __attribute__deprecated__
3408                         __attribute__warn_unused_result__
3409                         __attribute__pure__;
3410
3411 PERL_CALLCONV UV        Perl_to_utf8_case(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, SV **swashp, const char *normal, const char *special)
3412                         __attribute__deprecated__;
3413 #define PERL_ARGS_ASSERT_TO_UTF8_CASE   \
3414         assert(p); assert(ustrp); assert(swashp); assert(normal)
3415
3416 #ifndef NO_MATHOMS
3417 PERL_CALLCONV UV        Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
3418 #define PERL_ARGS_ASSERT_TO_UTF8_FOLD   \
3419         assert(p); assert(ustrp)
3420 #endif
3421 #ifndef NO_MATHOMS
3422 PERL_CALLCONV UV        Perl_to_utf8_lower(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
3423 #define PERL_ARGS_ASSERT_TO_UTF8_LOWER  \
3424         assert(p); assert(ustrp)
3425 #endif
3426 #ifndef NO_MATHOMS
3427 PERL_CALLCONV UV        Perl_to_utf8_title(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
3428 #define PERL_ARGS_ASSERT_TO_UTF8_TITLE  \
3429         assert(p); assert(ustrp)
3430 #endif
3431 #ifndef NO_MATHOMS
3432 PERL_CALLCONV UV        Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp);
3433 #define PERL_ARGS_ASSERT_TO_UTF8_UPPER  \
3434         assert(p); assert(ustrp)
3435 #endif
3436 PERL_CALLCONV bool      Perl_try_amagic_bin(pTHX_ int method, int flags);
3437 PERL_CALLCONV bool      Perl_try_amagic_un(pTHX_ int method, int flags);
3438 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);
3439 #define PERL_ARGS_ASSERT_UNPACK_STR     \
3440         assert(pat); assert(patend); assert(s); assert(strend)
3441 PERL_CALLCONV I32       Perl_unpackstring(pTHX_ const char *pat, const char *patend, const char *s, const char *strend, U32 flags);
3442 #define PERL_ARGS_ASSERT_UNPACKSTRING   \
3443         assert(pat); assert(patend); assert(s); assert(strend)
3444 PERL_CALLCONV void      Perl_unshare_hek(pTHX_ HEK* hek);
3445 PERL_CALLCONV void      Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
3446 PERL_CALLCONV SV*       Perl_upg_version(pTHX_ SV *ver, bool qv);
3447 #define PERL_ARGS_ASSERT_UPG_VERSION    \
3448         assert(ver)
3449 PERL_CALLCONV U8*       Perl_utf16_to_utf8(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
3450 #define PERL_ARGS_ASSERT_UTF16_TO_UTF8  \
3451         assert(p); assert(d); assert(newlen)
3452 PERL_CALLCONV U8*       Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
3453 #define PERL_ARGS_ASSERT_UTF16_TO_UTF8_REVERSED \
3454         assert(p); assert(d); assert(newlen)
3455 PERL_STATIC_INLINE IV   Perl_utf8_distance(pTHX_ const U8 *a, const U8 *b)
3456                         __attribute__warn_unused_result__
3457                         __attribute__pure__;
3458 #define PERL_ARGS_ASSERT_UTF8_DISTANCE  \
3459         assert(a); assert(b)
3460
3461 PERL_STATIC_INLINE U8*  Perl_utf8_hop(const U8 *s, SSize_t off)
3462                         __attribute__warn_unused_result__
3463                         __attribute__pure__;
3464 #define PERL_ARGS_ASSERT_UTF8_HOP       \
3465         assert(s)
3466
3467 PERL_CALLCONV STRLEN    Perl_utf8_length(pTHX_ const U8* s, const U8 *e)
3468                         __attribute__warn_unused_result__
3469                         __attribute__pure__;
3470 #define PERL_ARGS_ASSERT_UTF8_LENGTH    \
3471         assert(s); assert(e)
3472
3473 PERL_CALLCONV U8*       Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *len);
3474 #define PERL_ARGS_ASSERT_UTF8_TO_BYTES  \
3475         assert(s); assert(len)
3476 PERL_CALLCONV UV        Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen)
3477                         __attribute__deprecated__;
3478 #define PERL_ARGS_ASSERT_UTF8_TO_UVCHR  \
3479         assert(s)
3480
3481 /* PERL_CALLCONV UV     utf8_to_uvchr_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen); */
3482 PERL_CALLCONV UV        Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
3483                         __attribute__deprecated__;
3484 #define PERL_ARGS_ASSERT_UTF8_TO_UVUNI  \
3485         assert(s)
3486
3487 PERL_CALLCONV UV        Perl_utf8_to_uvuni_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen)
3488                         __attribute__deprecated__;
3489 #define PERL_ARGS_ASSERT_UTF8_TO_UVUNI_BUF      \
3490         assert(s); assert(send)
3491
3492 PERL_CALLCONV UV        Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags);
3493 #define PERL_ARGS_ASSERT_UTF8N_TO_UVCHR \
3494         assert(s)
3495 PERL_CALLCONV UV        Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags);
3496 #define PERL_ARGS_ASSERT_UTF8N_TO_UVUNI \
3497         assert(s)
3498 PERL_CALLCONV void      Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg);
3499 #define PERL_ARGS_ASSERT_UTILIZE        \
3500         assert(idop)
3501 /* PERL_CALLCONV U8*    uvchr_to_utf8(pTHX_ U8 *d, UV uv); */
3502 /* PERL_CALLCONV U8*    uvchr_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags); */
3503 PERL_CALLCONV U8*       Perl_uvoffuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags);
3504 #define PERL_ARGS_ASSERT_UVOFFUNI_TO_UTF8_FLAGS \
3505         assert(d)
3506 PERL_CALLCONV U8*       Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv);
3507 #define PERL_ARGS_ASSERT_UVUNI_TO_UTF8  \
3508         assert(d)
3509 PERL_CALLCONV U8*       Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags);
3510 #define PERL_ARGS_ASSERT_UVUNI_TO_UTF8_FLAGS    \
3511         assert(d)
3512 PERL_STATIC_INLINE UV   Perl_valid_utf8_to_uvchr(const U8 *s, STRLEN *retlen)
3513                         __attribute__warn_unused_result__;
3514 #define PERL_ARGS_ASSERT_VALID_UTF8_TO_UVCHR    \
3515         assert(s)
3516
3517 PERL_CALLCONV UV        Perl_valid_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
3518                         __attribute__deprecated__;
3519 #define PERL_ARGS_ASSERT_VALID_UTF8_TO_UVUNI    \
3520         assert(s)
3521
3522 PERL_CALLCONV bool      Perl_validate_proto(pTHX_ SV *name, SV *proto, bool warn);
3523 #define PERL_ARGS_ASSERT_VALIDATE_PROTO \
3524         assert(name)
3525 PERL_CALLCONV int       Perl_vcmp(pTHX_ SV *lhv, SV *rhv);
3526 #define PERL_ARGS_ASSERT_VCMP   \
3527         assert(lhv); assert(rhv)
3528 PERL_CALLCONV_NO_RET void       Perl_vcroak(pTHX_ const char* pat, va_list* args)
3529                         __attribute__noreturn__;
3530
3531 PERL_CALLCONV void      Perl_vdeb(pTHX_ const char* pat, va_list* args);
3532 #define PERL_ARGS_ASSERT_VDEB   \
3533         assert(pat)
3534 PERL_CALLCONV char*     Perl_vform(pTHX_ const char* pat, va_list* args);
3535 #define PERL_ARGS_ASSERT_VFORM  \
3536         assert(pat)
3537 PERL_CALLCONV void      Perl_vivify_defelem(pTHX_ SV* sv);
3538 #define PERL_ARGS_ASSERT_VIVIFY_DEFELEM \
3539         assert(sv)
3540 PERL_CALLCONV SV*       Perl_vivify_ref(pTHX_ SV* sv, U32 to_what)
3541                         __attribute__warn_unused_result__;
3542 #define PERL_ARGS_ASSERT_VIVIFY_REF     \
3543         assert(sv)
3544
3545 PERL_CALLCONV void      Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args);
3546 #define PERL_ARGS_ASSERT_VLOAD_MODULE   \
3547         assert(name)
3548 PERL_CALLCONV SV*       Perl_vmess(pTHX_ const char* pat, va_list* args);
3549 #define PERL_ARGS_ASSERT_VMESS  \
3550         assert(pat)
3551 PERL_CALLCONV SV*       Perl_vnewSVpvf(pTHX_ const char *const pat, va_list *const args)
3552                         __attribute__warn_unused_result__;
3553 #define PERL_ARGS_ASSERT_VNEWSVPVF      \
3554         assert(pat)
3555
3556 PERL_CALLCONV SV*       Perl_vnormal(pTHX_ SV *vs);
3557 #define PERL_ARGS_ASSERT_VNORMAL        \
3558         assert(vs)
3559 PERL_CALLCONV SV*       Perl_vnumify(pTHX_ SV *vs);
3560 #define PERL_ARGS_ASSERT_VNUMIFY        \
3561         assert(vs)
3562 PERL_CALLCONV SV*       Perl_vstringify(pTHX_ SV *vs);
3563 #define PERL_ARGS_ASSERT_VSTRINGIFY     \
3564         assert(vs)
3565 PERL_CALLCONV SV*       Perl_vverify(pTHX_ SV *vs);
3566 #define PERL_ARGS_ASSERT_VVERIFY        \
3567         assert(vs)
3568 PERL_CALLCONV void      Perl_vwarn(pTHX_ const char* pat, va_list* args);
3569 #define PERL_ARGS_ASSERT_VWARN  \
3570         assert(pat)
3571 PERL_CALLCONV void      Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args);
3572 #define PERL_ARGS_ASSERT_VWARNER        \
3573         assert(pat)
3574 PERL_CALLCONV I32       Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags);
3575 #define PERL_ARGS_ASSERT_WAIT4PID       \
3576         assert(statusp)
3577 PERL_CALLCONV void      Perl_warn(pTHX_ const char* pat, ...)
3578                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
3579 #define PERL_ARGS_ASSERT_WARN   \
3580         assert(pat)
3581
3582 PERL_CALLCONV void      Perl_warn_sv(pTHX_ SV *baseex);
3583 #define PERL_ARGS_ASSERT_WARN_SV        \
3584         assert(baseex)
3585 PERL_CALLCONV void      Perl_warner(pTHX_ U32 err, const char* pat, ...)
3586                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3587 #define PERL_ARGS_ASSERT_WARNER \
3588         assert(pat)
3589
3590 PERL_CALLCONV I32       Perl_was_lvalue_sub(pTHX)
3591                         __attribute__warn_unused_result__;
3592
3593 PERL_CALLCONV void      Perl_watch(pTHX_ char** addr);
3594 #define PERL_ARGS_ASSERT_WATCH  \
3595         assert(addr)
3596 /* PERL_CALLCONV I32    whichsig(pTHX_ const char* sig); */
3597 PERL_CALLCONV I32       Perl_whichsig_pv(pTHX_ const char* sig);
3598 #define PERL_ARGS_ASSERT_WHICHSIG_PV    \
3599         assert(sig)
3600 PERL_CALLCONV I32       Perl_whichsig_pvn(pTHX_ const char* sig, STRLEN len);
3601 #define PERL_ARGS_ASSERT_WHICHSIG_PVN   \
3602         assert(sig)
3603 PERL_CALLCONV I32       Perl_whichsig_sv(pTHX_ SV* sigsv);
3604 #define PERL_ARGS_ASSERT_WHICHSIG_SV    \
3605         assert(sigsv)
3606 PERL_CALLCONV void      Perl_wrap_op_checker(pTHX_ Optype opcode, Perl_check_t new_checker, Perl_check_t *old_checker_p);
3607 #define PERL_ARGS_ASSERT_WRAP_OP_CHECKER        \
3608         assert(new_checker); assert(old_checker_p)
3609 PERL_CALLCONV void      Perl_write_to_stderr(pTHX_ SV* msv);
3610 #define PERL_ARGS_ASSERT_WRITE_TO_STDERR        \
3611         assert(msv)
3612 PERL_CALLCONV void      Perl_xs_boot_epilog(pTHX_ const I32 ax);
3613 PERL_CALLCONV I32       Perl_xs_handshake(const U32 key, void * v_my_perl, const char * file, ...);
3614 #define PERL_ARGS_ASSERT_XS_HANDSHAKE   \
3615         assert(v_my_perl); assert(file)
3616 PERL_CALLCONV int       Perl_yyerror(pTHX_ const char *const s);
3617 #define PERL_ARGS_ASSERT_YYERROR        \
3618         assert(s)
3619 PERL_CALLCONV int       Perl_yyerror_pv(pTHX_ const char *const s, U32 flags);
3620 #define PERL_ARGS_ASSERT_YYERROR_PV     \
3621         assert(s)
3622 PERL_CALLCONV int       Perl_yyerror_pvn(pTHX_ const char *const s, STRLEN len, U32 flags);
3623 #define PERL_ARGS_ASSERT_YYERROR_PVN    \
3624         assert(s)
3625 PERL_CALLCONV int       Perl_yylex(pTHX);
3626 PERL_CALLCONV int       Perl_yyparse(pTHX_ int gramtype);
3627 PERL_CALLCONV void      Perl_yyunlex(pTHX);
3628 #if !(defined(DEBUGGING))
3629 #  if !defined(NV_PRESERVES_UV)
3630 #    if defined(PERL_IN_SV_C)
3631 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *const sv);
3632 #define PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE   \
3633         assert(sv)
3634 #    endif
3635 #  endif
3636 #endif
3637 #if !(defined(HAS_MEMMEM))
3638 PERL_CALLCONV char*     Perl_ninstr(const char* big, const char* bigend, const char* little, const char* lend)
3639                         __attribute__pure__;
3640 #define PERL_ARGS_ASSERT_NINSTR \
3641         assert(big); assert(bigend); assert(little); assert(lend)
3642
3643 #endif
3644 #if !(defined(HAS_SIGACTION) && defined(SA_SIGINFO))
3645 PERL_CALLCONV Signal_t  Perl_csighandler(int sig);
3646 PERL_CALLCONV Signal_t  Perl_sighandler(int sig);
3647 #endif
3648 #if !(defined(PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION))
3649 PERL_CALLCONV bool      Perl_do_exec(pTHX_ const char* cmd);
3650 #define PERL_ARGS_ASSERT_DO_EXEC        \
3651         assert(cmd)
3652 #endif
3653 #if !(defined(PERL_GLOBAL_STRUCT_PRIVATE))
3654 #  if defined(PERL_IMPLICIT_CONTEXT)
3655 PERL_CALLCONV void*     Perl_my_cxt_init(pTHX_ int *index, size_t size);
3656 #define PERL_ARGS_ASSERT_MY_CXT_INIT    \
3657         assert(index)
3658 #  endif
3659 #endif
3660 #if !(defined(WIN32))
3661 /* PERL_CALLCONV char*  my_setlocale(pTHX_ int category, const char* locale)
3662                         __attribute__pure__; */
3663
3664 #endif
3665 #if !(defined(_MSC_VER))
3666 PERL_CALLCONV_NO_RET int        Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
3667                         __attribute__noreturn__;
3668 #define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET     \
3669         assert(sv); assert(mg)
3670
3671 #endif
3672 #if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
3673 PERL_CALLCONV void*     Perl_my_bzero(void* vloc, size_t len);
3674 #define PERL_ARGS_ASSERT_MY_BZERO       \
3675         assert(vloc)
3676 #endif
3677 #if !defined(HAS_GETENV_LEN)
3678 PERL_CALLCONV char*     Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len);
3679 #define PERL_ARGS_ASSERT_GETENV_LEN     \
3680         assert(env_elem); assert(len)
3681 #endif
3682 #if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
3683 PERL_CALLCONV int       Perl_my_memcmp(const void* vs1, const void* vs2, size_t len)
3684                         __attribute__pure__;
3685 #define PERL_ARGS_ASSERT_MY_MEMCMP      \
3686         assert(vs1); assert(vs2)
3687
3688 #endif
3689 #if !defined(HAS_MEMCPY) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY))
3690 PERL_CALLCONV void*     Perl_my_bcopy(const void* vfrom, void* vto, size_t len);
3691 #define PERL_ARGS_ASSERT_MY_BCOPY       \
3692         assert(vfrom); assert(vto)
3693 #endif
3694 #if !defined(HAS_MEMSET)
3695 PERL_CALLCONV void*     Perl_my_memset(void* vloc, int ch, size_t len);
3696 #define PERL_ARGS_ASSERT_MY_MEMSET      \
3697         assert(vloc)
3698 #endif
3699 #if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
3700 #  if defined(PERL_IN_PP_SYS_C)
3701 STATIC int      S_dooneliner(pTHX_ const char *cmd, const char *filename)
3702                         __attribute__warn_unused_result__;
3703 #define PERL_ARGS_ASSERT_DOONELINER     \
3704         assert(cmd); assert(filename)
3705
3706 #  endif
3707 #endif
3708 #if !defined(HAS_RENAME)
3709 PERL_CALLCONV I32       Perl_same_dirent(pTHX_ const char* a, const char* b);
3710 #define PERL_ARGS_ASSERT_SAME_DIRENT    \
3711         assert(a); assert(b)
3712 #endif
3713 #if !defined(HAS_SIGNBIT)
3714 PERL_CALLCONV int       Perl_signbit(NV f)
3715                         __attribute__pure__;
3716
3717 #endif
3718 #if !defined(HAS_STRLCAT)
3719 PERL_CALLCONV Size_t    Perl_my_strlcat(char *dst, const char *src, Size_t size);
3720 #endif
3721 #if !defined(HAS_STRLCPY)
3722 PERL_CALLCONV Size_t    Perl_my_strlcpy(char *dst, const char *src, Size_t size);
3723 #endif
3724 #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
3725 PERL_CALLCONV I32       Perl_my_chsize(pTHX_ int fd, Off_t length)
3726                         __attribute__warn_unused_result__;
3727
3728 #endif
3729 #if !defined(NV_PRESERVES_UV)
3730 #  if defined(DEBUGGING)
3731 #    if defined(PERL_IN_SV_C)
3732 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *const sv, I32 numtype);
3733 #define PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE   \
3734         assert(sv)
3735 #    endif
3736 #  endif
3737 #endif
3738 #if !defined(PERL_DISABLE_PMC)
3739 #  if defined(PERL_IN_PP_CTL_C)
3740 STATIC PerlIO * S_doopen_pm(pTHX_ SV *name)
3741                         __attribute__warn_unused_result__;
3742 #define PERL_ARGS_ASSERT_DOOPEN_PM      \
3743         assert(name)
3744
3745 #  endif
3746 #endif
3747 #if !defined(PERL_EXT_RE_BUILD)
3748 #  if defined(PERL_IN_REGCOMP_C)
3749 STATIC void     S__append_range_to_invlist(pTHX_ SV* const invlist, const UV start, const UV end);
3750 #define PERL_ARGS_ASSERT__APPEND_RANGE_TO_INVLIST       \
3751         assert(invlist)
3752 PERL_STATIC_INLINE UV*  S__invlist_array_init(SV* const invlist, const bool will_have_0)
3753                         __attribute__warn_unused_result__;
3754 #define PERL_ARGS_ASSERT__INVLIST_ARRAY_INIT    \
3755         assert(invlist)
3756
3757 PERL_STATIC_INLINE IV*  S_get_invlist_previous_index_addr(SV* invlist)
3758                         __attribute__warn_unused_result__;
3759 #define PERL_ARGS_ASSERT_GET_INVLIST_PREVIOUS_INDEX_ADDR        \
3760         assert(invlist)
3761
3762 PERL_STATIC_INLINE void S_invlist_clear(pTHX_ SV* invlist);
3763 #define PERL_ARGS_ASSERT_INVLIST_CLEAR  \
3764         assert(invlist)
3765 STATIC void     S_invlist_extend(pTHX_ SV* const invlist, const UV len);
3766 #define PERL_ARGS_ASSERT_INVLIST_EXTEND \
3767         assert(invlist)
3768 PERL_STATIC_INLINE UV   S_invlist_max(SV* const invlist)
3769                         __attribute__warn_unused_result__;
3770 #define PERL_ARGS_ASSERT_INVLIST_MAX    \
3771         assert(invlist)
3772
3773 PERL_STATIC_INLINE IV   S_invlist_previous_index(SV* const invlist)
3774                         __attribute__warn_unused_result__;
3775 #define PERL_ARGS_ASSERT_INVLIST_PREVIOUS_INDEX \
3776         assert(invlist)
3777
3778 STATIC void     S_invlist_replace_list_destroys_src(pTHX_ SV *dest, SV *src);
3779 #define PERL_ARGS_ASSERT_INVLIST_REPLACE_LIST_DESTROYS_SRC      \
3780         assert(dest); assert(src)
3781 PERL_STATIC_INLINE void S_invlist_set_previous_index(SV* const invlist, const IV index);
3782 #define PERL_ARGS_ASSERT_INVLIST_SET_PREVIOUS_INDEX     \
3783         assert(invlist)
3784 PERL_STATIC_INLINE void S_invlist_trim(SV* invlist);
3785 #define PERL_ARGS_ASSERT_INVLIST_TRIM   \
3786         assert(invlist)
3787 #  endif
3788 #endif
3789 #if !defined(PERL_IMPLICIT_SYS)
3790 PERL_CALLCONV I32       Perl_my_pclose(pTHX_ PerlIO* ptr);
3791 PERL_CALLCONV PerlIO*   Perl_my_popen(pTHX_ const char* cmd, const char* mode);
3792 #define PERL_ARGS_ASSERT_MY_POPEN       \
3793         assert(cmd); assert(mode)
3794 #endif
3795 #if !defined(PERL_IS_MINIPERL)
3796 #  if defined(PERL_IN_PERL_C)
3797 STATIC SV *     S_incpush_if_exists(pTHX_ AV *const av, SV *dir, SV *const stem);
3798 #define PERL_ARGS_ASSERT_INCPUSH_IF_EXISTS      \
3799         assert(av); assert(dir); assert(stem)
3800 #  endif
3801 #endif
3802 #if !defined(PERL_NO_INLINE_FUNCTIONS)
3803 PERL_CALLCONV STRLEN    Perl__is_utf8_char_slow(const U8 * const s, const STRLEN len)
3804                         __attribute__warn_unused_result__
3805                         __attribute__pure__;
3806 #define PERL_ARGS_ASSERT__IS_UTF8_CHAR_SLOW     \
3807         assert(s)
3808
3809 PERL_STATIC_INLINE void S_append_utf8_from_native_byte(const U8 byte, U8** dest);
3810 #define PERL_ARGS_ASSERT_APPEND_UTF8_FROM_NATIVE_BYTE   \
3811         assert(dest)
3812 PERL_STATIC_INLINE SSize_t      S_av_top_index(pTHX_ AV *av)
3813                         __attribute__warn_unused_result__;
3814 #define PERL_ARGS_ASSERT_AV_TOP_INDEX   \
3815         assert(av)
3816
3817 PERL_STATIC_INLINE void S_cx_popblock(pTHX_ PERL_CONTEXT *cx);
3818 #define PERL_ARGS_ASSERT_CX_POPBLOCK    \
3819         assert(cx)
3820 PERL_STATIC_INLINE void S_cx_popeval(pTHX_ PERL_CONTEXT *cx);
3821 #define PERL_ARGS_ASSERT_CX_POPEVAL     \
3822         assert(cx)
3823 PERL_STATIC_INLINE void S_cx_popformat(pTHX_ PERL_CONTEXT *cx);
3824 #define PERL_ARGS_ASSERT_CX_POPFORMAT   \
3825         assert(cx)
3826 PERL_STATIC_INLINE void S_cx_popgiven(pTHX_ PERL_CONTEXT *cx);
3827 #define PERL_ARGS_ASSERT_CX_POPGIVEN    \
3828         assert(cx)
3829 PERL_STATIC_INLINE void S_cx_poploop(pTHX_ PERL_CONTEXT *cx);
3830 #define PERL_ARGS_ASSERT_CX_POPLOOP     \
3831         assert(cx)
3832 PERL_STATIC_INLINE void S_cx_popsub(pTHX_ PERL_CONTEXT *cx);
3833 #define PERL_ARGS_ASSERT_CX_POPSUB      \
3834         assert(cx)
3835 PERL_STATIC_INLINE void S_cx_popsub_args(pTHX_ PERL_CONTEXT *cx);
3836 #define PERL_ARGS_ASSERT_CX_POPSUB_ARGS \
3837         assert(cx)
3838 PERL_STATIC_INLINE void S_cx_popsub_common(pTHX_ PERL_CONTEXT *cx);
3839 #define PERL_ARGS_ASSERT_CX_POPSUB_COMMON       \
3840         assert(cx)
3841 PERL_STATIC_INLINE void S_cx_popwhen(pTHX_ PERL_CONTEXT *cx);
3842 #define PERL_ARGS_ASSERT_CX_POPWHEN     \
3843         assert(cx)
3844 PERL_STATIC_INLINE PERL_CONTEXT *       S_cx_pushblock(pTHX_ U8 type, U8 gimme, SV** sp, I32 saveix);
3845 #define PERL_ARGS_ASSERT_CX_PUSHBLOCK   \
3846         assert(sp)
3847 PERL_STATIC_INLINE void S_cx_pusheval(pTHX_ PERL_CONTEXT *cx, OP *retop, SV *namesv);
3848 #define PERL_ARGS_ASSERT_CX_PUSHEVAL    \
3849         assert(cx)
3850 PERL_STATIC_INLINE void S_cx_pushformat(pTHX_ PERL_CONTEXT *cx, CV *cv, OP *retop, GV *gv);
3851 #define PERL_ARGS_ASSERT_CX_PUSHFORMAT  \
3852         assert(cx); assert(cv)
3853 PERL_STATIC_INLINE void S_cx_pushgiven(pTHX_ PERL_CONTEXT *cx, SV *orig_defsv);
3854 #define PERL_ARGS_ASSERT_CX_PUSHGIVEN   \
3855         assert(cx)
3856 PERL_STATIC_INLINE void S_cx_pushloop_for(pTHX_ PERL_CONTEXT *cx, void *itervarp, SV *itersave);
3857 #define PERL_ARGS_ASSERT_CX_PUSHLOOP_FOR        \
3858         assert(cx); assert(itervarp)
3859 PERL_STATIC_INLINE void S_cx_pushloop_plain(pTHX_ PERL_CONTEXT *cx);
3860 #define PERL_ARGS_ASSERT_CX_PUSHLOOP_PLAIN      \
3861         assert(cx)
3862 PERL_STATIC_INLINE void S_cx_pushsub(pTHX_ PERL_CONTEXT *cx, CV *cv, OP *retop, bool hasargs);
3863 #define PERL_ARGS_ASSERT_CX_PUSHSUB     \
3864         assert(cx); assert(cv)
3865 PERL_STATIC_INLINE void S_cx_pushwhen(pTHX_ PERL_CONTEXT *cx);
3866 #define PERL_ARGS_ASSERT_CX_PUSHWHEN    \
3867         assert(cx)
3868 PERL_STATIC_INLINE void S_cx_topblock(pTHX_ PERL_CONTEXT *cx);
3869 #define PERL_ARGS_ASSERT_CX_TOPBLOCK    \
3870         assert(cx)
3871 PERL_STATIC_INLINE bool S_is_safe_syscall(pTHX_ const char *pv, STRLEN len, const char *what, const char *op_name)
3872                         __attribute__warn_unused_result__;
3873 #define PERL_ARGS_ASSERT_IS_SAFE_SYSCALL        \
3874         assert(pv); assert(what); assert(op_name)
3875
3876 PERL_STATIC_INLINE bool S_sv_only_taint_gmagic(SV *sv);
3877 #define PERL_ARGS_ASSERT_SV_ONLY_TAINT_GMAGIC   \
3878         assert(sv)
3879 #endif
3880 #if !defined(PERL_NO_UTF16_FILTER)
3881 #  if defined(PERL_IN_TOKE_C)
3882 STATIC U8*      S_add_utf16_textfilter(pTHX_ U8 *const s, bool reversed);
3883 #define PERL_ARGS_ASSERT_ADD_UTF16_TEXTFILTER   \
3884         assert(s)
3885 STATIC I32      S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen);
3886 #define PERL_ARGS_ASSERT_UTF16_TEXTFILTER       \
3887         assert(sv)
3888 #  endif
3889 #endif
3890 #if !defined(SETUID_SCRIPTS_ARE_SECURE_NOW)
3891 #  if defined(PERL_IN_PERL_C)
3892 STATIC void     S_validate_suid(pTHX_ PerlIO *rsfp);
3893 #define PERL_ARGS_ASSERT_VALIDATE_SUID  \
3894         assert(rsfp)
3895 #  endif
3896 #endif
3897 #if !defined(SPRINTF_RETURNS_STRLEN)
3898 PERL_CALLCONV int       Perl_my_sprintf(char *buffer, const char *pat, ...);
3899 #define PERL_ARGS_ASSERT_MY_SPRINTF     \
3900         assert(buffer); assert(pat)
3901 #endif
3902 #if !defined(USE_QUADMATH)
3903 #  if defined(PERL_IN_NUMERIC_C)
3904 STATIC NV       S_mulexp10(NV value, I32 exponent);
3905 #  endif
3906 #endif
3907 #if !defined(WIN32)
3908 PERL_CALLCONV bool      Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report);
3909 #define PERL_ARGS_ASSERT_DO_EXEC3       \
3910         assert(incmd)
3911 #endif
3912 #if defined(DEBUGGING)
3913 PERL_CALLCONV int       Perl_get_debug_opts(pTHX_ const char **s, bool givehelp)
3914                         __attribute__warn_unused_result__;
3915 #define PERL_ARGS_ASSERT_GET_DEBUG_OPTS \
3916         assert(s)
3917
3918 PERL_CALLCONV void      Perl_hv_assert(pTHX_ HV *hv);
3919 #define PERL_ARGS_ASSERT_HV_ASSERT      \
3920         assert(hv)
3921 PERL_CALLCONV void      Perl_pad_setsv(pTHX_ PADOFFSET po, SV* sv);
3922 #define PERL_ARGS_ASSERT_PAD_SETSV      \
3923         assert(sv)
3924 PERL_CALLCONV SV*       Perl_pad_sv(pTHX_ PADOFFSET po);
3925 PERL_CALLCONV void      Perl_set_padlist(CV * cv, PADLIST * padlist);
3926 #define PERL_ARGS_ASSERT_SET_PADLIST    \
3927         assert(cv)
3928 #  if defined(PERL_IN_PAD_C)
3929 STATIC void     S_cv_dump(pTHX_ const CV *cv, const char *title);
3930 #define PERL_ARGS_ASSERT_CV_DUMP        \
3931         assert(cv); assert(title)
3932 #  endif
3933 #  if defined(PERL_IN_REGCOMP_C)
3934 STATIC void     S_dump_trie(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 depth);
3935 #define PERL_ARGS_ASSERT_DUMP_TRIE      \
3936         assert(trie); assert(revcharmap)
3937 STATIC void     S_dump_trie_interim_list(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth);
3938 #define PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_LIST \
3939         assert(trie); assert(revcharmap)
3940 STATIC void     S_dump_trie_interim_table(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth);
3941 #define PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_TABLE        \
3942         assert(trie); assert(revcharmap)
3943 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);
3944 #define PERL_ARGS_ASSERT_DUMPUNTIL      \
3945         assert(r); assert(start); assert(node); assert(sv)
3946 STATIC bool     S_put_charclass_bitmap_innards(pTHX_ SV* sv, char* bitmap, SV* nonbitmap_invlist, SV* only_utf8_locale_invlist, const regnode * const node, const bool force_as_is_display);
3947 #define PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS   \
3948         assert(sv); assert(bitmap)
3949 STATIC SV*      S_put_charclass_bitmap_innards_common(pTHX_ SV* invlist, SV* posixes, SV* only_utf8, SV* not_utf8, SV* only_utf8_locale, const bool invert);
3950 #define PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS_COMMON    \
3951         assert(invlist)
3952 STATIC void     S_put_charclass_bitmap_innards_invlist(pTHX_ SV *sv, SV* invlist);
3953 #define PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS_INVLIST   \
3954         assert(sv); assert(invlist)
3955 STATIC void     S_put_code_point(pTHX_ SV* sv, UV c);
3956 #define PERL_ARGS_ASSERT_PUT_CODE_POINT \
3957         assert(sv)
3958 STATIC void     S_put_range(pTHX_ SV* sv, UV start, const UV end, const bool allow_literals);
3959 #define PERL_ARGS_ASSERT_PUT_RANGE      \
3960         assert(sv)
3961 PERL_CALLCONV int       Perl_re_indentf(pTHX_ const char *fmt, U32 depth, ...);
3962 #define PERL_ARGS_ASSERT_RE_INDENTF     \
3963         assert(fmt)
3964 STATIC void     S_regdump_extflags(pTHX_ const char *lead, const U32 flags);
3965 STATIC void     S_regdump_intflags(pTHX_ const char *lead, const U32 flags);
3966 STATIC U8       S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode *p, const regnode *val, U32 depth);
3967 #define PERL_ARGS_ASSERT_REGTAIL_STUDY  \
3968         assert(pRExC_state); assert(p); assert(val)
3969 #  endif
3970 #  if defined(PERL_IN_REGEXEC_C)
3971 STATIC void     S_debug_start_match(pTHX_ const REGEXP *prog, const bool do_utf8, const char *start, const char *end, const char *blurb);
3972 #define PERL_ARGS_ASSERT_DEBUG_START_MATCH      \
3973         assert(prog); assert(start); assert(end); assert(blurb)
3974 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, const U32 depth);
3975 #define PERL_ARGS_ASSERT_DUMP_EXEC_POS  \
3976         assert(locinput); assert(scan); assert(loc_regeol); assert(loc_bostr); assert(loc_reg_starttry)
3977 PERL_CALLCONV int       Perl_re_exec_indentf(pTHX_ const char *fmt, U32 depth, ...);
3978 #define PERL_ARGS_ASSERT_RE_EXEC_INDENTF        \
3979         assert(fmt)
3980 #  endif
3981 #  if defined(PERL_IN_SV_C)
3982 STATIC void     S_del_sv(pTHX_ SV *p);
3983 #define PERL_ARGS_ASSERT_DEL_SV \
3984         assert(p)
3985 #  endif
3986 #  if defined(PERL_IN_TOKE_C)
3987 STATIC void     S_printbuf(pTHX_ const char *const fmt, const char *const s)
3988                         __attribute__format__(__printf__,pTHX_1,0);
3989 #define PERL_ARGS_ASSERT_PRINTBUF       \
3990         assert(fmt); assert(s)
3991
3992 STATIC int      S_tokereport(pTHX_ I32 rv, const YYSTYPE* lvalp);
3993 #define PERL_ARGS_ASSERT_TOKEREPORT     \
3994         assert(lvalp)
3995 #  endif
3996 #  if defined(USE_LOCALE)     && (defined(PERL_IN_LOCALE_C) || defined (PERL_EXT_POSIX))
3997 PERL_CALLCONV char *    Perl__setlocale_debug_string(const int category, const char* const locale, const char* const retval)
3998                         __attribute__warn_unused_result__
3999                         __attribute__pure__;
4000
4001 #  endif
4002 #  if defined(USE_LOCALE) && defined(PERL_IN_LOCALE_C)
4003 STATIC void     S_print_collxfrm_input_and_return(pTHX_ const char * const s, const char * const e, const STRLEN * const xlen, const bool is_utf8);
4004 #define PERL_ARGS_ASSERT_PRINT_COLLXFRM_INPUT_AND_RETURN        \
4005         assert(s); assert(e)
4006 #  endif
4007 #endif
4008 #if defined(DEBUG_LEAKING_SCALARS_FORK_DUMP)
4009 PERL_CALLCONV void      Perl_dump_sv_child(pTHX_ SV *sv);
4010 #define PERL_ARGS_ASSERT_DUMP_SV_CHILD  \
4011         assert(sv)
4012 #endif
4013 #if defined(HAS_MEMMEM)
4014 PERL_CALLCONV char*     Perl_ninstr(const char* big, const char* bigend, const char* little, const char* lend)
4015                         __attribute__pure__;
4016 #define PERL_ARGS_ASSERT_NINSTR \
4017         assert(big); assert(bigend); assert(little); assert(lend)
4018
4019 #endif
4020 #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
4021 PERL_CALLCONV I32       Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp);
4022 #define PERL_ARGS_ASSERT_DO_IPCCTL      \
4023         assert(mark); assert(sp)
4024 PERL_CALLCONV I32       Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp);
4025 #define PERL_ARGS_ASSERT_DO_IPCGET      \
4026         assert(mark); assert(sp)
4027 PERL_CALLCONV I32       Perl_do_msgrcv(pTHX_ SV** mark, SV** sp);
4028 #define PERL_ARGS_ASSERT_DO_MSGRCV      \
4029         assert(mark); assert(sp)
4030 PERL_CALLCONV I32       Perl_do_msgsnd(pTHX_ SV** mark, SV** sp);
4031 #define PERL_ARGS_ASSERT_DO_MSGSND      \
4032         assert(mark); assert(sp)
4033 PERL_CALLCONV I32       Perl_do_semop(pTHX_ SV** mark, SV** sp);
4034 #define PERL_ARGS_ASSERT_DO_SEMOP       \
4035         assert(mark); assert(sp)
4036 PERL_CALLCONV I32       Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp);
4037 #define PERL_ARGS_ASSERT_DO_SHMIO       \
4038         assert(mark); assert(sp)
4039 #endif
4040 #if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
4041 PERL_CALLCONV Signal_t  Perl_csighandler(int sig, siginfo_t *info, void *uap);
4042 PERL_CALLCONV Signal_t  Perl_sighandler(int sig, siginfo_t *info, void *uap);
4043 #endif
4044 #if defined(HAVE_INTERP_INTERN)
4045 PERL_CALLCONV void      Perl_sys_intern_clear(pTHX);
4046 PERL_CALLCONV void      Perl_sys_intern_init(pTHX);
4047 #  if defined(USE_ITHREADS)
4048 PERL_CALLCONV void      Perl_sys_intern_dup(pTHX_ struct interp_intern* src, struct interp_intern* dst);
4049 #define PERL_ARGS_ASSERT_SYS_INTERN_DUP \
4050         assert(src); assert(dst)
4051 #  endif
4052 #endif
4053 #if defined(MYMALLOC)
4054 PERL_CALLCONV void      Perl_dump_mstats(pTHX_ const char* s);
4055 #define PERL_ARGS_ASSERT_DUMP_MSTATS    \
4056         assert(s)
4057 PERL_CALLCONV int       Perl_get_mstats(pTHX_ perl_mstats_t *buf, int buflen, int level);
4058 #define PERL_ARGS_ASSERT_GET_MSTATS     \
4059         assert(buf)
4060 PERL_CALLCONV MEM_SIZE  Perl_malloc_good_size(size_t nbytes)
4061                         __attribute__warn_unused_result__;
4062
4063 PERL_CALLCONV MEM_SIZE  Perl_malloced_size(void *p)
4064                         __attribute__warn_unused_result__;
4065 #define PERL_ARGS_ASSERT_MALLOCED_SIZE  \
4066         assert(p)
4067
4068 #endif
4069 #if defined(PERL_ANY_COW)
4070 PERL_CALLCONV SV*       Perl_sv_setsv_cow(pTHX_ SV* dstr, SV* sstr);
4071 #define PERL_ARGS_ASSERT_SV_SETSV_COW   \
4072         assert(sstr)
4073 #endif
4074 #if defined(PERL_CORE)
4075 PERL_CALLCONV void      Perl_opslab_force_free(pTHX_ OPSLAB *slab);
4076 #define PERL_ARGS_ASSERT_OPSLAB_FORCE_FREE      \
4077         assert(slab)
4078 PERL_CALLCONV void      Perl_opslab_free(pTHX_ OPSLAB *slab);
4079 #define PERL_ARGS_ASSERT_OPSLAB_FREE    \
4080         assert(slab)
4081 PERL_CALLCONV void      Perl_opslab_free_nopad(pTHX_ OPSLAB *slab);
4082 #define PERL_ARGS_ASSERT_OPSLAB_FREE_NOPAD      \
4083         assert(slab)
4084 PERL_CALLCONV void      Perl_parser_free_nexttoke_ops(pTHX_ yy_parser *parser, OPSLAB *slab);
4085 #define PERL_ARGS_ASSERT_PARSER_FREE_NEXTTOKE_OPS       \
4086         assert(parser); assert(slab)
4087 PERL_STATIC_INLINE bool S_should_warn_nl(const char *pv)
4088                         __attribute__warn_unused_result__;
4089 #define PERL_ARGS_ASSERT_SHOULD_WARN_NL \
4090         assert(pv)
4091
4092 #  if defined(PERL_DEBUG_READONLY_OPS)
4093 PERL_CALLCONV void      Perl_Slab_to_ro(pTHX_ OPSLAB *slab);
4094 #define PERL_ARGS_ASSERT_SLAB_TO_RO     \
4095         assert(slab)
4096 PERL_CALLCONV void      Perl_Slab_to_rw(pTHX_ OPSLAB *const slab);
4097 #define PERL_ARGS_ASSERT_SLAB_TO_RW     \
4098         assert(slab)
4099 #  endif
4100 #endif
4101 #if defined(PERL_CORE) || defined (PERL_EXT)
4102 PERL_STATIC_INLINE STRLEN       S_sv_or_pv_pos_u2b(pTHX_ SV *sv, const char *pv, STRLEN pos, STRLEN *lenp);
4103 #define PERL_ARGS_ASSERT_SV_OR_PV_POS_U2B       \
4104         assert(sv); assert(pv)
4105 #endif
4106 #if defined(PERL_CR_FILTER)
4107 #  if defined(PERL_IN_TOKE_C)
4108 STATIC I32      S_cr_textfilter(pTHX_ int idx, SV *sv, int maxlen);
4109 STATIC void     S_strip_return(pTHX_ SV *sv);
4110 #define PERL_ARGS_ASSERT_STRIP_RETURN   \
4111         assert(sv)
4112 #  endif
4113 #endif
4114 #if defined(PERL_DEBUG_READONLY_COW)
4115 PERL_CALLCONV void      Perl_sv_buf_to_ro(pTHX_ SV *sv);
4116 #define PERL_ARGS_ASSERT_SV_BUF_TO_RO   \
4117         assert(sv)
4118 #  if defined(PERL_IN_SV_C)
4119 STATIC void     S_sv_buf_to_rw(pTHX_ SV *sv);
4120 #define PERL_ARGS_ASSERT_SV_BUF_TO_RW   \
4121         assert(sv)
4122 #  endif
4123 #endif
4124 #if defined(PERL_DEBUG_READONLY_OPS)
4125 PERL_CALLCONV PADOFFSET Perl_op_refcnt_dec(pTHX_ OP *o);
4126 #define PERL_ARGS_ASSERT_OP_REFCNT_DEC  \
4127         assert(o)
4128 PERL_CALLCONV OP *      Perl_op_refcnt_inc(pTHX_ OP *o);
4129 #endif
4130 #if defined(PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION)
4131 /* PERL_CALLCONV bool   Perl_do_exec(pTHX_ const char* cmd); */
4132 #endif
4133 #if defined(PERL_DONT_CREATE_GVSV)
4134 #ifndef NO_MATHOMS
4135 PERL_CALLCONV GV*       Perl_gv_SVadd(pTHX_ GV *gv);
4136 #endif
4137 #endif
4138 #if defined(PERL_GLOBAL_STRUCT)
4139 PERL_CALLCONV struct perl_vars *        Perl_GetVars(pTHX);
4140 PERL_CALLCONV void      Perl_free_global_struct(pTHX_ struct perl_vars *plvarsp);
4141 #define PERL_ARGS_ASSERT_FREE_GLOBAL_STRUCT     \
4142         assert(plvarsp)
4143 PERL_CALLCONV struct perl_vars* Perl_init_global_struct(pTHX);
4144 #endif
4145 #if defined(PERL_GLOBAL_STRUCT_PRIVATE)
4146 #  if defined(PERL_IMPLICIT_CONTEXT)
4147 PERL_CALLCONV int       Perl_my_cxt_index(pTHX_ const char *my_cxt_key);
4148 #define PERL_ARGS_ASSERT_MY_CXT_INDEX   \
4149         assert(my_cxt_key)
4150 PERL_CALLCONV void*     Perl_my_cxt_init(pTHX_ const char *my_cxt_key, size_t size);
4151 #define PERL_ARGS_ASSERT_MY_CXT_INIT    \
4152         assert(my_cxt_key)
4153 #  endif
4154 #endif
4155 #if defined(PERL_IMPLICIT_CONTEXT)
4156 PERL_CALLCONV_NO_RET void       Perl_croak_nocontext(const char* pat, ...)
4157                         __attribute__noreturn__
4158                         __attribute__format__null_ok__(__printf__,1,2);
4159
4160 PERL_CALLCONV void      Perl_deb_nocontext(const char* pat, ...)
4161                         __attribute__format__(__printf__,1,2);
4162 #define PERL_ARGS_ASSERT_DEB_NOCONTEXT  \
4163         assert(pat)
4164
4165 PERL_CALLCONV_NO_RET OP*        Perl_die_nocontext(const char* pat, ...)
4166                         __attribute__noreturn__
4167                         __attribute__format__null_ok__(__printf__,1,2);
4168
4169 PERL_CALLCONV char*     Perl_form_nocontext(const char* pat, ...)
4170                         __attribute__format__(__printf__,1,2);
4171 #define PERL_ARGS_ASSERT_FORM_NOCONTEXT \
4172         assert(pat)
4173
4174 PERL_CALLCONV int       Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
4175                         __attribute__format__(__printf__,2,3);
4176 #define PERL_ARGS_ASSERT_FPRINTF_NOCONTEXT      \
4177         assert(stream); assert(format)
4178
4179 PERL_CALLCONV void      Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...);
4180 #define PERL_ARGS_ASSERT_LOAD_MODULE_NOCONTEXT  \
4181         assert(name)
4182 PERL_CALLCONV SV*       Perl_mess_nocontext(const char* pat, ...)
4183                         __attribute__format__(__printf__,1,2);
4184 #define PERL_ARGS_ASSERT_MESS_NOCONTEXT \
4185         assert(pat)
4186
4187 PERL_CALLCONV SV*       Perl_newSVpvf_nocontext(const char *const pat, ...)
4188                         __attribute__format__(__printf__,1,2);
4189 #define PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT     \
4190         assert(pat)
4191
4192 PERL_CALLCONV int       Perl_printf_nocontext(const char *format, ...)
4193                         __attribute__format__(__printf__,1,2);
4194 #define PERL_ARGS_ASSERT_PRINTF_NOCONTEXT       \
4195         assert(format)
4196
4197 PERL_CALLCONV void      Perl_sv_catpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
4198                         __attribute__format__(__printf__,2,3);
4199 #define PERL_ARGS_ASSERT_SV_CATPVF_MG_NOCONTEXT \
4200         assert(sv); assert(pat)
4201
4202 PERL_CALLCONV void      Perl_sv_catpvf_nocontext(SV *const sv, const char *const pat, ...)
4203                         __attribute__format__(__printf__,2,3);
4204 #define PERL_ARGS_ASSERT_SV_CATPVF_NOCONTEXT    \
4205         assert(sv); assert(pat)
4206
4207 PERL_CALLCONV void      Perl_sv_setpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
4208                         __attribute__format__(__printf__,2,3);
4209 #define PERL_ARGS_ASSERT_SV_SETPVF_MG_NOCONTEXT \
4210         assert(sv); assert(pat)
4211
4212 PERL_CALLCONV void      Perl_sv_setpvf_nocontext(SV *const sv, const char *const pat, ...)
4213                         __attribute__format__(__printf__,2,3);
4214 #define PERL_ARGS_ASSERT_SV_SETPVF_NOCONTEXT    \
4215         assert(sv); assert(pat)
4216
4217 PERL_CALLCONV void      Perl_warn_nocontext(const char* pat, ...)
4218                         __attribute__format__(__printf__,1,2);
4219 #define PERL_ARGS_ASSERT_WARN_NOCONTEXT \
4220         assert(pat)
4221
4222 PERL_CALLCONV void      Perl_warner_nocontext(U32 err, const char* pat, ...)
4223                         __attribute__format__(__printf__,2,3);
4224 #define PERL_ARGS_ASSERT_WARNER_NOCONTEXT       \
4225         assert(pat)
4226
4227 #endif
4228 #if defined(PERL_IMPLICIT_SYS)
4229 PERL_CALLCONV PerlInterpreter*  perl_alloc_using(struct IPerlMem *ipM, struct IPerlMem *ipMS, struct IPerlMem *ipMP, struct IPerlEnv *ipE, struct IPerlStdIO *ipStd, struct IPerlLIO *ipLIO, struct IPerlDir *ipD, struct IPerlSock *ipS, struct IPerlProc *ipP);
4230 #define PERL_ARGS_ASSERT_PERL_ALLOC_USING       \
4231         assert(ipM); assert(ipMS); assert(ipMP); assert(ipE); assert(ipStd); assert(ipLIO); assert(ipD); assert(ipS); assert(ipP)
4232 #  if defined(USE_ITHREADS)
4233 PERL_CALLCONV PerlInterpreter*  perl_clone_using(PerlInterpreter *proto_perl, UV flags, struct IPerlMem* ipM, struct IPerlMem* ipMS, struct IPerlMem* ipMP, struct IPerlEnv* ipE, struct IPerlStdIO* ipStd, struct IPerlLIO* ipLIO, struct IPerlDir* ipD, struct IPerlSock* ipS, struct IPerlProc* ipP);
4234 #define PERL_ARGS_ASSERT_PERL_CLONE_USING       \
4235         assert(proto_perl); assert(ipM); assert(ipMS); assert(ipMP); assert(ipE); assert(ipStd); assert(ipLIO); assert(ipD); assert(ipS); assert(ipP)
4236 #  endif
4237 #endif
4238 #if defined(PERL_IN_AV_C)
4239 STATIC MAGIC*   S_get_aux_mg(pTHX_ AV *av);
4240 #define PERL_ARGS_ASSERT_GET_AUX_MG     \
4241         assert(av)
4242 #endif
4243 #if defined(PERL_IN_DEB_C)
4244 STATIC void     S_deb_stack_n(pTHX_ SV** stack_base, I32 stack_min, I32 stack_max, I32 mark_min, I32 mark_max);
4245 #define PERL_ARGS_ASSERT_DEB_STACK_N    \
4246         assert(stack_base)
4247 #endif
4248 #if defined(PERL_IN_DOIO_C)
4249 STATIC void     S_exec_failed(pTHX_ const char *cmd, int fd, int do_report);
4250 #define PERL_ARGS_ASSERT_EXEC_FAILED    \
4251         assert(cmd)
4252 STATIC bool     S_ingroup(pTHX_ Gid_t testgid, bool effective)
4253                         __attribute__warn_unused_result__;
4254
4255 STATIC bool     S_openn_cleanup(pTHX_ GV *gv, IO *io, PerlIO *fp, char *mode, const char *oname, PerlIO *saveifp, PerlIO *saveofp, int savefd, char savetype, int writing, bool was_fdopen, const char *type);
4256 #define PERL_ARGS_ASSERT_OPENN_CLEANUP  \
4257         assert(gv); assert(io); assert(mode); assert(oname)
4258 STATIC IO *     S_openn_setup(pTHX_ GV *gv, char *mode, PerlIO **saveifp, PerlIO **saveofp, int *savefd, char *savetype);
4259 #define PERL_ARGS_ASSERT_OPENN_SETUP    \
4260         assert(gv); assert(mode); assert(saveifp); assert(saveofp); assert(savefd); assert(savetype)
4261 #endif
4262 #if defined(PERL_IN_DOOP_C)
4263 STATIC I32      S_do_trans_complex(pTHX_ SV * const sv)
4264                         __attribute__warn_unused_result__;
4265 #define PERL_ARGS_ASSERT_DO_TRANS_COMPLEX       \
4266         assert(sv)
4267
4268 STATIC I32      S_do_trans_complex_utf8(pTHX_ SV * const sv)
4269                         __attribute__warn_unused_result__;
4270 #define PERL_ARGS_ASSERT_DO_TRANS_COMPLEX_UTF8  \
4271         assert(sv)
4272
4273 STATIC I32      S_do_trans_count(pTHX_ SV * const sv)
4274                         __attribute__warn_unused_result__;
4275 #define PERL_ARGS_ASSERT_DO_TRANS_COUNT \
4276         assert(sv)
4277
4278 STATIC I32      S_do_trans_count_utf8(pTHX_ SV * const sv)
4279                         __attribute__warn_unused_result__;
4280 #define PERL_ARGS_ASSERT_DO_TRANS_COUNT_UTF8    \
4281         assert(sv)
4282
4283 STATIC I32      S_do_trans_simple(pTHX_ SV * const sv)
4284                         __attribute__warn_unused_result__;
4285 #define PERL_ARGS_ASSERT_DO_TRANS_SIMPLE        \
4286         assert(sv)
4287
4288 STATIC I32      S_do_trans_simple_utf8(pTHX_ SV * const sv)
4289                         __attribute__warn_unused_result__;
4290 #define PERL_ARGS_ASSERT_DO_TRANS_SIMPLE_UTF8   \
4291         assert(sv)
4292
4293 #endif
4294 #if defined(PERL_IN_DUMP_C)
4295 STATIC CV*      S_deb_curcv(pTHX_ I32 ix);
4296 STATIC void     S_debprof(pTHX_ const OP *o);
4297 #define PERL_ARGS_ASSERT_DEBPROF        \
4298         assert(o)
4299 STATIC SV*      S_pm_description(pTHX_ const PMOP *pm);
4300 #define PERL_ARGS_ASSERT_PM_DESCRIPTION \
4301         assert(pm)
4302 STATIC UV       S_sequence_num(pTHX_ const OP *o);
4303 #endif
4304 #if defined(PERL_IN_DUMP_C) || defined(PERL_IN_HV_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_SCOPE_C)
4305 PERL_CALLCONV void      Perl_hv_kill_backrefs(pTHX_ HV *hv);
4306 #define PERL_ARGS_ASSERT_HV_KILL_BACKREFS       \
4307         assert(hv)
4308 #endif
4309 #if defined(PERL_IN_GV_C)
4310 STATIC bool     S_find_default_stash(pTHX_ HV **stash, const char *name, STRLEN len, const U32 is_utf8, const I32 add, const svtype sv_type);
4311 #define PERL_ARGS_ASSERT_FIND_DEFAULT_STASH     \
4312         assert(stash); assert(name)
4313 PERL_STATIC_INLINE GV*  S_gv_fetchmeth_internal(pTHX_ HV* stash, SV* meth, const char* name, STRLEN len, I32 level, U32 flags);
4314 STATIC void     S_gv_init_svtype(pTHX_ GV *gv, const svtype sv_type);
4315 #define PERL_ARGS_ASSERT_GV_INIT_SVTYPE \
4316         assert(gv)
4317 STATIC bool     S_gv_is_in_main(pTHX_ const char *name, STRLEN len, const U32 is_utf8);
4318 #define PERL_ARGS_ASSERT_GV_IS_IN_MAIN  \
4319         assert(name)
4320 STATIC bool     S_gv_magicalize(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, const svtype sv_type);
4321 #define PERL_ARGS_ASSERT_GV_MAGICALIZE  \
4322         assert(gv); assert(stash); assert(name)
4323 STATIC void     S_gv_magicalize_isa(pTHX_ GV *gv);
4324 #define PERL_ARGS_ASSERT_GV_MAGICALIZE_ISA      \
4325         assert(gv)
4326 PERL_STATIC_INLINE HV*  S_gv_stashpvn_internal(pTHX_ const char* name, U32 namelen, I32 flags);
4327 #define PERL_ARGS_ASSERT_GV_STASHPVN_INTERNAL   \
4328         assert(name)
4329 PERL_STATIC_INLINE HV*  S_gv_stashsvpvn_cached(pTHX_ SV *namesv, const char* name, U32 namelen, I32 flags);
4330 STATIC void     S_maybe_multimagic_gv(pTHX_ GV *gv, const char *name, const svtype sv_type);
4331 #define PERL_ARGS_ASSERT_MAYBE_MULTIMAGIC_GV    \
4332         assert(gv); assert(name)
4333 STATIC bool     S_parse_gv_stash_name(pTHX_ HV **stash, GV **gv, const char **name, STRLEN *len, const char *nambeg, STRLEN full_len, const U32 is_utf8, const I32 add);
4334 #define PERL_ARGS_ASSERT_PARSE_GV_STASH_NAME    \
4335         assert(stash); assert(gv); assert(name); assert(len); assert(nambeg)
4336 STATIC void     S_require_tie_mod(pTHX_ GV *gv, const char varname, const char * name, STRLEN len, const U32 flags);
4337 #define PERL_ARGS_ASSERT_REQUIRE_TIE_MOD        \
4338         assert(gv); assert(varname); assert(name)
4339 #endif
4340 #if defined(PERL_IN_GV_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_PAD_C) || defined(PERL_IN_OP_C)
4341 PERL_CALLCONV void      Perl_sv_add_backref(pTHX_ SV *const tsv, SV *const sv);
4342 #define PERL_ARGS_ASSERT_SV_ADD_BACKREF \
4343         assert(tsv); assert(sv)
4344 #endif
4345 #if defined(PERL_IN_HV_C)
4346 STATIC void     S_clear_placeholders(pTHX_ HV *hv, U32 items);
4347 #define PERL_ARGS_ASSERT_CLEAR_PLACEHOLDERS     \
4348         assert(hv)
4349 STATIC void     S_hfreeentries(pTHX_ HV *hv);
4350 #define PERL_ARGS_ASSERT_HFREEENTRIES   \
4351         assert(hv)
4352 STATIC void     S_hsplit(pTHX_ HV *hv, STRLEN const oldsize, STRLEN newsize);
4353 #define PERL_ARGS_ASSERT_HSPLIT \
4354         assert(hv)
4355 STATIC struct xpvhv_aux*        S_hv_auxinit(pTHX_ HV *hv);
4356 #define PERL_ARGS_ASSERT_HV_AUXINIT     \
4357         assert(hv)
4358 STATIC struct xpvhv_aux*        S_hv_auxinit_internal(struct xpvhv_aux *iter);
4359 #define PERL_ARGS_ASSERT_HV_AUXINIT_INTERNAL    \
4360         assert(iter)
4361 STATIC SV*      S_hv_delete_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen, int k_flags, I32 d_flags, U32 hash);
4362 STATIC SV*      S_hv_free_ent_ret(pTHX_ HV *hv, HE *entry);
4363 #define PERL_ARGS_ASSERT_HV_FREE_ENT_RET        \
4364         assert(hv); assert(entry)
4365 STATIC void     S_hv_magic_check(HV *hv, bool *needs_copy, bool *needs_store);
4366 #define PERL_ARGS_ASSERT_HV_MAGIC_CHECK \
4367         assert(hv); assert(needs_copy); assert(needs_store)
4368 PERL_STATIC_NO_RET void S_hv_notallowed(pTHX_ int flags, const char *key, I32 klen, const char *msg)
4369                         __attribute__noreturn__;
4370 #define PERL_ARGS_ASSERT_HV_NOTALLOWED  \
4371         assert(key); assert(msg)
4372
4373 STATIC HE*      S_new_he(pTHX)
4374                         __attribute__warn_unused_result__;
4375
4376 PERL_STATIC_INLINE U32  S_ptr_hash(PTRV u);
4377 STATIC SV *     S_refcounted_he_value(pTHX_ const struct refcounted_he *he);
4378 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_VALUE    \
4379         assert(he)
4380 STATIC HEK*     S_save_hek_flags(const char *str, I32 len, U32 hash, int flags)
4381                         __attribute__malloc__
4382                         __attribute__warn_unused_result__;
4383 #define PERL_ARGS_ASSERT_SAVE_HEK_FLAGS \
4384         assert(str)
4385
4386 STATIC HEK*     S_share_hek_flags(pTHX_ const char *str, I32 len, U32 hash, int flags)
4387                         __attribute__warn_unused_result__;
4388 #define PERL_ARGS_ASSERT_SHARE_HEK_FLAGS        \
4389         assert(str)
4390
4391 STATIC void     S_unshare_hek_or_pvn(pTHX_ const HEK* hek, const char* str, I32 len, U32 hash);
4392 #endif
4393 #if defined(PERL_IN_HV_C) || defined(PERL_IN_MG_C) || defined(PERL_IN_SV_C)
4394 PERL_CALLCONV void      Perl_sv_kill_backrefs(pTHX_ SV *const sv, AV *const av);
4395 #define PERL_ARGS_ASSERT_SV_KILL_BACKREFS       \
4396         assert(sv)
4397 #endif
4398 #if defined(PERL_IN_HV_C) || defined(PERL_IN_SV_C)
4399 PERL_CALLCONV SV*       Perl_hfree_next_entry(pTHX_ HV *hv, STRLEN *indexp);
4400 #define PERL_ARGS_ASSERT_HFREE_NEXT_ENTRY       \
4401         assert(hv); assert(indexp)
4402 #endif
4403 #if defined(PERL_IN_LOCALE_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_MATHOMS_C)
4404 #  if defined(USE_LOCALE_COLLATE)
4405 PERL_CALLCONV char*     Perl__mem_collxfrm(pTHX_ const char* input_string, STRLEN len, STRLEN* xlen, bool utf8);
4406 #define PERL_ARGS_ASSERT__MEM_COLLXFRM  \
4407         assert(input_string); assert(xlen)
4408 #  endif
4409 #endif
4410 #if defined(PERL_IN_MALLOC_C)
4411 STATIC int      S_adjust_size_and_find_bucket(size_t *nbytes_p);
4412 #define PERL_ARGS_ASSERT_ADJUST_SIZE_AND_FIND_BUCKET    \
4413         assert(nbytes_p)
4414 #endif
4415 #if defined(PERL_IN_MG_C)
4416 STATIC void     S_fixup_errno_string(pTHX_ SV* sv);
4417 #define PERL_ARGS_ASSERT_FIXUP_ERRNO_STRING     \
4418         assert(sv)
4419 STATIC SV*      S_magic_methcall1(pTHX_ SV *sv, const MAGIC *mg, SV *meth, U32 flags, int n, SV *val);
4420 #define PERL_ARGS_ASSERT_MAGIC_METHCALL1        \
4421         assert(sv); assert(mg); assert(meth)
4422 STATIC int      S_magic_methpack(pTHX_ SV *sv, const MAGIC *mg, SV *meth);
4423 #define PERL_ARGS_ASSERT_MAGIC_METHPACK \
4424         assert(sv); assert(mg); assert(meth)
4425 STATIC void     S_restore_magic(pTHX_ const void *p);
4426 STATIC void     S_save_magic_flags(pTHX_ I32 mgs_ix, SV *sv, U32 flags);
4427 #define PERL_ARGS_ASSERT_SAVE_MAGIC_FLAGS       \
4428         assert(sv)
4429 STATIC void     S_unwind_handler_stack(pTHX_ const void *p);
4430 #endif
4431 #if defined(PERL_IN_MG_C) || defined(PERL_IN_PP_C)
4432 PERL_CALLCONV bool      Perl_translate_substr_offsets(STRLEN curlen, IV pos1_iv, bool pos1_is_uv, IV len_iv, bool len_is_uv, STRLEN *posp, STRLEN *lenp);
4433 #define PERL_ARGS_ASSERT_TRANSLATE_SUBSTR_OFFSETS       \
4434         assert(posp); assert(lenp)
4435 #endif
4436 #if defined(PERL_IN_MRO_C)
4437 STATIC void     S_mro_clean_isarev(pTHX_ HV * const isa, const char * const name, const STRLEN len, HV * const exceptions, U32 hash, U32 flags);
4438 #define PERL_ARGS_ASSERT_MRO_CLEAN_ISAREV       \
4439         assert(isa); assert(name)
4440 STATIC void     S_mro_gather_and_rename(pTHX_ HV * const stashes, HV * const seen_stashes, HV *stash, HV *oldstash, SV *namesv);
4441 #define PERL_ARGS_ASSERT_MRO_GATHER_AND_RENAME  \
4442         assert(stashes); assert(seen_stashes); assert(namesv)
4443 STATIC AV*      S_mro_get_linear_isa_dfs(pTHX_ HV* stash, U32 level);
4444 #define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA_DFS \
4445         assert(stash)
4446 #endif
4447 #if defined(PERL_IN_OP_C)
4448 STATIC void     S_apply_attrs(pTHX_ HV *stash, SV *target, OP *attrs);
4449 #define PERL_ARGS_ASSERT_APPLY_ATTRS    \
4450         assert(stash); assert(target)
4451 STATIC void     S_apply_attrs_my(pTHX_ HV *stash, OP *target, OP *attrs, OP **imopsp);
4452 #define PERL_ARGS_ASSERT_APPLY_ATTRS_MY \
4453         assert(stash); assert(target); assert(imopsp)
4454 STATIC I32      S_assignment_type(pTHX_ const OP *o)
4455                         __attribute__warn_unused_result__;
4456
4457 STATIC void     S_bad_type_gv(pTHX_ I32 n, GV *gv, const OP *kid, const char *t);
4458 #define PERL_ARGS_ASSERT_BAD_TYPE_GV    \
4459         assert(gv); assert(kid); assert(t)
4460 STATIC void     S_bad_type_pv(pTHX_ I32 n, const char *t, const OP *o, const OP *kid);
4461 #define PERL_ARGS_ASSERT_BAD_TYPE_PV    \
4462         assert(t); assert(o); assert(kid)
4463 STATIC void     S_clear_special_blocks(pTHX_ const char *const fullname, GV *const gv, CV *const cv);
4464 #define PERL_ARGS_ASSERT_CLEAR_SPECIAL_BLOCKS   \
4465         assert(fullname); assert(gv); assert(cv)
4466 STATIC void     S_cop_free(pTHX_ COP *cop);
4467 #define PERL_ARGS_ASSERT_COP_FREE       \
4468         assert(cop)
4469 STATIC OP *     S_dup_attrlist(pTHX_ OP *o);
4470 #define PERL_ARGS_ASSERT_DUP_ATTRLIST   \
4471         assert(o)
4472 STATIC void     S_finalize_op(pTHX_ OP* o);
4473 #define PERL_ARGS_ASSERT_FINALIZE_OP    \
4474         assert(o)
4475 STATIC void     S_find_and_forget_pmops(pTHX_ OP *o);
4476 #define PERL_ARGS_ASSERT_FIND_AND_FORGET_PMOPS  \
4477         assert(o)
4478 STATIC OP*      S_fold_constants(pTHX_ OP *o);
4479 #define PERL_ARGS_ASSERT_FOLD_CONSTANTS \
4480         assert(o)
4481 STATIC OP*      S_force_list(pTHX_ OP* arg, bool nullit);
4482 STATIC void     S_forget_pmop(pTHX_ PMOP *const o);
4483 #define PERL_ARGS_ASSERT_FORGET_PMOP    \
4484         assert(o)
4485 STATIC OP*      S_gen_constant_list(pTHX_ OP* o);
4486 STATIC void     S_inplace_aassign(pTHX_ OP* o);
4487 #define PERL_ARGS_ASSERT_INPLACE_AASSIGN        \
4488         assert(o)
4489 STATIC bool     S_is_handle_constructor(const OP *o, I32 numargs)
4490                         __attribute__warn_unused_result__;
4491 #define PERL_ARGS_ASSERT_IS_HANDLE_CONSTRUCTOR  \
4492         assert(o)
4493
4494 STATIC OP*      S_listkids(pTHX_ OP* o);
4495 STATIC bool     S_looks_like_bool(pTHX_ const OP* o);
4496 #define PERL_ARGS_ASSERT_LOOKS_LIKE_BOOL        \
4497         assert(o)
4498 STATIC OP*      S_modkids(pTHX_ OP *o, I32 type);
4499 STATIC void     S_move_proto_attr(pTHX_ OP **proto, OP **attrs, const GV *name);
4500 #de