This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #108276) indent optimize_op() loop body
[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 int       Perl_PerlLIO_dup2_cloexec(pTHX_ int oldfd, int newfd);
39 PERL_CALLCONV int       Perl_PerlLIO_dup_cloexec(pTHX_ int oldfd)
40                         __attribute__warn_unused_result__;
41
42 PERL_CALLCONV int       Perl_PerlLIO_open3_cloexec(pTHX_ const char *file, int flag, int perm)
43                         __attribute__warn_unused_result__;
44 #define PERL_ARGS_ASSERT_PERLLIO_OPEN3_CLOEXEC  \
45         assert(file)
46
47 PERL_CALLCONV int       Perl_PerlLIO_open_cloexec(pTHX_ const char *file, int flag)
48                         __attribute__warn_unused_result__;
49 #define PERL_ARGS_ASSERT_PERLLIO_OPEN_CLOEXEC   \
50         assert(file)
51
52 PERL_CALLCONV const char*       Perl_setlocale(const int category, const char* locale);
53 PERL_CALLCONV void*     Perl_Slab_Alloc(pTHX_ size_t sz)
54                         __attribute__warn_unused_result__;
55
56 PERL_CALLCONV void      Perl_Slab_Free(pTHX_ void *op);
57 #define PERL_ARGS_ASSERT_SLAB_FREE      \
58         assert(op)
59 PERL_CALLCONV char *    Perl__byte_dump_string(pTHX_ const U8 * const start, const STRLEN len, const bool format);
60 #define PERL_ARGS_ASSERT__BYTE_DUMP_STRING      \
61         assert(start)
62 PERL_CALLCONV void      Perl__force_out_malformed_utf8_message(pTHX_ const U8 *const p, const U8 * const e, const U32 flags, const bool die_here);
63 #define PERL_ARGS_ASSERT__FORCE_OUT_MALFORMED_UTF8_MESSAGE      \
64         assert(p); assert(e)
65 PERL_CALLCONV Size_t    Perl__inverse_folds(pTHX_ const UV cp, unsigned int * first_folds_to, const unsigned int ** remaining_folds_to)
66                         __attribute__warn_unused_result__;
67 #define PERL_ARGS_ASSERT__INVERSE_FOLDS \
68         assert(first_folds_to); assert(remaining_folds_to)
69
70 PERL_CALLCONV bool      Perl__is_in_locale_category(pTHX_ const bool compiling, const int category);
71 PERL_CALLCONV bool      Perl__is_uni_FOO(pTHX_ const U8 classnum, const UV c)
72                         __attribute__warn_unused_result__;
73
74 PERL_CALLCONV bool      Perl__is_uni_perl_idcont(pTHX_ UV c)
75                         __attribute__warn_unused_result__;
76
77 PERL_CALLCONV bool      Perl__is_uni_perl_idstart(pTHX_ UV c)
78                         __attribute__warn_unused_result__;
79
80 PERL_CALLCONV bool      Perl__is_utf8_FOO(pTHX_ U8 classnum, const U8 * const p, const char * const name, const char * const alternative, const bool use_utf8, const bool use_locale, const char * const file, const unsigned line)
81                         __attribute__warn_unused_result__;
82 #define PERL_ARGS_ASSERT__IS_UTF8_FOO   \
83         assert(p); assert(name); assert(alternative); assert(file)
84
85 PERL_CALLCONV bool      Perl__is_utf8_FOO_with_len(pTHX_ const U8 classnum, const U8 *p, const U8 * const e)
86                         __attribute__warn_unused_result__;
87 #define PERL_ARGS_ASSERT__IS_UTF8_FOO_WITH_LEN  \
88         assert(p); assert(e)
89
90 PERL_CALLCONV STRLEN    Perl__is_utf8_char_helper(const U8 * const s, const U8 * e, const U32 flags)
91                         __attribute__warn_unused_result__
92                         __attribute__pure__;
93 #define PERL_ARGS_ASSERT__IS_UTF8_CHAR_HELPER   \
94         assert(s); assert(e)
95
96 PERL_CALLCONV bool      Perl__is_utf8_idcont(pTHX_ const U8 *p)
97                         __attribute__warn_unused_result__;
98 #define PERL_ARGS_ASSERT__IS_UTF8_IDCONT        \
99         assert(p)
100
101 PERL_CALLCONV bool      Perl__is_utf8_idstart(pTHX_ const U8 *p)
102                         __attribute__warn_unused_result__;
103 #define PERL_ARGS_ASSERT__IS_UTF8_IDSTART       \
104         assert(p)
105
106 PERL_CALLCONV bool      Perl__is_utf8_mark(pTHX_ const U8 *p)
107                         __attribute__warn_unused_result__;
108 #define PERL_ARGS_ASSERT__IS_UTF8_MARK  \
109         assert(p)
110
111 PERL_CALLCONV bool      Perl__is_utf8_perl_idcont_with_len(pTHX_ const U8 *p, const U8 * const e)
112                         __attribute__warn_unused_result__;
113 #define PERL_ARGS_ASSERT__IS_UTF8_PERL_IDCONT_WITH_LEN  \
114         assert(p); assert(e)
115
116 PERL_CALLCONV bool      Perl__is_utf8_perl_idstart_with_len(pTHX_ const U8 *p, const U8 * const e)
117                         __attribute__warn_unused_result__;
118 #define PERL_ARGS_ASSERT__IS_UTF8_PERL_IDSTART_WITH_LEN \
119         assert(p); assert(e)
120
121 PERL_CALLCONV bool      Perl__is_utf8_xidcont(pTHX_ const U8 *p)
122                         __attribute__warn_unused_result__;
123 #define PERL_ARGS_ASSERT__IS_UTF8_XIDCONT       \
124         assert(p)
125
126 PERL_CALLCONV bool      Perl__is_utf8_xidstart(pTHX_ const U8 *p)
127                         __attribute__warn_unused_result__;
128 #define PERL_ARGS_ASSERT__IS_UTF8_XIDSTART      \
129         assert(p)
130
131 PERL_CALLCONV UV        Perl__to_uni_fold_flags(pTHX_ UV c, U8 *p, STRLEN *lenp, U8 flags);
132 #define PERL_ARGS_ASSERT__TO_UNI_FOLD_FLAGS     \
133         assert(p); assert(lenp)
134 PERL_CALLCONV UV        Perl__to_utf8_fold_flags(pTHX_ const U8 *p, const U8 *e, U8* ustrp, STRLEN *lenp, U8 flags, const char * const file, const int line);
135 #define PERL_ARGS_ASSERT__TO_UTF8_FOLD_FLAGS    \
136         assert(p); assert(ustrp); assert(file)
137 PERL_CALLCONV UV        Perl__to_utf8_lower_flags(pTHX_ const U8 *p, const U8* e, U8* ustrp, STRLEN *lenp, bool flags, const char * const file, const int line);
138 #define PERL_ARGS_ASSERT__TO_UTF8_LOWER_FLAGS   \
139         assert(p); assert(ustrp); assert(file)
140 PERL_CALLCONV UV        Perl__to_utf8_title_flags(pTHX_ const U8 *p, const U8* e, U8* ustrp, STRLEN *lenp, bool flags, const char * const file, const int line);
141 #define PERL_ARGS_ASSERT__TO_UTF8_TITLE_FLAGS   \
142         assert(p); assert(ustrp); assert(file)
143 PERL_CALLCONV UV        Perl__to_utf8_upper_flags(pTHX_ const U8 *p, const U8 *e, U8* ustrp, STRLEN *lenp, bool flags, const char * const file, const int line);
144 #define PERL_ARGS_ASSERT__TO_UTF8_UPPER_FLAGS   \
145         assert(p); assert(ustrp); assert(file)
146 PERL_CALLCONV UV        Perl__utf8n_to_uvchr_msgs_helper(const U8 *s, STRLEN curlen, STRLEN *retlen, const U32 flags, U32 * errors, AV ** msgs);
147 #define PERL_ARGS_ASSERT__UTF8N_TO_UVCHR_MSGS_HELPER    \
148         assert(s)
149 PERL_CALLCONV void      Perl__warn_problematic_locale(void);
150 PERL_CALLCONV_NO_RET void       Perl_abort_execution(pTHX_ const char * const msg, const char * const name)
151                         __attribute__noreturn__;
152 #define PERL_ARGS_ASSERT_ABORT_EXECUTION        \
153         assert(msg); assert(name)
154
155 PERL_CALLCONV LOGOP*    Perl_alloc_LOGOP(pTHX_ I32 type, OP *first, OP *other);
156 PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name, const STRLEN len, const U32 flags);
157 #define PERL_ARGS_ASSERT_ALLOCMY        \
158         assert(name)
159 PERL_CALLCONV SV*       Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir);
160 #define PERL_ARGS_ASSERT_AMAGIC_CALL    \
161         assert(left); assert(right)
162 PERL_CALLCONV SV *      Perl_amagic_deref_call(pTHX_ SV *ref, int method);
163 #define PERL_ARGS_ASSERT_AMAGIC_DEREF_CALL      \
164         assert(ref)
165 PERL_CALLCONV bool      Perl_amagic_is_enabled(pTHX_ int method);
166 #ifndef PERL_NO_INLINE_FUNCTIONS
167 PERL_STATIC_INLINE void S_append_utf8_from_native_byte(const U8 byte, U8** dest);
168 #define PERL_ARGS_ASSERT_APPEND_UTF8_FROM_NATIVE_BYTE   \
169         assert(dest)
170 #endif
171 PERL_CALLCONV I32       Perl_apply(pTHX_ I32 type, SV** mark, SV** sp);
172 #define PERL_ARGS_ASSERT_APPLY  \
173         assert(mark); assert(sp)
174 PERL_CALLCONV void      Perl_apply_attrs_string(pTHX_ const char *stashpv, CV *cv, const char *attrstr, STRLEN len);
175 #define PERL_ARGS_ASSERT_APPLY_ATTRS_STRING     \
176         assert(stashpv); assert(cv); assert(attrstr)
177 PERL_CALLCONV void      Perl_atfork_lock(void);
178 PERL_CALLCONV void      Perl_atfork_unlock(void);
179 PERL_CALLCONV SV**      Perl_av_arylen_p(pTHX_ AV *av);
180 #define PERL_ARGS_ASSERT_AV_ARYLEN_P    \
181         assert(av)
182 PERL_CALLCONV void      Perl_av_clear(pTHX_ AV *av);
183 #define PERL_ARGS_ASSERT_AV_CLEAR       \
184         assert(av)
185 PERL_CALLCONV void      Perl_av_create_and_push(pTHX_ AV **const avp, SV *const val);
186 #define PERL_ARGS_ASSERT_AV_CREATE_AND_PUSH     \
187         assert(avp); assert(val)
188 PERL_CALLCONV SV**      Perl_av_create_and_unshift_one(pTHX_ AV **const avp, SV *const val);
189 #define PERL_ARGS_ASSERT_AV_CREATE_AND_UNSHIFT_ONE      \
190         assert(avp); assert(val)
191 PERL_CALLCONV SV*       Perl_av_delete(pTHX_ AV *av, SSize_t key, I32 flags);
192 #define PERL_ARGS_ASSERT_AV_DELETE      \
193         assert(av)
194 PERL_CALLCONV bool      Perl_av_exists(pTHX_ AV *av, SSize_t key)
195                         __attribute__warn_unused_result__;
196 #define PERL_ARGS_ASSERT_AV_EXISTS      \
197         assert(av)
198
199 PERL_CALLCONV void      Perl_av_extend(pTHX_ AV *av, SSize_t key);
200 #define PERL_ARGS_ASSERT_AV_EXTEND      \
201         assert(av)
202 PERL_CALLCONV void      Perl_av_extend_guts(pTHX_ AV *av, SSize_t key, SSize_t *maxp, SV ***allocp, SV ***arrayp);
203 #define PERL_ARGS_ASSERT_AV_EXTEND_GUTS \
204         assert(maxp); assert(allocp); assert(arrayp)
205 PERL_CALLCONV SV**      Perl_av_fetch(pTHX_ AV *av, SSize_t key, I32 lval)
206                         __attribute__warn_unused_result__;
207 #define PERL_ARGS_ASSERT_AV_FETCH       \
208         assert(av)
209
210 PERL_CALLCONV void      Perl_av_fill(pTHX_ AV *av, SSize_t fill);
211 #define PERL_ARGS_ASSERT_AV_FILL        \
212         assert(av)
213 PERL_CALLCONV IV*       Perl_av_iter_p(pTHX_ AV *av);
214 #define PERL_ARGS_ASSERT_AV_ITER_P      \
215         assert(av)
216 PERL_CALLCONV SSize_t   Perl_av_len(pTHX_ AV *av)
217                         __attribute__warn_unused_result__;
218 #define PERL_ARGS_ASSERT_AV_LEN \
219         assert(av)
220
221 PERL_CALLCONV AV*       Perl_av_make(pTHX_ SSize_t size, SV **strp)
222                         __attribute__warn_unused_result__;
223 #define PERL_ARGS_ASSERT_AV_MAKE        \
224         assert(strp)
225
226 PERL_CALLCONV SV*       Perl_av_nonelem(pTHX_ AV *av, SSize_t ix);
227 #define PERL_ARGS_ASSERT_AV_NONELEM     \
228         assert(av)
229 PERL_CALLCONV SV*       Perl_av_pop(pTHX_ AV *av);
230 #define PERL_ARGS_ASSERT_AV_POP \
231         assert(av)
232 PERL_CALLCONV void      Perl_av_push(pTHX_ AV *av, SV *val);
233 #define PERL_ARGS_ASSERT_AV_PUSH        \
234         assert(av); assert(val)
235 PERL_CALLCONV void      Perl_av_reify(pTHX_ AV *av);
236 #define PERL_ARGS_ASSERT_AV_REIFY       \
237         assert(av)
238 PERL_CALLCONV SV*       Perl_av_shift(pTHX_ AV *av)
239                         __attribute__warn_unused_result__;
240 #define PERL_ARGS_ASSERT_AV_SHIFT       \
241         assert(av)
242
243 PERL_CALLCONV SV**      Perl_av_store(pTHX_ AV *av, SSize_t key, SV *val);
244 #define PERL_ARGS_ASSERT_AV_STORE       \
245         assert(av)
246 /* PERL_CALLCONV SSize_t        Perl_av_tindex(pTHX_ AV *av)
247                         __attribute__warn_unused_result__; */
248
249 #ifndef PERL_NO_INLINE_FUNCTIONS
250 PERL_STATIC_INLINE SSize_t      S_av_top_index(pTHX_ AV *av)
251                         __attribute__warn_unused_result__;
252 #define PERL_ARGS_ASSERT_AV_TOP_INDEX   \
253         assert(av)
254 #endif
255
256 PERL_CALLCONV void      Perl_av_undef(pTHX_ AV *av);
257 #define PERL_ARGS_ASSERT_AV_UNDEF       \
258         assert(av)
259 PERL_CALLCONV void      Perl_av_unshift(pTHX_ AV *av, SSize_t num);
260 #define PERL_ARGS_ASSERT_AV_UNSHIFT     \
261         assert(av)
262 PERL_CALLCONV OP*       Perl_bind_match(pTHX_ I32 type, OP *left, OP *right)
263                         __attribute__warn_unused_result__;
264 #define PERL_ARGS_ASSERT_BIND_MATCH     \
265         assert(left); assert(right)
266
267 PERL_CALLCONV OP*       Perl_block_end(pTHX_ I32 floor, OP* seq)
268                         __attribute__warn_unused_result__;
269
270 PERL_CALLCONV U8        Perl_block_gimme(pTHX)
271                         __attribute__warn_unused_result__;
272
273 PERL_CALLCONV int       Perl_block_start(pTHX_ int full)
274                         __attribute__warn_unused_result__;
275
276 PERL_CALLCONV void      Perl_blockhook_register(pTHX_ BHK *hk);
277 #define PERL_ARGS_ASSERT_BLOCKHOOK_REGISTER     \
278         assert(hk)
279 PERL_CALLCONV void      Perl_boot_core_PerlIO(pTHX);
280 PERL_CALLCONV void      Perl_boot_core_UNIVERSAL(pTHX);
281 PERL_CALLCONV void      Perl_boot_core_mro(pTHX);
282 PERL_CALLCONV int       Perl_bytes_cmp_utf8(pTHX_ const U8 *b, STRLEN blen, const U8 *u, STRLEN ulen);
283 #define PERL_ARGS_ASSERT_BYTES_CMP_UTF8 \
284         assert(b); assert(u)
285 PERL_CALLCONV U8*       Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *lenp, bool *is_utf8p);
286 #define PERL_ARGS_ASSERT_BYTES_FROM_UTF8        \
287         assert(s); assert(lenp); assert(is_utf8p)
288 PERL_CALLCONV U8*       Perl_bytes_from_utf8_loc(const U8 *s, STRLEN *lenp, bool *is_utf8p, const U8 ** first_unconverted);
289 #define PERL_ARGS_ASSERT_BYTES_FROM_UTF8_LOC    \
290         assert(s); assert(lenp); assert(is_utf8p)
291 PERL_CALLCONV U8*       Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *lenp);
292 #define PERL_ARGS_ASSERT_BYTES_TO_UTF8  \
293         assert(s); assert(lenp)
294 PERL_CALLCONV I32       Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv);
295 #define PERL_ARGS_ASSERT_CALL_ARGV      \
296         assert(sub_name); assert(argv)
297 PERL_CALLCONV void      Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
298 PERL_CALLCONV void      Perl_call_list(pTHX_ I32 oldscope, AV *paramList);
299 #define PERL_ARGS_ASSERT_CALL_LIST      \
300         assert(paramList)
301 PERL_CALLCONV I32       Perl_call_method(pTHX_ const char* methname, I32 flags);
302 #define PERL_ARGS_ASSERT_CALL_METHOD    \
303         assert(methname)
304 PERL_CALLCONV I32       Perl_call_pv(pTHX_ const char* sub_name, I32 flags);
305 #define PERL_ARGS_ASSERT_CALL_PV        \
306         assert(sub_name)
307 PERL_CALLCONV I32       Perl_call_sv(pTHX_ SV* sv, volatile I32 flags);
308 #define PERL_ARGS_ASSERT_CALL_SV        \
309         assert(sv)
310 PERL_CALLCONV const PERL_CONTEXT *      Perl_caller_cx(pTHX_ I32 level, const PERL_CONTEXT **dbcxp);
311 PERL_CALLCONV Malloc_t  Perl_calloc(MEM_SIZE elements, MEM_SIZE size)
312                         __attribute__malloc__
313                         __attribute__warn_unused_result__;
314
315 PERL_CALLCONV bool      Perl_cando(pTHX_ Mode_t mode, bool effective, const Stat_t* statbufp)
316                         __attribute__warn_unused_result__;
317 #define PERL_ARGS_ASSERT_CANDO  \
318         assert(statbufp)
319
320 PERL_CALLCONV I32       Perl_cast_i32(NV f)
321                         __attribute__warn_unused_result__;
322
323 PERL_CALLCONV IV        Perl_cast_iv(NV f)
324                         __attribute__warn_unused_result__;
325
326 PERL_CALLCONV U32       Perl_cast_ulong(NV f)
327                         __attribute__warn_unused_result__;
328
329 PERL_CALLCONV UV        Perl_cast_uv(NV f)
330                         __attribute__warn_unused_result__;
331
332 PERL_CALLCONV bool      Perl_check_utf8_print(pTHX_ const U8 *s, const STRLEN len);
333 #define PERL_ARGS_ASSERT_CHECK_UTF8_PRINT       \
334         assert(s)
335 PERL_CALLCONV OP *      Perl_ck_anoncode(pTHX_ OP *o)
336                         __attribute__warn_unused_result__;
337 #define PERL_ARGS_ASSERT_CK_ANONCODE    \
338         assert(o)
339
340 PERL_CALLCONV OP *      Perl_ck_backtick(pTHX_ OP *o)
341                         __attribute__warn_unused_result__;
342 #define PERL_ARGS_ASSERT_CK_BACKTICK    \
343         assert(o)
344
345 PERL_CALLCONV OP *      Perl_ck_bitop(pTHX_ OP *o)
346                         __attribute__warn_unused_result__;
347 #define PERL_ARGS_ASSERT_CK_BITOP       \
348         assert(o)
349
350 PERL_CALLCONV OP *      Perl_ck_cmp(pTHX_ OP *o)
351                         __attribute__warn_unused_result__;
352 #define PERL_ARGS_ASSERT_CK_CMP \
353         assert(o)
354
355 PERL_CALLCONV OP *      Perl_ck_concat(pTHX_ OP *o)
356                         __attribute__warn_unused_result__;
357 #define PERL_ARGS_ASSERT_CK_CONCAT      \
358         assert(o)
359
360 PERL_CALLCONV OP *      Perl_ck_defined(pTHX_ OP *o)
361                         __attribute__warn_unused_result__;
362 #define PERL_ARGS_ASSERT_CK_DEFINED     \
363         assert(o)
364
365 PERL_CALLCONV OP *      Perl_ck_delete(pTHX_ OP *o)
366                         __attribute__warn_unused_result__;
367 #define PERL_ARGS_ASSERT_CK_DELETE      \
368         assert(o)
369
370 PERL_CALLCONV OP *      Perl_ck_each(pTHX_ OP *o)
371                         __attribute__warn_unused_result__;
372 #define PERL_ARGS_ASSERT_CK_EACH        \
373         assert(o)
374
375 PERL_CALLCONV OP*       Perl_ck_entersub_args_core(pTHX_ OP *entersubop, GV *namegv, SV *protosv);
376 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_CORE  \
377         assert(entersubop); assert(namegv); assert(protosv)
378 PERL_CALLCONV OP*       Perl_ck_entersub_args_list(pTHX_ OP *entersubop);
379 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_LIST  \
380         assert(entersubop)
381 PERL_CALLCONV OP*       Perl_ck_entersub_args_proto(pTHX_ OP *entersubop, GV *namegv, SV *protosv);
382 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_PROTO \
383         assert(entersubop); assert(namegv); assert(protosv)
384 PERL_CALLCONV OP*       Perl_ck_entersub_args_proto_or_list(pTHX_ OP *entersubop, GV *namegv, SV *protosv);
385 #define PERL_ARGS_ASSERT_CK_ENTERSUB_ARGS_PROTO_OR_LIST \
386         assert(entersubop); assert(namegv); assert(protosv)
387 PERL_CALLCONV OP *      Perl_ck_eof(pTHX_ OP *o)
388                         __attribute__warn_unused_result__;
389 #define PERL_ARGS_ASSERT_CK_EOF \
390         assert(o)
391
392 PERL_CALLCONV OP *      Perl_ck_eval(pTHX_ OP *o)
393                         __attribute__warn_unused_result__;
394 #define PERL_ARGS_ASSERT_CK_EVAL        \
395         assert(o)
396
397 PERL_CALLCONV OP *      Perl_ck_exec(pTHX_ OP *o)
398                         __attribute__warn_unused_result__;
399 #define PERL_ARGS_ASSERT_CK_EXEC        \
400         assert(o)
401
402 PERL_CALLCONV OP *      Perl_ck_exists(pTHX_ OP *o)
403                         __attribute__warn_unused_result__;
404 #define PERL_ARGS_ASSERT_CK_EXISTS      \
405         assert(o)
406
407 PERL_CALLCONV OP *      Perl_ck_ftst(pTHX_ OP *o)
408                         __attribute__warn_unused_result__;
409 #define PERL_ARGS_ASSERT_CK_FTST        \
410         assert(o)
411
412 PERL_CALLCONV OP *      Perl_ck_fun(pTHX_ OP *o)
413                         __attribute__warn_unused_result__;
414 #define PERL_ARGS_ASSERT_CK_FUN \
415         assert(o)
416
417 PERL_CALLCONV OP *      Perl_ck_glob(pTHX_ OP *o)
418                         __attribute__warn_unused_result__;
419 #define PERL_ARGS_ASSERT_CK_GLOB        \
420         assert(o)
421
422 PERL_CALLCONV OP *      Perl_ck_grep(pTHX_ OP *o)
423                         __attribute__warn_unused_result__;
424 #define PERL_ARGS_ASSERT_CK_GREP        \
425         assert(o)
426
427 PERL_CALLCONV OP *      Perl_ck_index(pTHX_ OP *o)
428                         __attribute__warn_unused_result__;
429 #define PERL_ARGS_ASSERT_CK_INDEX       \
430         assert(o)
431
432 PERL_CALLCONV OP *      Perl_ck_join(pTHX_ OP *o)
433                         __attribute__warn_unused_result__;
434 #define PERL_ARGS_ASSERT_CK_JOIN        \
435         assert(o)
436
437 PERL_CALLCONV OP *      Perl_ck_length(pTHX_ OP *o)
438                         __attribute__warn_unused_result__;
439 #define PERL_ARGS_ASSERT_CK_LENGTH      \
440         assert(o)
441
442 PERL_CALLCONV OP *      Perl_ck_lfun(pTHX_ OP *o)
443                         __attribute__warn_unused_result__;
444 #define PERL_ARGS_ASSERT_CK_LFUN        \
445         assert(o)
446
447 PERL_CALLCONV OP *      Perl_ck_listiob(pTHX_ OP *o)
448                         __attribute__warn_unused_result__;
449 #define PERL_ARGS_ASSERT_CK_LISTIOB     \
450         assert(o)
451
452 PERL_CALLCONV OP *      Perl_ck_match(pTHX_ OP *o)
453                         __attribute__warn_unused_result__;
454 #define PERL_ARGS_ASSERT_CK_MATCH       \
455         assert(o)
456
457 PERL_CALLCONV OP *      Perl_ck_method(pTHX_ OP *o)
458                         __attribute__warn_unused_result__;
459 #define PERL_ARGS_ASSERT_CK_METHOD      \
460         assert(o)
461
462 PERL_CALLCONV OP *      Perl_ck_null(pTHX_ OP *o)
463                         __attribute__warn_unused_result__;
464 #define PERL_ARGS_ASSERT_CK_NULL        \
465         assert(o)
466
467 PERL_CALLCONV OP *      Perl_ck_open(pTHX_ OP *o)
468                         __attribute__warn_unused_result__;
469 #define PERL_ARGS_ASSERT_CK_OPEN        \
470         assert(o)
471
472 PERL_CALLCONV OP *      Perl_ck_prototype(pTHX_ OP *o)
473                         __attribute__warn_unused_result__;
474 #define PERL_ARGS_ASSERT_CK_PROTOTYPE   \
475         assert(o)
476
477 PERL_CALLCONV OP *      Perl_ck_readline(pTHX_ OP *o)
478                         __attribute__warn_unused_result__;
479 #define PERL_ARGS_ASSERT_CK_READLINE    \
480         assert(o)
481
482 PERL_CALLCONV OP *      Perl_ck_refassign(pTHX_ OP *o)
483                         __attribute__warn_unused_result__;
484 #define PERL_ARGS_ASSERT_CK_REFASSIGN   \
485         assert(o)
486
487 PERL_CALLCONV OP *      Perl_ck_repeat(pTHX_ OP *o)
488                         __attribute__warn_unused_result__;
489 #define PERL_ARGS_ASSERT_CK_REPEAT      \
490         assert(o)
491
492 PERL_CALLCONV OP *      Perl_ck_require(pTHX_ OP *o)
493                         __attribute__warn_unused_result__;
494 #define PERL_ARGS_ASSERT_CK_REQUIRE     \
495         assert(o)
496
497 PERL_CALLCONV OP *      Perl_ck_return(pTHX_ OP *o)
498                         __attribute__warn_unused_result__;
499 #define PERL_ARGS_ASSERT_CK_RETURN      \
500         assert(o)
501
502 PERL_CALLCONV OP *      Perl_ck_rfun(pTHX_ OP *o)
503                         __attribute__warn_unused_result__;
504 #define PERL_ARGS_ASSERT_CK_RFUN        \
505         assert(o)
506
507 PERL_CALLCONV OP *      Perl_ck_rvconst(pTHX_ OP *o)
508                         __attribute__warn_unused_result__;
509 #define PERL_ARGS_ASSERT_CK_RVCONST     \
510         assert(o)
511
512 PERL_CALLCONV OP *      Perl_ck_sassign(pTHX_ OP *o)
513                         __attribute__warn_unused_result__;
514 #define PERL_ARGS_ASSERT_CK_SASSIGN     \
515         assert(o)
516
517 PERL_CALLCONV OP *      Perl_ck_select(pTHX_ OP *o)
518                         __attribute__warn_unused_result__;
519 #define PERL_ARGS_ASSERT_CK_SELECT      \
520         assert(o)
521
522 PERL_CALLCONV OP *      Perl_ck_shift(pTHX_ OP *o)
523                         __attribute__warn_unused_result__;
524 #define PERL_ARGS_ASSERT_CK_SHIFT       \
525         assert(o)
526
527 PERL_CALLCONV OP *      Perl_ck_smartmatch(pTHX_ OP *o)
528                         __attribute__warn_unused_result__;
529 #define PERL_ARGS_ASSERT_CK_SMARTMATCH  \
530         assert(o)
531
532 PERL_CALLCONV OP *      Perl_ck_sort(pTHX_ OP *o)
533                         __attribute__warn_unused_result__;
534 #define PERL_ARGS_ASSERT_CK_SORT        \
535         assert(o)
536
537 PERL_CALLCONV OP *      Perl_ck_spair(pTHX_ OP *o)
538                         __attribute__warn_unused_result__;
539 #define PERL_ARGS_ASSERT_CK_SPAIR       \
540         assert(o)
541
542 PERL_CALLCONV OP *      Perl_ck_split(pTHX_ OP *o)
543                         __attribute__warn_unused_result__;
544 #define PERL_ARGS_ASSERT_CK_SPLIT       \
545         assert(o)
546
547 PERL_CALLCONV OP *      Perl_ck_stringify(pTHX_ OP *o)
548                         __attribute__warn_unused_result__;
549 #define PERL_ARGS_ASSERT_CK_STRINGIFY   \
550         assert(o)
551
552 PERL_CALLCONV OP *      Perl_ck_subr(pTHX_ OP *o)
553                         __attribute__warn_unused_result__;
554 #define PERL_ARGS_ASSERT_CK_SUBR        \
555         assert(o)
556
557 PERL_CALLCONV OP *      Perl_ck_substr(pTHX_ OP *o)
558                         __attribute__warn_unused_result__;
559 #define PERL_ARGS_ASSERT_CK_SUBSTR      \
560         assert(o)
561
562 PERL_CALLCONV OP *      Perl_ck_svconst(pTHX_ OP *o)
563                         __attribute__warn_unused_result__;
564 #define PERL_ARGS_ASSERT_CK_SVCONST     \
565         assert(o)
566
567 PERL_CALLCONV OP *      Perl_ck_tell(pTHX_ OP *o)
568                         __attribute__warn_unused_result__;
569 #define PERL_ARGS_ASSERT_CK_TELL        \
570         assert(o)
571
572 PERL_CALLCONV OP *      Perl_ck_trunc(pTHX_ OP *o)
573                         __attribute__warn_unused_result__;
574 #define PERL_ARGS_ASSERT_CK_TRUNC       \
575         assert(o)
576
577 PERL_CALLCONV void      Perl_ck_warner(pTHX_ U32 err, const char* pat, ...)
578                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
579 #define PERL_ARGS_ASSERT_CK_WARNER      \
580         assert(pat)
581
582 PERL_CALLCONV void      Perl_ck_warner_d(pTHX_ U32 err, const char* pat, ...)
583                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
584 #define PERL_ARGS_ASSERT_CK_WARNER_D    \
585         assert(pat)
586
587 PERL_CALLCONV bool      Perl_ckwarn(pTHX_ U32 w)
588                         __attribute__warn_unused_result__
589                         __attribute__pure__;
590
591 PERL_CALLCONV bool      Perl_ckwarn_d(pTHX_ U32 w)
592                         __attribute__warn_unused_result__
593                         __attribute__pure__;
594
595 PERL_CALLCONV void      Perl_clear_defarray(pTHX_ AV* av, bool abandon);
596 #define PERL_ARGS_ASSERT_CLEAR_DEFARRAY \
597         assert(av)
598 PERL_CALLCONV const COP*        Perl_closest_cop(pTHX_ const COP *cop, const OP *o, const OP *curop, bool opnext);
599 #define PERL_ARGS_ASSERT_CLOSEST_COP    \
600         assert(cop)
601 PERL_CALLCONV const char *      Perl_cop_fetch_label(pTHX_ COP *const cop, STRLEN *len, U32 *flags);
602 #define PERL_ARGS_ASSERT_COP_FETCH_LABEL        \
603         assert(cop)
604 PERL_CALLCONV void      Perl_cop_store_label(pTHX_ COP *const cop, const char *label, STRLEN len, U32 flags);
605 #define PERL_ARGS_ASSERT_COP_STORE_LABEL        \
606         assert(cop); assert(label)
607 PERL_CALLCONV SV *      Perl_core_prototype(pTHX_ SV *sv, const char *name, const int code, int * const opnum);
608 #define PERL_ARGS_ASSERT_CORE_PROTOTYPE \
609         assert(name)
610 PERL_CALLCONV OP *      Perl_coresub_op(pTHX_ SV *const coreargssv, const int code, const int opnum);
611 #define PERL_ARGS_ASSERT_CORESUB_OP     \
612         assert(coreargssv)
613 PERL_CALLCONV void      Perl_create_eval_scope(pTHX_ OP *retop, U32 flags);
614 PERL_CALLCONV_NO_RET void       Perl_croak(pTHX_ const char* pat, ...)
615                         __attribute__noreturn__
616                         __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
617
618 PERL_CALLCONV_NO_RET void       Perl_croak_caller(const char* pat, ...)
619                         __attribute__noreturn__
620                         __attribute__format__null_ok__(__printf__,1,2);
621
622 PERL_STATIC_NO_RET void S_croak_memory_wrap(void)
623                         __attribute__noreturn__;
624
625 PERL_CALLCONV_NO_RET void       Perl_croak_no_mem(void)
626                         __attribute__noreturn__;
627
628 PERL_CALLCONV_NO_RET void       Perl_croak_no_modify(void)
629                         __attribute__noreturn__;
630
631 PERL_CALLCONV_NO_RET void       Perl_croak_popstack(void)
632                         __attribute__noreturn__;
633
634 PERL_CALLCONV_NO_RET void       Perl_croak_sv(pTHX_ SV *baseex)
635                         __attribute__noreturn__;
636 #define PERL_ARGS_ASSERT_CROAK_SV       \
637         assert(baseex)
638
639 PERL_CALLCONV_NO_RET void       Perl_croak_xs_usage(const CV *const cv, const char *const params)
640                         __attribute__noreturn__;
641 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE \
642         assert(cv); assert(params)
643
644 PERL_CALLCONV regexp_engine const *     Perl_current_re_engine(pTHX);
645 #ifndef NO_MATHOMS
646 PERL_CALLCONV const char *      Perl_custom_op_desc(pTHX_ const OP *o)
647                         __attribute__warn_unused_result__;
648 #define PERL_ARGS_ASSERT_CUSTOM_OP_DESC \
649         assert(o)
650 #endif
651
652 PERL_CALLCONV XOPRETANY Perl_custom_op_get_field(pTHX_ const OP *o, const xop_flags_enum field)
653                         __attribute__warn_unused_result__;
654 #define PERL_ARGS_ASSERT_CUSTOM_OP_GET_FIELD    \
655         assert(o)
656
657 #ifndef NO_MATHOMS
658 PERL_CALLCONV const char *      Perl_custom_op_name(pTHX_ const OP *o)
659                         __attribute__warn_unused_result__;
660 #define PERL_ARGS_ASSERT_CUSTOM_OP_NAME \
661         assert(o)
662 #endif
663
664 PERL_CALLCONV void      Perl_custom_op_register(pTHX_ Perl_ppaddr_t ppaddr, const XOP *xop);
665 #define PERL_ARGS_ASSERT_CUSTOM_OP_REGISTER     \
666         assert(ppaddr); assert(xop)
667 /* PERL_CALLCONV const XOP *    Perl_custom_op_xop(pTHX_ const OP *o); */
668 PERL_CALLCONV void      Perl_cv_ckproto_len_flags(pTHX_ const CV* cv, const GV* gv, const char* p, const STRLEN len, const U32 flags);
669 #define PERL_ARGS_ASSERT_CV_CKPROTO_LEN_FLAGS   \
670         assert(cv)
671 PERL_CALLCONV CV*       Perl_cv_clone(pTHX_ CV* proto);
672 #define PERL_ARGS_ASSERT_CV_CLONE       \
673         assert(proto)
674 PERL_CALLCONV CV*       Perl_cv_clone_into(pTHX_ CV* proto, CV *target);
675 #define PERL_ARGS_ASSERT_CV_CLONE_INTO  \
676         assert(proto); assert(target)
677 PERL_CALLCONV SV*       Perl_cv_const_sv(const CV *const cv)
678                         __attribute__warn_unused_result__;
679
680 PERL_CALLCONV SV*       Perl_cv_const_sv_or_av(const CV *const cv)
681                         __attribute__warn_unused_result__;
682
683 PERL_CALLCONV void      Perl_cv_forget_slab(pTHX_ CV *cv);
684 PERL_CALLCONV void      Perl_cv_get_call_checker(pTHX_ CV *cv, Perl_call_checker *ckfun_p, SV **ckobj_p);
685 #define PERL_ARGS_ASSERT_CV_GET_CALL_CHECKER    \
686         assert(cv); assert(ckfun_p); assert(ckobj_p)
687 PERL_CALLCONV void      Perl_cv_get_call_checker_flags(pTHX_ CV *cv, U32 gflags, Perl_call_checker *ckfun_p, SV **ckobj_p, U32 *ckflags_p);
688 #define PERL_ARGS_ASSERT_CV_GET_CALL_CHECKER_FLAGS      \
689         assert(cv); assert(ckfun_p); assert(ckobj_p); assert(ckflags_p)
690 PERL_CALLCONV SV *      Perl_cv_name(pTHX_ CV *cv, SV *sv, U32 flags);
691 #define PERL_ARGS_ASSERT_CV_NAME        \
692         assert(cv)
693 PERL_CALLCONV void      Perl_cv_set_call_checker(pTHX_ CV *cv, Perl_call_checker ckfun, SV *ckobj);
694 #define PERL_ARGS_ASSERT_CV_SET_CALL_CHECKER    \
695         assert(cv); assert(ckfun); assert(ckobj)
696 PERL_CALLCONV void      Perl_cv_set_call_checker_flags(pTHX_ CV *cv, Perl_call_checker ckfun, SV *ckobj, U32 ckflags);
697 #define PERL_ARGS_ASSERT_CV_SET_CALL_CHECKER_FLAGS      \
698         assert(cv); assert(ckfun); assert(ckobj)
699 PERL_CALLCONV void      Perl_cv_undef(pTHX_ CV* cv);
700 #define PERL_ARGS_ASSERT_CV_UNDEF       \
701         assert(cv)
702 PERL_CALLCONV void      Perl_cv_undef_flags(pTHX_ CV* cv, U32 flags);
703 #define PERL_ARGS_ASSERT_CV_UNDEF_FLAGS \
704         assert(cv)
705 PERL_CALLCONV GV *      Perl_cvgv_from_hek(pTHX_ CV* cv);
706 #define PERL_ARGS_ASSERT_CVGV_FROM_HEK  \
707         assert(cv)
708 PERL_CALLCONV void      Perl_cvgv_set(pTHX_ CV* cv, GV* gv);
709 #define PERL_ARGS_ASSERT_CVGV_SET       \
710         assert(cv)
711 PERL_CALLCONV void      Perl_cvstash_set(pTHX_ CV* cv, HV* stash);
712 #define PERL_ARGS_ASSERT_CVSTASH_SET    \
713         assert(cv)
714 PERL_CALLCONV void      Perl_cx_dump(pTHX_ PERL_CONTEXT* cx);
715 #define PERL_ARGS_ASSERT_CX_DUMP        \
716         assert(cx)
717 PERL_CALLCONV I32       Perl_cxinc(pTHX)
718                         __attribute__warn_unused_result__;
719
720 PERL_CALLCONV void      Perl_deb(pTHX_ const char* pat, ...)
721                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
722 #define PERL_ARGS_ASSERT_DEB    \
723         assert(pat)
724
725 PERL_CALLCONV void      Perl_deb_stack_all(pTHX);
726 PERL_CALLCONV I32       Perl_debop(pTHX_ const OP* o);
727 #define PERL_ARGS_ASSERT_DEBOP  \
728         assert(o)
729 PERL_CALLCONV void      Perl_debprofdump(pTHX);
730 PERL_CALLCONV I32       Perl_debstack(pTHX);
731 PERL_CALLCONV I32       Perl_debstackptrs(pTHX);
732 PERL_CALLCONV SV *      Perl_defelem_target(pTHX_ SV *sv, MAGIC *mg)
733                         __attribute__warn_unused_result__;
734 #define PERL_ARGS_ASSERT_DEFELEM_TARGET \
735         assert(sv)
736
737 PERL_CALLCONV void      Perl_delete_eval_scope(pTHX);
738 PERL_CALLCONV char*     Perl_delimcpy(char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen);
739 #define PERL_ARGS_ASSERT_DELIMCPY       \
740         assert(to); assert(toend); assert(from); assert(fromend); assert(retlen)
741 PERL_CALLCONV char*     Perl_delimcpy_no_escape(char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen);
742 #define PERL_ARGS_ASSERT_DELIMCPY_NO_ESCAPE     \
743         assert(to); assert(toend); assert(from); assert(fromend); assert(retlen)
744 PERL_CALLCONV void      Perl_despatch_signals(pTHX);
745 PERL_CALLCONV_NO_RET OP*        Perl_die(pTHX_ const char* pat, ...)
746                         __attribute__noreturn__
747                         __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
748
749 PERL_CALLCONV_NO_RET OP*        Perl_die_sv(pTHX_ SV *baseex)
750                         __attribute__noreturn__;
751 #define PERL_ARGS_ASSERT_DIE_SV \
752         assert(baseex)
753
754 PERL_CALLCONV_NO_RET void       Perl_die_unwind(pTHX_ SV* msv)
755                         __attribute__noreturn__;
756 #define PERL_ARGS_ASSERT_DIE_UNWIND     \
757         assert(msv)
758
759 #ifndef NO_MATHOMS
760 PERL_CALLCONV bool      Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp);
761 #define PERL_ARGS_ASSERT_DO_AEXEC       \
762         assert(mark); assert(sp)
763 #endif
764 PERL_CALLCONV bool      Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int do_report);
765 #define PERL_ARGS_ASSERT_DO_AEXEC5      \
766         assert(mark); assert(sp)
767 #ifndef NO_MATHOMS
768 PERL_CALLCONV int       Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode);
769 #define PERL_ARGS_ASSERT_DO_BINMODE     \
770         assert(fp)
771 #endif
772 PERL_CALLCONV bool      Perl_do_close(pTHX_ GV* gv, bool not_implicit);
773 PERL_CALLCONV void      Perl_do_dump_pad(pTHX_ I32 level, PerlIO *file, PADLIST *padlist, int full);
774 #define PERL_ARGS_ASSERT_DO_DUMP_PAD    \
775         assert(file)
776 PERL_CALLCONV bool      Perl_do_eof(pTHX_ GV* gv);
777 #define PERL_ARGS_ASSERT_DO_EOF \
778         assert(gv)
779 PERL_CALLCONV void      Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv);
780 #define PERL_ARGS_ASSERT_DO_GV_DUMP     \
781         assert(file); assert(name)
782 PERL_CALLCONV void      Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv);
783 #define PERL_ARGS_ASSERT_DO_GVGV_DUMP   \
784         assert(file); assert(name)
785 PERL_CALLCONV void      Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, const char *name, HV *sv);
786 #define PERL_ARGS_ASSERT_DO_HV_DUMP     \
787         assert(file); assert(name)
788 PERL_CALLCONV void      Perl_do_join(pTHX_ SV *sv, SV *delim, SV **mark, SV **sp);
789 #define PERL_ARGS_ASSERT_DO_JOIN        \
790         assert(sv); assert(delim); assert(mark); assert(sp)
791 PERL_CALLCONV void      Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
792 #define PERL_ARGS_ASSERT_DO_MAGIC_DUMP  \
793         assert(file)
794 PERL_CALLCONV I32       Perl_do_ncmp(pTHX_ SV *const left, SV *const right)
795                         __attribute__warn_unused_result__;
796 #define PERL_ARGS_ASSERT_DO_NCMP        \
797         assert(left); assert(right)
798
799 PERL_CALLCONV void      Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, const OP *o);
800 #define PERL_ARGS_ASSERT_DO_OP_DUMP     \
801         assert(file)
802 #ifndef NO_MATHOMS
803 PERL_CALLCONV bool      Perl_do_open(pTHX_ GV* gv, const char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp);
804 #define PERL_ARGS_ASSERT_DO_OPEN        \
805         assert(gv); assert(name)
806 #endif
807 PERL_CALLCONV bool      Perl_do_open6(pTHX_ GV *gv, const char *oname, STRLEN len, PerlIO *supplied_fp, SV **svp, U32 num);
808 #define PERL_ARGS_ASSERT_DO_OPEN6       \
809         assert(gv); assert(oname)
810 #ifndef NO_MATHOMS
811 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);
812 #define PERL_ARGS_ASSERT_DO_OPEN9       \
813         assert(gv); assert(name); assert(svs)
814 #endif
815 PERL_CALLCONV bool      Perl_do_open_raw(pTHX_ GV *gv, const char *oname, STRLEN len, int rawmode, int rawperm, Stat_t *statbufp);
816 #define PERL_ARGS_ASSERT_DO_OPEN_RAW    \
817         assert(gv); assert(oname)
818 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);
819 #define PERL_ARGS_ASSERT_DO_OPENN       \
820         assert(gv); assert(oname)
821 PERL_CALLCONV void      Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, const PMOP *pm);
822 #define PERL_ARGS_ASSERT_DO_PMOP_DUMP   \
823         assert(file)
824 PERL_CALLCONV bool      Perl_do_print(pTHX_ SV* sv, PerlIO* fp);
825 #define PERL_ARGS_ASSERT_DO_PRINT       \
826         assert(fp)
827 PERL_CALLCONV OP*       Perl_do_readline(pTHX)
828                         __attribute__warn_unused_result__;
829
830 PERL_CALLCONV bool      Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
831 PERL_CALLCONV void      Perl_do_sprintf(pTHX_ SV* sv, SSize_t len, SV** sarg);
832 #define PERL_ARGS_ASSERT_DO_SPRINTF     \
833         assert(sv); assert(sarg)
834 PERL_CALLCONV void      Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim);
835 #define PERL_ARGS_ASSERT_DO_SV_DUMP     \
836         assert(file)
837 PERL_CALLCONV Off_t     Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence);
838 #define PERL_ARGS_ASSERT_DO_SYSSEEK     \
839         assert(gv)
840 PERL_CALLCONV Off_t     Perl_do_tell(pTHX_ GV* gv)
841                         __attribute__warn_unused_result__;
842 #define PERL_ARGS_ASSERT_DO_TELL        \
843         assert(gv)
844
845 PERL_CALLCONV Size_t    Perl_do_trans(pTHX_ SV* sv);
846 #define PERL_ARGS_ASSERT_DO_TRANS       \
847         assert(sv)
848 PERL_CALLCONV UV        Perl_do_vecget(pTHX_ SV* sv, STRLEN offset, int size);
849 #define PERL_ARGS_ASSERT_DO_VECGET      \
850         assert(sv)
851 PERL_CALLCONV void      Perl_do_vecset(pTHX_ SV* sv);
852 #define PERL_ARGS_ASSERT_DO_VECSET      \
853         assert(sv)
854 PERL_CALLCONV void      Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right);
855 #define PERL_ARGS_ASSERT_DO_VOP \
856         assert(sv); assert(left); assert(right)
857 PERL_CALLCONV OP*       Perl_dofile(pTHX_ OP* term, I32 force_builtin);
858 #define PERL_ARGS_ASSERT_DOFILE \
859         assert(term)
860 PERL_CALLCONV bool      Perl_doing_taint(int argc, char** argv, char** env)
861                         __attribute__warn_unused_result__;
862
863 PERL_CALLCONV OP *      Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref);
864 #define PERL_ARGS_ASSERT_DOREF  \
865         assert(o)
866 PERL_CALLCONV void      Perl_dounwind(pTHX_ I32 cxix);
867 PERL_CALLCONV U8        Perl_dowantarray(pTHX)
868                         __attribute__warn_unused_result__;
869
870 PERL_CALLCONV void      Perl_drand48_init_r(perl_drand48_t *random_state, U32 seed);
871 #define PERL_ARGS_ASSERT_DRAND48_INIT_R \
872         assert(random_state)
873 PERL_CALLCONV double    Perl_drand48_r(perl_drand48_t *random_state);
874 #define PERL_ARGS_ASSERT_DRAND48_R      \
875         assert(random_state)
876 PERL_CALLCONV void      Perl_dump_all(pTHX);
877 PERL_CALLCONV void      Perl_dump_all_perl(pTHX_ bool justperl);
878 PERL_CALLCONV void      Perl_dump_eval(pTHX);
879 PERL_CALLCONV void      Perl_dump_form(pTHX_ const GV* gv);
880 #define PERL_ARGS_ASSERT_DUMP_FORM      \
881         assert(gv)
882 PERL_CALLCONV void      Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
883                         __attribute__format__(__printf__,pTHX_3,pTHX_4);
884 #define PERL_ARGS_ASSERT_DUMP_INDENT    \
885         assert(file); assert(pat)
886
887 PERL_CALLCONV void      Perl_dump_packsubs(pTHX_ const HV* stash);
888 #define PERL_ARGS_ASSERT_DUMP_PACKSUBS  \
889         assert(stash)
890 PERL_CALLCONV void      Perl_dump_packsubs_perl(pTHX_ const HV* stash, bool justperl);
891 #define PERL_ARGS_ASSERT_DUMP_PACKSUBS_PERL     \
892         assert(stash)
893 PERL_CALLCONV void      Perl_dump_sub(pTHX_ const GV* gv);
894 #define PERL_ARGS_ASSERT_DUMP_SUB       \
895         assert(gv)
896 PERL_CALLCONV void      Perl_dump_sub_perl(pTHX_ const GV* gv, bool justperl);
897 #define PERL_ARGS_ASSERT_DUMP_SUB_PERL  \
898         assert(gv)
899 PERL_CALLCONV void      Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args);
900 #define PERL_ARGS_ASSERT_DUMP_VINDENT   \
901         assert(file); assert(pat)
902 PERL_CALLCONV void      Perl_emulate_cop_io(pTHX_ const COP *const c, SV *const sv);
903 #define PERL_ARGS_ASSERT_EMULATE_COP_IO \
904         assert(c); assert(sv)
905 PERL_CALLCONV SV*       Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error);
906 #define PERL_ARGS_ASSERT_EVAL_PV        \
907         assert(p)
908 PERL_CALLCONV I32       Perl_eval_sv(pTHX_ SV* sv, I32 flags);
909 #define PERL_ARGS_ASSERT_EVAL_SV        \
910         assert(sv)
911 PERL_CALLCONV void      Perl_fbm_compile(pTHX_ SV* sv, U32 flags);
912 #define PERL_ARGS_ASSERT_FBM_COMPILE    \
913         assert(sv)
914 PERL_CALLCONV char*     Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlestr, U32 flags)
915                         __attribute__warn_unused_result__;
916 #define PERL_ARGS_ASSERT_FBM_INSTR      \
917         assert(big); assert(bigend); assert(littlestr)
918
919 PERL_CALLCONV bool      Perl_feature_is_enabled(pTHX_ const char *const name, STRLEN namelen);
920 #define PERL_ARGS_ASSERT_FEATURE_IS_ENABLED     \
921         assert(name)
922 PERL_CALLCONV SV*       Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
923 PERL_CALLCONV void      Perl_filter_del(pTHX_ filter_t funcp);
924 #define PERL_ARGS_ASSERT_FILTER_DEL     \
925         assert(funcp)
926 PERL_CALLCONV I32       Perl_filter_read(pTHX_ int idx, SV *buf_sv, int maxlen)
927                         __attribute__warn_unused_result__;
928 #define PERL_ARGS_ASSERT_FILTER_READ    \
929         assert(buf_sv)
930
931 PERL_CALLCONV void      Perl_finalize_optree(pTHX_ OP* o);
932 #define PERL_ARGS_ASSERT_FINALIZE_OPTREE        \
933         assert(o)
934 PERL_CALLCONV CV *      Perl_find_lexical_cv(pTHX_ PADOFFSET off);
935 PERL_CALLCONV CV*       Perl_find_runcv(pTHX_ U32 *db_seqp)
936                         __attribute__warn_unused_result__;
937
938 PERL_CALLCONV CV*       Perl_find_runcv_where(pTHX_ U8 cond, IV arg, U32 *db_seqp)
939                         __attribute__warn_unused_result__;
940
941 PERL_CALLCONV SV*       Perl_find_rundefsv(pTHX);
942 PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX)
943                         __attribute__deprecated__;
944
945 PERL_CALLCONV char*     Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char *const *const search_ext, I32 flags);
946 #define PERL_ARGS_ASSERT_FIND_SCRIPT    \
947         assert(scriptname)
948 #ifndef PERL_NO_INLINE_FUNCTIONS
949 PERL_STATIC_INLINE I32  Perl_foldEQ(const char* a, const char* b, I32 len);
950 #define PERL_ARGS_ASSERT_FOLDEQ \
951         assert(a); assert(b)
952 #endif
953 #ifndef PERL_NO_INLINE_FUNCTIONS
954 PERL_STATIC_INLINE I32  Perl_foldEQ_latin1(const char* a, const char* b, I32 len);
955 #define PERL_ARGS_ASSERT_FOLDEQ_LATIN1  \
956         assert(a); assert(b)
957 #endif
958 #ifndef PERL_NO_INLINE_FUNCTIONS
959 PERL_STATIC_INLINE I32  Perl_foldEQ_locale(const char* a, const char* b, I32 len);
960 #define PERL_ARGS_ASSERT_FOLDEQ_LOCALE  \
961         assert(a); assert(b)
962 #endif
963 /* PERL_CALLCONV I32    foldEQ_utf8(pTHX_ const char *s1, char **pe1, UV l1, bool u1, const char *s2, char **pe2, UV l2, bool u2); */
964 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);
965 #define PERL_ARGS_ASSERT_FOLDEQ_UTF8_FLAGS      \
966         assert(s1); assert(s2)
967 PERL_CALLCONV char*     Perl_form(pTHX_ const char* pat, ...)
968                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
969 #define PERL_ARGS_ASSERT_FORM   \
970         assert(pat)
971
972 PERL_CALLCONV void      Perl_free_tied_hv_pool(pTHX);
973 PERL_CALLCONV void      Perl_free_tmps(pTHX);
974 PERL_CALLCONV AV*       Perl_get_av(pTHX_ const char *name, I32 flags);
975 #define PERL_ARGS_ASSERT_GET_AV \
976         assert(name)
977 PERL_CALLCONV void*     Perl_get_context(void)
978                         __attribute__warn_unused_result__;
979
980 PERL_CALLCONV CV*       Perl_get_cv(pTHX_ const char* name, I32 flags);
981 #define PERL_ARGS_ASSERT_GET_CV \
982         assert(name)
983 PERL_CALLCONV CV*       Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags);
984 #define PERL_ARGS_ASSERT_GET_CVN_FLAGS  \
985         assert(name)
986 PERL_CALLCONV void      Perl_get_db_sub(pTHX_ SV **svp, CV *cv);
987 #define PERL_ARGS_ASSERT_GET_DB_SUB     \
988         assert(cv)
989 PERL_CALLCONV void      Perl_get_hash_seed(pTHX_ unsigned char * const seed_buffer);
990 #define PERL_ARGS_ASSERT_GET_HASH_SEED  \
991         assert(seed_buffer)
992 PERL_CALLCONV HV*       Perl_get_hv(pTHX_ const char *name, I32 flags);
993 #define PERL_ARGS_ASSERT_GET_HV \
994         assert(name)
995 PERL_CALLCONV const char*       Perl_get_no_modify(pTHX)
996                         __attribute__warn_unused_result__
997                         __attribute__pure__;
998
999 PERL_CALLCONV char**    Perl_get_op_descs(pTHX)
1000                         __attribute__warn_unused_result__
1001                         __attribute__pure__;
1002
1003 PERL_CALLCONV char**    Perl_get_op_names(pTHX)
1004                         __attribute__warn_unused_result__
1005                         __attribute__pure__;
1006
1007 PERL_CALLCONV U32*      Perl_get_opargs(pTHX)
1008                         __attribute__warn_unused_result__
1009                         __attribute__pure__;
1010
1011 PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX)
1012                         __attribute__warn_unused_result__
1013                         __attribute__pure__;
1014
1015 PERL_CALLCONV REGEXP *  Perl_get_re_arg(pTHX_ SV *sv);
1016 PERL_CALLCONV SV*       Perl_get_sv(pTHX_ const char *name, I32 flags);
1017 #define PERL_ARGS_ASSERT_GET_SV \
1018         assert(name)
1019 PERL_CALLCONV MGVTBL*   Perl_get_vtbl(pTHX_ int vtbl_id)
1020                         __attribute__warn_unused_result__;
1021
1022 PERL_CALLCONV int       Perl_getcwd_sv(pTHX_ SV* sv);
1023 #define PERL_ARGS_ASSERT_GETCWD_SV      \
1024         assert(sv)
1025 PERL_CALLCONV void      Perl_gp_free(pTHX_ GV* gv);
1026 PERL_CALLCONV GP*       Perl_gp_ref(pTHX_ GP* gp);
1027 PERL_CALLCONV bool      Perl_grok_atoUV(const char* pv, UV* valptr, const char** endptr);
1028 #define PERL_ARGS_ASSERT_GROK_ATOUV     \
1029         assert(pv); assert(valptr)
1030 PERL_CALLCONV UV        Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result);
1031 #define PERL_ARGS_ASSERT_GROK_BIN       \
1032         assert(start); assert(len_p); assert(flags)
1033 PERL_CALLCONV UV        Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result);
1034 #define PERL_ARGS_ASSERT_GROK_HEX       \
1035         assert(start); assert(len_p); assert(flags)
1036 PERL_CALLCONV int       Perl_grok_infnan(pTHX_ const char** sp, const char *send);
1037 #define PERL_ARGS_ASSERT_GROK_INFNAN    \
1038         assert(sp); assert(send)
1039 PERL_CALLCONV int       Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep);
1040 #define PERL_ARGS_ASSERT_GROK_NUMBER    \
1041         assert(pv)
1042 PERL_CALLCONV int       Perl_grok_number_flags(pTHX_ const char *pv, STRLEN len, UV *valuep, U32 flags);
1043 #define PERL_ARGS_ASSERT_GROK_NUMBER_FLAGS      \
1044         assert(pv)
1045 PERL_CALLCONV bool      Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
1046                         __attribute__warn_unused_result__;
1047 #define PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX     \
1048         assert(sp); assert(send)
1049
1050 PERL_CALLCONV UV        Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result);
1051 #define PERL_ARGS_ASSERT_GROK_OCT       \
1052         assert(start); assert(len_p); assert(flags)
1053 #ifndef NO_MATHOMS
1054 PERL_CALLCONV GV*       Perl_gv_AVadd(pTHX_ GV *gv);
1055 #endif
1056 #ifndef NO_MATHOMS
1057 PERL_CALLCONV GV*       Perl_gv_HVadd(pTHX_ GV *gv);
1058 #endif
1059 #ifndef NO_MATHOMS
1060 PERL_CALLCONV GV*       Perl_gv_IOadd(pTHX_ GV* gv);
1061 #endif
1062 PERL_CALLCONV GV*       Perl_gv_add_by_type(pTHX_ GV *gv, svtype type);
1063 /* PERL_CALLCONV GV*    gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method)
1064                         __attribute__warn_unused_result__; */
1065
1066 PERL_CALLCONV GV*       Perl_gv_autoload_pv(pTHX_ HV* stash, const char* namepv, U32 flags)
1067                         __attribute__warn_unused_result__;
1068 #define PERL_ARGS_ASSERT_GV_AUTOLOAD_PV \
1069         assert(namepv)
1070
1071 PERL_CALLCONV GV*       Perl_gv_autoload_pvn(pTHX_ HV* stash, const char* name, STRLEN len, U32 flags)
1072                         __attribute__warn_unused_result__;
1073 #define PERL_ARGS_ASSERT_GV_AUTOLOAD_PVN        \
1074         assert(name)
1075
1076 PERL_CALLCONV GV*       Perl_gv_autoload_sv(pTHX_ HV* stash, SV* namesv, U32 flags)
1077                         __attribute__warn_unused_result__;
1078 #define PERL_ARGS_ASSERT_GV_AUTOLOAD_SV \
1079         assert(namesv)
1080
1081 PERL_CALLCONV void      Perl_gv_check(pTHX_ HV* stash);
1082 #define PERL_ARGS_ASSERT_GV_CHECK       \
1083         assert(stash)
1084 PERL_CALLCONV SV*       Perl_gv_const_sv(pTHX_ GV* gv)
1085                         __attribute__warn_unused_result__;
1086 #define PERL_ARGS_ASSERT_GV_CONST_SV    \
1087         assert(gv)
1088
1089 PERL_CALLCONV void      Perl_gv_dump(pTHX_ GV* gv);
1090 #ifndef NO_MATHOMS
1091 PERL_CALLCONV void      Perl_gv_efullname(pTHX_ SV* sv, const GV* gv);
1092 #define PERL_ARGS_ASSERT_GV_EFULLNAME   \
1093         assert(sv); assert(gv)
1094 #endif
1095 #ifndef NO_MATHOMS
1096 PERL_CALLCONV void      Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix);
1097 #define PERL_ARGS_ASSERT_GV_EFULLNAME3  \
1098         assert(sv); assert(gv)
1099 #endif
1100 PERL_CALLCONV void      Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain);
1101 #define PERL_ARGS_ASSERT_GV_EFULLNAME4  \
1102         assert(sv); assert(gv)
1103 PERL_CALLCONV GV*       Perl_gv_fetchfile(pTHX_ const char* name);
1104 #define PERL_ARGS_ASSERT_GV_FETCHFILE   \
1105         assert(name)
1106 PERL_CALLCONV GV*       Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN len, const U32 flags);
1107 #define PERL_ARGS_ASSERT_GV_FETCHFILE_FLAGS     \
1108         assert(name)
1109 /* PERL_CALLCONV GV*    gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level); */
1110 /* PERL_CALLCONV GV*    gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level); */
1111 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pv(pTHX_ HV* stash, const char* name, I32 level, U32 flags);
1112 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PV        \
1113         assert(name)
1114 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pv_autoload(pTHX_ HV* stash, const char* name, I32 level, U32 flags);
1115 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PV_AUTOLOAD       \
1116         assert(name)
1117 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pvn(pTHX_ HV* stash, const char* name, STRLEN len, I32 level, U32 flags);
1118 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PVN       \
1119         assert(name)
1120 PERL_CALLCONV GV*       Perl_gv_fetchmeth_pvn_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level, U32 flags);
1121 #define PERL_ARGS_ASSERT_GV_FETCHMETH_PVN_AUTOLOAD      \
1122         assert(name)
1123 PERL_CALLCONV GV*       Perl_gv_fetchmeth_sv(pTHX_ HV* stash, SV* namesv, I32 level, U32 flags);
1124 #define PERL_ARGS_ASSERT_GV_FETCHMETH_SV        \
1125         assert(namesv)
1126 PERL_CALLCONV GV*       Perl_gv_fetchmeth_sv_autoload(pTHX_ HV* stash, SV* namesv, I32 level, U32 flags);
1127 #define PERL_ARGS_ASSERT_GV_FETCHMETH_SV_AUTOLOAD       \
1128         assert(namesv)
1129 #ifndef NO_MATHOMS
1130 PERL_CALLCONV GV*       Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name);
1131 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD \
1132         assert(stash); assert(name)
1133 #endif
1134 PERL_CALLCONV GV*       Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload);
1135 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_AUTOLOAD        \
1136         assert(stash); assert(name)
1137 PERL_CALLCONV GV*       Perl_gv_fetchmethod_pv_flags(pTHX_ HV* stash, const char* name, U32 flags);
1138 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_PV_FLAGS        \
1139         assert(stash); assert(name)
1140 PERL_CALLCONV GV*       Perl_gv_fetchmethod_pvn_flags(pTHX_ HV* stash, const char* name, const STRLEN len, U32 flags);
1141 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_PVN_FLAGS       \
1142         assert(stash); assert(name)
1143 PERL_CALLCONV GV*       Perl_gv_fetchmethod_sv_flags(pTHX_ HV* stash, SV* namesv, U32 flags);
1144 #define PERL_ARGS_ASSERT_GV_FETCHMETHOD_SV_FLAGS        \
1145         assert(stash); assert(namesv)
1146 PERL_CALLCONV GV*       Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, const svtype sv_type);
1147 #define PERL_ARGS_ASSERT_GV_FETCHPV     \
1148         assert(nambeg)
1149 PERL_CALLCONV GV*       Perl_gv_fetchpvn_flags(pTHX_ const char* name, STRLEN len, I32 flags, const svtype sv_type);
1150 #define PERL_ARGS_ASSERT_GV_FETCHPVN_FLAGS      \
1151         assert(name)
1152 PERL_CALLCONV GV*       Perl_gv_fetchsv(pTHX_ SV *name, I32 flags, const svtype sv_type);
1153 #define PERL_ARGS_ASSERT_GV_FETCHSV     \
1154         assert(name)
1155 #ifndef NO_MATHOMS
1156 PERL_CALLCONV void      Perl_gv_fullname(pTHX_ SV* sv, const GV* gv);
1157 #define PERL_ARGS_ASSERT_GV_FULLNAME    \
1158         assert(sv); assert(gv)
1159 #endif
1160 #ifndef NO_MATHOMS
1161 PERL_CALLCONV void      Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix);
1162 #define PERL_ARGS_ASSERT_GV_FULLNAME3   \
1163         assert(sv); assert(gv)
1164 #endif
1165 PERL_CALLCONV void      Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain);
1166 #define PERL_ARGS_ASSERT_GV_FULLNAME4   \
1167         assert(sv); assert(gv)
1168 PERL_CALLCONV CV*       Perl_gv_handler(pTHX_ HV* stash, I32 id)
1169                         __attribute__warn_unused_result__;
1170
1171 /* PERL_CALLCONV void   gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi); */
1172 PERL_CALLCONV void      Perl_gv_init_pv(pTHX_ GV* gv, HV* stash, const char* name, U32 flags);
1173 #define PERL_ARGS_ASSERT_GV_INIT_PV     \
1174         assert(gv); assert(name)
1175 PERL_CALLCONV void      Perl_gv_init_pvn(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, U32 flags);
1176 #define PERL_ARGS_ASSERT_GV_INIT_PVN    \
1177         assert(gv); assert(name)
1178 PERL_CALLCONV void      Perl_gv_init_sv(pTHX_ GV* gv, HV* stash, SV* namesv, U32 flags);
1179 #define PERL_ARGS_ASSERT_GV_INIT_SV     \
1180         assert(gv); assert(namesv)
1181 PERL_CALLCONV void      Perl_gv_name_set(pTHX_ GV* gv, const char *name, U32 len, U32 flags);
1182 #define PERL_ARGS_ASSERT_GV_NAME_SET    \
1183         assert(gv); assert(name)
1184 PERL_CALLCONV GV *      Perl_gv_override(pTHX_ const char * const name, const STRLEN len);
1185 #define PERL_ARGS_ASSERT_GV_OVERRIDE    \
1186         assert(name)
1187 PERL_CALLCONV void      Perl_gv_setref(pTHX_ SV *const dstr, SV *const sstr);
1188 #define PERL_ARGS_ASSERT_GV_SETREF      \
1189         assert(dstr); assert(sstr)
1190 PERL_CALLCONV HV*       Perl_gv_stashpv(pTHX_ const char* name, I32 flags);
1191 #define PERL_ARGS_ASSERT_GV_STASHPV     \
1192         assert(name)
1193 PERL_CALLCONV HV*       Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 flags);
1194 #define PERL_ARGS_ASSERT_GV_STASHPVN    \
1195         assert(name)
1196 PERL_CALLCONV HV*       Perl_gv_stashsv(pTHX_ SV* sv, I32 flags);
1197 #define PERL_ARGS_ASSERT_GV_STASHSV     \
1198         assert(sv)
1199 PERL_CALLCONV void      Perl_gv_try_downgrade(pTHX_ GV* gv);
1200 #define PERL_ARGS_ASSERT_GV_TRY_DOWNGRADE       \
1201         assert(gv)
1202 PERL_CALLCONV AV**      Perl_hv_backreferences_p(pTHX_ HV *hv);
1203 #define PERL_ARGS_ASSERT_HV_BACKREFERENCES_P    \
1204         assert(hv)
1205 PERL_CALLCONV SV*       Perl_hv_bucket_ratio(pTHX_ HV *hv)
1206                         __attribute__warn_unused_result__;
1207 #define PERL_ARGS_ASSERT_HV_BUCKET_RATIO        \
1208         assert(hv)
1209
1210 PERL_CALLCONV void      Perl_hv_clear(pTHX_ HV *hv);
1211 PERL_CALLCONV void      Perl_hv_clear_placeholders(pTHX_ HV *hv);
1212 #define PERL_ARGS_ASSERT_HV_CLEAR_PLACEHOLDERS  \
1213         assert(hv)
1214 PERL_CALLCONV void*     Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char* key, STRLEN klen, int flags, int action, SV *val, U32 hash);
1215 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);
1216 #define PERL_ARGS_ASSERT_HV_COMMON_KEY_LEN      \
1217         assert(key)
1218 PERL_CALLCONV HV *      Perl_hv_copy_hints_hv(pTHX_ HV *const ohv)
1219                         __attribute__warn_unused_result__;
1220
1221 PERL_CALLCONV void      Perl_hv_delayfree_ent(pTHX_ HV *hv, HE *entry);
1222 #define PERL_ARGS_ASSERT_HV_DELAYFREE_ENT       \
1223         assert(hv)
1224 #ifndef NO_MATHOMS
1225 PERL_CALLCONV SV*       Perl_hv_delete(pTHX_ HV *hv, const char *key, I32 klen, I32 flags);
1226 #define PERL_ARGS_ASSERT_HV_DELETE      \
1227         assert(key)
1228 #endif
1229 #ifndef NO_MATHOMS
1230 PERL_CALLCONV SV*       Perl_hv_delete_ent(pTHX_ HV *hv, SV *keysv, I32 flags, U32 hash);
1231 #define PERL_ARGS_ASSERT_HV_DELETE_ENT  \
1232         assert(keysv)
1233 #endif
1234 PERL_CALLCONV HE**      Perl_hv_eiter_p(pTHX_ HV *hv)
1235                         __attribute__warn_unused_result__;
1236 #define PERL_ARGS_ASSERT_HV_EITER_P     \
1237         assert(hv)
1238
1239 PERL_CALLCONV void      Perl_hv_eiter_set(pTHX_ HV *hv, HE *eiter);
1240 #define PERL_ARGS_ASSERT_HV_EITER_SET   \
1241         assert(hv)
1242 PERL_CALLCONV void      Perl_hv_ename_add(pTHX_ HV *hv, const char *name, U32 len, U32 flags);
1243 #define PERL_ARGS_ASSERT_HV_ENAME_ADD   \
1244         assert(hv); assert(name)
1245 PERL_CALLCONV void      Perl_hv_ename_delete(pTHX_ HV *hv, const char *name, U32 len, U32 flags);
1246 #define PERL_ARGS_ASSERT_HV_ENAME_DELETE        \
1247         assert(hv); assert(name)
1248 #ifndef NO_MATHOMS
1249 PERL_CALLCONV bool      Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen)
1250                         __attribute__warn_unused_result__;
1251 #define PERL_ARGS_ASSERT_HV_EXISTS      \
1252         assert(key)
1253 #endif
1254
1255 #ifndef NO_MATHOMS
1256 PERL_CALLCONV bool      Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
1257                         __attribute__warn_unused_result__;
1258 #define PERL_ARGS_ASSERT_HV_EXISTS_ENT  \
1259         assert(keysv)
1260 #endif
1261
1262 #ifndef NO_MATHOMS
1263 PERL_CALLCONV SV**      Perl_hv_fetch(pTHX_ HV *hv, const char *key, I32 klen, I32 lval);
1264 #define PERL_ARGS_ASSERT_HV_FETCH       \
1265         assert(key)
1266 #endif
1267 #ifndef NO_MATHOMS
1268 PERL_CALLCONV HE*       Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, U32 hash);
1269 #define PERL_ARGS_ASSERT_HV_FETCH_ENT   \
1270         assert(keysv)
1271 #endif
1272 PERL_CALLCONV STRLEN    Perl_hv_fill(pTHX_ HV *const hv);
1273 #define PERL_ARGS_ASSERT_HV_FILL        \
1274         assert(hv)
1275 PERL_CALLCONV void      Perl_hv_free_ent(pTHX_ HV *hv, HE *entry);
1276 #define PERL_ARGS_ASSERT_HV_FREE_ENT    \
1277         assert(hv)
1278 PERL_CALLCONV I32       Perl_hv_iterinit(pTHX_ HV *hv);
1279 #define PERL_ARGS_ASSERT_HV_ITERINIT    \
1280         assert(hv)
1281 PERL_CALLCONV char*     Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
1282                         __attribute__warn_unused_result__;
1283 #define PERL_ARGS_ASSERT_HV_ITERKEY     \
1284         assert(entry); assert(retlen)
1285
1286 PERL_CALLCONV SV*       Perl_hv_iterkeysv(pTHX_ HE* entry)
1287                         __attribute__warn_unused_result__;
1288 #define PERL_ARGS_ASSERT_HV_ITERKEYSV   \
1289         assert(entry)
1290
1291 #ifndef NO_MATHOMS
1292 PERL_CALLCONV HE*       Perl_hv_iternext(pTHX_ HV *hv)
1293                         __attribute__warn_unused_result__;
1294 #define PERL_ARGS_ASSERT_HV_ITERNEXT    \
1295         assert(hv)
1296 #endif
1297
1298 PERL_CALLCONV HE*       Perl_hv_iternext_flags(pTHX_ HV *hv, I32 flags)
1299                         __attribute__warn_unused_result__;
1300 #define PERL_ARGS_ASSERT_HV_ITERNEXT_FLAGS      \
1301         assert(hv)
1302
1303 PERL_CALLCONV SV*       Perl_hv_iternextsv(pTHX_ HV *hv, char **key, I32 *retlen)
1304                         __attribute__warn_unused_result__;
1305 #define PERL_ARGS_ASSERT_HV_ITERNEXTSV  \
1306         assert(hv); assert(key); assert(retlen)
1307
1308 PERL_CALLCONV SV*       Perl_hv_iterval(pTHX_ HV *hv, HE *entry)
1309                         __attribute__warn_unused_result__;
1310 #define PERL_ARGS_ASSERT_HV_ITERVAL     \
1311         assert(hv); assert(entry)
1312
1313 PERL_CALLCONV void      Perl_hv_ksplit(pTHX_ HV *hv, IV newmax);
1314 #define PERL_ARGS_ASSERT_HV_KSPLIT      \
1315         assert(hv)
1316 #ifndef NO_MATHOMS
1317 PERL_CALLCONV void      Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how);
1318 #define PERL_ARGS_ASSERT_HV_MAGIC       \
1319         assert(hv)
1320 #endif
1321 PERL_CALLCONV void      Perl_hv_name_set(pTHX_ HV *hv, const char *name, U32 len, U32 flags);
1322 #define PERL_ARGS_ASSERT_HV_NAME_SET    \
1323         assert(hv)
1324 PERL_CALLCONV I32       Perl_hv_placeholders_get(pTHX_ const HV *hv)
1325                         __attribute__warn_unused_result__;
1326 #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_GET    \
1327         assert(hv)
1328
1329 PERL_CALLCONV SSize_t*  Perl_hv_placeholders_p(pTHX_ HV *hv)
1330                         __attribute__warn_unused_result__;
1331 #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_P      \
1332         assert(hv)
1333
1334 PERL_CALLCONV void      Perl_hv_placeholders_set(pTHX_ HV *hv, I32 ph);
1335 #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_SET    \
1336         assert(hv)
1337 PERL_CALLCONV void      Perl_hv_pushkv(pTHX_ HV *hv, U32 flags);
1338 #define PERL_ARGS_ASSERT_HV_PUSHKV      \
1339         assert(hv)
1340 PERL_CALLCONV void      Perl_hv_rand_set(pTHX_ HV *hv, U32 new_xhv_rand);
1341 #define PERL_ARGS_ASSERT_HV_RAND_SET    \
1342         assert(hv)
1343 PERL_CALLCONV I32*      Perl_hv_riter_p(pTHX_ HV *hv)
1344                         __attribute__warn_unused_result__;
1345 #define PERL_ARGS_ASSERT_HV_RITER_P     \
1346         assert(hv)
1347
1348 PERL_CALLCONV void      Perl_hv_riter_set(pTHX_ HV *hv, I32 riter);
1349 #define PERL_ARGS_ASSERT_HV_RITER_SET   \
1350         assert(hv)
1351 PERL_CALLCONV SV*       Perl_hv_scalar(pTHX_ HV *hv)
1352                         __attribute__warn_unused_result__;
1353 #define PERL_ARGS_ASSERT_HV_SCALAR      \
1354         assert(hv)
1355
1356 #ifndef NO_MATHOMS
1357 PERL_CALLCONV SV**      Perl_hv_store(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash);
1358 #endif
1359 #ifndef NO_MATHOMS
1360 PERL_CALLCONV HE*       Perl_hv_store_ent(pTHX_ HV *hv, SV *key, SV *val, U32 hash);
1361 #endif
1362 #ifndef NO_MATHOMS
1363 PERL_CALLCONV SV**      Perl_hv_store_flags(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash, int flags);
1364 #endif
1365 /* PERL_CALLCONV void   hv_undef(pTHX_ HV *hv); */
1366 PERL_CALLCONV void      Perl_hv_undef_flags(pTHX_ HV *hv, U32 flags);
1367 /* PERL_CALLCONV I32    ibcmp(pTHX_ const char* a, const char* b, I32 len)
1368                         __attribute__warn_unused_result__
1369                         __attribute__pure__; */
1370
1371 /* PERL_CALLCONV I32    ibcmp_locale(pTHX_ const char* a, const char* b, I32 len)
1372                         __attribute__warn_unused_result__
1373                         __attribute__pure__; */
1374
1375 /* PERL_CALLCONV I32    ibcmp_utf8(pTHX_ const char *s1, char **pe1, UV l1, bool u1, const char *s2, char **pe2, UV l2, bool u2); */
1376 PERL_CALLCONV void      Perl_init_argv_symbols(pTHX_ int argc, char **argv);
1377 #define PERL_ARGS_ASSERT_INIT_ARGV_SYMBOLS      \
1378         assert(argv)
1379 PERL_CALLCONV void      Perl_init_constants(pTHX);
1380 PERL_CALLCONV void      Perl_init_dbargs(pTHX);
1381 PERL_CALLCONV void      Perl_init_debugger(pTHX);
1382 PERL_CALLCONV int       Perl_init_i18nl10n(pTHX_ int printwarn);
1383 #ifndef NO_MATHOMS
1384 PERL_CALLCONV int       Perl_init_i18nl14n(pTHX_ int printwarn);
1385 #endif
1386 PERL_CALLCONV void      Perl_init_named_cv(pTHX_ CV *cv, OP *nameop);
1387 #define PERL_ARGS_ASSERT_INIT_NAMED_CV  \
1388         assert(cv); assert(nameop)
1389 PERL_CALLCONV void      Perl_init_stacks(pTHX);
1390 PERL_CALLCONV void      Perl_init_tm(pTHX_ struct tm *ptm);
1391 #define PERL_ARGS_ASSERT_INIT_TM        \
1392         assert(ptm)
1393 PERL_CALLCONV void      Perl_init_uniprops(pTHX);
1394 #ifndef NO_MATHOMS
1395 PERL_CALLCONV char*     Perl_instr(const char* big, const char* little)
1396                         __attribute__warn_unused_result__
1397                         __attribute__pure__;
1398 #define PERL_ARGS_ASSERT_INSTR  \
1399         assert(big); assert(little)
1400 #endif
1401
1402 PERL_CALLCONV U32       Perl_intro_my(pTHX);
1403 PERL_CALLCONV OP*       Perl_invert(pTHX_ OP* cmd)
1404                         __attribute__warn_unused_result__;
1405
1406 PERL_CALLCONV bool      Perl_io_close(pTHX_ IO* io, GV *gv, bool not_implicit, bool warn_on_fail);
1407 #define PERL_ARGS_ASSERT_IO_CLOSE       \
1408         assert(io)
1409 #ifndef NO_MATHOMS
1410 PERL_CALLCONV bool      Perl_isALNUM_lazy(pTHX_ const char* p)
1411                         __attribute__deprecated__
1412                         __attribute__warn_unused_result__;
1413 #define PERL_ARGS_ASSERT_ISALNUM_LAZY   \
1414         assert(p)
1415 #endif
1416
1417 #ifndef PERL_NO_INLINE_FUNCTIONS
1418 PERL_STATIC_INLINE Size_t       S_isC9_STRICT_UTF8_CHAR(const U8 * const s0, const U8 * const e)
1419                         __attribute__warn_unused_result__;
1420 #define PERL_ARGS_ASSERT_ISC9_STRICT_UTF8_CHAR  \
1421         assert(s0); assert(e)
1422 #endif
1423
1424 #ifndef NO_MATHOMS
1425 PERL_CALLCONV bool      Perl_isIDFIRST_lazy(pTHX_ const char* p)
1426                         __attribute__deprecated__
1427                         __attribute__warn_unused_result__;
1428 #define PERL_ARGS_ASSERT_ISIDFIRST_LAZY \
1429         assert(p)
1430 #endif
1431
1432 #ifndef PERL_NO_INLINE_FUNCTIONS
1433 PERL_STATIC_INLINE Size_t       S_isSTRICT_UTF8_CHAR(const U8 * const s0, const U8 * const e)
1434                         __attribute__warn_unused_result__;
1435 #define PERL_ARGS_ASSERT_ISSTRICT_UTF8_CHAR     \
1436         assert(s0); assert(e)
1437 #endif
1438
1439 #ifndef PERL_NO_INLINE_FUNCTIONS
1440 PERL_STATIC_INLINE Size_t       S_isUTF8_CHAR(const U8 * const s0, const U8 * const e)
1441                         __attribute__warn_unused_result__;
1442 #define PERL_ARGS_ASSERT_ISUTF8_CHAR    \
1443         assert(s0); assert(e)
1444 #endif
1445
1446 /* PERL_CALLCONV bool   Perl_is_ascii_string(const U8* const s, STRLEN len)
1447                         __attribute__warn_unused_result__
1448                         __attribute__pure__; */
1449
1450 /* PERL_CALLCONV bool   Perl_is_c9strict_utf8_string(const U8 *s, STRLEN len)
1451                         __attribute__warn_unused_result__; */
1452
1453 /* PERL_CALLCONV bool   is_c9strict_utf8_string_loc(const U8 *s, STRLEN len, const U8 **ep); */
1454 #ifndef PERL_NO_INLINE_FUNCTIONS
1455 PERL_STATIC_INLINE bool S_is_c9strict_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el);
1456 #define PERL_ARGS_ASSERT_IS_C9STRICT_UTF8_STRING_LOCLEN \
1457         assert(s)
1458 #endif
1459 /* PERL_CALLCONV bool   Perl_is_invariant_string(const U8* const s, STRLEN len)
1460                         __attribute__warn_unused_result__
1461                         __attribute__pure__; */
1462
1463 PERL_CALLCONV I32       Perl_is_lvalue_sub(pTHX)
1464                         __attribute__warn_unused_result__;
1465
1466 #ifndef PERL_NO_INLINE_FUNCTIONS
1467 PERL_STATIC_INLINE bool S_is_safe_syscall(pTHX_ const char *pv, STRLEN len, const char *what, const char *op_name)
1468                         __attribute__warn_unused_result__;
1469 #define PERL_ARGS_ASSERT_IS_SAFE_SYSCALL        \
1470         assert(pv); assert(what); assert(op_name)
1471 #endif
1472
1473 /* PERL_CALLCONV bool   Perl_is_strict_utf8_string(const U8 *s, STRLEN len)
1474                         __attribute__warn_unused_result__; */
1475
1476 /* PERL_CALLCONV bool   is_strict_utf8_string_loc(const U8 *s, STRLEN len, const U8 **ep); */
1477 #ifndef PERL_NO_INLINE_FUNCTIONS
1478 PERL_STATIC_INLINE bool S_is_strict_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el);
1479 #define PERL_ARGS_ASSERT_IS_STRICT_UTF8_STRING_LOCLEN   \
1480         assert(s)
1481 #endif
1482 #ifndef NO_MATHOMS
1483 PERL_CALLCONV bool      Perl_is_uni_alnum(pTHX_ UV c)
1484                         __attribute__deprecated__
1485                         __attribute__warn_unused_result__;
1486 #endif
1487
1488 #ifndef NO_MATHOMS
1489 PERL_CALLCONV bool      Perl_is_uni_alnum_lc(pTHX_ UV c)
1490                         __attribute__deprecated__
1491                         __attribute__warn_unused_result__;
1492 #endif
1493
1494 #ifndef NO_MATHOMS
1495 PERL_CALLCONV bool      Perl_is_uni_alnumc(pTHX_ UV c)
1496                         __attribute__deprecated__
1497                         __attribute__warn_unused_result__;
1498 #endif
1499
1500 #ifndef NO_MATHOMS
1501 PERL_CALLCONV bool      Perl_is_uni_alnumc_lc(pTHX_ UV c)
1502                         __attribute__deprecated__
1503                         __attribute__warn_unused_result__;
1504 #endif
1505
1506 #ifndef NO_MATHOMS
1507 PERL_CALLCONV bool      Perl_is_uni_alpha(pTHX_ UV c)
1508                         __attribute__deprecated__
1509                         __attribute__warn_unused_result__;
1510 #endif
1511
1512 #ifndef NO_MATHOMS
1513 PERL_CALLCONV bool      Perl_is_uni_alpha_lc(pTHX_ UV c)
1514                         __attribute__deprecated__
1515                         __attribute__warn_unused_result__;
1516 #endif
1517
1518 #ifndef NO_MATHOMS
1519 PERL_CALLCONV bool      Perl_is_uni_ascii(pTHX_ UV c)
1520                         __attribute__deprecated__
1521                         __attribute__warn_unused_result__
1522                         __attribute__pure__;
1523 #endif
1524
1525 #ifndef NO_MATHOMS
1526 PERL_CALLCONV bool      Perl_is_uni_ascii_lc(pTHX_ UV c)
1527                         __attribute__deprecated__
1528                         __attribute__warn_unused_result__
1529                         __attribute__pure__;
1530 #endif
1531
1532 #ifndef NO_MATHOMS
1533 PERL_CALLCONV bool      Perl_is_uni_blank(pTHX_ UV c)
1534                         __attribute__deprecated__
1535                         __attribute__warn_unused_result__
1536                         __attribute__pure__;
1537 #endif
1538
1539 #ifndef NO_MATHOMS
1540 PERL_CALLCONV bool      Perl_is_uni_blank_lc(pTHX_ UV c)
1541                         __attribute__deprecated__
1542                         __attribute__warn_unused_result__
1543                         __attribute__pure__;
1544 #endif
1545
1546 #ifndef NO_MATHOMS
1547 PERL_CALLCONV bool      Perl_is_uni_cntrl(pTHX_ UV c)
1548                         __attribute__deprecated__
1549                         __attribute__warn_unused_result__
1550                         __attribute__pure__;
1551 #endif
1552
1553 #ifndef NO_MATHOMS
1554 PERL_CALLCONV bool      Perl_is_uni_cntrl_lc(pTHX_ UV c)
1555                         __attribute__deprecated__
1556                         __attribute__warn_unused_result__
1557                         __attribute__pure__;
1558 #endif
1559
1560 #ifndef NO_MATHOMS
1561 PERL_CALLCONV bool      Perl_is_uni_digit(pTHX_ UV c)
1562                         __attribute__deprecated__
1563                         __attribute__warn_unused_result__;
1564 #endif
1565
1566 #ifndef NO_MATHOMS
1567 PERL_CALLCONV bool      Perl_is_uni_digit_lc(pTHX_ UV c)
1568                         __attribute__deprecated__
1569                         __attribute__warn_unused_result__;
1570 #endif
1571
1572 #ifndef NO_MATHOMS
1573 PERL_CALLCONV bool      Perl_is_uni_graph(pTHX_ UV c)
1574                         __attribute__deprecated__
1575                         __attribute__warn_unused_result__;
1576 #endif
1577
1578 #ifndef NO_MATHOMS
1579 PERL_CALLCONV bool      Perl_is_uni_graph_lc(pTHX_ UV c)
1580                         __attribute__deprecated__
1581                         __attribute__warn_unused_result__;
1582 #endif
1583
1584 #ifndef NO_MATHOMS
1585 PERL_CALLCONV bool      Perl_is_uni_idfirst(pTHX_ UV c)
1586                         __attribute__deprecated__
1587                         __attribute__warn_unused_result__;
1588 #endif
1589
1590 #ifndef NO_MATHOMS
1591 PERL_CALLCONV bool      Perl_is_uni_idfirst_lc(pTHX_ UV c)
1592                         __attribute__deprecated__
1593                         __attribute__warn_unused_result__;
1594 #endif
1595
1596 #ifndef NO_MATHOMS
1597 PERL_CALLCONV bool      Perl_is_uni_lower(pTHX_ UV c)
1598                         __attribute__deprecated__
1599                         __attribute__warn_unused_result__;
1600 #endif
1601
1602 #ifndef NO_MATHOMS
1603 PERL_CALLCONV bool      Perl_is_uni_lower_lc(pTHX_ UV c)
1604                         __attribute__deprecated__
1605                         __attribute__warn_unused_result__;
1606 #endif
1607
1608 #ifndef NO_MATHOMS
1609 PERL_CALLCONV bool      Perl_is_uni_print(pTHX_ UV c)
1610                         __attribute__deprecated__
1611                         __attribute__warn_unused_result__;
1612 #endif
1613
1614 #ifndef NO_MATHOMS
1615 PERL_CALLCONV bool      Perl_is_uni_print_lc(pTHX_ UV c)
1616                         __attribute__deprecated__
1617                         __attribute__warn_unused_result__;
1618 #endif
1619
1620 #ifndef NO_MATHOMS
1621 PERL_CALLCONV bool      Perl_is_uni_punct(pTHX_ UV c)
1622                         __attribute__deprecated__
1623                         __attribute__warn_unused_result__;
1624 #endif
1625
1626 #ifndef NO_MATHOMS
1627 PERL_CALLCONV bool      Perl_is_uni_punct_lc(pTHX_ UV c)
1628                         __attribute__deprecated__
1629                         __attribute__warn_unused_result__;
1630 #endif
1631
1632 #ifndef NO_MATHOMS
1633 PERL_CALLCONV bool      Perl_is_uni_space(pTHX_ UV c)
1634                         __attribute__deprecated__
1635                         __attribute__warn_unused_result__
1636                         __attribute__pure__;
1637 #endif
1638
1639 #ifndef NO_MATHOMS
1640 PERL_CALLCONV bool      Perl_is_uni_space_lc(pTHX_ UV c)
1641                         __attribute__deprecated__
1642                         __attribute__warn_unused_result__
1643                         __attribute__pure__;
1644 #endif
1645
1646 #ifndef NO_MATHOMS
1647 PERL_CALLCONV bool      Perl_is_uni_upper(pTHX_ UV c)
1648                         __attribute__deprecated__
1649                         __attribute__warn_unused_result__;
1650 #endif
1651
1652 #ifndef NO_MATHOMS
1653 PERL_CALLCONV bool      Perl_is_uni_upper_lc(pTHX_ UV c)
1654                         __attribute__deprecated__
1655                         __attribute__warn_unused_result__;
1656 #endif
1657
1658 #ifndef NO_MATHOMS
1659 PERL_CALLCONV bool      Perl_is_uni_xdigit(pTHX_ UV c)
1660                         __attribute__deprecated__
1661                         __attribute__warn_unused_result__
1662                         __attribute__pure__;
1663 #endif
1664
1665 #ifndef NO_MATHOMS
1666 PERL_CALLCONV bool      Perl_is_uni_xdigit_lc(pTHX_ UV c)
1667                         __attribute__deprecated__
1668                         __attribute__warn_unused_result__
1669                         __attribute__pure__;
1670 #endif
1671
1672 #ifndef NO_MATHOMS
1673 PERL_CALLCONV bool      Perl_is_utf8_alnum(pTHX_ const U8 *p)
1674                         __attribute__deprecated__
1675                         __attribute__warn_unused_result__;
1676 #define PERL_ARGS_ASSERT_IS_UTF8_ALNUM  \
1677         assert(p)
1678 #endif
1679
1680 #ifndef NO_MATHOMS
1681 PERL_CALLCONV bool      Perl_is_utf8_alnumc(pTHX_ const U8 *p)
1682                         __attribute__deprecated__
1683                         __attribute__warn_unused_result__;
1684 #define PERL_ARGS_ASSERT_IS_UTF8_ALNUMC \
1685         assert(p)
1686 #endif
1687
1688 #ifndef NO_MATHOMS
1689 PERL_CALLCONV bool      Perl_is_utf8_alpha(pTHX_ const U8 *p)
1690                         __attribute__deprecated__
1691                         __attribute__warn_unused_result__;
1692 #define PERL_ARGS_ASSERT_IS_UTF8_ALPHA  \
1693         assert(p)
1694 #endif
1695
1696 #ifndef NO_MATHOMS
1697 PERL_CALLCONV bool      Perl_is_utf8_ascii(pTHX_ const U8 *p)
1698                         __attribute__deprecated__
1699                         __attribute__warn_unused_result__;
1700 #define PERL_ARGS_ASSERT_IS_UTF8_ASCII  \
1701         assert(p)
1702 #endif
1703
1704 #ifndef NO_MATHOMS
1705 PERL_CALLCONV bool      Perl_is_utf8_blank(pTHX_ const U8 *p)
1706                         __attribute__deprecated__
1707                         __attribute__warn_unused_result__;
1708 #define PERL_ARGS_ASSERT_IS_UTF8_BLANK  \
1709         assert(p)
1710 #endif
1711
1712 #ifndef NO_MATHOMS
1713 PERL_CALLCONV STRLEN    Perl_is_utf8_char(const U8 *s)
1714                         __attribute__deprecated__;
1715 #define PERL_ARGS_ASSERT_IS_UTF8_CHAR   \
1716         assert(s)
1717 #endif
1718
1719 #ifndef NO_MATHOMS
1720 PERL_CALLCONV STRLEN    Perl_is_utf8_char_buf(const U8 *buf, const U8 *buf_end);
1721 #define PERL_ARGS_ASSERT_IS_UTF8_CHAR_BUF       \
1722         assert(buf); assert(buf_end)
1723 #endif
1724 #ifndef NO_MATHOMS
1725 PERL_CALLCONV bool      Perl_is_utf8_cntrl(pTHX_ const U8 *p)
1726                         __attribute__deprecated__
1727                         __attribute__warn_unused_result__;
1728 #define PERL_ARGS_ASSERT_IS_UTF8_CNTRL  \
1729         assert(p)
1730 #endif
1731
1732 #ifndef NO_MATHOMS
1733 PERL_CALLCONV bool      Perl_is_utf8_digit(pTHX_ const U8 *p)
1734                         __attribute__deprecated__
1735                         __attribute__warn_unused_result__;
1736 #define PERL_ARGS_ASSERT_IS_UTF8_DIGIT  \
1737         assert(p)
1738 #endif
1739
1740 /* PERL_CALLCONV bool   is_utf8_fixed_width_buf_flags(const U8 * const s, STRLEN len, const U32 flags); */
1741 /* PERL_CALLCONV bool   is_utf8_fixed_width_buf_loc_flags(const U8 * const s, STRLEN len, const U8 **ep, const U32 flags); */
1742 #ifndef PERL_NO_INLINE_FUNCTIONS
1743 PERL_STATIC_INLINE bool S_is_utf8_fixed_width_buf_loclen_flags(const U8 * const s, STRLEN len, const U8 **ep, STRLEN *el, const U32 flags);
1744 #define PERL_ARGS_ASSERT_IS_UTF8_FIXED_WIDTH_BUF_LOCLEN_FLAGS   \
1745         assert(s)
1746 #endif
1747 #ifndef NO_MATHOMS
1748 PERL_CALLCONV bool      Perl_is_utf8_graph(pTHX_ const U8 *p)
1749                         __attribute__deprecated__
1750                         __attribute__warn_unused_result__;
1751 #define PERL_ARGS_ASSERT_IS_UTF8_GRAPH  \
1752         assert(p)
1753 #endif
1754
1755 #ifndef NO_MATHOMS
1756 PERL_CALLCONV bool      Perl_is_utf8_idcont(pTHX_ const U8 *p)
1757                         __attribute__deprecated__
1758                         __attribute__warn_unused_result__;
1759 #define PERL_ARGS_ASSERT_IS_UTF8_IDCONT \
1760         assert(p)
1761 #endif
1762
1763 #ifndef NO_MATHOMS
1764 PERL_CALLCONV bool      Perl_is_utf8_idfirst(pTHX_ const U8 *p)
1765                         __attribute__deprecated__
1766                         __attribute__warn_unused_result__;
1767 #define PERL_ARGS_ASSERT_IS_UTF8_IDFIRST        \
1768         assert(p)
1769 #endif
1770
1771 /* PERL_CALLCONV bool   is_utf8_invariant_string(const U8* const s, STRLEN len)
1772                         __attribute__warn_unused_result__; */
1773
1774 #ifndef PERL_NO_INLINE_FUNCTIONS
1775 PERL_STATIC_INLINE bool S_is_utf8_invariant_string_loc(const U8* const s, STRLEN len, const U8 ** ep)
1776                         __attribute__warn_unused_result__;
1777 #define PERL_ARGS_ASSERT_IS_UTF8_INVARIANT_STRING_LOC   \
1778         assert(s)
1779 #endif
1780
1781 #ifndef NO_MATHOMS
1782 PERL_CALLCONV bool      Perl_is_utf8_lower(pTHX_ const U8 *p)
1783                         __attribute__deprecated__
1784                         __attribute__warn_unused_result__;
1785 #define PERL_ARGS_ASSERT_IS_UTF8_LOWER  \
1786         assert(p)
1787 #endif
1788
1789 #ifndef NO_MATHOMS
1790 PERL_CALLCONV bool      Perl_is_utf8_mark(pTHX_ const U8 *p)
1791                         __attribute__deprecated__
1792                         __attribute__warn_unused_result__;
1793 #define PERL_ARGS_ASSERT_IS_UTF8_MARK   \
1794         assert(p)
1795 #endif
1796
1797 #ifndef NO_MATHOMS
1798 PERL_CALLCONV bool      Perl_is_utf8_perl_space(pTHX_ const U8 *p)
1799                         __attribute__deprecated__
1800                         __attribute__warn_unused_result__;
1801 #define PERL_ARGS_ASSERT_IS_UTF8_PERL_SPACE     \
1802         assert(p)
1803 #endif
1804
1805 #ifndef NO_MATHOMS
1806 PERL_CALLCONV bool      Perl_is_utf8_perl_word(pTHX_ const U8 *p)
1807                         __attribute__deprecated__
1808                         __attribute__warn_unused_result__;
1809 #define PERL_ARGS_ASSERT_IS_UTF8_PERL_WORD      \
1810         assert(p)
1811 #endif
1812
1813 #ifndef NO_MATHOMS
1814 PERL_CALLCONV bool      Perl_is_utf8_posix_digit(pTHX_ const U8 *p)
1815                         __attribute__deprecated__
1816                         __attribute__warn_unused_result__;
1817 #define PERL_ARGS_ASSERT_IS_UTF8_POSIX_DIGIT    \
1818         assert(p)
1819 #endif
1820
1821 #ifndef NO_MATHOMS
1822 PERL_CALLCONV bool      Perl_is_utf8_print(pTHX_ const U8 *p)
1823                         __attribute__deprecated__
1824                         __attribute__warn_unused_result__;
1825 #define PERL_ARGS_ASSERT_IS_UTF8_PRINT  \
1826         assert(p)
1827 #endif
1828
1829 #ifndef NO_MATHOMS
1830 PERL_CALLCONV bool      Perl_is_utf8_punct(pTHX_ const U8 *p)
1831                         __attribute__deprecated__
1832                         __attribute__warn_unused_result__;
1833 #define PERL_ARGS_ASSERT_IS_UTF8_PUNCT  \
1834         assert(p)
1835 #endif
1836
1837 #ifndef NO_MATHOMS
1838 PERL_CALLCONV bool      Perl_is_utf8_space(pTHX_ const U8 *p)
1839                         __attribute__deprecated__
1840                         __attribute__warn_unused_result__;
1841 #define PERL_ARGS_ASSERT_IS_UTF8_SPACE  \
1842         assert(p)
1843 #endif
1844
1845 /* PERL_CALLCONV bool   Perl_is_utf8_string(const U8 *s, STRLEN len)
1846                         __attribute__warn_unused_result__; */
1847
1848 #ifndef PERL_NO_INLINE_FUNCTIONS
1849 PERL_STATIC_INLINE bool S_is_utf8_string_flags(const U8 *s, STRLEN len, const U32 flags)
1850                         __attribute__warn_unused_result__;
1851 #define PERL_ARGS_ASSERT_IS_UTF8_STRING_FLAGS   \
1852         assert(s)
1853 #endif
1854
1855 #ifndef NO_MATHOMS
1856 PERL_CALLCONV bool      Perl_is_utf8_string_loc(const U8 *s, const STRLEN len, const U8 **ep);
1857 #define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC     \
1858         assert(s); assert(ep)
1859 #endif
1860 /* PERL_CALLCONV bool   is_utf8_string_loc_flags(const U8 *s, STRLEN len, const U8 **ep, const U32 flags); */
1861 #ifndef PERL_NO_INLINE_FUNCTIONS
1862 PERL_STATIC_INLINE bool Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el);
1863 #define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN  \
1864         assert(s)
1865 #endif
1866 #ifndef PERL_NO_INLINE_FUNCTIONS
1867 PERL_STATIC_INLINE bool S_is_utf8_string_loclen_flags(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el, const U32 flags);
1868 #define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN_FLAGS    \
1869         assert(s)
1870 #endif
1871 #ifndef NO_MATHOMS
1872 PERL_CALLCONV bool      Perl_is_utf8_upper(pTHX_ const U8 *p)
1873                         __attribute__deprecated__
1874                         __attribute__warn_unused_result__;
1875 #define PERL_ARGS_ASSERT_IS_UTF8_UPPER  \
1876         assert(p)
1877 #endif
1878
1879 /* PERL_CALLCONV bool   is_utf8_valid_partial_char(const U8 * const s, const U8 * const e)
1880                         __attribute__warn_unused_result__
1881                         __attribute__pure__; */
1882
1883 #ifndef PERL_NO_INLINE_FUNCTIONS
1884 PERL_STATIC_INLINE bool S_is_utf8_valid_partial_char_flags(const U8 * const s, const U8 * const e, const U32 flags)
1885                         __attribute__warn_unused_result__;
1886 #define PERL_ARGS_ASSERT_IS_UTF8_VALID_PARTIAL_CHAR_FLAGS       \
1887         assert(s); assert(e)
1888 #endif
1889
1890 #ifndef NO_MATHOMS
1891 PERL_CALLCONV bool      Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1892                         __attribute__deprecated__
1893                         __attribute__warn_unused_result__;
1894 #define PERL_ARGS_ASSERT_IS_UTF8_XDIGIT \
1895         assert(p)
1896 #endif
1897
1898 #ifndef NO_MATHOMS
1899 PERL_CALLCONV bool      Perl_is_utf8_xidcont(pTHX_ const U8 *p)
1900                         __attribute__deprecated__
1901                         __attribute__warn_unused_result__;
1902 #define PERL_ARGS_ASSERT_IS_UTF8_XIDCONT        \
1903         assert(p)
1904 #endif
1905
1906 #ifndef NO_MATHOMS
1907 PERL_CALLCONV bool      Perl_is_utf8_xidfirst(pTHX_ const U8 *p)
1908                         __attribute__deprecated__
1909                         __attribute__warn_unused_result__;
1910 #define PERL_ARGS_ASSERT_IS_UTF8_XIDFIRST       \
1911         assert(p)
1912 #endif
1913
1914 PERL_CALLCONV bool      Perl_isinfnan(NV nv)
1915                         __attribute__warn_unused_result__
1916                         __attribute__pure__;
1917
1918 PERL_CALLCONV bool      Perl_isinfnansv(pTHX_ SV *sv);
1919 #define PERL_ARGS_ASSERT_ISINFNANSV     \
1920         assert(sv)
1921 PERL_CALLCONV OP*       Perl_jmaybe(pTHX_ OP *o);
1922 #define PERL_ARGS_ASSERT_JMAYBE \
1923         assert(o)
1924 PERL_CALLCONV I32       Perl_keyword(pTHX_ const char *name, I32 len, bool all_keywords)
1925                         __attribute__warn_unused_result__
1926                         __attribute__pure__;
1927 #define PERL_ARGS_ASSERT_KEYWORD        \
1928         assert(name)
1929
1930 PERL_CALLCONV int       Perl_keyword_plugin_standard(pTHX_ char* keyword_ptr, STRLEN keyword_len, OP** op_ptr);
1931 #define PERL_ARGS_ASSERT_KEYWORD_PLUGIN_STANDARD        \
1932         assert(keyword_ptr); assert(op_ptr)
1933 PERL_CALLCONV void      Perl_leave_adjust_stacks(pTHX_ SV **from_sp, SV **to_sp, U8 gimme, int filter);
1934 #define PERL_ARGS_ASSERT_LEAVE_ADJUST_STACKS    \
1935         assert(from_sp); assert(to_sp)
1936 PERL_CALLCONV void      Perl_leave_scope(pTHX_ I32 base);
1937 PERL_CALLCONV bool      Perl_lex_bufutf8(pTHX);
1938 PERL_CALLCONV void      Perl_lex_discard_to(pTHX_ char* ptr);
1939 #define PERL_ARGS_ASSERT_LEX_DISCARD_TO \
1940         assert(ptr)
1941 PERL_CALLCONV char*     Perl_lex_grow_linestr(pTHX_ STRLEN len);
1942 PERL_CALLCONV bool      Perl_lex_next_chunk(pTHX_ U32 flags);
1943 PERL_CALLCONV I32       Perl_lex_peek_unichar(pTHX_ U32 flags);
1944 PERL_CALLCONV void      Perl_lex_read_space(pTHX_ U32 flags);
1945 PERL_CALLCONV void      Perl_lex_read_to(pTHX_ char* ptr);
1946 #define PERL_ARGS_ASSERT_LEX_READ_TO    \
1947         assert(ptr)
1948 PERL_CALLCONV I32       Perl_lex_read_unichar(pTHX_ U32 flags);
1949 PERL_CALLCONV void      Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, U32 flags);
1950 PERL_CALLCONV void      Perl_lex_stuff_pv(pTHX_ const char* pv, U32 flags);
1951 #define PERL_ARGS_ASSERT_LEX_STUFF_PV   \
1952         assert(pv)
1953 PERL_CALLCONV void      Perl_lex_stuff_pvn(pTHX_ const char* pv, STRLEN len, U32 flags);
1954 #define PERL_ARGS_ASSERT_LEX_STUFF_PVN  \
1955         assert(pv)
1956 PERL_CALLCONV void      Perl_lex_stuff_sv(pTHX_ SV* sv, U32 flags);
1957 #define PERL_ARGS_ASSERT_LEX_STUFF_SV   \
1958         assert(sv)
1959 PERL_CALLCONV void      Perl_lex_unstuff(pTHX_ char* ptr);
1960 #define PERL_ARGS_ASSERT_LEX_UNSTUFF    \
1961         assert(ptr)
1962 PERL_CALLCONV OP*       Perl_list(pTHX_ OP* o);
1963 PERL_CALLCONV void      Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...);
1964 #define PERL_ARGS_ASSERT_LOAD_MODULE    \
1965         assert(name)
1966 PERL_CALLCONV OP*       Perl_localize(pTHX_ OP *o, I32 lex);
1967 #define PERL_ARGS_ASSERT_LOCALIZE       \
1968         assert(o)
1969 PERL_CALLCONV I32       Perl_looks_like_number(pTHX_ SV *const sv)
1970                         __attribute__warn_unused_result__;
1971 #define PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER      \
1972         assert(sv)
1973
1974 PERL_CALLCONV int       Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg);
1975 #define PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV    \
1976         assert(sv); assert(mg)
1977 PERL_CALLCONV int       Perl_magic_cleararylen_p(pTHX_ SV* sv, MAGIC* mg);
1978 #define PERL_ARGS_ASSERT_MAGIC_CLEARARYLEN_P    \
1979         assert(sv); assert(mg)
1980 PERL_CALLCONV int       Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg);
1981 #define PERL_ARGS_ASSERT_MAGIC_CLEARENV \
1982         assert(sv); assert(mg)
1983 PERL_CALLCONV int       Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg);
1984 #define PERL_ARGS_ASSERT_MAGIC_CLEARHINT        \
1985         assert(sv); assert(mg)
1986 PERL_CALLCONV int       Perl_magic_clearhints(pTHX_ SV* sv, MAGIC* mg);
1987 #define PERL_ARGS_ASSERT_MAGIC_CLEARHINTS       \
1988         assert(sv); assert(mg)
1989 PERL_CALLCONV int       Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg);
1990 #define PERL_ARGS_ASSERT_MAGIC_CLEARISA \
1991         assert(mg)
1992 PERL_CALLCONV int       Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg);
1993 #define PERL_ARGS_ASSERT_MAGIC_CLEARPACK        \
1994         assert(sv); assert(mg)
1995 PERL_CALLCONV int       Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg);
1996 #define PERL_ARGS_ASSERT_MAGIC_CLEARSIG \
1997         assert(sv); assert(mg)
1998 PERL_CALLCONV int       Perl_magic_copycallchecker(pTHX_ SV* sv, MAGIC *mg, SV *nsv, const char *name, I32 namlen);
1999 #define PERL_ARGS_ASSERT_MAGIC_COPYCALLCHECKER  \
2000         assert(sv); assert(mg); assert(nsv)
2001 PERL_CALLCONV void      Perl_magic_dump(pTHX_ const MAGIC *mg);
2002 PERL_CALLCONV int       Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg);
2003 #define PERL_ARGS_ASSERT_MAGIC_EXISTSPACK       \
2004         assert(sv); assert(mg)
2005 PERL_CALLCONV int       Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg);
2006 #define PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P     \
2007         assert(sv); assert(mg)
2008 PERL_CALLCONV int       Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg);
2009 #define PERL_ARGS_ASSERT_MAGIC_FREEOVRLD        \
2010         assert(sv); assert(mg)
2011 PERL_CALLCONV int       Perl_magic_get(pTHX_ SV* sv, MAGIC* mg);
2012 #define PERL_ARGS_ASSERT_MAGIC_GET      \
2013         assert(sv); assert(mg)
2014 PERL_CALLCONV int       Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg);
2015 #define PERL_ARGS_ASSERT_MAGIC_GETARYLEN        \
2016         assert(sv); assert(mg)
2017 PERL_CALLCONV int       Perl_magic_getdebugvar(pTHX_ SV* sv, MAGIC* mg);
2018 #define PERL_ARGS_ASSERT_MAGIC_GETDEBUGVAR      \
2019         assert(sv); assert(mg)
2020 PERL_CALLCONV int       Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg);
2021 #define PERL_ARGS_ASSERT_MAGIC_GETDEFELEM       \
2022         assert(sv); assert(mg)
2023 PERL_CALLCONV int       Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg);
2024 #define PERL_ARGS_ASSERT_MAGIC_GETNKEYS \
2025         assert(sv); assert(mg)
2026 PERL_CALLCONV int       Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg);
2027 #define PERL_ARGS_ASSERT_MAGIC_GETPACK  \
2028         assert(sv); assert(mg)
2029 PERL_CALLCONV int       Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg);
2030 #define PERL_ARGS_ASSERT_MAGIC_GETPOS   \
2031         assert(sv); assert(mg)
2032 PERL_CALLCONV int       Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg);
2033 #define PERL_ARGS_ASSERT_MAGIC_GETSIG   \
2034         assert(sv); assert(mg)
2035 PERL_CALLCONV int       Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg);
2036 #define PERL_ARGS_ASSERT_MAGIC_GETSUBSTR        \
2037         assert(sv); assert(mg)
2038 PERL_CALLCONV int       Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg);
2039 #define PERL_ARGS_ASSERT_MAGIC_GETTAINT \
2040         assert(sv); assert(mg)
2041 PERL_CALLCONV int       Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg);
2042 #define PERL_ARGS_ASSERT_MAGIC_GETUVAR  \
2043         assert(sv); assert(mg)
2044 PERL_CALLCONV int       Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg);
2045 #define PERL_ARGS_ASSERT_MAGIC_GETVEC   \
2046         assert(sv); assert(mg)
2047 PERL_CALLCONV int       Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg);
2048 #define PERL_ARGS_ASSERT_MAGIC_KILLBACKREFS     \
2049         assert(sv); assert(mg)
2050 PERL_CALLCONV SV*       Perl_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, SV *meth, U32 flags, U32 argc, ...);
2051 #define PERL_ARGS_ASSERT_MAGIC_METHCALL \
2052         assert(sv); assert(mg); assert(meth)
2053 PERL_CALLCONV int       Perl_magic_nextpack(pTHX_ SV *sv, MAGIC *mg, SV *key);
2054 #define PERL_ARGS_ASSERT_MAGIC_NEXTPACK \
2055         assert(sv); assert(mg); assert(key)
2056 PERL_CALLCONV U32       Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg);
2057 #define PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT      \
2058         assert(sv); assert(mg)
2059 PERL_CALLCONV int       Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg);
2060 #define PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET     \
2061         assert(sv); assert(mg)
2062 PERL_CALLCONV SV*       Perl_magic_scalarpack(pTHX_ HV *hv, MAGIC *mg);
2063 #define PERL_ARGS_ASSERT_MAGIC_SCALARPACK       \
2064         assert(hv); assert(mg)
2065 PERL_CALLCONV int       Perl_magic_set(pTHX_ SV* sv, MAGIC* mg);
2066 #define PERL_ARGS_ASSERT_MAGIC_SET      \
2067         assert(sv); assert(mg)
2068 PERL_CALLCONV int       Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg);
2069 #define PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV      \
2070         assert(sv); assert(mg)
2071 PERL_CALLCONV int       Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg);
2072 #define PERL_ARGS_ASSERT_MAGIC_SETARYLEN        \
2073         assert(sv); assert(mg)
2074 PERL_CALLCONV int       Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg);
2075 #define PERL_ARGS_ASSERT_MAGIC_SETDBLINE        \
2076         assert(sv); assert(mg)
2077 PERL_CALLCONV int       Perl_magic_setdebugvar(pTHX_ SV* sv, MAGIC* mg);
2078 #define PERL_ARGS_ASSERT_MAGIC_SETDEBUGVAR      \
2079         assert(sv); assert(mg)
2080 PERL_CALLCONV int       Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg);
2081 #define PERL_ARGS_ASSERT_MAGIC_SETDEFELEM       \
2082         assert(sv); assert(mg)
2083 PERL_CALLCONV int       Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg);
2084 #define PERL_ARGS_ASSERT_MAGIC_SETENV   \
2085         assert(sv); assert(mg)
2086 PERL_CALLCONV int       Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg);
2087 #define PERL_ARGS_ASSERT_MAGIC_SETHINT  \
2088         assert(sv); assert(mg)
2089 PERL_CALLCONV int       Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg);
2090 #define PERL_ARGS_ASSERT_MAGIC_SETISA   \
2091         assert(sv); assert(mg)
2092 PERL_CALLCONV int       Perl_magic_setlvref(pTHX_ SV* sv, MAGIC* mg);
2093 #define PERL_ARGS_ASSERT_MAGIC_SETLVREF \
2094         assert(sv); assert(mg)
2095 PERL_CALLCONV int       Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg);
2096 #define PERL_ARGS_ASSERT_MAGIC_SETMGLOB \
2097         assert(sv); assert(mg)
2098 PERL_CALLCONV int       Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg);
2099 #define PERL_ARGS_ASSERT_MAGIC_SETNKEYS \
2100         assert(sv); assert(mg)
2101 PERL_CALLCONV int       Perl_magic_setnonelem(pTHX_ SV* sv, MAGIC* mg);
2102 #define PERL_ARGS_ASSERT_MAGIC_SETNONELEM       \
2103         assert(sv); assert(mg)
2104 PERL_CALLCONV int       Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg);
2105 #define PERL_ARGS_ASSERT_MAGIC_SETPACK  \
2106         assert(sv); assert(mg)
2107 PERL_CALLCONV int       Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg);
2108 #define PERL_ARGS_ASSERT_MAGIC_SETPOS   \
2109         assert(sv); assert(mg)
2110 PERL_CALLCONV int       Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg);
2111 #define PERL_ARGS_ASSERT_MAGIC_SETREGEXP        \
2112         assert(sv); assert(mg)
2113 PERL_CALLCONV int       Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg);
2114 #define PERL_ARGS_ASSERT_MAGIC_SETSIG   \
2115         assert(mg)
2116 PERL_CALLCONV int       Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg);
2117 #define PERL_ARGS_ASSERT_MAGIC_SETSUBSTR        \
2118         assert(sv); assert(mg)
2119 PERL_CALLCONV int       Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg);
2120 #define PERL_ARGS_ASSERT_MAGIC_SETTAINT \
2121         assert(sv); assert(mg)
2122 PERL_CALLCONV int       Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg);
2123 #define PERL_ARGS_ASSERT_MAGIC_SETUTF8  \
2124         assert(sv); assert(mg)
2125 PERL_CALLCONV int       Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg);
2126 #define PERL_ARGS_ASSERT_MAGIC_SETUVAR  \
2127         assert(sv); assert(mg)
2128 PERL_CALLCONV int       Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg);
2129 #define PERL_ARGS_ASSERT_MAGIC_SETVEC   \
2130         assert(sv); assert(mg)
2131 PERL_CALLCONV U32       Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg);
2132 #define PERL_ARGS_ASSERT_MAGIC_SIZEPACK \
2133         assert(sv); assert(mg)
2134 PERL_CALLCONV int       Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg);
2135 #define PERL_ARGS_ASSERT_MAGIC_WIPEPACK \
2136         assert(sv); assert(mg)
2137 PERL_CALLCONV Malloc_t  Perl_malloc(MEM_SIZE nbytes)
2138                         __attribute__malloc__
2139                         __attribute__warn_unused_result__;
2140
2141 PERL_CALLCONV I32 *     Perl_markstack_grow(pTHX);
2142 PERL_CALLCONV SV*       Perl_mess(pTHX_ const char* pat, ...)
2143                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
2144 #define PERL_ARGS_ASSERT_MESS   \
2145         assert(pat)
2146
2147 PERL_CALLCONV SV*       Perl_mess_sv(pTHX_ SV* basemsg, bool consume);
2148 #define PERL_ARGS_ASSERT_MESS_SV        \
2149         assert(basemsg)
2150 PERL_CALLCONV Free_t    Perl_mfree(Malloc_t where);
2151 PERL_CALLCONV int       Perl_mg_clear(pTHX_ SV* sv);
2152 #define PERL_ARGS_ASSERT_MG_CLEAR       \
2153         assert(sv)
2154 PERL_CALLCONV int       Perl_mg_copy(pTHX_ SV *sv, SV *nsv, const char *key, I32 klen);
2155 #define PERL_ARGS_ASSERT_MG_COPY        \
2156         assert(sv); assert(nsv)
2157 PERL_CALLCONV MAGIC*    Perl_mg_find(const SV* sv, int type)
2158                         __attribute__warn_unused_result__;
2159
2160 PERL_CALLCONV MAGIC*    Perl_mg_find_mglob(pTHX_ SV* sv)
2161                         __attribute__warn_unused_result__;
2162 #define PERL_ARGS_ASSERT_MG_FIND_MGLOB  \
2163         assert(sv)
2164
2165 PERL_CALLCONV MAGIC*    Perl_mg_findext(const SV* sv, int type, const MGVTBL *vtbl)
2166                         __attribute__warn_unused_result__;
2167
2168 PERL_CALLCONV int       Perl_mg_free(pTHX_ SV* sv);
2169 #define PERL_ARGS_ASSERT_MG_FREE        \
2170         assert(sv)
2171 PERL_CALLCONV void      Perl_mg_free_type(pTHX_ SV* sv, int how);
2172 #define PERL_ARGS_ASSERT_MG_FREE_TYPE   \
2173         assert(sv)
2174 PERL_CALLCONV void      Perl_mg_freeext(pTHX_ SV* sv, int how, const MGVTBL *vtbl);
2175 #define PERL_ARGS_ASSERT_MG_FREEEXT     \
2176         assert(sv)
2177 PERL_CALLCONV int       Perl_mg_get(pTHX_ SV* sv);
2178 #define PERL_ARGS_ASSERT_MG_GET \
2179         assert(sv)
2180 PERL_CALLCONV U32       Perl_mg_length(pTHX_ SV* sv)
2181                         __attribute__deprecated__;
2182 #define PERL_ARGS_ASSERT_MG_LENGTH      \
2183         assert(sv)
2184
2185 PERL_CALLCONV void      Perl_mg_localize(pTHX_ SV* sv, SV* nsv, bool setmagic);
2186 #define PERL_ARGS_ASSERT_MG_LOCALIZE    \
2187         assert(sv); assert(nsv)
2188 PERL_CALLCONV void      Perl_mg_magical(SV* sv);
2189 #define PERL_ARGS_ASSERT_MG_MAGICAL     \
2190         assert(sv)
2191 PERL_CALLCONV int       Perl_mg_set(pTHX_ SV* sv);
2192 #define PERL_ARGS_ASSERT_MG_SET \
2193         assert(sv)
2194 PERL_CALLCONV I32       Perl_mg_size(pTHX_ SV* sv);
2195 #define PERL_ARGS_ASSERT_MG_SIZE        \
2196         assert(sv)
2197 PERL_CALLCONV void      Perl_mini_mktime(struct tm *ptm);
2198 #define PERL_ARGS_ASSERT_MINI_MKTIME    \
2199         assert(ptm)
2200 PERL_CALLCONV int       Perl_mode_from_discipline(pTHX_ const char* s, STRLEN len);
2201 PERL_CALLCONV void *    Perl_more_bodies(pTHX_ const svtype sv_type, const size_t body_size, const size_t arena_size);
2202 PERL_CALLCONV const char*       Perl_moreswitches(pTHX_ const char* s);
2203 #define PERL_ARGS_ASSERT_MORESWITCHES   \
2204         assert(s)
2205 PERL_CALLCONV const struct mro_alg *    Perl_mro_get_from_name(pTHX_ SV *name);
2206 #define PERL_ARGS_ASSERT_MRO_GET_FROM_NAME      \
2207         assert(name)
2208 PERL_CALLCONV AV*       Perl_mro_get_linear_isa(pTHX_ HV* stash);
2209 #define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA     \
2210         assert(stash)
2211 PERL_CALLCONV SV*       Perl_mro_get_private_data(pTHX_ struct mro_meta *const smeta, const struct mro_alg *const which);
2212 #define PERL_ARGS_ASSERT_MRO_GET_PRIVATE_DATA   \
2213         assert(smeta); assert(which)
2214 PERL_CALLCONV void      Perl_mro_isa_changed_in(pTHX_ HV* stash);
2215 #define PERL_ARGS_ASSERT_MRO_ISA_CHANGED_IN     \
2216         assert(stash)
2217 PERL_CALLCONV struct mro_meta*  Perl_mro_meta_init(pTHX_ HV* stash);
2218 #define PERL_ARGS_ASSERT_MRO_META_INIT  \
2219         assert(stash)
2220 PERL_CALLCONV void      Perl_mro_method_changed_in(pTHX_ HV* stash);
2221 #define PERL_ARGS_ASSERT_MRO_METHOD_CHANGED_IN  \
2222         assert(stash)
2223 PERL_CALLCONV void      Perl_mro_package_moved(pTHX_ HV * const stash, HV * const oldstash, const GV * const gv, U32 flags);
2224 #define PERL_ARGS_ASSERT_MRO_PACKAGE_MOVED      \
2225         assert(gv)
2226 PERL_CALLCONV void      Perl_mro_register(pTHX_ const struct mro_alg *mro);
2227 #define PERL_ARGS_ASSERT_MRO_REGISTER   \
2228         assert(mro)
2229 PERL_CALLCONV void      Perl_mro_set_mro(pTHX_ struct mro_meta *const meta, SV *const name);
2230 #define PERL_ARGS_ASSERT_MRO_SET_MRO    \
2231         assert(meta); assert(name)
2232 PERL_CALLCONV SV*       Perl_mro_set_private_data(pTHX_ struct mro_meta *const smeta, const struct mro_alg *const which, SV *const data);
2233 #define PERL_ARGS_ASSERT_MRO_SET_PRIVATE_DATA   \
2234         assert(smeta); assert(which); assert(data)
2235 PERL_CALLCONV SV*       Perl_multiconcat_stringify(pTHX_ const OP* o);
2236 #define PERL_ARGS_ASSERT_MULTICONCAT_STRINGIFY  \
2237         assert(o)
2238 PERL_CALLCONV SV*       Perl_multideref_stringify(pTHX_ const OP* o, CV *cv);
2239 #define PERL_ARGS_ASSERT_MULTIDEREF_STRINGIFY   \
2240         assert(o)
2241 PERL_CALLCONV NV        Perl_my_atof(pTHX_ const char *s);
2242 #define PERL_ARGS_ASSERT_MY_ATOF        \
2243         assert(s)
2244 PERL_CALLCONV char*     Perl_my_atof2(pTHX_ const char *orig, NV* value);
2245 #define PERL_ARGS_ASSERT_MY_ATOF2       \
2246         assert(orig); assert(value)
2247 PERL_CALLCONV char*     Perl_my_atof3(pTHX_ const char *orig, NV* value, const STRLEN len);
2248 #define PERL_ARGS_ASSERT_MY_ATOF3       \
2249         assert(orig); assert(value)
2250 PERL_CALLCONV OP *      Perl_my_attrs(pTHX_ OP *o, OP *attrs);
2251 #define PERL_ARGS_ASSERT_MY_ATTRS       \
2252         assert(o)
2253 PERL_CALLCONV void      Perl_my_clearenv(pTHX);
2254 PERL_CALLCONV int       Perl_my_dirfd(DIR* dir);
2255 PERL_CALLCONV_NO_RET void       Perl_my_exit(pTHX_ U32 status)
2256                         __attribute__noreturn__;
2257
2258 PERL_CALLCONV_NO_RET void       Perl_my_failure_exit(pTHX)
2259                         __attribute__noreturn__;
2260
2261 PERL_CALLCONV I32       Perl_my_fflush_all(pTHX);
2262 PERL_CALLCONV Pid_t     Perl_my_fork(void);
2263 #ifndef NO_MATHOMS
2264 PERL_CALLCONV I32       Perl_my_lstat(pTHX);
2265 #endif
2266 PERL_CALLCONV I32       Perl_my_lstat_flags(pTHX_ const U32 flags);
2267 PERL_CALLCONV int       Perl_my_mkstemp_cloexec(char *templte)
2268                         __attribute__warn_unused_result__;
2269 #define PERL_ARGS_ASSERT_MY_MKSTEMP_CLOEXEC     \
2270         assert(templte)
2271
2272 PERL_CALLCONV PerlIO*   Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args);
2273 #define PERL_ARGS_ASSERT_MY_POPEN_LIST  \
2274         assert(mode); assert(args)
2275 PERL_CALLCONV void      Perl_my_setenv(pTHX_ const char* nam, const char* val);
2276 PERL_CALLCONV int       Perl_my_snprintf(char *buffer, const Size_t len, const char *format, ...)
2277                         __attribute__format__(__printf__,3,4);
2278 #define PERL_ARGS_ASSERT_MY_SNPRINTF    \
2279         assert(buffer); assert(format)
2280
2281 PERL_CALLCONV int       Perl_my_socketpair(int family, int type, int protocol, int fd[2]);
2282 #ifndef NO_MATHOMS
2283 PERL_CALLCONV I32       Perl_my_stat(pTHX);
2284 #endif
2285 PERL_CALLCONV I32       Perl_my_stat_flags(pTHX_ const U32 flags);
2286 PERL_CALLCONV char*     Perl_my_strerror(pTHX_ const int errnum);
2287 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)
2288                         __attribute__format__(__strftime__,pTHX_1,0);
2289 #define PERL_ARGS_ASSERT_MY_STRFTIME    \
2290         assert(fmt)
2291
2292 PERL_CALLCONV void      Perl_my_unexec(pTHX);
2293 PERL_CALLCONV int       Perl_my_vsnprintf(char *buffer, const Size_t len, const char *format, va_list ap);
2294 #define PERL_ARGS_ASSERT_MY_VSNPRINTF   \
2295         assert(buffer); assert(format)
2296 PERL_CALLCONV OP*       Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block);
2297 PERL_CALLCONV OP*       Perl_newANONHASH(pTHX_ OP* o)
2298                         __attribute__warn_unused_result__;
2299
2300 PERL_CALLCONV OP*       Perl_newANONLIST(pTHX_ OP* o)
2301                         __attribute__warn_unused_result__;
2302
2303 PERL_CALLCONV OP*       Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
2304 PERL_CALLCONV OP*       Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
2305                         __attribute__warn_unused_result__;
2306
2307 /* PERL_CALLCONV CV*    newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block); */
2308 PERL_CALLCONV CV*       Perl_newATTRSUB_x(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block, bool o_is_gv);
2309 #ifndef NO_MATHOMS
2310 PERL_CALLCONV AV*       Perl_newAV(pTHX)
2311                         __attribute__warn_unused_result__;
2312 #endif
2313
2314 PERL_CALLCONV OP*       Perl_newAVREF(pTHX_ OP* o)
2315                         __attribute__warn_unused_result__;
2316 #define PERL_ARGS_ASSERT_NEWAVREF       \
2317         assert(o)
2318
2319 PERL_CALLCONV OP*       Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
2320                         __attribute__warn_unused_result__;
2321
2322 PERL_CALLCONV OP*       Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
2323                         __attribute__warn_unused_result__;
2324 #define PERL_ARGS_ASSERT_NEWCONDOP      \
2325         assert(first)
2326
2327 PERL_CALLCONV CV*       Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
2328 PERL_CALLCONV CV*       Perl_newCONSTSUB_flags(pTHX_ HV* stash, const char* name, STRLEN len, U32 flags, SV* sv);
2329 PERL_CALLCONV OP*       Perl_newCVREF(pTHX_ I32 flags, OP* o)
2330                         __attribute__warn_unused_result__;
2331
2332 PERL_CALLCONV OP*       Perl_newDEFSVOP(pTHX)
2333                         __attribute__warn_unused_result__;
2334
2335 PERL_CALLCONV void      Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
2336 PERL_CALLCONV OP*       Perl_newFOROP(pTHX_ I32 flags, OP* sv, OP* expr, OP* block, OP* cont)
2337                         __attribute__warn_unused_result__;
2338 #define PERL_ARGS_ASSERT_NEWFOROP       \
2339         assert(expr)
2340
2341 PERL_CALLCONV OP*       Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
2342                         __attribute__warn_unused_result__;
2343 #define PERL_ARGS_ASSERT_NEWGIVENOP     \
2344         assert(cond); assert(block)
2345
2346 PERL_CALLCONV GP *      Perl_newGP(pTHX_ GV *const gv);
2347 #define PERL_ARGS_ASSERT_NEWGP  \
2348         assert(gv)
2349 PERL_CALLCONV OP*       Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
2350                         __attribute__warn_unused_result__;
2351 #define PERL_ARGS_ASSERT_NEWGVOP        \
2352         assert(gv)
2353
2354 PERL_CALLCONV OP*       Perl_newGVREF(pTHX_ I32 type, OP* o)
2355                         __attribute__warn_unused_result__;
2356
2357 /* PERL_CALLCONV GV*    newGVgen(pTHX_ const char* pack); */
2358 PERL_CALLCONV GV*       Perl_newGVgen_flags(pTHX_ const char* pack, U32 flags)
2359                         __attribute__warn_unused_result__;
2360 #define PERL_ARGS_ASSERT_NEWGVGEN_FLAGS \
2361         assert(pack)
2362
2363 #ifndef NO_MATHOMS
2364 PERL_CALLCONV HV*       Perl_newHV(pTHX)
2365                         __attribute__warn_unused_result__;
2366 #endif
2367
2368 PERL_CALLCONV OP*       Perl_newHVREF(pTHX_ OP* o)
2369                         __attribute__warn_unused_result__;
2370 #define PERL_ARGS_ASSERT_NEWHVREF       \
2371         assert(o)
2372
2373 PERL_CALLCONV HV*       Perl_newHVhv(pTHX_ HV *hv)
2374                         __attribute__warn_unused_result__;
2375
2376 #ifndef NO_MATHOMS
2377 PERL_CALLCONV IO*       Perl_newIO(pTHX)
2378                         __attribute__warn_unused_result__;
2379 #endif
2380
2381 PERL_CALLCONV OP*       Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
2382                         __attribute__warn_unused_result__;
2383
2384 PERL_CALLCONV OP*       Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP *first, OP *other)
2385                         __attribute__warn_unused_result__;
2386 #define PERL_ARGS_ASSERT_NEWLOGOP       \
2387         assert(first); assert(other)
2388
2389 PERL_CALLCONV OP*       Perl_newLOOPEX(pTHX_ I32 type, OP* label)
2390                         __attribute__warn_unused_result__;
2391 #define PERL_ARGS_ASSERT_NEWLOOPEX      \
2392         assert(label)
2393
2394 PERL_CALLCONV OP*       Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
2395                         __attribute__warn_unused_result__;
2396
2397 PERL_CALLCONV OP*       Perl_newMETHOP(pTHX_ I32 type, I32 flags, OP* dynamic_meth)
2398                         __attribute__warn_unused_result__;
2399 #define PERL_ARGS_ASSERT_NEWMETHOP      \
2400         assert(dynamic_meth)
2401
2402 PERL_CALLCONV OP*       Perl_newMETHOP_named(pTHX_ I32 type, I32 flags, SV* const_meth)
2403                         __attribute__warn_unused_result__;
2404 #define PERL_ARGS_ASSERT_NEWMETHOP_NAMED        \
2405         assert(const_meth)
2406
2407 PERL_CALLCONV CV *      Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block);
2408 #define PERL_ARGS_ASSERT_NEWMYSUB       \
2409         assert(o)
2410 PERL_CALLCONV OP*       Perl_newNULLLIST(pTHX)
2411                         __attribute__warn_unused_result__;
2412
2413 PERL_CALLCONV OP*       Perl_newOP(pTHX_ I32 optype, I32 flags)
2414                         __attribute__warn_unused_result__;
2415
2416 PERL_CALLCONV PADNAMELIST *     Perl_newPADNAMELIST(size_t max)
2417                         __attribute__warn_unused_result__;
2418
2419 PERL_CALLCONV PADNAME * Perl_newPADNAMEouter(PADNAME *outer)
2420                         __attribute__warn_unused_result__;
2421 #define PERL_ARGS_ASSERT_NEWPADNAMEOUTER        \
2422         assert(outer)
2423
2424 PERL_CALLCONV PADNAME * Perl_newPADNAMEpvn(const char *s, STRLEN len)
2425                         __attribute__warn_unused_result__;
2426 #define PERL_ARGS_ASSERT_NEWPADNAMEPVN  \
2427         assert(s)
2428
2429 PERL_CALLCONV OP*       Perl_newPMOP(pTHX_ I32 type, I32 flags)
2430                         __attribute__warn_unused_result__;
2431
2432 PERL_CALLCONV void      Perl_newPROG(pTHX_ OP* o);
2433 #define PERL_ARGS_ASSERT_NEWPROG        \
2434         assert(o)
2435 PERL_CALLCONV OP*       Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
2436                         __attribute__warn_unused_result__;
2437
2438 PERL_CALLCONV OP*       Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
2439                         __attribute__warn_unused_result__;
2440 #define PERL_ARGS_ASSERT_NEWRANGE       \
2441         assert(left); assert(right)
2442
2443 PERL_CALLCONV SV*       Perl_newRV(pTHX_ SV *const sv)
2444                         __attribute__warn_unused_result__;
2445 #define PERL_ARGS_ASSERT_NEWRV  \
2446         assert(sv)
2447
2448 PERL_CALLCONV SV*       Perl_newRV_noinc(pTHX_ SV *const tmpRef)
2449                         __attribute__warn_unused_result__;
2450 #define PERL_ARGS_ASSERT_NEWRV_NOINC    \
2451         assert(tmpRef)
2452
2453 PERL_CALLCONV OP*       Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
2454                         __attribute__warn_unused_result__;
2455
2456 PERL_CALLCONV OP*       Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
2457                         __attribute__warn_unused_result__;
2458
2459 PERL_CALLCONV CV*       Perl_newSTUB(pTHX_ GV *gv, bool fake);
2460 #define PERL_ARGS_ASSERT_NEWSTUB        \
2461         assert(gv)
2462 #ifndef NO_MATHOMS
2463 PERL_CALLCONV CV*       Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
2464 #endif
2465 PERL_CALLCONV SV*       Perl_newSV(pTHX_ const STRLEN len)
2466                         __attribute__warn_unused_result__;
2467
2468 PERL_CALLCONV OP*       Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
2469                         __attribute__warn_unused_result__;
2470 #define PERL_ARGS_ASSERT_NEWSVOP        \
2471         assert(sv)
2472
2473 PERL_CALLCONV OP*       Perl_newSVREF(pTHX_ OP* o)
2474                         __attribute__warn_unused_result__;
2475 #define PERL_ARGS_ASSERT_NEWSVREF       \
2476         assert(o)
2477
2478 PERL_CALLCONV SV*       Perl_newSV_type(pTHX_ const svtype type)
2479                         __attribute__warn_unused_result__;
2480
2481 PERL_CALLCONV SV*       Perl_newSVavdefelem(pTHX_ AV *av, SSize_t ix, bool extendible)
2482                         __attribute__warn_unused_result__;
2483 #define PERL_ARGS_ASSERT_NEWSVAVDEFELEM \
2484         assert(av)
2485
2486 PERL_CALLCONV SV*       Perl_newSVhek(pTHX_ const HEK *const hek)
2487                         __attribute__warn_unused_result__;
2488
2489 PERL_CALLCONV SV*       Perl_newSViv(pTHX_ const IV i)
2490                         __attribute__warn_unused_result__;
2491
2492 PERL_CALLCONV SV*       Perl_newSVnv(pTHX_ const NV n)
2493                         __attribute__warn_unused_result__;
2494
2495 PERL_CALLCONV SV*       Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
2496                         __attribute__warn_unused_result__;
2497
2498 PERL_CALLCONV SV*       Perl_newSVpv_share(pTHX_ const char* s, U32 hash)
2499                         __attribute__warn_unused_result__;
2500
2501 PERL_CALLCONV SV*       Perl_newSVpvf(pTHX_ const char *const pat, ...)
2502                         __attribute__warn_unused_result__
2503                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
2504 #define PERL_ARGS_ASSERT_NEWSVPVF       \
2505         assert(pat)
2506
2507 PERL_CALLCONV SV*       Perl_newSVpvn(pTHX_ const char *const buffer, const STRLEN len)
2508                         __attribute__warn_unused_result__;
2509
2510 PERL_CALLCONV SV*       Perl_newSVpvn_flags(pTHX_ const char *const s, const STRLEN len, const U32 flags)
2511                         __attribute__warn_unused_result__;
2512
2513 PERL_CALLCONV SV*       Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
2514                         __attribute__warn_unused_result__;
2515
2516 PERL_CALLCONV SV*       Perl_newSVrv(pTHX_ SV *const rv, const char *const classname);
2517 #define PERL_ARGS_ASSERT_NEWSVRV        \
2518         assert(rv)
2519 PERL_CALLCONV SV*       Perl_newSVsv(pTHX_ SV *const old)
2520                         __attribute__warn_unused_result__;
2521
2522 PERL_CALLCONV SV*       Perl_newSVuv(pTHX_ const UV u)
2523                         __attribute__warn_unused_result__;
2524
2525 PERL_CALLCONV OP*       Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
2526                         __attribute__warn_unused_result__;
2527
2528 PERL_CALLCONV OP*       Perl_newUNOP_AUX(pTHX_ I32 type, I32 flags, OP* first, UNOP_AUX_item *aux)
2529                         __attribute__warn_unused_result__;
2530
2531 PERL_CALLCONV OP*       Perl_newWHENOP(pTHX_ OP* cond, OP* block)
2532                         __attribute__warn_unused_result__;
2533 #define PERL_ARGS_ASSERT_NEWWHENOP      \
2534         assert(block)
2535
2536 PERL_CALLCONV OP*       Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, OP* expr, OP* block, OP* cont, I32 has_my)
2537                         __attribute__warn_unused_result__;
2538
2539 PERL_CALLCONV CV*       Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename);
2540 #define PERL_ARGS_ASSERT_NEWXS  \
2541         assert(subaddr); assert(filename)
2542 PERL_CALLCONV CV *      Perl_newXS_deffile(pTHX_ const char *name, XSUBADDR_t subaddr);
2543 #define PERL_ARGS_ASSERT_NEWXS_DEFFILE  \
2544         assert(name); assert(subaddr)
2545 PERL_CALLCONV CV *      Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags);
2546 #define PERL_ARGS_ASSERT_NEWXS_FLAGS    \
2547         assert(subaddr); assert(filename)
2548 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);
2549 #define PERL_ARGS_ASSERT_NEWXS_LEN_FLAGS        \
2550         assert(subaddr)
2551 PERL_CALLCONV PERL_SI*  Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
2552                         __attribute__warn_unused_result__;
2553
2554 PERL_CALLCONV SV*       Perl_new_version(pTHX_ SV *ver);
2555 #define PERL_ARGS_ASSERT_NEW_VERSION    \
2556         assert(ver)
2557 PERL_CALLCONV STRLEN *  Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, STRLEN size)
2558                         __attribute__warn_unused_result__;
2559 #define PERL_ARGS_ASSERT_NEW_WARNINGS_BITFIELD  \
2560         assert(bits)
2561
2562 PERL_CALLCONV PerlIO*   Perl_nextargv(pTHX_ GV* gv, bool nomagicopen);
2563 #define PERL_ARGS_ASSERT_NEXTARGV       \
2564         assert(gv)
2565 PERL_CALLCONV_NO_RET void       Perl_noperl_die(const char* pat, ...)
2566                         __attribute__noreturn__
2567                         __attribute__format__(__printf__,1,2);
2568 #define PERL_ARGS_ASSERT_NOPERL_DIE     \
2569         assert(pat)
2570
2571 PERL_CALLCONV int       Perl_nothreadhook(pTHX);
2572 PERL_CALLCONV void      Perl_notify_parser_that_changed_to_utf8(pTHX);
2573 PERL_CALLCONV OP*       Perl_oopsAV(pTHX_ OP* o)
2574                         __attribute__warn_unused_result__;
2575 #define PERL_ARGS_ASSERT_OOPSAV \
2576         assert(o)
2577
2578 PERL_CALLCONV OP*       Perl_oopsHV(pTHX_ OP* o)
2579                         __attribute__warn_unused_result__;
2580 #define PERL_ARGS_ASSERT_OOPSHV \
2581         assert(o)
2582
2583 PERL_CALLCONV OP*       Perl_op_append_elem(pTHX_ I32 optype, OP* first, OP* last);
2584 PERL_CALLCONV OP*       Perl_op_append_list(pTHX_ I32 optype, OP* first, OP* last);
2585 PERL_CALLCONV OPclass   Perl_op_class(pTHX_ const OP *o);
2586 PERL_CALLCONV void      Perl_op_clear(pTHX_ OP* o);
2587 #define PERL_ARGS_ASSERT_OP_CLEAR       \
2588         assert(o)
2589 PERL_CALLCONV OP*       Perl_op_contextualize(pTHX_ OP* o, I32 context);
2590 #define PERL_ARGS_ASSERT_OP_CONTEXTUALIZE       \
2591         assert(o)
2592 PERL_CALLCONV OP*       Perl_op_convert_list(pTHX_ I32 optype, I32 flags, OP* o)
2593                         __attribute__warn_unused_result__;
2594
2595 PERL_CALLCONV void      Perl_op_dump(pTHX_ const OP *o);
2596 #define PERL_ARGS_ASSERT_OP_DUMP        \
2597         assert(o)
2598 PERL_CALLCONV void      Perl_op_free(pTHX_ OP* arg);
2599 PERL_CALLCONV OP*       Perl_op_linklist(pTHX_ OP *o);
2600 #define PERL_ARGS_ASSERT_OP_LINKLIST    \
2601         assert(o)
2602 /* PERL_CALLCONV OP*    op_lvalue(pTHX_ OP* o, I32 type); */
2603 PERL_CALLCONV OP*       Perl_op_lvalue_flags(pTHX_ OP* o, I32 type, U32 flags);
2604 PERL_CALLCONV void      Perl_op_null(pTHX_ OP* o);
2605 #define PERL_ARGS_ASSERT_OP_NULL        \
2606         assert(o)
2607 PERL_CALLCONV OP*       Perl_op_parent(OP *o);
2608 #define PERL_ARGS_ASSERT_OP_PARENT      \
2609         assert(o)
2610 PERL_CALLCONV OP*       Perl_op_prepend_elem(pTHX_ I32 optype, OP* first, OP* last);
2611 PERL_CALLCONV void      Perl_op_refcnt_lock(pTHX);
2612 PERL_CALLCONV void      Perl_op_refcnt_unlock(pTHX);
2613 PERL_CALLCONV OP*       Perl_op_scope(pTHX_ OP* o);
2614 PERL_CALLCONV OP*       Perl_op_sibling_splice(OP *parent, OP *start, int del_count, OP* insert);
2615 PERL_CALLCONV OP*       Perl_op_unscope(pTHX_ OP* o);
2616 PERL_CALLCONV void      Perl_optimize_optree(pTHX_ OP* o);
2617 #define PERL_ARGS_ASSERT_OPTIMIZE_OPTREE        \
2618         assert(o)
2619 #ifndef NO_MATHOMS
2620 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);
2621 #define PERL_ARGS_ASSERT_PACK_CAT       \
2622         assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
2623 #endif
2624 PERL_CALLCONV void      Perl_package(pTHX_ OP* o);
2625 #define PERL_ARGS_ASSERT_PACKAGE        \
2626         assert(o)
2627 PERL_CALLCONV void      Perl_package_version(pTHX_ OP* v);
2628 #define PERL_ARGS_ASSERT_PACKAGE_VERSION        \
2629         assert(v)
2630 PERL_CALLCONV void      Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist);
2631 #define PERL_ARGS_ASSERT_PACKLIST       \
2632         assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist)
2633 PERL_CALLCONV PADOFFSET Perl_pad_add_anon(pTHX_ CV* func, I32 optype);
2634 #define PERL_ARGS_ASSERT_PAD_ADD_ANON   \
2635         assert(func)
2636 PERL_CALLCONV PADOFFSET Perl_pad_add_name_pv(pTHX_ const char *name, const U32 flags, HV *typestash, HV *ourstash);
2637 #define PERL_ARGS_ASSERT_PAD_ADD_NAME_PV        \
2638         assert(name)
2639 PERL_CALLCONV PADOFFSET Perl_pad_add_name_pvn(pTHX_ const char *namepv, STRLEN namelen, U32 flags, HV *typestash, HV *ourstash);
2640 #define PERL_ARGS_ASSERT_PAD_ADD_NAME_PVN       \
2641         assert(namepv)
2642 PERL_CALLCONV PADOFFSET Perl_pad_add_name_sv(pTHX_ SV *name, U32 flags, HV *typestash, HV *ourstash);
2643 #define PERL_ARGS_ASSERT_PAD_ADD_NAME_SV        \
2644         assert(name)
2645 PERL_CALLCONV void      Perl_pad_add_weakref(pTHX_ CV* func);
2646 #define PERL_ARGS_ASSERT_PAD_ADD_WEAKREF        \
2647         assert(func)
2648 PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
2649 PERL_CALLCONV void      Perl_pad_block_start(pTHX_ int full);
2650 #ifndef NO_MATHOMS
2651 PERL_CALLCONV HV*       Perl_pad_compname_type(pTHX_ const PADOFFSET po)
2652                         __attribute__warn_unused_result__;
2653 #endif
2654
2655 PERL_CALLCONV PADOFFSET Perl_pad_findmy_pv(pTHX_ const char* name, U32 flags);
2656 #define PERL_ARGS_ASSERT_PAD_FINDMY_PV  \
2657         assert(name)
2658 PERL_CALLCONV PADOFFSET Perl_pad_findmy_pvn(pTHX_ const char* namepv, STRLEN namelen, U32 flags);
2659 #define PERL_ARGS_ASSERT_PAD_FINDMY_PVN \
2660         assert(namepv)
2661 PERL_CALLCONV PADOFFSET Perl_pad_findmy_sv(pTHX_ SV* name, U32 flags);
2662 #define PERL_ARGS_ASSERT_PAD_FINDMY_SV  \
2663         assert(name)
2664 PERL_CALLCONV void      Perl_pad_fixup_inner_anons(pTHX_ PADLIST *padlist, CV *old_cv, CV *new_cv);
2665 #define PERL_ARGS_ASSERT_PAD_FIXUP_INNER_ANONS  \
2666         assert(padlist); assert(old_cv); assert(new_cv)
2667 PERL_CALLCONV void      Perl_pad_free(pTHX_ PADOFFSET po);
2668 PERL_CALLCONV OP *      Perl_pad_leavemy(pTHX);
2669 PERL_CALLCONV PADLIST*  Perl_pad_new(pTHX_ int flags)
2670                         __attribute__warn_unused_result__;
2671
2672 PERL_CALLCONV void      Perl_pad_push(pTHX_ PADLIST *padlist, int depth);
2673 #define PERL_ARGS_ASSERT_PAD_PUSH       \
2674         assert(padlist)
2675 PERL_CALLCONV void      Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
2676 PERL_CALLCONV void      Perl_pad_tidy(pTHX_ padtidy_type type);
2677 PERL_CALLCONV PAD **    Perl_padlist_store(pTHX_ PADLIST *padlist, I32 key, PAD *val);
2678 #define PERL_ARGS_ASSERT_PADLIST_STORE  \
2679         assert(padlist)
2680 PERL_CALLCONV void      Perl_padname_free(pTHX_ PADNAME *pn);
2681 #define PERL_ARGS_ASSERT_PADNAME_FREE   \
2682         assert(pn)
2683 PERL_CALLCONV PADNAME * Perl_padnamelist_fetch(PADNAMELIST *pnl, SSize_t key)
2684                         __attribute__warn_unused_result__;
2685 #define PERL_ARGS_ASSERT_PADNAMELIST_FETCH      \
2686         assert(pnl)
2687
2688 PERL_CALLCONV void      Perl_padnamelist_free(pTHX_ PADNAMELIST *pnl);
2689 #define PERL_ARGS_ASSERT_PADNAMELIST_FREE       \
2690         assert(pnl)
2691 PERL_CALLCONV PADNAME **        Perl_padnamelist_store(pTHX_ PADNAMELIST *pnl, SSize_t key, PADNAME *val);
2692 #define PERL_ARGS_ASSERT_PADNAMELIST_STORE      \
2693         assert(pnl)
2694 PERL_CALLCONV OP*       Perl_parse_arithexpr(pTHX_ U32 flags);
2695 PERL_CALLCONV OP*       Perl_parse_barestmt(pTHX_ U32 flags);
2696 PERL_CALLCONV OP*       Perl_parse_block(pTHX_ U32 flags);
2697 PERL_CALLCONV OP*       Perl_parse_fullexpr(pTHX_ U32 flags);
2698 PERL_CALLCONV OP*       Perl_parse_fullstmt(pTHX_ U32 flags);
2699 PERL_CALLCONV SV*       Perl_parse_label(pTHX_ U32 flags);
2700 PERL_CALLCONV OP*       Perl_parse_listexpr(pTHX_ U32 flags);
2701 PERL_CALLCONV OP*       Perl_parse_stmtseq(pTHX_ U32 flags);
2702 PERL_CALLCONV OP*       Perl_parse_termexpr(pTHX_ U32 flags);
2703 PERL_CALLCONV U32       Perl_parse_unicode_opts(pTHX_ const char **popt);
2704 #define PERL_ARGS_ASSERT_PARSE_UNICODE_OPTS     \
2705         assert(popt)
2706 PERL_CALLCONV void      Perl_parser_free(pTHX_ const yy_parser *parser);
2707 #define PERL_ARGS_ASSERT_PARSER_FREE    \
2708         assert(parser)
2709 PERL_CALLCONV void      Perl_peep(pTHX_ OP* o);
2710 PERL_CALLCONV PerlInterpreter*  perl_alloc(void);
2711 PERL_CALLCONV void      perl_construct(PerlInterpreter *my_perl);
2712 #define PERL_ARGS_ASSERT_PERL_CONSTRUCT \
2713         assert(my_perl)
2714 PERL_CALLCONV int       perl_destruct(PerlInterpreter *my_perl);
2715 #define PERL_ARGS_ASSERT_PERL_DESTRUCT  \
2716         assert(my_perl)
2717 PERL_CALLCONV void      perl_free(PerlInterpreter *my_perl);
2718 #define PERL_ARGS_ASSERT_PERL_FREE      \
2719         assert(my_perl)
2720 PERL_CALLCONV int       perl_parse(PerlInterpreter *my_perl, XSINIT_t xsinit, int argc, char** argv, char** env);
2721 #define PERL_ARGS_ASSERT_PERL_PARSE     \
2722         assert(my_perl)
2723 PERL_CALLCONV int       perl_run(PerlInterpreter *my_perl);
2724 #define PERL_ARGS_ASSERT_PERL_RUN       \
2725         assert(my_perl)
2726 PERL_CALLCONV void      Perl_pmop_dump(pTHX_ PMOP* pm);
2727 PERL_CALLCONV OP*       Perl_pmruntime(pTHX_ OP *o, OP *expr, OP *repl, UV flags, I32 floor);
2728 #define PERL_ARGS_ASSERT_PMRUNTIME      \
2729         assert(o); assert(expr)
2730 PERL_CALLCONV void      Perl_pop_scope(pTHX);
2731 PERL_CALLCONV void      Perl_populate_isa(pTHX_ const char *name, STRLEN len, ...);
2732 #define PERL_ARGS_ASSERT_POPULATE_ISA   \
2733         assert(name)
2734 PERL_CALLCONV REGEXP*   Perl_pregcomp(pTHX_ SV * const pattern, const U32 flags);
2735 #define PERL_ARGS_ASSERT_PREGCOMP       \
2736         assert(pattern)
2737 PERL_CALLCONV I32       Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, SSize_t minend, SV* screamer, U32 nosave);
2738 #define PERL_ARGS_ASSERT_PREGEXEC       \
2739         assert(prog); assert(stringarg); assert(strend); assert(strbeg); assert(screamer)
2740 PERL_CALLCONV void      Perl_pregfree(pTHX_ REGEXP* r);
2741 PERL_CALLCONV void      Perl_pregfree2(pTHX_ REGEXP *rx);
2742 #define PERL_ARGS_ASSERT_PREGFREE2      \
2743         assert(rx)
2744 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);
2745 #define PERL_ARGS_ASSERT_PRESCAN_VERSION        \
2746         assert(s)
2747 PERL_CALLCONV void      Perl_ptr_table_clear(pTHX_ PTR_TBL_t *const tbl)
2748                         __attribute__deprecated__;
2749
2750 PERL_CALLCONV void*     Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *const tbl, const void *const sv)
2751                         __attribute__warn_unused_result__;
2752 #define PERL_ARGS_ASSERT_PTR_TABLE_FETCH        \
2753         assert(tbl)
2754
2755 PERL_CALLCONV void      Perl_ptr_table_free(pTHX_ PTR_TBL_t *const tbl);
2756 PERL_CALLCONV PTR_TBL_t*        Perl_ptr_table_new(pTHX)
2757                         __attribute__warn_unused_result__;
2758
2759 PERL_CALLCONV void      Perl_ptr_table_split(pTHX_ PTR_TBL_t *const tbl);
2760 #define PERL_ARGS_ASSERT_PTR_TABLE_SPLIT        \
2761         assert(tbl)
2762 PERL_CALLCONV void      Perl_ptr_table_store(pTHX_ PTR_TBL_t *const tbl, const void *const oldsv, void *const newsv);
2763 #define PERL_ARGS_ASSERT_PTR_TABLE_STORE        \
2764         assert(tbl); assert(newsv)
2765 PERL_CALLCONV void      Perl_push_scope(pTHX);
2766 PERL_CALLCONV char*     Perl_pv_display(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim);
2767 #define PERL_ARGS_ASSERT_PV_DISPLAY     \
2768         assert(dsv); assert(pv)
2769 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);
2770 #define PERL_ARGS_ASSERT_PV_ESCAPE      \
2771         assert(str)
2772 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);
2773 #define PERL_ARGS_ASSERT_PV_PRETTY      \
2774         assert(dsv); assert(str)
2775 PERL_CALLCONV char*     Perl_pv_uni_display(pTHX_ SV *dsv, const U8 *spv, STRLEN len, STRLEN pvlim, UV flags);
2776 #define PERL_ARGS_ASSERT_PV_UNI_DISPLAY \
2777         assert(dsv); assert(spv)
2778 PERL_CALLCONV void      Perl_qerror(pTHX_ SV* err);
2779 #define PERL_ARGS_ASSERT_QERROR \
2780         assert(err)
2781 PERL_CALLCONV REGEXP*   Perl_re_compile(pTHX_ SV * const pattern, U32 orig_rx_flags);
2782 #define PERL_ARGS_ASSERT_RE_COMPILE     \
2783         assert(pattern)
2784 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);
2785 #define PERL_ARGS_ASSERT_RE_INTUIT_START        \
2786         assert(rx); assert(strbeg); assert(strpos); assert(strend)
2787 PERL_CALLCONV SV*       Perl_re_intuit_string(pTHX_ REGEXP  *const r);
2788 #define PERL_ARGS_ASSERT_RE_INTUIT_STRING       \
2789         assert(r)
2790 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, const U32 rx_flags, const U32 pm_flags);
2791 #define PERL_ARGS_ASSERT_RE_OP_COMPILE  \
2792         assert(eng)
2793 PERL_CALLCONV Malloc_t  Perl_realloc(Malloc_t where, MEM_SIZE nbytes)
2794                         __attribute__warn_unused_result__;
2795
2796 PERL_CALLCONV void      Perl_reentrant_free(pTHX);
2797 PERL_CALLCONV void      Perl_reentrant_init(pTHX);
2798 PERL_CALLCONV void*     Perl_reentrant_retry(const char *f, ...);
2799 #define PERL_ARGS_ASSERT_REENTRANT_RETRY        \
2800         assert(f)
2801 PERL_CALLCONV void      Perl_reentrant_size(pTHX);
2802 #ifndef NO_MATHOMS
2803 PERL_CALLCONV OP*       Perl_ref(pTHX_ OP* o, I32 type);
2804 #endif
2805 PERL_CALLCONV HV *      Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c, U32 flags);
2806 PERL_CALLCONV SV *      Perl_refcounted_he_fetch_pv(pTHX_ const struct refcounted_he *chain, const char *key, U32 hash, U32 flags);
2807 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_PV \
2808         assert(key)
2809 PERL_CALLCONV SV *      Perl_refcounted_he_fetch_pvn(pTHX_ const struct refcounted_he *chain, const char *keypv, STRLEN keylen, U32 hash, U32 flags);
2810 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_PVN        \
2811         assert(keypv)
2812 PERL_CALLCONV SV *      Perl_refcounted_he_fetch_sv(pTHX_ const struct refcounted_he *chain, SV *key, U32 hash, U32 flags);
2813 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_FETCH_SV \
2814         assert(key)
2815 PERL_CALLCONV void      Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
2816 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_inc(pTHX_ struct refcounted_he *he);
2817 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_new_pv(pTHX_ struct refcounted_he *parent, const char *key, U32 hash, SV *value, U32 flags);
2818 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_PV   \
2819         assert(key)
2820 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);
2821 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_PVN  \
2822         assert(keypv)
2823 PERL_CALLCONV struct refcounted_he *    Perl_refcounted_he_new_sv(pTHX_ struct refcounted_he *parent, SV *key, U32 hash, SV *value, U32 flags);
2824 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_SV   \
2825         assert(key)
2826 PERL_CALLCONV SV*       Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags);
2827 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF \
2828         assert(rx)
2829 PERL_CALLCONV SV*       Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags);
2830 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL     \
2831         assert(rx)
2832 PERL_CALLCONV bool      Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags);
2833 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS  \
2834         assert(rx); assert(key)
2835 PERL_CALLCONV SV*       Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags);
2836 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH   \
2837         assert(rx); assert(namesv)
2838 PERL_CALLCONV SV*       Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags);
2839 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY        \
2840         assert(rx)
2841 PERL_CALLCONV SV*       Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags);
2842 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER    \
2843         assert(rx)
2844 PERL_CALLCONV SV*       Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags);
2845 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY \
2846         assert(rx)
2847 PERL_CALLCONV SV*       Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags);
2848 #define PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR  \
2849         assert(rx)
2850 PERL_CALLCONV void      Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv);
2851 #define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH        \
2852         assert(rx)
2853 PERL_CALLCONV I32       Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren);
2854 #define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH       \
2855         assert(rx); assert(sv)
2856 PERL_CALLCONV void      Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value);
2857 #define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE        \
2858         assert(rx)
2859 PERL_CALLCONV SV*       Perl_reg_qr_package(pTHX_ REGEXP * const rx);
2860 #define PERL_ARGS_ASSERT_REG_QR_PACKAGE \
2861         assert(rx)
2862 PERL_CALLCONV REGEXP*   Perl_reg_temp_copy(pTHX_ REGEXP* dsv, REGEXP* ssv);
2863 #define PERL_ARGS_ASSERT_REG_TEMP_COPY  \
2864         assert(ssv)
2865 PERL_CALLCONV SV*       Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **altsvp);
2866 #define PERL_ARGS_ASSERT_REGCLASS_SWASH \
2867         assert(node)
2868 PERL_CALLCONV void      Perl_regdump(pTHX_ const regexp* r);
2869 #define PERL_ARGS_ASSERT_REGDUMP        \
2870         assert(r)
2871 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);
2872 #define PERL_ARGS_ASSERT_REGEXEC_FLAGS  \
2873         assert(rx); assert(stringarg); assert(strend); assert(strbeg); assert(sv)
2874 PERL_CALLCONV void      Perl_regfree_internal(pTHX_ REGEXP *const rx);
2875 #define PERL_ARGS_ASSERT_REGFREE_INTERNAL       \
2876         assert(rx)
2877 PERL_CALLCONV void      Perl_reginitcolors(pTHX);
2878 PERL_CALLCONV regnode*  Perl_regnext(pTHX_ regnode* p)
2879                         __attribute__warn_unused_result__;
2880
2881 PERL_CALLCONV void      Perl_repeatcpy(char* to, const char* from, I32 len, IV count);
2882 #define PERL_ARGS_ASSERT_REPEATCPY      \
2883         assert(to); assert(from)
2884 PERL_CALLCONV void      Perl_report_evil_fh(pTHX_ const GV *gv);
2885 PERL_CALLCONV void      Perl_report_uninit(pTHX_ const SV *uninit_sv);
2886 PERL_CALLCONV void      Perl_report_wrongway_fh(pTHX_ const GV *gv, const char have);
2887 PERL_CALLCONV void      Perl_require_pv(pTHX_ const char* pv);
2888 #define PERL_ARGS_ASSERT_REQUIRE_PV     \
2889         assert(pv)
2890 PERL_CALLCONV char*     Perl_rninstr(const char* big, const char* bigend, const char* little, const char* lend)
2891                         __attribute__warn_unused_result__
2892                         __attribute__pure__;
2893 #define PERL_ARGS_ASSERT_RNINSTR        \
2894         assert(big); assert(bigend); assert(little); assert(lend)
2895
2896 PERL_CALLCONV void      Perl_rpeep(pTHX_ OP* o);
2897 PERL_CALLCONV Sighandler_t      Perl_rsignal(pTHX_ int i, Sighandler_t t);
2898 PERL_CALLCONV int       Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
2899 PERL_CALLCONV int       Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save);
2900 #define PERL_ARGS_ASSERT_RSIGNAL_SAVE   \
2901         assert(save)
2902 PERL_CALLCONV Sighandler_t      Perl_rsignal_state(pTHX_ int i);
2903 PERL_CALLCONV int       Perl_runops_debug(pTHX);
2904 PERL_CALLCONV int       Perl_runops_standard(pTHX);
2905 PERL_CALLCONV CV*       Perl_rv2cv_op_cv(pTHX_ OP *cvop, U32 flags);
2906 #define PERL_ARGS_ASSERT_RV2CV_OP_CV    \
2907         assert(cvop)
2908 PERL_CALLCONV void      Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx);
2909 #define PERL_ARGS_ASSERT_RXRES_SAVE     \
2910         assert(rsp); assert(rx)
2911 PERL_CALLCONV Malloc_t  Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size)
2912                         __attribute__malloc__
2913                         __attribute__warn_unused_result__;
2914
2915 PERL_CALLCONV Free_t    Perl_safesysfree(Malloc_t where);
2916 PERL_CALLCONV Malloc_t  Perl_safesysmalloc(MEM_SIZE nbytes)
2917                         __attribute__malloc__
2918                         __attribute__warn_unused_result__;
2919
2920 PERL_CALLCONV Malloc_t  Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes)
2921                         __attribute__warn_unused_result__;
2922
2923 PERL_CALLCONV void      Perl_save_I16(pTHX_ I16* intp);
2924 #define PERL_ARGS_ASSERT_SAVE_I16       \
2925         assert(intp)
2926 PERL_CALLCONV void      Perl_save_I32(pTHX_ I32* intp);
2927 #define PERL_ARGS_ASSERT_SAVE_I32       \
2928         assert(intp)
2929 PERL_CALLCONV void      Perl_save_I8(pTHX_ I8* bytep);
2930 #define PERL_ARGS_ASSERT_SAVE_I8        \
2931         assert(bytep)
2932 PERL_CALLCONV void      Perl_save_adelete(pTHX_ AV *av, SSize_t key);
2933 #define PERL_ARGS_ASSERT_SAVE_ADELETE   \
2934         assert(av)
2935 /* PERL_CALLCONV void   Perl_save_aelem(pTHX_ AV* av, SSize_t idx, SV **sptr); */
2936 PERL_CALLCONV void      Perl_save_aelem_flags(pTHX_ AV* av, SSize_t idx, SV **sptr, const U32 flags);
2937 #define PERL_ARGS_ASSERT_SAVE_AELEM_FLAGS       \
2938         assert(av); assert(sptr)
2939 PERL_CALLCONV I32       Perl_save_alloc(pTHX_ I32 size, I32 pad);
2940 PERL_CALLCONV void      Perl_save_aptr(pTHX_ AV** aptr);
2941 #define PERL_ARGS_ASSERT_SAVE_APTR      \
2942         assert(aptr)
2943 PERL_CALLCONV AV*       Perl_save_ary(pTHX_ GV* gv);
2944 #define PERL_ARGS_ASSERT_SAVE_ARY       \
2945         assert(gv)
2946 PERL_CALLCONV void      Perl_save_bool(pTHX_ bool* boolp);
2947 #define PERL_ARGS_ASSERT_SAVE_BOOL      \
2948         assert(boolp)
2949 PERL_CALLCONV void      Perl_save_clearsv(pTHX_ SV** svp);
2950 #define PERL_ARGS_ASSERT_SAVE_CLEARSV   \
2951         assert(svp)
2952 PERL_CALLCONV void      Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen);
2953 #define PERL_ARGS_ASSERT_SAVE_DELETE    \
2954         assert(hv); assert(key)
2955 PERL_CALLCONV void      Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p);
2956 #define PERL_ARGS_ASSERT_SAVE_DESTRUCTOR        \
2957         assert(p)
2958 PERL_CALLCONV void      Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
2959 #ifndef NO_MATHOMS
2960 PERL_CALLCONV void      Perl_save_freeop(pTHX_ OP* o);
2961 #endif
2962 #ifndef NO_MATHOMS
2963 PERL_CALLCONV void      Perl_save_freepv(pTHX_ char* pv);
2964 #endif
2965 #ifndef NO_MATHOMS
2966 PERL_CALLCONV void      Perl_save_freesv(pTHX_ SV* sv);
2967 #endif
2968 PERL_CALLCONV void      Perl_save_generic_pvref(pTHX_ char** str);
2969 #define PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF     \
2970         assert(str)
2971 PERL_CALLCONV void      Perl_save_generic_svref(pTHX_ SV** sptr);
2972 #define PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF     \
2973         assert(sptr)
2974 PERL_CALLCONV void      Perl_save_gp(pTHX_ GV* gv, I32 empty);
2975 #define PERL_ARGS_ASSERT_SAVE_GP        \
2976         assert(gv)
2977 PERL_CALLCONV HV*       Perl_save_hash(pTHX_ GV* gv);
2978 #define PERL_ARGS_ASSERT_SAVE_HASH      \
2979         assert(gv)
2980 PERL_CALLCONV void      Perl_save_hdelete(pTHX_ HV *hv, SV *keysv);
2981 #define PERL_ARGS_ASSERT_SAVE_HDELETE   \
2982         assert(hv); assert(keysv)
2983 /* PERL_CALLCONV void   Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr); */
2984 PERL_CALLCONV void      Perl_save_helem_flags(pTHX_ HV *hv, SV *key, SV **sptr, const U32 flags);
2985 #define PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS       \
2986         assert(hv); assert(key); assert(sptr)
2987 PERL_CALLCONV void      Perl_save_hints(pTHX);
2988 PERL_CALLCONV void      Perl_save_hptr(pTHX_ HV** hptr);
2989 #define PERL_ARGS_ASSERT_SAVE_HPTR      \
2990         assert(hptr)
2991 PERL_CALLCONV void      Perl_save_int(pTHX_ int* intp);
2992 #define PERL_ARGS_ASSERT_SAVE_INT       \
2993         assert(intp)
2994 PERL_CALLCONV void      Perl_save_item(pTHX_ SV* item);
2995 #define PERL_ARGS_ASSERT_SAVE_ITEM      \
2996         assert(item)
2997 PERL_CALLCONV void      Perl_save_iv(pTHX_ IV *ivp);
2998 #define PERL_ARGS_ASSERT_SAVE_IV        \
2999         assert(ivp)
3000 #ifndef NO_MATHOMS
3001 PERL_CALLCONV void      Perl_save_list(pTHX_ SV** sarg, I32 maxsarg);
3002 #define PERL_ARGS_ASSERT_SAVE_LIST      \
3003         assert(sarg)
3004 #endif
3005 #ifndef NO_MATHOMS
3006 PERL_CALLCONV void      Perl_save_long(pTHX_ long* longp);
3007 #define PERL_ARGS_ASSERT_SAVE_LONG      \
3008         assert(longp)
3009 #endif
3010 #ifndef NO_MATHOMS
3011 PERL_CALLCONV void      Perl_save_mortalizesv(pTHX_ SV* sv);
3012 #define PERL_ARGS_ASSERT_SAVE_MORTALIZESV       \
3013         assert(sv)
3014 #endif
3015 #ifndef NO_MATHOMS
3016 PERL_CALLCONV void      Perl_save_nogv(pTHX_ GV* gv);
3017 #define PERL_ARGS_ASSERT_SAVE_NOGV      \
3018         assert(gv)
3019 #endif
3020 #ifndef NO_MATHOMS
3021 PERL_CALLCONV void      Perl_save_op(pTHX);
3022 #endif
3023 PERL_CALLCONV void      Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
3024 PERL_CALLCONV void      Perl_save_pptr(pTHX_ char** pptr);
3025 #define PERL_ARGS_ASSERT_SAVE_PPTR      \
3026         assert(pptr)
3027 PERL_CALLCONV void      Perl_save_pushi32ptr(pTHX_ const I32 i, void *const ptr, const int type);
3028 PERL_CALLCONV void      Perl_save_pushptr(pTHX_ void *const ptr, const int type);
3029 PERL_CALLCONV void      Perl_save_pushptrptr(pTHX_ void *const ptr1, void *const ptr2, const int type);
3030 PERL_CALLCONV void      Perl_save_re_context(pTHX);
3031 PERL_CALLCONV SV*       Perl_save_scalar(pTHX_ GV* gv);
3032 #define PERL_ARGS_ASSERT_SAVE_SCALAR    \
3033         assert(gv)
3034 PERL_CALLCONV void      Perl_save_set_svflags(pTHX_ SV *sv, U32 mask, U32 val);
3035 #define PERL_ARGS_ASSERT_SAVE_SET_SVFLAGS       \
3036         assert(sv)
3037 PERL_CALLCONV void      Perl_save_shared_pvref(pTHX_ char** str);
3038 #define PERL_ARGS_ASSERT_SAVE_SHARED_PVREF      \
3039         assert(str)
3040 PERL_CALLCONV void      Perl_save_sptr(pTHX_ SV** sptr);
3041 #define PERL_ARGS_ASSERT_SAVE_SPTR      \
3042         assert(sptr)
3043 PERL_CALLCONV void      Perl_save_strlen(pTHX_ STRLEN* ptr);
3044 #define PERL_ARGS_ASSERT_SAVE_STRLEN    \
3045         assert(ptr)
3046 PERL_CALLCONV SV*       Perl_save_svref(pTHX_ SV** sptr);
3047 #define PERL_ARGS_ASSERT_SAVE_SVREF     \
3048         assert(sptr)
3049 PERL_CALLCONV void      Perl_save_vptr(pTHX_ void *ptr);
3050 #define PERL_ARGS_ASSERT_SAVE_VPTR      \
3051         assert(ptr)
3052 PERL_CALLCONV char*     Perl_savepv(pTHX_ const char* pv)
3053                         __attribute__malloc__
3054                         __attribute__warn_unused_result__;
3055
3056 PERL_CALLCONV char*     Perl_savepvn(pTHX_ const char* pv, I32 len)
3057                         __attribute__malloc__
3058                         __attribute__warn_unused_result__;
3059
3060 PERL_CALLCONV char*     Perl_savesharedpv(pTHX_ const char* pv)
3061                         __attribute__malloc__
3062                         __attribute__warn_unused_result__;
3063
3064 PERL_CALLCONV char*     Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
3065                         __attribute__malloc__
3066                         __attribute__warn_unused_result__;
3067
3068 PERL_CALLCONV char*     Perl_savesharedsvpv(pTHX_ SV *sv)
3069                         __attribute__malloc__
3070                         __attribute__warn_unused_result__;
3071 #define PERL_ARGS_ASSERT_SAVESHAREDSVPV \
3072         assert(sv)
3073
3074 PERL_CALLCONV void      Perl_savestack_grow(pTHX);
3075 PERL_CALLCONV void      Perl_savestack_grow_cnt(pTHX_ I32 need);
3076 PERL_CALLCONV char*     Perl_savesvpv(pTHX_ SV* sv)
3077                         __attribute__malloc__
3078                         __attribute__warn_unused_result__;
3079 #define PERL_ARGS_ASSERT_SAVESVPV       \
3080         assert(sv)
3081
3082 PERL_CALLCONV void      Perl_savetmps(pTHX);
3083 PERL_CALLCONV OP*       Perl_sawparens(pTHX_ OP* o);
3084 PERL_CALLCONV OP*       Perl_scalar(pTHX_ OP* o);
3085 PERL_CALLCONV OP*       Perl_scalarvoid(pTHX_ OP* o);
3086 #define PERL_ARGS_ASSERT_SCALARVOID     \
3087         assert(o)
3088 PERL_CALLCONV NV        Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
3089 #define PERL_ARGS_ASSERT_SCAN_BIN       \
3090         assert(start); assert(retlen)
3091 PERL_CALLCONV NV        Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
3092 #define PERL_ARGS_ASSERT_SCAN_HEX       \
3093         assert(start); assert(retlen)
3094 PERL_CALLCONV char*     Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp);
3095 #define PERL_ARGS_ASSERT_SCAN_NUM       \
3096         assert(s); assert(lvalp)
3097 PERL_CALLCONV NV        Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen);
3098 #define PERL_ARGS_ASSERT_SCAN_OCT       \
3099         assert(start); assert(retlen)
3100 PERL_CALLCONV const char*       Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv);
3101 #define PERL_ARGS_ASSERT_SCAN_VERSION   \
3102         assert(s); assert(rv)
3103 PERL_CALLCONV char*     Perl_scan_vstring(pTHX_ const char *s, const char *const e, SV *sv);
3104 #define PERL_ARGS_ASSERT_SCAN_VSTRING   \
3105         assert(s); assert(e); assert(sv)
3106 PERL_CALLCONV U32       Perl_seed(pTHX);
3107 PERL_CALLCONV void      Perl_set_caret_X(pTHX);
3108 PERL_CALLCONV void      Perl_set_context(void *t);
3109 #define PERL_ARGS_ASSERT_SET_CONTEXT    \
3110         assert(t)
3111 PERL_CALLCONV void      Perl_set_numeric_standard(pTHX);
3112 PERL_CALLCONV void      Perl_set_numeric_underlying(pTHX);
3113 PERL_CALLCONV void      Perl_setdefout(pTHX_ GV* gv);
3114 #define PERL_ARGS_ASSERT_SETDEFOUT      \
3115         assert(gv)
3116 PERL_CALLCONV void      Perl_setfd_cloexec(int fd);
3117 PERL_CALLCONV void      Perl_setfd_cloexec_for_nonsysfd(pTHX_ int fd);
3118 PERL_CALLCONV void      Perl_setfd_cloexec_or_inhexec_by_sysfdness(pTHX_ int fd);
3119 PERL_CALLCONV void      Perl_setfd_inhexec(int fd);
3120 PERL_CALLCONV void      Perl_setfd_inhexec_for_sysfd(pTHX_ int fd);
3121 PERL_CALLCONV HEK*      Perl_share_hek(pTHX_ const char* str, SSize_t len, U32 hash);
3122 #define PERL_ARGS_ASSERT_SHARE_HEK      \
3123         assert(str)
3124 PERL_CALLCONV void      Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp);
3125 #define PERL_ARGS_ASSERT_SORTSV \
3126         assert(cmp)
3127 PERL_CALLCONV void      Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags);
3128 #define PERL_ARGS_ASSERT_SORTSV_FLAGS   \
3129         assert(cmp)
3130 PERL_CALLCONV SV**      Perl_stack_grow(pTHX_ SV** sp, SV** p, SSize_t n);
3131 #define PERL_ARGS_ASSERT_STACK_GROW     \
3132         assert(sp); assert(p)
3133 PERL_CALLCONV PerlIO*   Perl_start_glob(pTHX_ SV *tmpglob, IO *io);
3134 #define PERL_ARGS_ASSERT_START_GLOB     \
3135         assert(tmpglob); assert(io)
3136 PERL_CALLCONV I32       Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
3137 PERL_CALLCONV NV        Perl_str_to_version(pTHX_ SV *sv)
3138                         __attribute__warn_unused_result__;
3139 #define PERL_ARGS_ASSERT_STR_TO_VERSION \
3140         assert(sv)
3141
3142 PERL_CALLCONV void      Perl_sub_crush_depth(pTHX_ CV* cv);
3143 #define PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH        \
3144         assert(cv)
3145 #ifndef NO_MATHOMS
3146 PERL_CALLCONV bool      Perl_sv_2bool(pTHX_ SV *const sv);
3147 #define PERL_ARGS_ASSERT_SV_2BOOL       \
3148         assert(sv)
3149 #endif
3150 PERL_CALLCONV bool      Perl_sv_2bool_flags(pTHX_ SV *sv, I32 flags);
3151 #define PERL_ARGS_ASSERT_SV_2BOOL_FLAGS \
3152         assert(sv)
3153 PERL_CALLCONV CV*       Perl_sv_2cv(pTHX_ SV* sv, HV **const st, GV **const gvp, const I32 lref);
3154 #define PERL_ARGS_ASSERT_SV_2CV \
3155         assert(st); assert(gvp)
3156 PERL_CALLCONV IO*       Perl_sv_2io(pTHX_ SV *const sv);
3157 #define PERL_ARGS_ASSERT_SV_2IO \
3158         assert(sv)
3159 #ifndef NO_MATHOMS
3160 PERL_CALLCONV IV        Perl_sv_2iv(pTHX_ SV *sv);
3161 #define PERL_ARGS_ASSERT_SV_2IV \
3162         assert(sv)
3163 #endif
3164 PERL_CALLCONV IV        Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
3165 #define PERL_ARGS_ASSERT_SV_2IV_FLAGS   \
3166         assert(sv)
3167 PERL_CALLCONV SV*       Perl_sv_2mortal(pTHX_ SV *const sv);
3168 PERL_CALLCONV SV*       Perl_sv_2num(pTHX_ SV *const sv);
3169 #define PERL_ARGS_ASSERT_SV_2NUM        \
3170         assert(sv)
3171 PERL_CALLCONV NV        Perl_sv_2nv_flags(pTHX_ SV *const sv, const I32 flags);
3172 #define PERL_ARGS_ASSERT_SV_2NV_FLAGS   \
3173         assert(sv)
3174 #ifndef NO_MATHOMS
3175 PERL_CALLCONV char*     Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp);
3176 #define PERL_ARGS_ASSERT_SV_2PV \
3177         assert(sv)
3178 #endif
3179 PERL_CALLCONV char*     Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
3180 #define PERL_ARGS_ASSERT_SV_2PV_FLAGS   \
3181         assert(sv)
3182 #ifndef NO_MATHOMS
3183 PERL_CALLCONV char*     Perl_sv_2pv_nolen(pTHX_ SV* sv)
3184                         __attribute__warn_unused_result__;
3185 #define PERL_ARGS_ASSERT_SV_2PV_NOLEN   \
3186         assert(sv)
3187 #endif
3188
3189 PERL_CALLCONV char*     Perl_sv_2pvbyte(pTHX_ SV *sv, STRLEN *const lp);
3190 #define PERL_ARGS_ASSERT_SV_2PVBYTE     \
3191         assert(sv)
3192 #ifndef NO_MATHOMS
3193 PERL_CALLCONV char*     Perl_sv_2pvbyte_nolen(pTHX_ SV* sv)
3194                         __attribute__warn_unused_result__;
3195 #define PERL_ARGS_ASSERT_SV_2PVBYTE_NOLEN       \
3196         assert(sv)
3197 #endif
3198
3199 PERL_CALLCONV char*     Perl_sv_2pvutf8(pTHX_ SV *sv, STRLEN *const lp);
3200 #define PERL_ARGS_ASSERT_SV_2PVUTF8     \
3201         assert(sv)
3202 #ifndef NO_MATHOMS
3203 PERL_CALLCONV char*     Perl_sv_2pvutf8_nolen(pTHX_ SV* sv)
3204                         __attribute__warn_unused_result__;
3205 #define PERL_ARGS_ASSERT_SV_2PVUTF8_NOLEN       \
3206         assert(sv)
3207 #endif
3208
3209 #ifndef NO_MATHOMS
3210 PERL_CALLCONV UV        Perl_sv_2uv(pTHX_ SV *sv);
3211 #define PERL_ARGS_ASSERT_SV_2UV \
3212         assert(sv)
3213 #endif
3214 PERL_CALLCONV UV        Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
3215 #define PERL_ARGS_ASSERT_SV_2UV_FLAGS   \
3216         assert(sv)
3217 PERL_CALLCONV void      Perl_sv_backoff(SV *const sv);
3218 #define PERL_ARGS_ASSERT_SV_BACKOFF     \
3219         assert(sv)
3220 PERL_CALLCONV SV*       Perl_sv_bless(pTHX_ SV *const sv, HV *const stash);
3221 #define PERL_ARGS_ASSERT_SV_BLESS       \
3222         assert(sv); assert(stash)
3223 PERL_CALLCONV bool      Perl_sv_cat_decode(pTHX_ SV* dsv, SV *encoding, SV *ssv, int *offset, char* tstr, int tlen);
3224 #define PERL_ARGS_ASSERT_SV_CAT_DECODE  \
3225         assert(dsv); assert(encoding); assert(ssv); assert(offset); assert(tstr)
3226 PERL_CALLCONV void      Perl_sv_catpv(pTHX_ SV *const sv, const char* ptr);
3227 #define PERL_ARGS_ASSERT_SV_CATPV       \
3228         assert(sv)
3229 PERL_CALLCONV void      Perl_sv_catpv_flags(pTHX_ SV *dstr, const char *sstr, const I32 flags);
3230 #define PERL_ARGS_ASSERT_SV_CATPV_FLAGS \
3231         assert(dstr); assert(sstr)
3232 PERL_CALLCONV void      Perl_sv_catpv_mg(pTHX_ SV *const sv, const char *const ptr);
3233 #define PERL_ARGS_ASSERT_SV_CATPV_MG    \
3234         assert(sv)
3235 PERL_CALLCONV void      Perl_sv_catpvf(pTHX_ SV *const sv, const char *const pat, ...)
3236                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3237 #define PERL_ARGS_ASSERT_SV_CATPVF      \
3238         assert(sv); assert(pat)
3239
3240 PERL_CALLCONV void      Perl_sv_catpvf_mg(pTHX_ SV *const sv, const char *const pat, ...)
3241                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3242 #define PERL_ARGS_ASSERT_SV_CATPVF_MG   \
3243         assert(sv); assert(pat)
3244
3245 #ifndef NO_MATHOMS
3246 PERL_CALLCONV void      Perl_sv_catpvn(pTHX_ SV *dsv, const char *sstr, STRLEN len);
3247 #define PERL_ARGS_ASSERT_SV_CATPVN      \
3248         assert(dsv); assert(sstr)
3249 #endif
3250 PERL_CALLCONV void      Perl_sv_catpvn_flags(pTHX_ SV *const dstr, const char *sstr, const STRLEN len, const I32 flags);
3251 #define PERL_ARGS_ASSERT_SV_CATPVN_FLAGS        \
3252         assert(dstr); assert(sstr)
3253 #ifndef NO_MATHOMS
3254 PERL_CALLCONV void      Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len);
3255 #define PERL_ARGS_ASSERT_SV_CATPVN_MG   \
3256         assert(sv); assert(ptr)
3257 #endif
3258 #ifndef NO_MATHOMS
3259 PERL_CALLCONV void      Perl_sv_catsv(pTHX_ SV *dstr, SV *sstr);
3260 #define PERL_ARGS_ASSERT_SV_CATSV       \
3261         assert(dstr)
3262 #endif
3263 PERL_CALLCONV void      Perl_sv_catsv_flags(pTHX_ SV *const dsv, SV *const ssv, const I32 flags);
3264 #define PERL_ARGS_ASSERT_SV_CATSV_FLAGS \
3265         assert(dsv)
3266 #ifndef NO_MATHOMS
3267 PERL_CALLCONV void      Perl_sv_catsv_mg(pTHX_ SV *dsv, SV *ssv);
3268 #define PERL_ARGS_ASSERT_SV_CATSV_MG    \
3269         assert(dsv)
3270 #endif
3271 PERL_CALLCONV void      Perl_sv_chop(pTHX_ SV *const sv, const char *const ptr);
3272 #define PERL_ARGS_ASSERT_SV_CHOP        \
3273         assert(sv)
3274 PERL_CALLCONV I32       Perl_sv_clean_all(pTHX);
3275 PERL_CALLCONV void      Perl_sv_clean_objs(pTHX);
3276 PERL_CALLCONV void      Perl_sv_clear(pTHX_ SV *const orig_sv);
3277 #define PERL_ARGS_ASSERT_SV_CLEAR       \
3278         assert(orig_sv)
3279 PERL_CALLCONV I32       Perl_sv_cmp(pTHX_ SV *const sv1, SV *const sv2);
3280 PERL_CALLCONV I32       Perl_sv_cmp_flags(pTHX_ SV *const sv1, SV *const sv2, const U32 flags);
3281 PERL_CALLCONV I32       Perl_sv_cmp_locale(pTHX_ SV *const sv1, SV *const sv2);
3282 PERL_CALLCONV I32       Perl_sv_cmp_locale_flags(pTHX_ SV *const sv1, SV *const sv2, const U32 flags);
3283 #ifndef NO_MATHOMS
3284 PERL_CALLCONV void      Perl_sv_copypv(pTHX_ SV *const dsv, SV *const ssv);
3285 #define PERL_ARGS_ASSERT_SV_COPYPV      \
3286         assert(dsv); assert(ssv)
3287 #endif
3288 PERL_CALLCONV void      Perl_sv_copypv_flags(pTHX_ SV *const dsv, SV *const ssv, const I32 flags);
3289 #define PERL_ARGS_ASSERT_SV_COPYPV_FLAGS        \
3290         assert(dsv); assert(ssv)
3291 /* PERL_CALLCONV void   Perl_sv_copypv_nomg(pTHX_ SV *const dsv, SV *const ssv); */
3292 PERL_CALLCONV void      Perl_sv_dec(pTHX_ SV *const sv);
3293 PERL_CALLCONV void      Perl_sv_dec_nomg(pTHX_ SV *const sv);
3294 PERL_CALLCONV void      Perl_sv_del_backref(pTHX_ SV *const tsv, SV *const sv);
3295 #define PERL_ARGS_ASSERT_SV_DEL_BACKREF \
3296         assert(tsv); assert(sv)
3297 PERL_CALLCONV bool      Perl_sv_derived_from(pTHX_ SV* sv, const char *const name)
3298                         __attribute__warn_unused_result__;
3299 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM        \
3300         assert(sv); assert(name)
3301
3302 PERL_CALLCONV bool      Perl_sv_derived_from_pv(pTHX_ SV* sv, const char *const name, U32 flags)
3303                         __attribute__warn_unused_result__;
3304 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM_PV     \
3305         assert(sv); assert(name)
3306
3307 PERL_CALLCONV bool      Perl_sv_derived_from_pvn(pTHX_ SV* sv, const char *const name, const STRLEN len, U32 flags)
3308                         __attribute__warn_unused_result__;
3309 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM_PVN    \
3310         assert(sv); assert(name)
3311
3312 PERL_CALLCONV bool      Perl_sv_derived_from_sv(pTHX_ SV* sv, SV *namesv, U32 flags)
3313                         __attribute__warn_unused_result__;
3314 #define PERL_ARGS_ASSERT_SV_DERIVED_FROM_SV     \
3315         assert(sv); assert(namesv)
3316
3317 PERL_CALLCONV bool      Perl_sv_destroyable(pTHX_ SV *sv);
3318 PERL_CALLCONV bool      Perl_sv_does(pTHX_ SV* sv, const char *const name)
3319                         __attribute__warn_unused_result__;
3320 #define PERL_ARGS_ASSERT_SV_DOES        \
3321         assert(sv); assert(name)
3322
3323 PERL_CALLCONV bool      Perl_sv_does_pv(pTHX_ SV* sv, const char *const name, U32 flags)
3324                         __attribute__warn_unused_result__;
3325 #define PERL_ARGS_ASSERT_SV_DOES_PV     \
3326         assert(sv); assert(name)
3327
3328 PERL_CALLCONV bool      Perl_sv_does_pvn(pTHX_ SV* sv, const char *const name, const STRLEN len, U32 flags)
3329                         __attribute__warn_unused_result__;
3330 #define PERL_ARGS_ASSERT_SV_DOES_PVN    \
3331         assert(sv); assert(name)
3332
3333 PERL_CALLCONV bool      Perl_sv_does_sv(pTHX_ SV* sv, SV* namesv, U32 flags)
3334                         __attribute__warn_unused_result__;
3335 #define PERL_ARGS_ASSERT_SV_DOES_SV     \
3336         assert(sv); assert(namesv)
3337
3338 PERL_CALLCONV void      Perl_sv_dump(pTHX_ SV* sv);
3339 #ifndef NO_MATHOMS
3340 PERL_CALLCONV I32       Perl_sv_eq(pTHX_ SV* sv1, SV* sv2);
3341 #endif
3342 PERL_CALLCONV I32       Perl_sv_eq_flags(pTHX_ SV* sv1, SV* sv2, const U32 flags);
3343 #ifndef NO_MATHOMS
3344 PERL_CALLCONV void      Perl_sv_force_normal(pTHX_ SV *sv);
3345 #define PERL_ARGS_ASSERT_SV_FORCE_NORMAL        \
3346         assert(sv)
3347 #endif
3348 PERL_CALLCONV void      Perl_sv_force_normal_flags(pTHX_ SV *const sv, const U32 flags);
3349 #define PERL_ARGS_ASSERT_SV_FORCE_NORMAL_FLAGS  \
3350         assert(sv)
3351 PERL_CALLCONV void      Perl_sv_free(pTHX_ SV *const sv);
3352 PERL_CALLCONV void      Perl_sv_free2(pTHX_ SV *const sv, const U32 refcnt);
3353 #define PERL_ARGS_ASSERT_SV_FREE2       \
3354         assert(sv)
3355 PERL_CALLCONV void      Perl_sv_free_arenas(pTHX);
3356 PERL_CALLCONV SV*       Perl_sv_get_backrefs(SV *const sv);
3357 #define PERL_ARGS_ASSERT_SV_GET_BACKREFS        \
3358         assert(sv)
3359 PERL_CALLCONV char*     Perl_sv_gets(pTHX_ SV *const sv, PerlIO *const fp, I32 append);
3360 #define PERL_ARGS_ASSERT_SV_GETS        \
3361         assert(sv); assert(fp)
3362 PERL_CALLCONV char*     Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen);
3363 #define PERL_ARGS_ASSERT_SV_GROW        \
3364         assert(sv)
3365 PERL_CALLCONV void      Perl_sv_inc(pTHX_ SV *const sv);
3366 PERL_CALLCONV void      Perl_sv_inc_nomg(pTHX_ SV *const sv);
3367 #ifndef NO_MATHOMS
3368 PERL_CALLCONV void      Perl_sv_insert(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen);
3369 #define PERL_ARGS_ASSERT_SV_INSERT      \
3370         assert(bigstr); assert(little)
3371 #endif
3372 PERL_CALLCONV void      Perl_sv_insert_flags(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *little, const STRLEN littlelen, const U32 flags);
3373 #define PERL_ARGS_ASSERT_SV_INSERT_FLAGS        \
3374         assert(bigstr); assert(little)
3375 PERL_CALLCONV int       Perl_sv_isa(pTHX_ SV* sv, const char *const name);
3376 #define PERL_ARGS_ASSERT_SV_ISA \
3377         assert(name)
3378 PERL_CALLCONV int       Perl_sv_isobject(pTHX_ SV* sv);
3379 #ifndef NO_MATHOMS
3380 PERL_CALLCONV IV        Perl_sv_iv(pTHX_ SV* sv);
3381 #define PERL_ARGS_ASSERT_SV_IV  \
3382         assert(sv)
3383 #endif
3384 PERL_CALLCONV STRLEN    Perl_sv_len(pTHX_ SV *const sv);
3385 PERL_CALLCONV STRLEN    Perl_sv_len_utf8(pTHX_ SV *const sv);
3386 PERL_CALLCONV STRLEN    Perl_sv_len_utf8_nomg(pTHX_ SV *const sv);
3387 #define PERL_ARGS_ASSERT_SV_LEN_UTF8_NOMG       \
3388         assert(sv)
3389 PERL_CALLCONV void      Perl_sv_magic(pTHX_ SV *const sv, SV *const obj, const int how, const char *const name, const I32 namlen);
3390 #define PERL_ARGS_ASSERT_SV_MAGIC       \
3391         assert(sv)
3392 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);
3393 #define PERL_ARGS_ASSERT_SV_MAGICEXT    \
3394         assert(sv)
3395 PERL_CALLCONV MAGIC *   Perl_sv_magicext_mglob(pTHX_ SV *sv);
3396 #define PERL_ARGS_ASSERT_SV_MAGICEXT_MGLOB      \
3397         assert(sv)
3398 #ifndef NO_MATHOMS
3399 PERL_CALLCONV SV*       Perl_sv_mortalcopy(pTHX_ SV *const oldsv)
3400                         __attribute__warn_unused_result__;
3401 #endif
3402
3403 PERL_CALLCONV SV*       Perl_sv_mortalcopy_flags(pTHX_ SV *const oldsv, U32 flags)
3404                         __attribute__warn_unused_result__;
3405
3406 PERL_CALLCONV SV*       Perl_sv_newmortal(pTHX)
3407                         __attribute__warn_unused_result__;
3408
3409 PERL_CALLCONV SV*       Perl_sv_newref(pTHX_ SV *const sv);
3410 #ifndef NO_MATHOMS
3411 PERL_CALLCONV void      Perl_sv_nolocking(pTHX_ SV *sv);
3412 #endif
3413 PERL_CALLCONV void      Perl_sv_nosharing(pTHX_ SV *sv);
3414 #ifndef NO_MATHOMS
3415 PERL_CALLCONV void      Perl_sv_nounlocking(pTHX_ SV *sv);
3416 #endif
3417 #ifndef NO_MATHOMS
3418 PERL_CALLCONV NV        Perl_sv_nv(pTHX_ SV* sv);
3419 #define PERL_ARGS_ASSERT_SV_NV  \
3420         assert(sv)
3421 #endif
3422 #ifndef PERL_NO_INLINE_FUNCTIONS
3423 PERL_STATIC_INLINE bool S_sv_only_taint_gmagic(SV *sv);
3424 #define PERL_ARGS_ASSERT_SV_ONLY_TAINT_GMAGIC   \
3425         assert(sv)
3426 #endif
3427 PERL_CALLCONV char*     Perl_sv_peek(pTHX_ SV* sv);
3428 PERL_CALLCONV void      Perl_sv_pos_b2u(pTHX_ SV *const sv, I32 *const offsetp);
3429 #define PERL_ARGS_ASSERT_SV_POS_B2U     \
3430         assert(offsetp)
3431 PERL_CALLCONV STRLEN    Perl_sv_pos_b2u_flags(pTHX_ SV *const sv, STRLEN const offset, U32 flags);
3432 #define PERL_ARGS_ASSERT_SV_POS_B2U_FLAGS       \
3433         assert(sv)
3434 PERL_CALLCONV void      Perl_sv_pos_u2b(pTHX_ SV *const sv, I32 *const offsetp, I32 *const lenp);
3435 #define PERL_ARGS_ASSERT_SV_POS_U2B     \
3436         assert(offsetp)
3437 PERL_CALLCONV STRLEN    Perl_sv_pos_u2b_flags(pTHX_ SV *const sv, STRLEN uoffset, STRLEN *const lenp, U32 flags);
3438 #define PERL_ARGS_ASSERT_SV_POS_U2B_FLAGS       \
3439         assert(sv)
3440 #ifndef NO_MATHOMS
3441 PERL_CALLCONV char*     Perl_sv_pv(pTHX_ SV *sv)
3442                         __attribute__warn_unused_result__;
3443 #define PERL_ARGS_ASSERT_SV_PV  \
3444         assert(sv)
3445 #endif
3446
3447 #ifndef NO_MATHOMS
3448 PERL_CALLCONV char*     Perl_sv_pvbyte(pTHX_ SV *sv)
3449                         __attribute__warn_unused_result__;
3450 #define PERL_ARGS_ASSERT_SV_PVBYTE      \
3451         assert(sv)
3452 #endif
3453
3454 #ifndef NO_MATHOMS
3455 PERL_CALLCONV char*     Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp);
3456 #define PERL_ARGS_ASSERT_SV_PVBYTEN     \
3457         assert(sv); assert(lp)
3458 #endif
3459 PERL_CALLCONV char*     Perl_sv_pvbyten_force(pTHX_ SV *const sv, STRLEN *const lp);
3460 #define PERL_ARGS_ASSERT_SV_PVBYTEN_FORCE       \
3461         assert(sv)
3462 #ifndef NO_MATHOMS
3463 PERL_CALLCONV char*     Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp);
3464 #define PERL_ARGS_ASSERT_SV_PVN \
3465         assert(sv); assert(lp)
3466 #endif
3467 #ifndef NO_MATHOMS
3468 PERL_CALLCONV char*     Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp);
3469 #define PERL_ARGS_ASSERT_SV_PVN_FORCE   \
3470         assert(sv)
3471 #endif
3472 PERL_CALLCONV char*     Perl_sv_pvn_force_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
3473 #define PERL_ARGS_ASSERT_SV_PVN_FORCE_FLAGS     \
3474         assert(sv)
3475 #ifndef NO_MATHOMS
3476 PERL_CALLCONV char*     Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp);
3477 #define PERL_ARGS_ASSERT_SV_PVN_NOMG    \
3478         assert(sv)
3479 #endif
3480 #ifndef NO_MATHOMS
3481 PERL_CALLCONV char*     Perl_sv_pvutf8(pTHX_ SV *sv)
3482                         __attribute__warn_unused_result__;
3483 #define PERL_ARGS_ASSERT_SV_PVUTF8      \
3484         assert(sv)
3485 #endif
3486
3487 #ifndef NO_MATHOMS
3488 PERL_CALLCONV char*     Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp);
3489 #define PERL_ARGS_ASSERT_SV_PVUTF8N     \
3490         assert(sv); assert(lp)
3491 #endif
3492 PERL_CALLCONV char*     Perl_sv_pvutf8n_force(pTHX_ SV *const sv, STRLEN *const lp);
3493 #define PERL_ARGS_ASSERT_SV_PVUTF8N_FORCE       \
3494         assert(sv)
3495 PERL_CALLCONV char*     Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding);
3496 #define PERL_ARGS_ASSERT_SV_RECODE_TO_UTF8      \
3497         assert(sv); assert(encoding)
3498 PERL_CALLCONV SV*       Perl_sv_ref(pTHX_ SV *dst, const SV *const sv, const int ob);
3499 #define PERL_ARGS_ASSERT_SV_REF \
3500         assert(sv)
3501 PERL_CALLCONV const char*       Perl_sv_reftype(pTHX_ const SV *const sv, const int ob)
3502                         __attribute__warn_unused_result__;
3503 #define PERL_ARGS_ASSERT_SV_REFTYPE     \
3504         assert(sv)
3505
3506 PERL_CALLCONV void      Perl_sv_replace(pTHX_ SV *const sv, SV *const nsv);
3507 #define PERL_ARGS_ASSERT_SV_REPLACE     \
3508         assert(sv); assert(nsv)
3509 PERL_CALLCONV void      Perl_sv_report_used(pTHX);
3510 PERL_CALLCONV void      Perl_sv_reset(pTHX_ const char* s, HV *const stash);
3511 #define PERL_ARGS_ASSERT_SV_RESET       \
3512         assert(s)
3513 PERL_CALLCONV void      Perl_sv_resetpvn(pTHX_ const char* s, STRLEN len, HV *const stash);
3514 PERL_CALLCONV SV*       Perl_sv_rvunweaken(pTHX_ SV *const sv);
3515 #define PERL_ARGS_ASSERT_SV_RVUNWEAKEN  \
3516         assert(sv)
3517 PERL_CALLCONV SV*       Perl_sv_rvweaken(pTHX_ SV *const sv);
3518 #define PERL_ARGS_ASSERT_SV_RVWEAKEN    \
3519         assert(sv)
3520 PERL_CALLCONV void      Perl_sv_set_undef(pTHX_ SV *sv);
3521 #define PERL_ARGS_ASSERT_SV_SET_UNDEF   \
3522         assert(sv)
3523 PERL_CALLCONV void      Perl_sv_sethek(pTHX_ SV *const sv, const HEK *const hek);
3524 #define PERL_ARGS_ASSERT_SV_SETHEK      \
3525         assert(sv)
3526 PERL_CALLCONV void      Perl_sv_setiv(pTHX_ SV *const sv, const IV num);
3527 #define PERL_ARGS_ASSERT_SV_SETIV       \
3528         assert(sv)
3529 PERL_CALLCONV void      Perl_sv_setiv_mg(pTHX_ SV *const sv, const IV i);
3530 #define PERL_ARGS_ASSERT_SV_SETIV_MG    \
3531         assert(sv)
3532 PERL_CALLCONV void      Perl_sv_setnv(pTHX_ SV *const sv, const NV num);
3533 #define PERL_ARGS_ASSERT_SV_SETNV       \
3534         assert(sv)
3535 PERL_CALLCONV void      Perl_sv_setnv_mg(pTHX_ SV *const sv, const NV num);
3536 #define PERL_ARGS_ASSERT_SV_SETNV_MG    \
3537         assert(sv)
3538 PERL_CALLCONV void      Perl_sv_setpv(pTHX_ SV *const sv, const char *const ptr);
3539 #define PERL_ARGS_ASSERT_SV_SETPV       \
3540         assert(sv)
3541 PERL_CALLCONV char  *   Perl_sv_setpv_bufsize(pTHX_ SV *const sv, const STRLEN cur, const STRLEN len);
3542 #define PERL_ARGS_ASSERT_SV_SETPV_BUFSIZE       \
3543         assert(sv)
3544 PERL_CALLCONV void      Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr);
3545 #define PERL_ARGS_ASSERT_SV_SETPV_MG    \
3546         assert(sv)
3547 PERL_CALLCONV void      Perl_sv_setpvf(pTHX_ SV *const sv, const char *const pat, ...)
3548                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3549 #define PERL_ARGS_ASSERT_SV_SETPVF      \
3550         assert(sv); assert(pat)
3551
3552 PERL_CALLCONV void      Perl_sv_setpvf_mg(pTHX_ SV *const sv, const char *const pat, ...)
3553                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3554 #define PERL_ARGS_ASSERT_SV_SETPVF_MG   \
3555         assert(sv); assert(pat)
3556
3557 #ifndef NO_MATHOMS
3558 PERL_CALLCONV void      Perl_sv_setpviv(pTHX_ SV *const sv, const IV num);
3559 #define PERL_ARGS_ASSERT_SV_SETPVIV     \
3560         assert(sv)
3561 #endif
3562 #ifndef NO_MATHOMS
3563 PERL_CALLCONV void      Perl_sv_setpviv_mg(pTHX_ SV *const sv, const IV iv);
3564 #define PERL_ARGS_ASSERT_SV_SETPVIV_MG  \
3565         assert(sv)
3566 #endif
3567 PERL_CALLCONV void      Perl_sv_setpvn(pTHX_ SV *const sv, const char *const ptr, const STRLEN len);
3568 #define PERL_ARGS_ASSERT_SV_SETPVN      \
3569         assert(sv)
3570 PERL_CALLCONV void      Perl_sv_setpvn_mg(pTHX_ SV *const sv, const char *const ptr, const STRLEN len);
3571 #define PERL_ARGS_ASSERT_SV_SETPVN_MG   \
3572         assert(sv); assert(ptr)
3573 PERL_CALLCONV SV*       Perl_sv_setref_iv(pTHX_ SV *const rv, const char *const classname, const IV iv);
3574 #define PERL_ARGS_ASSERT_SV_SETREF_IV   \
3575         assert(rv)
3576 PERL_CALLCONV SV*       Perl_sv_setref_nv(pTHX_ SV *const rv, const char *const classname, const NV nv);
3577 #define PERL_ARGS_ASSERT_SV_SETREF_NV   \
3578         assert(rv)
3579 PERL_CALLCONV SV*       Perl_sv_setref_pv(pTHX_ SV *const rv, const char *const classname, void *const pv);
3580 #define PERL_ARGS_ASSERT_SV_SETREF_PV   \
3581         assert(rv)
3582 PERL_CALLCONV SV*       Perl_sv_setref_pvn(pTHX_ SV *const rv, const char *const classname, const char *const pv, const STRLEN n);
3583 #define PERL_ARGS_ASSERT_SV_SETREF_PVN  \
3584         assert(rv); assert(pv)
3585 PERL_CALLCONV SV*       Perl_sv_setref_uv(pTHX_ SV *const rv, const char *const classname, const UV uv);
3586 #define PERL_ARGS_ASSERT_SV_SETREF_UV   \
3587         assert(rv)
3588 #ifndef NO_MATHOMS
3589 PERL_CALLCONV void      Perl_sv_setsv(pTHX_ SV *dstr, SV *sstr);
3590 #define PERL_ARGS_ASSERT_SV_SETSV       \
3591         assert(dstr)
3592 #endif
3593 PERL_CALLCONV void      Perl_sv_setsv_flags(pTHX_ SV *dstr, SV *sstr, const I32 flags);
3594 #define PERL_ARGS_ASSERT_SV_SETSV_FLAGS \
3595         assert(dstr)
3596 PERL_CALLCONV void      Perl_sv_setsv_mg(pTHX_ SV *const dstr, SV *const sstr);
3597 #define PERL_ARGS_ASSERT_SV_SETSV_MG    \
3598         assert(dstr)
3599 PERL_CALLCONV void      Perl_sv_setuv(pTHX_ SV *const sv, const UV num);
3600 #define PERL_ARGS_ASSERT_SV_SETUV       \
3601         assert(sv)
3602 PERL_CALLCONV void      Perl_sv_setuv_mg(pTHX_ SV *const sv, const UV u);
3603 #define PERL_ARGS_ASSERT_SV_SETUV_MG    \
3604         assert(sv)
3605 PERL_CALLCONV SV*       Perl_sv_string_from_errnum(pTHX_ int errnum, SV* tgtsv);
3606 #ifndef NO_MATHOMS
3607 PERL_CALLCONV void      Perl_sv_taint(pTHX_ SV* sv);
3608 #define PERL_ARGS_ASSERT_SV_TAINT       \
3609         assert(sv)
3610 #endif
3611 PERL_CALLCONV bool      Perl_sv_tainted(pTHX_ SV *const sv)
3612                         __attribute__warn_unused_result__;
3613 #define PERL_ARGS_ASSERT_SV_TAINTED     \
3614         assert(sv)
3615
3616 PERL_CALLCONV I32       Perl_sv_true(pTHX_ SV *const sv);
3617 PERL_CALLCONV char*     Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim, UV flags)
3618                         __attribute__warn_unused_result__;
3619 #define PERL_ARGS_ASSERT_SV_UNI_DISPLAY \
3620         assert(dsv); assert(ssv)
3621
3622 PERL_CALLCONV int       Perl_sv_unmagic(pTHX_ SV *const sv, const int type);
3623 #define PERL_ARGS_ASSERT_SV_UNMAGIC     \
3624         assert(sv)
3625 PERL_CALLCONV int       Perl_sv_unmagicext(pTHX_ SV *const sv, const int type, MGVTBL *vtbl);
3626 #define PERL_ARGS_ASSERT_SV_UNMAGICEXT  \
3627         assert(sv)
3628 #ifndef NO_MATHOMS
3629 PERL_CALLCONV void      Perl_sv_unref(pTHX_ SV* sv);
3630 #define PERL_ARGS_ASSERT_SV_UNREF       \
3631         assert(sv)
3632 #endif
3633 PERL_CALLCONV void      Perl_sv_unref_flags(pTHX_ SV *const ref, const U32 flags);
3634 #define PERL_ARGS_ASSERT_SV_UNREF_FLAGS \
3635         assert(ref)
3636 PERL_CALLCONV void      Perl_sv_untaint(pTHX_ SV *const sv);
3637 #define PERL_ARGS_ASSERT_SV_UNTAINT     \
3638         assert(sv)
3639 PERL_CALLCONV void      Perl_sv_upgrade(pTHX_ SV *const sv, svtype new_type);
3640 #define PERL_ARGS_ASSERT_SV_UPGRADE     \
3641         assert(sv)
3642 #ifndef NO_MATHOMS
3643 PERL_CALLCONV void      Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len);
3644 #define PERL_ARGS_ASSERT_SV_USEPVN      \
3645         assert(sv)
3646 #endif
3647 PERL_CALLCONV void      Perl_sv_usepvn_flags(pTHX_ SV *const sv, char* ptr, const STRLEN len, const U32 flags);
3648 #define PERL_ARGS_ASSERT_SV_USEPVN_FLAGS        \
3649         assert(sv)
3650 #ifndef NO_MATHOMS
3651 PERL_CALLCONV void      Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len);
3652 #define PERL_ARGS_ASSERT_SV_USEPVN_MG   \
3653         assert(sv)
3654 #endif
3655 PERL_CALLCONV bool      Perl_sv_utf8_decode(pTHX_ SV *const sv);
3656 #define PERL_ARGS_ASSERT_SV_UTF8_DECODE \
3657         assert(sv)
3658 PERL_CALLCONV bool      Perl_sv_utf8_downgrade(pTHX_ SV *const sv, const bool fail_ok);
3659 #define PERL_ARGS_ASSERT_SV_UTF8_DOWNGRADE      \
3660         assert(sv)
3661 PERL_CALLCONV void      Perl_sv_utf8_encode(pTHX_ SV *const sv);
3662 #define PERL_ARGS_ASSERT_SV_UTF8_ENCODE \
3663         assert(sv)
3664 #ifndef NO_MATHOMS
3665 PERL_CALLCONV STRLEN    Perl_sv_utf8_upgrade(pTHX_ SV *sv);
3666 #define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE        \
3667         assert(sv)
3668 #endif
3669 /* PERL_CALLCONV STRLEN Perl_sv_utf8_upgrade_flags(pTHX_ SV *const sv, const I32 flags); */
3670 PERL_CALLCONV STRLEN    Perl_sv_utf8_upgrade_flags_grow(pTHX_ SV *const sv, const I32 flags, STRLEN extra);
3671 #define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE_FLAGS_GROW     \
3672         assert(sv)
3673 /* PERL_CALLCONV STRLEN sv_utf8_upgrade_nomg(pTHX_ SV *sv); */
3674 #ifndef NO_MATHOMS
3675 PERL_CALLCONV UV        Perl_sv_uv(pTHX_ SV* sv);
3676 #define PERL_ARGS_ASSERT_SV_UV  \
3677         assert(sv)
3678 #endif
3679 PERL_CALLCONV void      Perl_sv_vcatpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3680 #define PERL_ARGS_ASSERT_SV_VCATPVF     \
3681         assert(sv); assert(pat)
3682 PERL_CALLCONV void      Perl_sv_vcatpvf_mg(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3683 #define PERL_ARGS_ASSERT_SV_VCATPVF_MG  \
3684         assert(sv); assert(pat)
3685 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 Size_t sv_count, bool *const maybe_tainted);
3686 #define PERL_ARGS_ASSERT_SV_VCATPVFN    \
3687         assert(sv); assert(pat)
3688 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 Size_t sv_count, bool *const maybe_tainted, const U32 flags);
3689 #define PERL_ARGS_ASSERT_SV_VCATPVFN_FLAGS      \
3690         assert(sv); assert(pat)
3691 PERL_CALLCONV void      Perl_sv_vsetpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3692 #define PERL_ARGS_ASSERT_SV_VSETPVF     \
3693         assert(sv); assert(pat)
3694 PERL_CALLCONV void      Perl_sv_vsetpvf_mg(pTHX_ SV *const sv, const char *const pat, va_list *const args);
3695 #define PERL_ARGS_ASSERT_SV_VSETPVF_MG  \
3696         assert(sv); assert(pat)
3697 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 Size_t sv_count, bool *const maybe_tainted);
3698 #define PERL_ARGS_ASSERT_SV_VSETPVFN    \
3699         assert(sv); assert(pat)
3700 PERL_CALLCONV UV        Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8);
3701 #define PERL_ARGS_ASSERT_SWASH_FETCH    \
3702         assert(swash); assert(ptr)
3703 PERL_CALLCONV SV*       Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* listsv, I32 minbits, I32 none)
3704                         __attribute__warn_unused_result__;
3705 #define PERL_ARGS_ASSERT_SWASH_INIT     \
3706         assert(pkg); assert(name); assert(listsv)
3707
3708 PERL_CALLCONV void      Perl_switch_to_global_locale(void);
3709 PERL_CALLCONV bool      Perl_sync_locale(void);
3710 PERL_CALLCONV void      Perl_sys_init(int* argc, char*** argv);
3711 #define PERL_ARGS_ASSERT_SYS_INIT       \
3712         assert(argc); assert(argv)
3713 PERL_CALLCONV void      Perl_sys_init3(int* argc, char*** argv, char*** env);
3714 #define PERL_ARGS_ASSERT_SYS_INIT3      \
3715         assert(argc); assert(argv); assert(env)
3716 PERL_CALLCONV void      Perl_sys_term(void);
3717 PERL_CALLCONV void      Perl_taint_env(pTHX);
3718 PERL_CALLCONV void      Perl_taint_proper(pTHX_ const char* f, const char *const s);
3719 #define PERL_ARGS_ASSERT_TAINT_PROPER   \
3720         assert(s)
3721 PERL_CALLCONV void      Perl_thread_locale_init(void);
3722 PERL_CALLCONV void      Perl_thread_locale_term(void);
3723 PERL_CALLCONV OP *      Perl_tied_method(pTHX_ SV *methname, SV **sp, SV *const sv, const MAGIC *const mg, const U32 flags, U32 argc, ...);
3724 #define PERL_ARGS_ASSERT_TIED_METHOD    \
3725         assert(methname); assert(sp); assert(sv); assert(mg)
3726 PERL_CALLCONV SSize_t   Perl_tmps_grow_p(pTHX_ SSize_t ix);
3727 /* PERL_CALLCONV UV     Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp); */
3728 PERL_CALLCONV UV        Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp);
3729 #define PERL_ARGS_ASSERT_TO_UNI_LOWER   \
3730         assert(p); assert(lenp)
3731 #ifndef NO_MATHOMS
3732 PERL_CALLCONV U32       Perl_to_uni_lower_lc(pTHX_ U32 c)
3733                         __attribute__deprecated__
3734                         __attribute__warn_unused_result__;
3735 #endif
3736
3737 PERL_CALLCONV UV        Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp);
3738 #define PERL_ARGS_ASSERT_TO_UNI_TITLE   \
3739         assert(p); assert(lenp)
3740 #ifndef NO_MATHOMS
3741 PERL_CALLCONV U32       Perl_to_uni_title_lc(pTHX_ U32 c)
3742                         __attribute__deprecated__
3743                         __attribute__warn_unused_result__;
3744 #endif
3745
3746 PERL_CALLCONV UV        Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp);
3747 #define PERL_ARGS_ASSERT_TO_UNI_UPPER   \
3748         assert(p); assert(lenp)
3749 #ifndef NO_MATHOMS
3750 PERL_CALLCONV U32       Perl_to_uni_upper_lc(pTHX_ U32 c)
3751                         __attribute__deprecated__
3752                         __attribute__warn_unused_result__;
3753 #endif
3754
3755 #ifndef NO_MATHOMS
3756 PERL_CALLCONV UV        Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
3757                         __attribute__deprecated__;
3758 #define PERL_ARGS_ASSERT_TO_UTF8_FOLD   \
3759         assert(p); assert(ustrp)
3760 #endif
3761
3762 #ifndef NO_MATHOMS
3763 PERL_CALLCONV UV        Perl_to_utf8_lower(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
3764                         __attribute__deprecated__;
3765 #define PERL_ARGS_ASSERT_TO_UTF8_LOWER  \
3766         assert(p); assert(ustrp)
3767 #endif
3768
3769 #ifndef NO_MATHOMS
3770 PERL_CALLCONV UV        Perl_to_utf8_title(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
3771                         __attribute__deprecated__;
3772 #define PERL_ARGS_ASSERT_TO_UTF8_TITLE  \
3773         assert(p); assert(ustrp)
3774 #endif
3775
3776 #ifndef NO_MATHOMS
3777 PERL_CALLCONV UV        Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
3778                         __attribute__deprecated__;
3779 #define PERL_ARGS_ASSERT_TO_UTF8_UPPER  \
3780         assert(p); assert(ustrp)
3781 #endif
3782
3783 PERL_CALLCONV bool      Perl_try_amagic_bin(pTHX_ int method, int flags);
3784 PERL_CALLCONV bool      Perl_try_amagic_un(pTHX_ int method, int flags);
3785 #ifndef NO_MATHOMS
3786 PERL_CALLCONV SSize_t   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);
3787 #define PERL_ARGS_ASSERT_UNPACK_STR     \
3788         assert(pat); assert(patend); assert(s); assert(strend)
3789 #endif
3790 PERL_CALLCONV SSize_t   Perl_unpackstring(pTHX_ const char *pat, const char *patend, const char *s, const char *strend, U32 flags);
3791 #define PERL_ARGS_ASSERT_UNPACKSTRING   \
3792         assert(pat); assert(patend); assert(s); assert(strend)
3793 PERL_CALLCONV void      Perl_unshare_hek(pTHX_ HEK* hek);
3794 PERL_CALLCONV void      Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
3795 PERL_CALLCONV SV*       Perl_upg_version(pTHX_ SV *ver, bool qv);
3796 #define PERL_ARGS_ASSERT_UPG_VERSION    \
3797         assert(ver)
3798 PERL_CALLCONV U8*       Perl_utf16_to_utf8(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
3799 #define PERL_ARGS_ASSERT_UTF16_TO_UTF8  \
3800         assert(p); assert(d); assert(newlen)
3801 PERL_CALLCONV U8*       Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
3802 #define PERL_ARGS_ASSERT_UTF16_TO_UTF8_REVERSED \
3803         assert(p); assert(d); assert(newlen)
3804 #ifndef PERL_NO_INLINE_FUNCTIONS
3805 PERL_STATIC_INLINE IV   Perl_utf8_distance(pTHX_ const U8 *a, const U8 *b)
3806                         __attribute__warn_unused_result__;
3807 #define PERL_ARGS_ASSERT_UTF8_DISTANCE  \
3808         assert(a); assert(b)
3809 #endif
3810
3811 #ifndef PERL_NO_INLINE_FUNCTIONS
3812 PERL_STATIC_INLINE U8*  Perl_utf8_hop(const U8 *s, SSize_t off)
3813                         __attribute__warn_unused_result__;
3814 #define PERL_ARGS_ASSERT_UTF8_HOP       \
3815         assert(s)
3816 #endif
3817
3818 #ifndef PERL_NO_INLINE_FUNCTIONS
3819 PERL_STATIC_INLINE U8*  Perl_utf8_hop_back(const U8 *s, SSize_t off, const U8 *start)
3820                         __attribute__warn_unused_result__;
3821 #define PERL_ARGS_ASSERT_UTF8_HOP_BACK  \
3822         assert(s); assert(start)
3823 #endif
3824
3825 #ifndef PERL_NO_INLINE_FUNCTIONS
3826 PERL_STATIC_INLINE U8*  Perl_utf8_hop_forward(const U8 *s, SSize_t off, const U8 *end)
3827                         __attribute__warn_unused_result__;
3828 #define PERL_ARGS_ASSERT_UTF8_HOP_FORWARD       \
3829         assert(s); assert(end)
3830 #endif
3831
3832 #ifndef PERL_NO_INLINE_FUNCTIONS
3833 PERL_STATIC_INLINE U8*  Perl_utf8_hop_safe(const U8 *s, SSize_t off, const U8 *start, const U8 *end)
3834                         __attribute__warn_unused_result__;
3835 #define PERL_ARGS_ASSERT_UTF8_HOP_SAFE  \
3836         assert(s); assert(start); assert(end)
3837 #endif
3838
3839 PERL_CALLCONV STRLEN    Perl_utf8_length(pTHX_ const U8* s, const U8 *e)
3840                         __attribute__warn_unused_result__;
3841 #define PERL_ARGS_ASSERT_UTF8_LENGTH    \
3842         assert(s); assert(e)
3843
3844 PERL_CALLCONV U8*       Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *lenp);
3845 #define PERL_ARGS_ASSERT_UTF8_TO_BYTES  \
3846         assert(s); assert(lenp)
3847 PERL_CALLCONV UV        Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen)
3848                         __attribute__deprecated__;
3849 #define PERL_ARGS_ASSERT_UTF8_TO_UVCHR  \
3850         assert(s)
3851
3852 PERL_CALLCONV UV        Perl_utf8_to_uvchr_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen);
3853 #define PERL_ARGS_ASSERT_UTF8_TO_UVCHR_BUF      \
3854         assert(s); assert(send)
3855 #ifndef NO_MATHOMS
3856 PERL_CALLCONV UV        Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
3857                         __attribute__deprecated__;
3858 #define PERL_ARGS_ASSERT_UTF8_TO_UVUNI  \
3859         assert(s)
3860 #endif
3861
3862 PERL_CALLCONV UV        Perl_utf8_to_uvuni_buf(pTHX_ const U8 *s, const U8 *send, STRLEN *retlen)
3863                         __attribute__deprecated__;
3864 #define PERL_ARGS_ASSERT_UTF8_TO_UVUNI_BUF      \
3865         assert(s); assert(send)
3866
3867 PERL_CALLCONV UV        Perl_utf8n_to_uvchr(const U8 *s, STRLEN curlen, STRLEN *retlen, const U32 flags);
3868 #define PERL_ARGS_ASSERT_UTF8N_TO_UVCHR \
3869         assert(s)
3870 PERL_CALLCONV UV        Perl_utf8n_to_uvchr_error(const U8 *s, STRLEN curlen, STRLEN *retlen, const U32 flags, U32 * errors);
3871 #define PERL_ARGS_ASSERT_UTF8N_TO_UVCHR_ERROR   \
3872         assert(s)
3873 #ifndef PERL_NO_INLINE_FUNCTIONS
3874 PERL_STATIC_INLINE UV   S_utf8n_to_uvchr_msgs(const U8 *s, STRLEN curlen, STRLEN *retlen, const U32 flags, U32 * errors, AV ** msgs);
3875 #define PERL_ARGS_ASSERT_UTF8N_TO_UVCHR_MSGS    \
3876         assert(s)
3877 #endif
3878 PERL_CALLCONV UV        Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags);
3879 #define PERL_ARGS_ASSERT_UTF8N_TO_UVUNI \
3880         assert(s)
3881 PERL_CALLCONV void      Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg);
3882 #define PERL_ARGS_ASSERT_UTILIZE        \
3883         assert(idop)
3884 /* PERL_CALLCONV U8*    uvchr_to_utf8(pTHX_ U8 *d, UV uv); */
3885 /* PERL_CALLCONV U8*    uvchr_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags); */
3886 /* PERL_CALLCONV U8*    uvchr_to_utf8_flags_msgs(pTHX_ U8 *d, UV uv, UV flags, HV ** msgs); */
3887 PERL_CALLCONV U8*       Perl_uvoffuni_to_utf8_flags(pTHX_ U8 *d, UV uv, const UV flags);
3888 #define PERL_ARGS_ASSERT_UVOFFUNI_TO_UTF8_FLAGS \
3889         assert(d)
3890 PERL_CALLCONV U8*       Perl_uvoffuni_to_utf8_flags_msgs(pTHX_ U8 *d, UV uv, const UV flags, HV** msgs);
3891 #define PERL_ARGS_ASSERT_UVOFFUNI_TO_UTF8_FLAGS_MSGS    \
3892         assert(d)
3893 PERL_CALLCONV U8*       Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv);
3894 #define PERL_ARGS_ASSERT_UVUNI_TO_UTF8  \
3895         assert(d)
3896 PERL_CALLCONV U8*       Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags);
3897 #define PERL_ARGS_ASSERT_UVUNI_TO_UTF8_FLAGS    \
3898         assert(d)
3899 #ifndef PERL_NO_INLINE_FUNCTIONS
3900 PERL_STATIC_INLINE UV   Perl_valid_utf8_to_uvchr(const U8 *s, STRLEN *retlen)
3901                         __attribute__warn_unused_result__;
3902 #define PERL_ARGS_ASSERT_VALID_UTF8_TO_UVCHR    \
3903         assert(s)
3904 #endif
3905
3906 #ifndef NO_MATHOMS
3907 PERL_CALLCONV UV        Perl_valid_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
3908                         __attribute__deprecated__;
3909 #define PERL_ARGS_ASSERT_VALID_UTF8_TO_UVUNI    \
3910         assert(s)
3911 #endif
3912
3913 PERL_CALLCONV bool      Perl_validate_proto(pTHX_ SV *name, SV *proto, bool warn, bool curstash);
3914 #define PERL_ARGS_ASSERT_VALIDATE_PROTO \
3915         assert(name)
3916 PERL_CALLCONV int       Perl_vcmp(pTHX_ SV *lhv, SV *rhv);
3917 #define PERL_ARGS_ASSERT_VCMP   \
3918         assert(lhv); assert(rhv)
3919 PERL_CALLCONV_NO_RET void       Perl_vcroak(pTHX_ const char* pat, va_list* args)
3920                         __attribute__noreturn__;
3921
3922 PERL_CALLCONV void      Perl_vdeb(pTHX_ const char* pat, va_list* args);
3923 #define PERL_ARGS_ASSERT_VDEB   \
3924         assert(pat)
3925 PERL_CALLCONV char*     Perl_vform(pTHX_ const char* pat, va_list* args);
3926 #define PERL_ARGS_ASSERT_VFORM  \
3927         assert(pat)
3928 PERL_CALLCONV void      Perl_vivify_defelem(pTHX_ SV* sv);
3929 #define PERL_ARGS_ASSERT_VIVIFY_DEFELEM \
3930         assert(sv)
3931 PERL_CALLCONV SV*       Perl_vivify_ref(pTHX_ SV* sv, U32 to_what)
3932                         __attribute__warn_unused_result__;
3933 #define PERL_ARGS_ASSERT_VIVIFY_REF     \
3934         assert(sv)
3935
3936 PERL_CALLCONV void      Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args);
3937 #define PERL_ARGS_ASSERT_VLOAD_MODULE   \
3938         assert(name)
3939 PERL_CALLCONV SV*       Perl_vmess(pTHX_ const char* pat, va_list* args);
3940 #define PERL_ARGS_ASSERT_VMESS  \
3941         assert(pat)
3942 PERL_CALLCONV SV*       Perl_vnewSVpvf(pTHX_ const char *const pat, va_list *const args)
3943                         __attribute__warn_unused_result__;
3944 #define PERL_ARGS_ASSERT_VNEWSVPVF      \
3945         assert(pat)
3946
3947 PERL_CALLCONV SV*       Perl_vnormal(pTHX_ SV *vs);
3948 #define PERL_ARGS_ASSERT_VNORMAL        \
3949         assert(vs)
3950 PERL_CALLCONV SV*       Perl_vnumify(pTHX_ SV *vs);
3951 #define PERL_ARGS_ASSERT_VNUMIFY        \
3952         assert(vs)
3953 PERL_CALLCONV SV*       Perl_vstringify(pTHX_ SV *vs);
3954 #define PERL_ARGS_ASSERT_VSTRINGIFY     \
3955         assert(vs)
3956 PERL_CALLCONV SV*       Perl_vverify(pTHX_ SV *vs);
3957 #define PERL_ARGS_ASSERT_VVERIFY        \
3958         assert(vs)
3959 PERL_CALLCONV void      Perl_vwarn(pTHX_ const char* pat, va_list* args);
3960 #define PERL_ARGS_ASSERT_VWARN  \
3961         assert(pat)
3962 PERL_CALLCONV void      Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args);
3963 #define PERL_ARGS_ASSERT_VWARNER        \
3964         assert(pat)
3965 PERL_CALLCONV I32       Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags);
3966 #define PERL_ARGS_ASSERT_WAIT4PID       \
3967         assert(statusp)
3968 PERL_CALLCONV void      Perl_warn(pTHX_ const char* pat, ...)
3969                         __attribute__format__(__printf__,pTHX_1,pTHX_2);
3970 #define PERL_ARGS_ASSERT_WARN   \
3971         assert(pat)
3972
3973 PERL_CALLCONV void      Perl_warn_sv(pTHX_ SV *baseex);
3974 #define PERL_ARGS_ASSERT_WARN_SV        \
3975         assert(baseex)
3976 PERL_CALLCONV void      Perl_warner(pTHX_ U32 err, const char* pat, ...)
3977                         __attribute__format__(__printf__,pTHX_2,pTHX_3);
3978 #define PERL_ARGS_ASSERT_WARNER \
3979         assert(pat)
3980
3981 PERL_CALLCONV I32       Perl_was_lvalue_sub(pTHX)
3982                         __attribute__warn_unused_result__;
3983
3984 PERL_CALLCONV void      Perl_watch(pTHX_ char** addr);
3985 #define PERL_ARGS_ASSERT_WATCH  \
3986         assert(addr)
3987 /* PERL_CALLCONV I32    whichsig(pTHX_ const char* sig); */
3988 PERL_CALLCONV I32       Perl_whichsig_pv(pTHX_ const char* sig);
3989 #define PERL_ARGS_ASSERT_WHICHSIG_PV    \
3990         assert(sig)
3991 PERL_CALLCONV I32       Perl_whichsig_pvn(pTHX_ const char* sig, STRLEN len);
3992 #define PERL_ARGS_ASSERT_WHICHSIG_PVN   \
3993         assert(sig)
3994 PERL_CALLCONV I32       Perl_whichsig_sv(pTHX_ SV* sigsv);
3995 #define PERL_ARGS_ASSERT_WHICHSIG_SV    \
3996         assert(sigsv)
3997 PERL_CALLCONV void      Perl_wrap_keyword_plugin(pTHX_ Perl_keyword_plugin_t new_plugin, Perl_keyword_plugin_t *old_plugin_p);
3998 #define PERL_ARGS_ASSERT_WRAP_KEYWORD_PLUGIN    \
3999         assert(new_plugin); assert(old_plugin_p)
4000 PERL_CALLCONV void      Perl_wrap_op_checker(pTHX_ Optype opcode, Perl_check_t new_checker, Perl_check_t *old_checker_p);
4001 #define PERL_ARGS_ASSERT_WRAP_OP_CHECKER        \
4002         assert(new_checker); assert(old_checker_p)
4003 PERL_CALLCONV void      Perl_write_to_stderr(pTHX_ SV* msv);
4004 #define PERL_ARGS_ASSERT_WRITE_TO_STDERR        \
4005         assert(msv)
4006 PERL_CALLCONV void      Perl_xs_boot_epilog(pTHX_ const I32 ax);
4007 PERL_CALLCONV I32       Perl_xs_handshake(const U32 key, void * v_my_perl, const char * file, ...);
4008 #define PERL_ARGS_ASSERT_XS_HANDSHAKE   \
4009         assert(v_my_perl); assert(file)
4010 PERL_CALLCONV int       Perl_yyerror(pTHX_ const char *const s);
4011 #define PERL_ARGS_ASSERT_YYERROR        \
4012         assert(s)
4013 PERL_CALLCONV int       Perl_yyerror_pv(pTHX_ const char *const s, U32 flags);
4014 #define PERL_ARGS_ASSERT_YYERROR_PV     \
4015         assert(s)
4016 PERL_CALLCONV int       Perl_yyerror_pvn(pTHX_ const char *const s, STRLEN len, U32 flags);
4017 PERL_CALLCONV int       Perl_yylex(pTHX);
4018 PERL_CALLCONV int       Perl_yyparse(pTHX_ int gramtype);
4019 PERL_CALLCONV void      Perl_yyquit(pTHX);
4020 PERL_CALLCONV void      Perl_yyunlex(pTHX);
4021 #if ! defined(HAS_MEMRCHR) && (defined(PERL_CORE) || defined(PERL_EXT))
4022 #ifndef PERL_NO_INLINE_FUNCTIONS
4023 PERL_STATIC_INLINE void *       S_my_memrchr(const char * s, const char c, const STRLEN len);
4024 #define PERL_ARGS_ASSERT_MY_MEMRCHR     \
4025         assert(s)
4026 #endif
4027 #endif
4028 #if !(defined(DEBUGGING))
4029 #  if !defined(NV_PRESERVES_UV)
4030 #    if defined(PERL_IN_SV_C)
4031 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *const sv);
4032 #define PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE   \
4033         assert(sv)
4034 #    endif
4035 #  endif
4036 #endif
4037 #if !(defined(HAS_MEMMEM))
4038 PERL_CALLCONV char*     Perl_ninstr(const char* big, const char* bigend, const char* little, const char* lend)
4039                         __attribute__warn_unused_result__
4040                         __attribute__pure__;
4041 #define PERL_ARGS_ASSERT_NINSTR \
4042         assert(big); assert(bigend); assert(little); assert(lend)
4043
4044 #endif
4045 #if !(defined(HAS_NL_LANGINFO) && defined(PERL_LANGINFO_H))
4046 PERL_CALLCONV const char*       Perl_langinfo(const int item);
4047 #endif
4048 #if !(defined(HAS_NL_LANGINFO))
4049 #  if defined(PERL_IN_LOCALE_C)
4050 STATIC const char*      S_my_nl_langinfo(const int item, bool toggle);
4051 #  endif
4052 #endif
4053 #if !(defined(HAS_SIGACTION) && defined(SA_SIGINFO))
4054 PERL_CALLCONV Signal_t  Perl_csighandler(int sig);
4055 PERL_CALLCONV Signal_t  Perl_sighandler(int sig);
4056 #endif
4057 #if !(defined(PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION))
4058 PERL_CALLCONV bool      Perl_do_exec(pTHX_ const char* cmd);
4059 #define PERL_ARGS_ASSERT_DO_EXEC        \
4060         assert(cmd)
4061 #endif
4062 #if !(defined(PERL_GLOBAL_STRUCT_PRIVATE))
4063 #  if defined(PERL_IMPLICIT_CONTEXT)
4064 PERL_CALLCONV void*     Perl_my_cxt_init(pTHX_ int *index, size_t size);
4065 #define PERL_ARGS_ASSERT_MY_CXT_INIT    \
4066         assert(index)
4067 #  endif
4068 #endif
4069 #if !(defined(_MSC_VER))
4070 PERL_CALLCONV_NO_RET int        Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
4071                         __attribute__noreturn__;
4072 #define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET     \
4073         assert(sv); assert(mg)
4074
4075 #endif
4076 #if !defined(EBCDIC)
4077 #ifndef PERL_NO_INLINE_FUNCTIONS
4078 PERL_STATIC_INLINE unsigned int S__variant_byte_number(PERL_UINTMAX_T word)
4079                         __attribute__warn_unused_result__;
4080 #endif
4081
4082 #endif
4083 #if !defined(HAS_GETENV_LEN)
4084 PERL_CALLCONV char*     Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len);
4085 #define PERL_ARGS_ASSERT_GETENV_LEN     \
4086         assert(env_elem); assert(len)
4087 #endif
4088 #if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
4089 #  if defined(PERL_IN_PP_SYS_C)
4090 STATIC int      S_dooneliner(pTHX_ const char *cmd, const char *filename)
4091                         __attribute__warn_unused_result__;
4092 #define PERL_ARGS_ASSERT_DOONELINER     \
4093         assert(cmd); assert(filename)
4094
4095 #  endif
4096 #endif
4097 #if !defined(HAS_MKOSTEMP)
4098 PERL_CALLCONV int       Perl_my_mkostemp(char *templte, int flags);
4099 #define PERL_ARGS_ASSERT_MY_MKOSTEMP    \
4100         assert(templte)
4101 #endif
4102 #if !defined(HAS_MKSTEMP)
4103 PERL_CALLCONV int       Perl_my_mkstemp(char *templte);
4104 #define PERL_ARGS_ASSERT_MY_MKSTEMP     \
4105         assert(templte)
4106 #endif
4107 #if !defined(HAS_RENAME)
4108 PERL_CALLCONV I32       Perl_same_dirent(pTHX_ const char* a, const char* b);
4109 #define PERL_ARGS_ASSERT_SAME_DIRENT    \
4110         assert(a); assert(b)
4111 #endif
4112 #if !defined(HAS_SIGNBIT)
4113 PERL_CALLCONV int       Perl_signbit(NV f)
4114                         __attribute__warn_unused_result__
4115                         __attribute__pure__;
4116
4117 #endif
4118 #if !defined(HAS_STRLCAT)
4119 PERL_CALLCONV Size_t    Perl_my_strlcat(char *dst, const char *src, Size_t size);
4120 #endif
4121 #if !defined(HAS_STRLCPY)
4122 PERL_CALLCONV Size_t    Perl_my_strlcpy(char *dst, const char *src, Size_t size);
4123 #endif
4124 #if !defined(HAS_STRNLEN)
4125 PERL_CALLCONV Size_t    Perl_my_strnlen(const char *str, Size_t maxlen);
4126 #define PERL_ARGS_ASSERT_MY_STRNLEN     \
4127         assert(str)
4128 #endif
4129 #if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
4130 PERL_CALLCONV I32       Perl_my_chsize(pTHX_ int fd, Off_t length)
4131                         __attribute__warn_unused_result__;
4132
4133 #endif
4134 #if !defined(NV_PRESERVES_UV)
4135 #  if defined(DEBUGGING)
4136 #    if defined(PERL_IN_SV_C)
4137 STATIC int      S_sv_2iuv_non_preserve(pTHX_ SV *const sv, I32 numtype);
4138 #define PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE   \
4139         assert(sv)
4140 #    endif
4141 #  endif
4142 #endif
4143 #if !defined(PERL_DISABLE_PMC)
4144 #  if defined(PERL_IN_PP_CTL_C)
4145 STATIC PerlIO * S_doopen_pm(pTHX_ SV *name)
4146                         __attribute__warn_unused_result__;
4147 #define PERL_ARGS_ASSERT_DOOPEN_PM      \
4148         assert(name)
4149
4150 #  endif
4151 #endif
4152 #if !defined(PERL_EXT_RE_BUILD)
4153 #  if defined(PERL_IN_REGCOMP_C)
4154 STATIC void     S__append_range_to_invlist(pTHX_ SV* const invlist, const UV start, const UV end);
4155 #define PERL_ARGS_ASSERT__APPEND_RANGE_TO_INVLIST       \
4156         assert(invlist)
4157 #ifndef PERL_NO_INLINE_FUNCTIONS
4158 PERL_STATIC_INLINE UV*  S__invlist_array_init(SV* const invlist, const bool will_have_0)
4159                         __attribute__warn_unused_result__;
4160 #define PERL_ARGS_ASSERT__INVLIST_ARRAY_INIT    \
4161         assert(invlist)
4162 #endif
4163
4164 #ifndef PERL_NO_INLINE_FUNCTIONS
4165 PERL_STATIC_INLINE IV*  S_get_invlist_previous_index_addr(SV* invlist)
4166                         __attribute__warn_unused_result__;
4167 #define PERL_ARGS_ASSERT_GET_INVLIST_PREVIOUS_INDEX_ADDR        \
4168         assert(invlist)
4169 #endif
4170
4171 STATIC void     S_initialize_invlist_guts(pTHX_ SV* invlist, const Size_t initial_size);
4172 #define PERL_ARGS_ASSERT_INITIALIZE_INVLIST_GUTS        \
4173         assert(invlist)
4174 #ifndef PERL_NO_INLINE_FUNCTIONS
4175 PERL_STATIC_INLINE void S_invlist_clear(pTHX_ SV* invlist);
4176 #define PERL_ARGS_ASSERT_INVLIST_CLEAR  \
4177         assert(invlist)
4178 #endif
4179 STATIC void     S_invlist_extend(pTHX_ SV* const invlist, const UV len);
4180 #define PERL_ARGS_ASSERT_INVLIST_EXTEND \
4181         assert(invlist)
4182 #ifndef PERL_NO_INLINE_FUNCTIONS
4183 PERL_STATIC_INLINE UV   S_invlist_max(SV* const invlist)
4184                         __attribute__warn_unused_result__;
4185 #define PERL_ARGS_ASSERT_INVLIST_MAX    \
4186         assert(invlist)
4187 #endif
4188
4189 #ifndef PERL_NO_INLINE_FUNCTIONS
4190 PERL_STATIC_INLINE IV   S_invlist_previous_index(SV* const invlist)
4191                         __attribute__warn_unused_result__;
4192 #define PERL_ARGS_ASSERT_INVLIST_PREVIOUS_INDEX \
4193         assert(invlist)
4194 #endif
4195
4196 STATIC void     S_invlist_replace_list_destroys_src(pTHX_ SV *dest, SV *src);
4197 #define PERL_ARGS_ASSERT_INVLIST_REPLACE_LIST_DESTROYS_SRC      \
4198         assert(dest); assert(src)
4199 #ifndef PERL_NO_INLINE_FUNCTIONS
4200 PERL_STATIC_INLINE void S_invlist_set_len(pTHX_ SV* const invlist, const UV len, const bool offset);
4201 #define PERL_ARGS_ASSERT_INVLIST_SET_LEN        \
4202         assert(invlist)
4203 #endif
4204 #ifndef PERL_NO_INLINE_FUNCTIONS
4205 PERL_STATIC_INLINE void S_invlist_set_previous_index(SV* const invlist, const IV index);
4206 #define PERL_ARGS_ASSERT_INVLIST_SET_PREVIOUS_INDEX     \
4207         assert(invlist)
4208 #endif
4209 #ifndef PERL_NO_INLINE_FUNCTIONS
4210 PERL_STATIC_INLINE void S_invlist_trim(SV* invlist);
4211 #define PERL_ARGS_ASSERT_INVLIST_TRIM   \
4212         assert(invlist)
4213 #endif
4214 #  endif
4215 #endif
4216 #if !defined(PERL_IMPLICIT_SYS)
4217 PERL_CALLCONV I32       Perl_my_pclose(pTHX_ PerlIO* ptr);
4218 PERL_CALLCONV PerlIO*   Perl_my_popen(pTHX_ const char* cmd, const char* mode);
4219 #define PERL_ARGS_ASSERT_MY_POPEN       \
4220         assert(cmd); assert(mode)
4221 #endif
4222 #if !defined(PERL_IS_MINIPERL)
4223 #  if defined(PERL_IN_PERL_C)
4224 STATIC SV *     S_incpush_if_exists(pTHX_ AV *const av, SV *dir, SV *const stem);
4225 #define PERL_ARGS_ASSERT_INCPUSH_IF_EXISTS      \
4226         assert(av); assert(dir); assert(stem)
4227 #  endif
4228 #endif
4229 #if !defined(PERL_NO_INLINE_FUNCTIONS)
4230 #ifndef PERL_NO_INLINE_FUNCTIONS
4231 PERL_STATIC_INLINE void S_cx_popblock(pTHX_ PERL_CONTEXT *cx);
4232 #define PERL_ARGS_ASSERT_CX_POPBLOCK    \
4233         assert(cx)
4234 #endif
4235 #ifndef PERL_NO_INLINE_FUNCTIONS
4236 PERL_STATIC_INLINE void S_cx_popeval(pTHX_ PERL_CONTEXT *cx);
4237 #define PERL_ARGS_ASSERT_CX_POPEVAL     \
4238         assert(cx)
4239 #endif
4240 #ifndef PERL_NO_INLINE_FUNCTIONS
4241 PERL_STATIC_INLINE void S_cx_popformat(pTHX_ PERL_CONTEXT *cx);
4242 #define PERL_ARGS_ASSERT_CX_POPFORMAT   \
4243         assert(cx)
4244 #endif
4245 #ifndef PERL_NO_INLINE_FUNCTIONS
4246 PERL_STATIC_INLINE void S_cx_popgiven(pTHX_ PERL_CONTEXT *cx);
4247 #define PERL_ARGS_ASSERT_CX_POPGIVEN    \
4248         assert(cx)
4249 #endif
4250 #ifndef PERL_NO_INLINE_FUNCTIONS
4251 PERL_STATIC_INLINE void S_cx_poploop(pTHX_ PERL_CONTEXT *cx);
4252 #define PERL_ARGS_ASSERT_CX_POPLOOP     \
4253         assert(cx)
4254 #endif
4255 #ifndef PERL_NO_INLINE_FUNCTIONS
4256 PERL_STATIC_INLINE void S_cx_popsub(pTHX_ PERL_CONTEXT *cx);
4257 #define PERL_ARGS_ASSERT_CX_POPSUB      \
4258         assert(cx)
4259 #endif
4260 #ifndef PERL_NO_INLINE_FUNCTIONS
4261 PERL_STATIC_INLINE void S_cx_popsub_args(pTHX_ PERL_CONTEXT *cx);
4262 #define PERL_ARGS_ASSERT_CX_POPSUB_ARGS \
4263         assert(cx)
4264 #endif
4265 #ifndef PERL_NO_INLINE_FUNCTIONS
4266 PERL_STATIC_INLINE void S_cx_popsub_common(pTHX_ PERL_CONTEXT *cx);
4267 #define PERL_ARGS_ASSERT_CX_POPSUB_COMMON       \
4268         assert(cx)
4269 #endif
4270 #ifndef PERL_NO_INLINE_FUNCTIONS
4271 PERL_STATIC_INLINE void S_cx_popwhen(pTHX_ PERL_CONTEXT *cx);
4272 #define PERL_ARGS_ASSERT_CX_POPWHEN     \
4273         assert(cx)
4274 #endif
4275 #ifndef PERL_NO_INLINE_FUNCTIONS
4276 PERL_STATIC_INLINE PERL_CONTEXT *       S_cx_pushblock(pTHX_ U8 type, U8 gimme, SV** sp, I32 saveix);
4277 #define PERL_ARGS_ASSERT_CX_PUSHBLOCK   \
4278         assert(sp)
4279 #endif
4280 #ifndef PERL_NO_INLINE_FUNCTIONS
4281 PERL_STATIC_INLINE void S_cx_pusheval(pTHX_ PERL_CONTEXT *cx, OP *retop, SV *namesv);
4282 #define PERL_ARGS_ASSERT_CX_PUSHEVAL    \
4283         assert(cx)
4284 #endif
4285 #ifndef PERL_NO_INLINE_FUNCTIONS
4286 PERL_STATIC_INLINE void S_cx_pushformat(pTHX_ PERL_CONTEXT *cx, CV *cv, OP *retop, GV *gv);
4287 #define PERL_ARGS_ASSERT_CX_PUSHFORMAT  \
4288         assert(cx); assert(cv)
4289 #endif
4290 #ifndef PERL_NO_INLINE_FUNCTIONS
4291 PERL_STATIC_INLINE void S_cx_pushgiven(pTHX_ PERL_CONTEXT *cx, SV *orig_defsv);
4292 #define PERL_ARGS_ASSERT_CX_PUSHGIVEN   \
4293         assert(cx)
4294 #endif
4295 #ifndef PERL_NO_INLINE_FUNCTIONS
4296 PERL_STATIC_INLINE void S_cx_pushloop_for(pTHX_ PERL_CONTEXT *cx, void *itervarp, SV *itersave);
4297 #define PERL_ARGS_ASSERT_CX_PUSHLOOP_FOR        \
4298         assert(cx); assert(itervarp)
4299 #endif
4300 #ifndef PERL_NO_INLINE_FUNCTIONS
4301 PERL_STATIC_INLINE void S_cx_pushloop_plain(pTHX_ PERL_CONTEXT *cx);
4302 #define PERL_ARGS_ASSERT_CX_PUSHLOOP_PLAIN      \
4303         assert(cx)
4304 #endif
4305 #ifndef PERL_NO_INLINE_FUNCTIONS
4306 PERL_STATIC_INLINE void S_cx_pushsub(pTHX_ PERL_CONTEXT *cx, CV *cv, OP *retop, bool hasargs);
4307 #define PERL_ARGS_ASSERT_CX_PUSHSUB     \
4308         assert(cx); assert(cv)
4309 #endif
4310 #ifndef PERL_NO_INLINE_FUNCTIONS
4311 PERL_STATIC_INLINE void S_cx_pushwhen(pTHX_ PERL_CONTEXT *cx);
4312 #define PERL_ARGS_ASSERT_CX_PUSHWHEN    \
4313         assert(cx)
4314 #endif
4315 #ifndef PERL_NO_INLINE_FUNCTIONS
4316 PERL_STATIC_INLINE void S_cx_topblock(pTHX_ PERL_CONTEXT *cx);
4317 #define PERL_ARGS_ASSERT_CX_TOPBLOCK    \
4318         assert(cx)
4319 #endif
4320 #endif
4321 #if !defined(PERL_NO_UTF16_FILTER)
4322 #  if defined(PERL_IN_TOKE_C)
4323 STATIC U8*      S_add_utf16_textfilter(pTHX_ U8 *const s, bool reversed);
4324 #define PERL_ARGS_ASSERT_ADD_UTF16_TEXTFILTER   \
4325         assert(s)
4326 STATIC I32      S_utf16_textfilter(pTHX_ int idx, SV *sv, int maxlen);
4327 #define PERL_ARGS_ASSERT_UTF16_TEXTFILTER       \
4328         assert(sv)
4329 #  endif
4330 #endif
4331 #if !defined(SETUID_SCRIPTS_ARE_SECURE_NOW)
4332 #  if defined(PERL_IN_PERL_C)
4333 STATIC void     S_validate_suid(pTHX_ PerlIO *rsfp);
4334 #define PERL_ARGS_ASSERT_VALIDATE_SUID  \
4335         assert(rsfp)
4336 #  endif
4337 #endif
4338 #if !defined(UV_IS_QUAD)
4339 #  if defined(PERL_IN_UTF8_C)
4340 STATIC int      S_is_utf8_cp_above_31_bits(const U8 * const s, const U8 * const e, const bool consider_overlongs)
4341                         __attribute__warn_unused_result__;
4342 #define PERL_ARGS_ASSERT_IS_UTF8_CP_ABOVE_31_BITS       \
4343         assert(s); assert(e)
4344
4345 #  endif
4346 #endif
4347 #if !defined(WIN32)
4348 PERL_CALLCONV bool      Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report);
4349 #define PERL_ARGS_ASSERT_DO_EXEC3       \
4350         assert(incmd)
4351 #endif
4352 #if defined (HAS_SOCKETPAIR) ||     (defined (HAS_SOCKET) && defined(SOCK_DGRAM) &&     defined(AF_INET) && defined(PF_INET))
4353 PERL_CALLCONV int       Perl_PerlSock_socketpair_cloexec(pTHX_ int domain, int type, int protocol, int *pairfd)
4354                         __attribute__warn_unused_result__;
4355 #define PERL_ARGS_ASSERT_PERLSOCK_SOCKETPAIR_CLOEXEC    \
4356         assert(pairfd)
4357
4358 #endif
4359 #if defined(DEBUGGING)
4360 PERL_CALLCONV int       Perl_get_debug_opts(pTHX_ const char **s, bool givehelp)
4361                         __attribute__warn_unused_result__;
4362 #define PERL_ARGS_ASSERT_GET_DEBUG_OPTS \
4363         assert(s)
4364
4365 PERL_CALLCONV void      Perl_hv_assert(pTHX_ HV *hv);
4366 #define PERL_ARGS_ASSERT_HV_ASSERT      \
4367         assert(hv)
4368 PERL_CALLCONV void      Perl_pad_setsv(pTHX_ PADOFFSET po, SV* sv);
4369 #define PERL_ARGS_ASSERT_PAD_SETSV      \
4370         assert(sv)
4371 PERL_CALLCONV SV*       Perl_pad_sv(pTHX_ PADOFFSET po);
4372 PERL_CALLCONV void      Perl_set_padlist(CV * cv, PADLIST * padlist);
4373 #define PERL_ARGS_ASSERT_SET_PADLIST    \
4374         assert(cv)
4375 #  if defined(PERL_IN_LOCALE_C)
4376 #    if defined(USE_LOCALE)
4377 STATIC void     S_print_bytes_for_locale(pTHX_ const char * const s, const char * const e, const bool is_utf8);
4378 #define PERL_ARGS_ASSERT_PRINT_BYTES_FOR_LOCALE \
4379         assert(s); assert(e)
4380 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);
4381 #define PERL_ARGS_ASSERT_PRINT_COLLXFRM_INPUT_AND_RETURN        \
4382         assert(s); assert(e)
4383 STATIC char *   S_setlocale_debug_string(const int category, const char* const locale, const char* const retval)
4384                         __attribute__warn_unused_result__;
4385
4386 #    endif
4387 #  endif
4388 #  if defined(PERL_IN_PAD_C)
4389 STATIC void     S_cv_dump(pTHX_ const CV *cv, const char *title);
4390 #define PERL_ARGS_ASSERT_CV_DUMP        \
4391         assert(cv); assert(title)
4392 #  endif
4393 #  if defined(PERL_IN_REGCOMP_C)
4394 STATIC void     S_dump_trie(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 depth);
4395 #define PERL_ARGS_ASSERT_DUMP_TRIE      \
4396         assert(trie); assert(revcharmap)
4397 STATIC void     S_dump_trie_interim_list(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth);
4398 #define PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_LIST \
4399         assert(trie); assert(revcharmap)
4400 STATIC void     S_dump_trie_interim_table(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth);
4401 #define PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_TABLE        \
4402         assert(trie); assert(revcharmap)
4403 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);
4404 #define PERL_ARGS_ASSERT_DUMPUNTIL      \
4405         assert(r); assert(start); assert(node); assert(sv)
4406 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);
4407 #define PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS   \
4408         assert(sv)
4409 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);
4410 #define PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS_COMMON    \
4411         assert(invlist)
4412 STATIC void     S_put_charclass_bitmap_innards_invlist(pTHX_ SV *sv, SV* invlist);
4413 #define PERL_ARGS_ASSERT_PUT_CHARCLASS_BITMAP_INNARDS_INVLIST   \
4414         assert(sv); assert(invlist)
4415 STATIC void     S_put_code_point(pTHX_ SV* sv, UV c);
4416 #define PERL_ARGS_ASSERT_PUT_CODE_POINT \
4417         assert(sv)
4418 STATIC void     S_put_range(pTHX_ SV* sv, UV start, const UV end, const bool allow_literals);
4419 #define PERL_ARGS_ASSERT_PUT_RANGE      \
4420         assert(sv)
4421 PERL_CALLCONV int       Perl_re_indentf(pTHX_ const char *fmt, U32 depth, ...);
4422 #define PERL_ARGS_ASSERT_RE_INDENTF     \
4423         assert(fmt)
4424 STATIC void     S_regdump_extflags(pTHX_ const char *lead, const U32 flags);
4425 STATIC void     S_regdump_intflags(pTHX_ const char *lead, const U32 flags);
4426 STATIC U8       S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode_offset p, const regnode_offset val, U32 depth);
4427 #define PERL_ARGS_ASSERT_REGTAIL_STUDY  \
4428         assert(pRExC_state); assert(p); assert(val)
4429 #  endif
4430 #  if defined(PERL_IN_REGEXEC_C)
4431 STATIC void     S_debug_start_match(pTHX_ const REGEXP *prog, const bool do_utf8, const char *start, const char *end, const char *blurb);
4432 #define PERL_ARGS_ASSERT_DEBUG_START_MATCH      \
4433         assert(prog); assert(start); assert(end); assert(blurb)
4434 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);
4435 #define PERL_ARGS_ASSERT_DUMP_EXEC_POS  \
4436         assert(locinput); assert(scan); assert(loc_regeol); assert(loc_bostr); assert(loc_reg_starttry)
4437 PERL_CALLCONV int       Perl_re_exec_indentf(pTHX_ const char *fmt, U32 depth, ...);
4438 #define PERL_ARGS_ASSERT_RE_EXEC_INDENTF        \
4439         assert(fmt)
4440 #  endif
4441 #  if defined(PERL_IN_SV_C)
4442 STATIC void     S_del_sv(pTHX_ SV *p);
4443 #define PERL_ARGS_ASSERT_DEL_SV \
4444         assert(p)
4445 #  endif
4446 #  if defined(PERL_IN_TOKE_C)
4447 STATIC void     S_printbuf(pTHX_ const char *const fmt, const char *const s)
4448                         __attribute__format__(__printf__,pTHX_1,0);
4449 #define PERL_ARGS_ASSERT_PRINTBUF       \
4450         assert(fmt); assert(s)
4451
4452 STATIC int      S_tokereport(pTHX_ I32 rv, const YYSTYPE* lvalp);
4453 #define PERL_ARGS_ASSERT_TOKEREPORT     \
4454         assert(lvalp)
4455 #  endif
4456 #endif
4457 #if defined(DEBUGGING) && defined(ENABLE_REGEX_SETS_DEBUGGING)
4458 #  if defined(PERL_IN_REGCOMP_C)
4459 STATIC void     S_dump_regex_sets_structures(pTHX_ RExC_state_t *pRExC_state, AV * stack, const IV fence, AV * fence_stack);
4460 #define PERL_ARGS_ASSERT_DUMP_REGEX_SETS_STRUCTURES     \
4461         assert(pRExC_state); assert(stack); assert(fence_stack)
4462 #  endif
4463 #endif
4464 #if defined(DEBUG_LEAKING_SCALARS_FORK_DUMP)
4465 PERL_CALLCONV void      Perl_dump_sv_child(pTHX_ SV *sv);
4466 #define PERL_ARGS_ASSERT_DUMP_SV_CHILD  \
4467         assert(sv)
4468 #endif
4469 #if defined(HAS_MEMMEM)
4470 PERL_CALLCONV char*     Perl_ninstr(const char* big, const char* bigend, const char* little, const char* lend)
4471                         __attribute__warn_unused_result__
4472                         __attribute__pure__;
4473 #define PERL_ARGS_ASSERT_NINSTR \
4474         assert(big); assert(bigend); assert(little); assert(lend)
4475
4476 #endif
4477 #if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
4478 PERL_CALLCONV I32       Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp);
4479 #define PERL_ARGS_ASSERT_DO_IPCCTL      \
4480         assert(mark); assert(sp)
4481 PERL_CALLCONV I32       Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp);
4482 #define PERL_ARGS_ASSERT_DO_IPCGET      \
4483         assert(mark); assert(sp)
4484 PERL_CALLCONV I32       Perl_do_msgrcv(pTHX_ SV** mark, SV** sp);
4485 #define PERL_ARGS_ASSERT_DO_MSGRCV      \
4486         assert(mark); assert(sp)
4487 PERL_CALLCONV I32       Perl_do_msgsnd(pTHX_ SV** mark, SV** sp);
4488 #define PERL_ARGS_ASSERT_DO_MSGSND      \
4489         assert(mark); assert(sp)
4490 PERL_CALLCONV I32       Perl_do_semop(pTHX_ SV** mark, SV** sp);
4491 #define PERL_ARGS_ASSERT_DO_SEMOP       \
4492         assert(mark); assert(sp)
4493 PERL_CALLCONV I32       Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp);
4494 #define PERL_ARGS_ASSERT_DO_SHMIO       \
4495         assert(mark); assert(sp)
4496 #endif
4497 #if defined(HAS_NL_LANGINFO)
4498 #  if defined(PERL_IN_LOCALE_C)
4499 STATIC const char*      S_my_nl_langinfo(const nl_item item, bool toggle);
4500 #  endif
4501 #endif
4502 #if defined(HAS_NL_LANGINFO) && defined(PERL_LANGINFO_H)
4503 PERL_CALLCONV const char*       Perl_langinfo(const nl_item item);
4504 #endif
4505 #if defined(HAS_PIPE)
4506 PERL_CALLCONV int       Perl_PerlProc_pipe_cloexec(pTHX_ int *pipefd)
4507                         __attribute__warn_unused_result__;
4508 #define PERL_ARGS_ASSERT_PERLPROC_PIPE_CLOEXEC  \
4509         assert(pipefd)
4510
4511 #endif
4512 #if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
4513 PERL_CALLCONV Signal_t  Perl_csighandler(int sig, siginfo_t *info, void *uap);
4514 PERL_CALLCONV Signal_t  Perl_sighandler(int sig, siginfo_t *info, void *uap);
4515 #endif
4516 #if defined(HAS_SOCKET)
4517 PERL_CALLCONV int       Perl_PerlSock_accept_cloexec(pTHX_ int listenfd, struct sockaddr *addr, Sock_size_t *addrlen)
4518                         __attribute__warn_unused_result__;
4519
4520 PERL_CALLCONV int       Perl_PerlSock_socket_cloexec(pTHX_ int domain, int type, int protocol)
4521                         __attribute__warn_unused_result__;
4522
4523 #endif
4524 #if defined(HAVE_INTERP_INTERN)
4525 PERL_CALLCONV void      Perl_sys_intern_clear(pTHX);
4526 PERL_CALLCONV void      Perl_sys_intern_init(pTHX);
4527 #  if defined(USE_ITHREADS)
4528 PERL_CALLCONV void      Perl_sys_intern_dup(pTHX_ struct interp_intern* src, struct interp_intern* dst);
4529 #define PERL_ARGS_ASSERT_SYS_INTERN_DUP \
4530         assert(src); assert(dst)
4531 #  endif
4532 #endif
4533 #if defined(MYMALLOC)
4534 PERL_CALLCONV void      Perl_dump_mstats(pTHX_ const char* s);
4535 #define PERL_ARGS_ASSERT_DUMP_MSTATS    \
4536         assert(s)
4537 PERL_CALLCONV int       Perl_get_mstats(pTHX_ perl_mstats_t *buf, int buflen, int level);
4538 #define PERL_ARGS_ASSERT_GET_MSTATS     \
4539         assert(buf)
4540 PERL_CALLCONV MEM_SIZE  Perl_malloc_good_size(size_t nbytes)
4541                         __attribute__warn_unused_result__;
4542
4543 PERL_CALLCONV MEM_SIZE  Perl_malloced_size(void *p)
4544                         __attribute__warn_unused_result__;
4545 #define PERL_ARGS_ASSERT_MALLOCED_SIZE  \
4546         assert(p)
4547
4548 #endif
4549 #if defined(PERL_ANY_COW)
4550 PERL_CALLCONV SV*       Perl_sv_setsv_cow(pTHX_ SV* dstr, SV* sstr);
4551 #define PERL_ARGS_ASSERT_SV_SETSV_COW   \
4552         assert(sstr)
4553 #endif
4554 #if defined(PERL_CORE)
4555 PERL_CALLCONV void      Perl_opslab_force_free(pTHX_ OPSLAB *slab);
4556 #define PERL_ARGS_ASSERT_OPSLAB_FORCE_FREE      \
4557         assert(slab)
4558 PERL_CALLCONV void      Perl_opslab_free(pTHX_ OPSLAB *slab);
4559 #define PERL_ARGS_ASSERT_OPSLAB_FREE    \
4560         assert(slab)
4561 PERL_CALLCONV void      Perl_opslab_free_nopad(pTHX_ OPSLAB *slab);
4562 #define PERL_ARGS_ASSERT_OPSLAB_FREE_NOPAD      \
4563         assert(slab)
4564 PERL_CALLCONV void      Perl_parser_free_nexttoke_ops(pTHX_ yy_parser *parser, OPSLAB *slab);
4565 #define PERL_ARGS_ASSERT_PARSER_FREE_NEXTTOKE_OPS       \
4566         assert(parser); assert(slab)
4567 #ifndef PERL_NO_INLINE_FUNCTIONS
4568 PERL_STATIC_INLINE bool S_should_warn_nl(const char *pv)
4569                         __attribute__warn_unused_result__;
4570 #define PERL_ARGS_ASSERT_SHOULD_WARN_NL \
4571         assert(pv)
4572 #endif
4573
4574 #  if defined(PERL_DEBUG_READONLY_OPS)
4575 PERL_CALLCONV void      Perl_Slab_to_ro(pTHX_ OPSLAB *slab);
4576 #define PERL_ARGS_ASSERT_SLAB_TO_RO     \
4577         assert(slab)
4578 PERL_CALLCONV void      Perl_Slab_to_rw(pTHX_ OPSLAB *const slab);
4579 #define PERL_ARGS_ASSERT_SLAB_TO_RW     \
4580         assert(slab)
4581 #  endif
4582 #endif
4583 #if defined(PERL_CORE) || defined (PERL_EXT)
4584 #ifndef PERL_NO_INLINE_FUNCTIONS
4585 PERL_STATIC_INLINE bool S_is_utf8_non_invariant_string(const U8* const s, STRLEN len)
4586                         __attribute__warn_unused_result__;
4587 #define PERL_ARGS_ASSERT_IS_UTF8_NON_INVARIANT_STRING   \
4588         assert(s)
4589 #endif
4590
4591 #ifndef PERL_NO_INLINE_FUNCTIONS
4592 PERL_STATIC_INLINE STRLEN       S_sv_or_pv_pos_u2b(pTHX_ SV *sv, const char *pv, STRLEN pos, STRLEN *lenp);
4593 #define PERL_ARGS_ASSERT_SV_OR_PV_POS_U2B       \
4594         assert(sv); assert(pv)
4595 #endif
4596 #endif
4597 #if defined(PERL_CORE) || defined(PERL_EXT)
4598 PERL_CALLCONV bool      Perl_isSCRIPT_RUN(pTHX_ const U8 *s, const U8 *send, const bool utf8_target)
4599                         __attribute__warn_unused_result__;
4600 #define PERL_ARGS_ASSERT_ISSCRIPT_RUN   \
4601         assert(s); assert(send)
4602
4603 #ifndef PERL_NO_INLINE_FUNCTIONS
4604 PERL_STATIC_INLINE Size_t       S_variant_under_utf8_count(const U8* const s, const U8* const e)
4605                         __attribute__warn_unused_result__;
4606 #define PERL_ARGS_ASSERT_VARIANT_UNDER_UTF8_COUNT       \
4607         assert(s); assert(e)
4608 #endif
4609
4610 #endif
4611 #if defined(PERL_CR_FILTER)
4612 #  if defined(PERL_IN_TOKE_C)
4613 STATIC I32      S_cr_textfilter(pTHX_ int idx, SV *sv, int maxlen);
4614 STATIC void     S_strip_return(pTHX_ SV *sv);
4615 #define PERL_ARGS_ASSERT_STRIP_RETURN   \
4616         assert(sv)
4617 #  endif
4618 #endif
4619 #if defined(PERL_DEBUG_READONLY_COW)
4620 PERL_CALLCONV void      Perl_sv_buf_to_ro(pTHX_ SV *sv);
4621 #define PERL_ARGS_ASSERT_SV_BUF_TO_RO   \
4622         assert(sv)
4623 #  if defined(PERL_IN_SV_C)
4624 STATIC void     S_sv_buf_to_rw(pTHX_ SV *sv);
4625 #define PERL_ARGS_ASSERT_SV_BUF_TO_RW   \
4626         assert(sv)
4627 #  endif
4628 #endif
4629 #if defined(PERL_DEBUG_READONLY_OPS)
4630 PERL_CALLCONV PADOFFSET Perl_op_refcnt_dec(pTHX_ OP *o);
4631 #define PERL_ARGS_ASSERT_OP_REFCNT_DEC  \
4632         assert(o)
4633 PERL_CALLCONV OP *      Perl_op_refcnt_inc(pTHX_ OP *o);
4634 #endif
4635 #if defined(PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION)
4636 /* PERL_CALLCONV bool   Perl_do_exec(pTHX_ const char* cmd); */
4637 #endif
4638 #if defined(PERL_DONT_CREATE_GVSV)
4639 #ifndef NO_MATHOMS
4640 PERL_CALLCONV GV*       Perl_gv_SVadd(pTHX_ GV *gv);
4641 #endif
4642 #endif
4643 #if defined(PERL_GLOBAL_STRUCT)
4644 PERL_CALLCONV struct perl_vars *        Perl_GetVars(pTHX);
4645 PERL_CALLCONV void      Perl_free_global_struct(pTHX_ struct perl_vars *plvarsp);
4646 #define PERL_ARGS_ASSERT_FREE_GLOBAL_STRUCT     \
4647         assert(plvarsp)
4648 PERL_CALLCONV struct perl_vars* Perl_init_global_struct(pTHX);
4649 #endif
4650 #if defined(PERL_GLOBAL_STRUCT_PRIVATE)
4651 #  if defined(PERL_IMPLICIT_CONTEXT)
4652 PERL_CALLCONV int       Perl_my_cxt_index(pTHX_ const char *my_cxt_key);
4653 #define PERL_ARGS_ASSERT_MY_CXT_INDEX   \
4654         assert(my_cxt_key)
4655 PERL_CALLCONV void*     Perl_my_cxt_init(pTHX_ const char *my_cxt_key, size_t size);
4656 #define PERL_ARGS_ASSERT_MY_CXT_INIT    \
4657         assert(my_cxt_key)
4658 #  endif
4659 #endif
4660 #if defined(PERL_IMPLICIT_CONTEXT)
4661 PERL_CALLCONV_NO_RET void       Perl_croak_nocontext(const char* pat, ...)
4662                         __attribute__noreturn__
4663                         __attribute__format__null_ok__(__printf__,1,2);
4664
4665 PERL_CALLCONV void      Perl_deb_nocontext(const char* pat, ...)
4666                         __attribute__format__(__printf__,1,2);
4667 #define PERL_ARGS_ASSERT_DEB_NOCONTEXT  \
4668         assert(pat)
4669
4670 PERL_CALLCONV_NO_RET OP*        Perl_die_nocontext(const char* pat, ...)
4671                         __attribute__noreturn__
4672                         __attribute__format__null_ok__(__printf__,1,2);
4673
4674 PERL_CALLCONV char*     Perl_form_nocontext(const char* pat, ...)
4675                         __attribute__format__(__printf__,1,2);
4676 #define PERL_ARGS_ASSERT_FORM_NOCONTEXT \
4677         assert(pat)
4678
4679 #ifndef NO_MATHOMS
4680 PERL_CALLCONV int       Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
4681                         __attribute__format__(__printf__,2,3);
4682 #define PERL_ARGS_ASSERT_FPRINTF_NOCONTEXT      \
4683         assert(stream); assert(format)
4684 #endif
4685
4686 PERL_CALLCONV void      Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...);
4687 #define PERL_ARGS_ASSERT_LOAD_MODULE_NOCONTEXT  \
4688         assert(name)
4689 PERL_CALLCONV SV*       Perl_mess_nocontext(const char* pat, ...)
4690                         __attribute__format__(__printf__,1,2);
4691 #define PERL_ARGS_ASSERT_MESS_NOCONTEXT \
4692         assert(pat)
4693
4694 PERL_CALLCONV SV*       Perl_newSVpvf_nocontext(const char *const pat, ...)
4695                         __attribute__format__(__printf__,1,2);
4696 #define PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT     \
4697         assert(pat)
4698
4699 #ifndef NO_MATHOMS
4700 PERL_CALLCONV int       Perl_printf_nocontext(const char *format, ...)
4701                         __attribute__format__(__printf__,1,2);
4702 #define PERL_ARGS_ASSERT_PRINTF_NOCONTEXT       \
4703         assert(format)
4704 #endif
4705
4706 PERL_CALLCONV void      Perl_sv_catpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
4707                         __attribute__format__(__printf__,2,3);
4708 #define PERL_ARGS_ASSERT_SV_CATPVF_MG_NOCONTEXT \
4709         assert(sv); assert(pat)
4710
4711 PERL_CALLCONV void      Perl_sv_catpvf_nocontext(SV *const sv, const char *const pat, ...)
4712                         __attribute__format__(__printf__,2,3);
4713 #define PERL_ARGS_ASSERT_SV_CATPVF_NOCONTEXT    \
4714         assert(sv); assert(pat)
4715
4716 PERL_CALLCONV void      Perl_sv_setpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
4717                         __attribute__format__(__printf__,2,3);
4718 #define PERL_ARGS_ASSERT_SV_SETPVF_MG_NOCONTEXT \
4719         assert(sv); assert(pat)
4720
4721 PERL_CALLCONV void      Perl_sv_setpvf_nocontext(SV *const sv, const char *const pat, ...)
4722                         __attribute__format__(__printf__,2,3);
4723 #define PERL_ARGS_ASSERT_SV_SETPVF_NOCONTEXT    \
4724         assert(sv); assert(pat)
4725
4726 PERL_CALLCONV void      Perl_warn_nocontext(const char* pat, ...)
4727                         __attribute__format__(__printf__,1,2);
4728 #define PERL_ARGS_ASSERT_WARN_NOCONTEXT \
4729         assert(pat)
4730
4731 PERL_CALLCONV void      Perl_warner_nocontext(U32 err, const char* pat, ...)
4732                         __attribute__format__(__printf__,2,3);
4733 #define PERL_ARGS_ASSERT_WARNER_NOCONTEXT       \
4734         assert(pat)
4735
4736 #endif
4737 #if defined(PERL_IMPLICIT_SYS)
4738 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);
4739 #define PERL_ARGS_ASSERT_PERL_ALLOC_USING       \
4740         assert(ipM); assert(ipMS); assert(ipMP); assert(ipE); assert(ipStd); assert(ipLIO); assert(ipD); assert(ipS); assert(ipP)
4741 #  if defined(USE_ITHREADS)
4742 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);
4743 #define PERL_ARGS_ASSERT_PERL_CLONE_USING       \
4744         assert(proto_perl); assert(ipM); assert(ipMS); assert(ipMP); assert(ipE); assert(ipStd); assert(ipLIO); assert(ipD); assert(ipS); assert(ipP)
4745 #  endif
4746 #endif
4747 #if defined(PERL_IN_AV_C)
4748 STATIC MAGIC*   S_get_aux_mg(pTHX_ AV *av);
4749 #define PERL_ARGS_ASSERT_GET_AUX_MG     \
4750         assert(av)
4751 #endif
4752 #if defined(PERL_IN_DEB_C)
4753 STATIC void     S_deb_stack_n(pTHX_ SV** stack_base, I32 stack_min, I32 stack_max, I32 mark_min, I32 mark_max);
4754 #define PERL_ARGS_ASSERT_DEB_STACK_N    \
4755         assert(stack_base)
4756 #endif
4757 #if defined(PERL_IN_DOIO_C)
4758 STATIC bool     S_argvout_final(pTHX_ MAGIC *mg, IO *io, bool not_implicit);
4759 #define PERL_ARGS_ASSERT_ARGVOUT_FINAL  \
4760         assert(mg); assert(io)
4761 STATIC void     S_exec_failed(pTHX_ const char *cmd, int fd, int do_report);
4762 #define PERL_ARGS_ASSERT_EXEC_FAILED    \
4763         assert(cmd)
4764 STATIC bool     S_ingroup(pTHX_ Gid_t testgid, bool effective)
4765                         __attribute__warn_unused_result__;
4766
4767 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, Stat_t *statbufp);
4768 #define PERL_ARGS_ASSERT_OPENN_CLEANUP  \
4769         assert(gv); assert(io); assert(mode); assert(oname)
4770 STATIC IO *     S_openn_setup(pTHX_ GV *gv, char *mode, PerlIO **saveifp, PerlIO **saveofp, int *savefd, char *savetype);
4771 #define PERL_ARGS_ASSERT_OPENN_SETUP    \
4772         assert(gv); assert(mode); assert(saveifp); assert(saveofp); assert(savefd); assert(savetype)
4773 #endif
4774 #if defined(PERL_IN_DOOP_C)
4775 STATIC Size_t   S_do_trans_complex(pTHX_ SV * const sv)
4776                         __attribute__warn_unused_result__;
4777 #define PERL_ARGS_ASSERT_DO_TRANS_COMPLEX       \
4778         assert(sv)
4779
4780 STATIC Size_t   S_do_trans_complex_utf8(pTHX_ SV * const sv)
4781                         __attribute__warn_unused_result__;
4782 #define PERL_ARGS_ASSERT_DO_TRANS_COMPLEX_UTF8  \
4783         assert(sv)
4784
4785 STATIC Size_t   S_do_trans_count(pTHX_ SV * const sv)
4786                         __attribute__warn_unused_result__;
4787 #define PERL_ARGS_ASSERT_DO_TRANS_COUNT \
4788         assert(sv)
4789
4790 STATIC Size_t   S_do_trans_count_utf8(pTHX_ SV * const sv)
4791                         __attribute__warn_unused_result__;
4792 #define PERL_ARGS_ASSERT_DO_TRANS_COUNT_UTF8    \
4793         assert(sv)
4794
4795 STATIC Size_t   S_do_trans_simple(pTHX_ SV * const sv)
4796                         __attribute__warn_unused_result__;
4797 #define PERL_ARGS_ASSERT_DO_TRANS_SIMPLE        \
4798         assert(sv)
4799
4800 STATIC Size_t   S_do_trans_simple_utf8(pTHX_ SV * const sv)
4801                         __attribute__warn_unused_result__;
4802 #define PERL_ARGS_ASSERT_DO_TRANS_SIMPLE_UTF8   \
4803         assert(sv)
4804
4805 #endif
4806 #if defined(PERL_IN_DUMP_C)
4807 STATIC CV*      S_deb_curcv(pTHX_ I32 ix);
4808 STATIC void     S_debprof(pTHX_ const OP *o);
4809 #define PERL_ARGS_ASSERT_DEBPROF        \
4810         assert(o)
4811 STATIC SV*      S_pm_description(pTHX_ const PMOP *pm);
4812 #define PERL_ARGS_ASSERT_PM_DESCRIPTION \
4813         assert(pm)
4814 STATIC UV       S_sequence_num(pTHX_ const OP *o);
4815 #endif
4816 #if defined(PERL_IN_DUMP_C) || defined(PERL_IN_HV_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_SCOPE_C)
4817 PERL_CALLCONV void      Perl_hv_kill_backrefs(pTHX_ HV *hv);
4818 #define PERL_ARGS_ASSERT_HV_KILL_BACKREFS       \
4819         assert(hv)
4820 #endif
4821 #if defined(PERL_IN_GV_C)
4822 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);
4823 #define PERL_ARGS_ASSERT_FIND_DEFAULT_STASH     \
4824         assert(stash); assert(name)
4825 #ifndef PERL_NO_INLINE_FUNCTIONS
4826 PERL_STATIC_INLINE GV*  S_gv_fetchmeth_internal(pTHX_ HV* stash, SV* meth, const char* name, STRLEN len, I32 level, U32 flags);
4827 #endif
4828 STATIC void     S_gv_init_svtype(pTHX_ GV *gv, const svtype sv_type);
4829 #define PERL_ARGS_ASSERT_GV_INIT_SVTYPE \
4830         assert(gv)
4831 STATIC bool     S_gv_is_in_main(pTHX_ const char *name, STRLEN len, const U32 is_utf8);
4832 #define PERL_ARGS_ASSERT_GV_IS_IN_MAIN  \
4833         assert(name)
4834 STATIC bool     S_gv_magicalize(pTHX_ GV *gv, HV *stash, const char *name, STRLEN len, const svtype sv_type);
4835 #define PERL_ARGS_ASSERT_GV_MAGICALIZE  \
4836         assert(gv); assert(stash); assert(name)
4837 STATIC void     S_gv_magicalize_isa(pTHX_ GV *gv);
4838 #define PERL_ARGS_ASSERT_GV_MAGICALIZE_ISA      \
4839         assert(gv)
4840 #ifndef PERL_NO_INLINE_FUNCTIONS
4841 PERL_STATIC_INLINE HV*  S_gv_stashpvn_internal(pTHX_ const char* name, U32 namelen, I32 flags);
4842 #define PERL_ARGS_ASSERT_GV_STASHPVN_INTERNAL   \
4843         assert(name)
4844 #endif
4845 #ifndef PERL_NO_INLINE_FUNCTIONS
4846 PERL_STATIC_INLINE HV*  S_gv_stashsvpvn_cached(pTHX_ SV *namesv, const char* name, U32 namelen, I32 flags);
4847 #endif
4848 STATIC void     S_maybe_multimagic_gv(pTHX_ GV *gv, const char *name, const svtype sv_type);
4849 #define PERL_ARGS_ASSERT_MAYBE_MULTIMAGIC_GV    \
4850         assert(gv); assert(name)
4851 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);
4852 #define PERL_ARGS_ASSERT_PARSE_GV_STASH_NAME    \
4853         assert(stash); assert(gv); assert(name); assert(len); assert(nambeg)
4854 STATIC void     S_require_tie_mod(pTHX_ GV *gv, const char varname, const char * name, STRLEN len, const U32 flags);
4855 #define PERL_ARGS_ASSERT_REQUIRE_TIE_MOD        \
4856         assert(gv); assert(varname); assert(name)
4857 #endif
4858 #if defined(PERL_IN_GV_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_PAD_C) || defined(PERL_IN_OP_C)
4859 PERL_CALLCONV void      Perl_sv_add_backref(pTHX_ SV *const tsv, SV *const sv);
4860 #define PERL_ARGS_ASSERT_SV_ADD_BACKREF \
4861         assert(tsv); assert(sv)
4862 #endif
4863 #if defined(PERL_IN_HV_C)
4864 STATIC void     S_clear_placeholders(pTHX_ HV *hv, U32 items);
4865 #define PERL_ARGS_ASSERT_CLEAR_PLACEHOLDERS     \
4866         assert(hv)
4867 STATIC void     S_hsplit(pTHX_ HV *hv, STRLEN const oldsize, STRLEN newsize);
4868 #define PERL_ARGS_ASSERT_HSPLIT \
4869         assert(hv)
4870 STATIC struct xpvhv_aux*        S_hv_auxinit(pTHX_ HV *hv);
4871 #define PERL_ARGS_ASSERT_HV_AUXINIT     \
4872         assert(hv)
4873 STATIC struct xpvhv_aux*        S_hv_auxinit_internal(struct xpvhv_aux *iter);
4874 #define PERL_ARGS_ASSERT_HV_AUXINIT_INTERNAL    \
4875         assert(iter)
4876 STATIC SV*      S_hv_delete_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen, int k_flags, I32 d_flags, U32 hash);
4877 STATIC SV*      S_hv_free_ent_ret(pTHX_ HV *hv, HE *entry);
4878 #define PERL_ARGS_ASSERT_HV_FREE_ENT_RET        \
4879         assert(hv); assert(entry)
4880 STATIC void     S_hv_free_entries(pTHX_ HV *hv);
4881 #define PERL_ARGS_ASSERT_HV_FREE_ENTRIES        \
4882         assert(hv)
4883 STATIC void     S_hv_magic_check(HV *hv, bool *needs_copy, bool *needs_store);
4884 #define PERL_ARGS_ASSERT_HV_MAGIC_CHECK \
4885         assert(hv); assert(needs_copy); assert(needs_store)
4886 PERL_STATIC_NO_RET void S_hv_notallowed(pTHX_ int flags, const char *key, I32 klen, const char *msg)
4887                         __attribute__noreturn__;
4888 #define PERL_ARGS_ASSERT_HV_NOTALLOWED  \
4889         assert(key); assert(msg)
4890
4891 STATIC HE*      S_new_he(pTHX)
4892                         __attribute__warn_unused_result__;
4893
4894 #ifndef PERL_NO_INLINE_FUNCTIONS
4895 PERL_STATIC_INLINE U32  S_ptr_hash(PTRV u);
4896 #endif
4897 STATIC SV *     S_refcounted_he_value(pTHX_ const struct refcounted_he *he);
4898 #define PERL_ARGS_ASSERT_REFCOUNTED_HE_VALUE    \
4899         assert(he)
4900 STATIC HEK*     S_save_hek_flags(const char *str, I32 len, U32 hash, int flags)
4901                         __attribute__malloc__
4902                         __attribute__warn_unused_result__;
4903 #define PERL_ARGS_ASSERT_SAVE_HEK_FLAGS \
4904         assert(str)
4905
4906 STATIC HEK*     S_share_hek_flags(pTHX_ const char *str, STRLEN len, U32 hash, int flags)
4907                         __attribute__warn_unused_result__;
4908 #define PERL_ARGS_ASSERT_SHARE_HEK_FLAGS        \
4909         assert(str)
4910
4911 STATIC void     S_unshare_hek_or_pvn(pTHX_ const HEK* hek, const char* str, I32 len, U32 hash);
4912 #endif
4913 #if defined(PERL_IN_HV_C) || defined(PERL_IN_MG_C) || defined(PERL_IN_SV_C)
4914 PERL_CALLCONV void      Perl_sv_kill_backrefs(pTHX_ SV *const sv, AV *const av);
4915 #define PERL_ARGS_ASSERT_SV_KILL_BACKREFS       \
4916         assert(sv)
4917 #endif
4918 #if defined(PERL_IN_HV_C) || defined(PERL_IN_SV_C)
4919 PERL_CALLCONV SV*       Perl_hfree_next_entry(pTHX_ HV *hv, STRLEN *indexp);
4920 #define PERL_ARGS_ASSERT_HFREE_NEXT_ENTRY       \
4921         assert(hv); assert(indexp)
4922 #endif
4923 #if defined(PERL_IN_LOCALE_C)
4924 #ifndef PERL_NO_INLINE_FUNCTIONS
4925 PERL_STATIC_INLINE const char * S_save_to_buffer(const char * string, char **buf, Size_t *buf_size, const Size_t offset)
4926                         __attribute__warn_unused_result__;
4927 #define PERL_ARGS_ASSERT_SAVE_TO_BUFFER \
4928         assert(buf_size)
4929 #endif
4930
4931 #  if defined(USE_LOCALE)
4932 STATIC const char*      S_category_name(const int category);
4933 STATIC void     S_new_collate(pTHX_ const char* newcoll);
4934 STATIC void     S_new_ctype(pTHX_ const char* newctype);
4935 #define PERL_ARGS_ASSERT_NEW_CTYPE      \
4936         assert(newctype)
4937 STATIC void     S_new_numeric(pTHX_ const char* newnum);
4938 STATIC void     S_restore_switched_locale(pTHX_ const int category, const char * const original_locale);
4939 STATIC void     S_set_numeric_radix(pTHX_ const bool use_locale);
4940 STATIC char*    S_stdize_locale(pTHX_ char* locs);
4941 #define PERL_ARGS_ASSERT_STDIZE_LOCALE  \
4942         assert(locs)
4943 STATIC const char*      S_switch_category_locale_to_template(pTHX_ const int switch_category, const int template_category, const char * template_locale);
4944 #    if defined(USE_POSIX_2008_LOCALE)
4945 STATIC const char*      S_emulate_setlocale(const int category, const char* locale, unsigned int index, const bool is_index_valid);
4946 #    endif
4947 #    if defined(WIN32)
4948 STATIC char*    S_win32_setlocale(pTHX_ int category, const char* locale);
4949 #    endif
4950 #  endif
4951 #endif
4952 #if defined(PERL_IN_LOCALE_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_MATHOMS_C)
4953 #  if defined(USE_LOCALE_COLLATE)
4954 PERL_CALLCONV char*     Perl__mem_collxfrm(pTHX_ const char* input_string, STRLEN len, STRLEN* xlen, bool utf8);
4955 #define PERL_ARGS_ASSERT__MEM_COLLXFRM  \
4956         assert(input_string); assert(xlen)
4957 #  endif
4958 #endif
4959 #if defined(PERL_IN_MALLOC_C)
4960 STATIC int      S_adjust_size_and_find_bucket(size_t *nbytes_p);
4961 #define PERL_ARGS_ASSERT_ADJUST_SIZE_AND_FIND_BUCKET    \
4962         assert(nbytes_p)
4963 #endif
4964 #if defined(PERL_IN_MG_C)
4965 STATIC void     S_fixup_errno_string(pTHX_ SV* sv);
4966 #define PERL_ARGS_ASSERT_FIXUP_ERRNO_STRING     \
4967         assert(sv)
4968 STATIC SV*      S_magic_methcall1(pTHX_ SV *sv, const MAGIC *mg, SV *meth, U32 flags, int n, SV *val);
4969 #define PERL_ARGS_ASSERT_MAGIC_METHCALL1        \
4970         assert(sv); assert(mg); assert(meth)
4971 STATIC int      S_magic_methpack(pTHX_ SV *sv, const MAGIC *mg, SV *meth);
4972 #define PERL_ARGS_ASSERT_MAGIC_METHPACK \
4973         assert(sv); assert(mg); assert(meth)
4974 STATIC void     S_restore_magic(pTHX_ const void *p);
4975 STATIC void     S_save_magic_flags(pTHX_ I32 mgs_ix, SV *sv, U32 flags);
4976 #define PERL_ARGS_ASSERT_SAVE_MAGIC_FLAGS       \
4977         assert(sv)
4978 STATIC void     S_unwind_handler_stack(pTHX_ const void *p);
4979 #endif
4980 #if defined(PERL_IN_MG_C) || defined(PERL_IN_PP_C)
4981 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);
4982 #define PERL_ARGS_ASSERT_TRANSLATE_SUBSTR_OFFSETS       \
4983         assert(posp); assert(lenp)
4984 #endif
4985 #if defined(PERL_IN_MRO_C)
4986 STATIC void     S_mro_clean_isarev(pTHX_ HV * const isa, const char * const name, const STRLEN len, HV * const exceptions, U32 hash, U32 flags);
4987 #define PERL_ARGS_ASSERT_MRO_CLEAN_ISAREV       \
4988         assert(isa); assert(name)
4989 STATIC void     S_mro_gather_and_rename(pTHX_ HV * const stashes, HV * const seen_stashes, HV *stash, HV *oldstash, SV *namesv);
4990 #define PERL_ARGS_ASSERT_MRO_GATHER_AND_RENAME  \
4991         assert(stashes); assert(seen_stashes); assert(namesv)
4992 STATIC AV*      S_mro_get_linear_isa_dfs(pTHX_ HV* stash, U32 level);
4993 #define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA_DFS \
4994         assert(stash)
4995 #endif
4996 #if defined(PERL_IN_OP_C)
4997 STATIC void     S_apply_attrs(pTHX_ HV *stash, SV *target, OP *attrs);
4998 #define PERL_ARGS_ASSERT_APPLY_ATTRS    \
4999         assert(stash); assert(target)
5000 STATIC void     S_apply_attrs_my(pTHX_ HV *stash, OP *target, OP *attrs, OP **imopsp);
5001 #define PERL_ARGS_ASSERT_APPLY_ATTRS_MY \
5002         assert(stash); assert(target); assert(imopsp)
5003 STATIC I32      S_assignment_type(pTHX_ const OP *o)
5004                         __attribute__warn_unused_result__;
5005
5006 STATIC void     S_bad_type_gv(pTHX_ I32 n, GV *gv, const OP *kid, const char *t);
5007 #define PERL_ARGS_ASSERT_BAD_TYPE_GV    \
5008         assert(gv); assert(kid); assert(t)
5009 STATIC void     S_bad_type_pv(pTHX_ I32 n, const char *t, const OP *o, const OP *kid);
5010 #define PERL_ARGS_ASSERT_BAD_TYPE_PV    \
5011         assert(t); assert(o); assert(kid)
5012 STATIC void     S_clear_special_blocks(pTHX_ const char *const fullname, GV *const gv, CV *const cv);
5013 #define PERL_ARGS_ASSERT_CLEAR_SPECIAL_BLOCKS   \
5014         assert(fullname); assert(gv); assert(cv)
5015 STATIC void     S_cop_free(pTHX_ COP *cop);
5016 #define PERL_ARGS_ASSERT_COP_FREE       \
5017         assert(cop)
5018 STATIC OP *     S_dup_attrlist(pTHX_ OP *o);
5019 #define PERL_ARGS_ASSERT_DUP_ATTRLIST   \
5020         assert(o)
5021 STATIC void     S_finalize_op(pTHX_ OP* o);
5022 #define PERL_ARGS_ASSERT_FINALIZE_OP    \
5023         assert(o)
5024 STATIC void     S_find_and_forget_pmops(pTHX_ OP *o);
5025 #define PERL_ARGS_ASSERT_FIND_AND_FORGET_PMOPS  \
5026         assert(o)
5027 STATIC OP*      S_fold_constants(pTHX_ OP * const o);
5028 #define PERL_ARGS_ASSERT_FOLD_CONSTANTS \
5029         assert(o)
5030 STATIC OP*      S_force_list(pTHX_ OP* arg, bool nullit);
5031 STATIC void     S_forget_pmop(pTHX_ PMOP *const o);
5032 #define PERL_ARGS_ASSERT_FORGET_PMOP    \
5033         assert(o)
5034 STATIC OP*      S_gen_constant_list(pTHX_ OP* o);
5035 STATIC void     S_inplace_aassign(pTHX_ OP* o);
5036 #define PERL_ARGS_ASSERT_INPLACE_AASSIGN        \
5037         assert(o)
5038 STATIC bool     S_is_handle_constructor(const OP *o, I32 numargs)
5039                         __attribute__warn_unused_result__;
5040 #define PERL_ARGS_ASSERT_IS_HANDLE_CONSTRUCTOR  \
5041         assert(o)
5042
5043 STATIC OP*      S_listkids(pTHX_ OP* o);
5044 STATIC bool     S_looks_like_bool(pTHX_ const OP* o);
5045 #define PERL_ARGS_ASSERT_LOOKS_LIKE_BOOL        \
5046         assert(o)
5047 STATIC OP*      S_modkids(pTHX_ OP *o, I32 type);
5048 STATIC void     S_move_proto_attr(pTHX_ OP **proto, OP **attrs, const GV *name, bool curstash);
5049 #define PERL_ARGS_ASSERT_MOVE_PROTO_ATTR        \
5050         assert(proto); assert(attrs); assert(name)
5051 STATIC OP *     S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp);
5052 #define PERL_ARGS_ASSERT_MY_KID \
5053         assert(imopsp)
5054 STATIC OP*      S_newGIVWHENOP(pTHX_ OP* cond, OP *block, I32 enter_opcode, I32 leave_opcode, PADOFFSET entertarg);
5055 #define PERL_ARGS_ASSERT_NEWGIVWHENOP   \
5056         assert(block)
5057 #ifndef PERL_NO_INLINE_FUNCTIONS
5058 PERL_STATIC_INLINE OP*  S_newMETHOP_internal(pTHX_ I32 type, I32 flags, OP* dynamic_meth, SV* const_meth);
5059 #endif
5060 STATIC OP*      S_new_logop(pTHX_ I32 type, I32 flags, OP **firstp, OP **otherp)
5061                         __attribute__warn_unused_result__;
5062 #define PERL_ARGS_ASSERT_NEW_LOGOP      \
5063         assert(firstp); assert(otherp)
5064
5065 STATIC void     S_no_bareword_allowed(pTHX_ OP *o);
5066 #define PERL_ARGS_ASSERT_NO_BAREWORD_ALLOWED    \
5067         assert(o)
5068 STATIC OP*      S_no_fh_allowed(pTHX_ OP *o)
5069                         __attribute__warn_unused_result__;
5070 #define PERL_ARGS_ASSERT_NO_FH_ALLOWED  \
5071         assert(o)
5072
5073 #ifndef PERL_NO_INLINE_FUNCTIONS
5074 PERL_STATIC_INLINE OP*  S_op_integerize(pTHX_ OP *o);
5075 #define PERL_ARGS_ASSERT_OP_INTEGERIZE  \
5076         assert(o)
5077 #endif
5078 #ifndef PERL_NO_INLINE_FUNCTIONS
5079 PERL_STATIC_INLINE OP*  S_op_std_init(pTHX_ OP *o);
5080 #define PERL_ARGS_ASSERT_OP_STD_INIT    \
5081         assert(o)
5082 #endif
5083 STATIC void     S_optimize_op(pTHX_ OP* o);
5084 #define PERL_ARGS_ASSERT_OPTIMIZE_OP    \
5085         assert(o)
5086 STATIC OP*      S_pmtrans(pTHX_ OP* o, OP* expr, OP* repl);
5087 #define PERL_ARGS_ASSERT_PMTRANS        \
5088         assert(o); assert(expr); assert(repl)
5089 STATIC bool     S_process_special_blocks(pTHX_ I32 floor, const char *const fullname, GV *const gv, CV *const cv);
5090 #define PERL_ARGS_ASSERT_PROCESS_SPECIAL_BLOCKS \
5091         assert(fullname); assert(gv); assert(cv)
5092 STATIC OP*      S_ref_array_or_hash(pTHX_ OP* cond);
5093 STATIC OP*      S_refkids(pTHX_ OP* o, I32 type);
5094 STATIC bool     S_scalar_mod_type(const OP *o, I32 type)
5095                         __attribute__warn_unused_result__;
5096
5097 STATIC OP*      S_scalarboolean(pTHX_ OP *o);
5098 #define PERL_ARGS_ASSERT_SCALARBOOLEAN  \
5099         assert(o)
5100 STATIC OP*      S_scalarkids(pTHX_ OP* o);
5101 STATIC OP*      S_scalarseq(pTHX_ OP* o);
5102 STATIC OP*      S_search_const(pTHX_ OP *o)
5103                         __attribute__warn_unused_result__;
5104 #define PERL_ARGS_ASSERT_SEARCH_CONST   \
5105         assert(o)
5106
5107 STATIC void     S_simplify_sort(pTHX_ OP *o);
5108 #define PERL_ARGS_ASSERT_SIMPLIFY_SORT  \
5109         assert(o)
5110 STATIC OP*      S_too_few_arguments_pv(pTHX_ OP *o, const char* name, U32 flags)
5111                         __attribute__warn_unused_result__;
5112 #define PERL_ARGS_ASSERT_TOO_FEW_ARGUMENTS_PV   \
5113         assert(o); assert(name)
5114
5115 STATIC OP*      S_too_many_arguments_pv(pTHX_ OP *o, const char* name, U32 flags);
5116 #define PERL_ARGS_ASSERT_TOO_MANY_ARGUMENTS_PV  \
5117         assert(o); assert(name)
5118 STATIC OP*      S_traverse_op_tree(pTHX_ OP* top, OP* o);
5119 #define PERL_ARGS_ASSERT_TRAVERSE_OP_TREE       \
5120         assert(top); assert(o)
5121 #  if defined(USE_ITHREADS)
5122 #ifndef PERL_NO_INLINE_FUNCTIONS
5123 PERL_STATIC_INLINE void S_op_relocate_sv(pTHX_ SV** svp, PADOFFSET* targp);
5124 #define PERL_ARGS_ASSERT_OP_RELOCATE_SV \
5125         assert(svp); assert(targp)
5126 #endif
5127 #  endif
5128 #endif
5129 #if defined(PERL_IN_OP_C) || defined(PERL_IN_SV_C)
5130 PERL_CALLCONV void      Perl_report_redefined_cv(pTHX_ const SV *name, const CV *old_cv, SV * const *new_const_svp);
5131 #define PERL_ARGS_ASSERT_REPORT_REDEFINED_CV    \
5132         assert(name); assert(old_cv)
5133 #endif
5134 #if defined(PERL_IN_PAD_C)
5135 STATIC PADOFFSET        S_pad_alloc_name(pTHX_ PADNAME *name, U32 flags, HV *typestash, HV *ourstash);
5136 #define PERL_ARGS_ASSERT_PAD_ALLOC_NAME \
5137         assert(name)
5138 STATIC void     S_pad_check_dup(pTHX_ PADNAME *name, U32 flags, const HV *ourstash);
5139 #define PERL_ARGS_ASSERT_PAD_CHECK_DUP  \
5140         assert(name)
5141 STATIC PADOFFSET        S_pad_findlex(pTHX_ const char *namepv, STRLEN namelen, U32 flags, const CV* cv, U32 seq, int warn, SV** out_capture, PADNAME** out_name, int *out_flags);
5142 #define PERL_ARGS_ASSERT_PAD_FINDLEX    \
5143         assert(namepv); assert(cv); assert(out_name); assert(out_flags)
5144 STATIC void     S_pad_reset(pTHX);
5145 #endif
5146 #if defined(PERL_IN_PERL_C)
5147 STATIC void     S_find_beginning(pTHX_ SV* linestr_sv, PerlIO *rsfp);
5148 #define PERL_ARGS_ASSERT_FIND_BEGINNING \
5149         assert(linestr_sv); assert(rsfp)
5150 STATIC void     S_forbid_setid(pTHX_ const char flag, const bool suidscript);
5151 STATIC void     S_incpush(pTHX_ const char *const dir, STRLEN len, U32 flags);
5152 #define PERL_ARGS_ASSERT_INCPUSH        \
5153         assert(dir)
5154 STATIC void     S_incpush_use_sep(pTHX_ const char *p, STRLEN len, U32 flags);
5155 #define PERL_ARGS_ASSERT_INCPUSH_USE_SEP        \
5156         assert(p)
5157 STATIC void     S_init_ids(pTHX);
5158 STATIC void     S_init_interp(pTHX);
5159 STATIC void     S_init_main_stash(pTHX);
5160 STATIC void     S_init_perllib(pTHX);
5161 STATIC void     S_init_postdump_symbols(pTHX_ int argc, char **argv, char **env);
5162 #define PERL_ARGS_ASSERT_INIT_POSTDUMP_SYMBOLS  \
5163         assert(argv)
5164 STATIC void     S_init_predump_symbols(pTHX);
5165 STATIC SV*      S_mayberelocate(pTHX_ const char *const dir, STRLEN len, U32 flags);
5166 #define PERL_ARGS_ASSERT_MAYBERELOCATE  \
5167         assert(dir)
5168 PERL_STATIC_NO_RET void S_minus_v(pTHX)
5169                         __attribute__noreturn__;
5170
5171 PERL_STATIC_NO_RET void S_my_exit_jump(pTHX)
5172                         __attribute__noreturn__;
5173
5174 STATIC void     S_nuke_stacks(pTHX);
5175 STATIC PerlIO * S_open_script(pTHX_ const char *scriptname, bool dosearch, bool *suidscript);
5176 #define PERL_ARGS_ASSERT_OPEN_SCRIPT    \
5177         assert(scriptname); assert(suidscript)
5178 STATIC void*    S_parse_body(pTHX_ char **env, XSINIT_t xsinit);
5179 PERL_STATIC_NO_RET void S_run_body(pTHX_ I32 oldscope)
5180                         __attribute__noreturn__;
5181
5182 PERL_STATIC_NO_RET void S_usage(pTHX)
5183                         __attribute__noreturn__;
5184
5185 #endif
5186 #if defined(PERL_IN_PP_C)
5187 STATIC size_t   S_do_chomp(pTHX_ SV *retval, SV *sv, bool chomping);
5188 #define PERL_ARGS_ASSERT_DO_CHOMP       \
5189         assert(retval); assert(sv)
5190 STATIC OP*      S_do_delete_local(pTHX);
5191 STATIC SV*      S_refto(pTHX_ SV* sv)
5192                         __attribute__warn_unused_result__;
5193 #define PERL_ARGS_ASSERT_REFTO  \
5194         assert(sv)
5195
5196 #endif
5197 #if defined(PERL_IN_PP_C) || defined(PERL_IN_PP_HOT_C)
5198 PERL_CALLCONV GV*       Perl_softref2xv(pTHX_ SV *const sv, const char *const what, const svtype type, SV ***spp)
5199                         __attribute__warn_unused_result__;
5200 #define PERL_ARGS_ASSERT_SOFTREF2XV     \
5201         assert(sv); assert(what); assert(spp)
5202
5203 #endif
5204 #if defined(PERL_IN_PP_CTL_C)
5205 STATIC PerlIO * S_check_type_and_open(pTHX_ SV *name)
5206                         __attribute__warn_unused_result__;
5207 #define PERL_ARGS_ASSERT_CHECK_TYPE_AND_OPEN    \
5208         assert(name)
5209
5210 STATIC void     S_destroy_matcher(pTHX_ PMOP* matcher);
5211 #define PERL_ARGS_ASSERT_DESTROY_MATCHER        \
5212         assert(matcher)
5213 STATIC OP*      S_do_smartmatch(pTHX_ HV* seen_this, HV* seen_other, const bool copied);
5214 STATIC OP*      S_docatch(pTHX_ Perl_ppaddr_t firstpp)
5215                         __attribute__warn_unused_result__;
5216
5217 STATIC bool     S_doeval_compile(pTHX_ U8 gimme, CV* outside, U32 seq, HV* hh);
5218 STATIC OP*      S_dofindlabel(pTHX_ OP *o, const char *label, STRLEN len, U32 flags, OP **opstack, OP **oplimit)
5219                         __attribute__warn_unused_result__;
5220 #define PERL_ARGS_ASSERT_DOFINDLABEL    \
5221         assert(o); assert(label); assert(opstack); assert(oplimit)
5222
5223 STATIC MAGIC *  S_doparseform(pTHX_ SV *sv);
5224 #define PERL_ARGS_ASSERT_DOPARSEFORM    \
5225         assert(sv)
5226 STATIC I32      S_dopoptoeval(pTHX_ I32 startingblock)
5227                         __attribute__warn_unused_result__;
5228
5229 STATIC I32      S_dopoptogivenfor(pTHX_ I32 startingblock)
5230                         __attribute__warn_unused_result__;
5231
5232 STATIC I32      S_dopoptolabel(pTHX_ const char *label, STRLEN len, U32 flags)
5233                         __attribute__warn_unused_result__;
5234 #define PERL_ARGS_ASSERT_DOPOPTOLABEL   \
5235         assert(label)
5236
5237 STATIC I32      S_dopoptoloop(pTHX_ I32 startingblock)
5238                         __attribute__warn_unused_result__;
5239
5240 STATIC I32      S_dopoptosub_at(pTHX_ const PERL_CONTEXT* cxstk, I32 startingblock)
5241                         __attribute__warn_unused_result__;
5242 #define PERL_ARGS_ASSERT_DOPOPTOSUB_AT  \
5243         assert(cxstk)
5244
5245 STATIC I32      S_dopoptowhen(pTHX_ I32 startingblock)
5246                         __attribute__warn_unused_result__;
5247
5248 STATIC PMOP*    S_make_matcher(pTHX_ REGEXP* re)
5249                         __attribute__warn_unused_result__;
5250 #define PERL_ARGS_ASSERT_MAKE_MATCHER   \
5251         assert(re)
5252
5253 STATIC bool     S_matcher_matches_sv(pTHX_ PMOP* matcher, SV* sv)
5254                         __attribute__warn_unused_result__;
5255 #define PERL_ARGS_ASSERT_MATCHER_MATCHES_SV     \
5256         assert(matcher); assert(sv)
5257
5258 STATIC bool     S_num_overflow(NV value, I32 fldsize, I32 frcsize)
5259                         __attribute__warn_unused_result__;
5260
5261 #ifndef PERL_NO_INLINE_FUNCTIONS
5262 PERL_STATIC_INLINE bool S_path_is_searchable(const char *name)
5263                         __attribute__warn_unused_result__;
5264 #define PERL_ARGS_ASSERT_PATH_IS_SEARCHABLE     \
5265         assert(name)
5266 #endif
5267
5268 STATIC I32      S_run_user_filter(pTHX_ int idx, SV *buf_sv, int maxlen)
5269                         __attribute__warn_unused_result__;
5270 #define PERL_ARGS_ASSERT_RUN_USER_FILTER        \
5271         assert(buf_sv)
5272
5273 STATIC void     S_rxres_free(pTHX_ void** rsp);
5274 #define PERL_ARGS_ASSERT_RXRES_FREE     \
5275         assert(rsp)
5276 STATIC void     S_rxres_restore(pTHX_ void **rsp, REGEXP *rx);
5277 #define PERL_ARGS_ASSERT_RXRES_RESTORE  \
5278         assert(rsp); assert(rx)
5279 STATIC void     S_save_lines(pTHX_ AV *array, SV *sv);
5280 #define PERL_ARGS_ASSERT_SAVE_LINES     \
5281         assert(sv)
5282 #endif
5283 #if defined(PERL_IN_PP_HOT_C)
5284 STATIC void     S_do_oddball(pTHX_ SV **oddkey, SV **firstkey);
5285 #define PERL_ARGS_ASSERT_DO_ODDBALL     \
5286         assert(oddkey); assert(firstkey)
5287 #ifndef PERL_NO_INLINE_FUNCTIONS
5288 PERL_STATIC_INLINE HV*  S_opmethod_stash(pTHX_ SV* meth);
5289 #define PERL_ARGS_ASSERT_OPMETHOD_STASH \
5290         assert(meth)
5291 #endif
5292 #endif
5293 #if defined(PERL_IN_PP_PACK_C)
5294 STATIC int      S_div128(pTHX_ SV *pnum, bool *done);
5295 #define PERL_ARGS_ASSERT_DIV128 \
5296         assert(pnum); assert(done)
5297 STATIC char     S_first_symbol(const char *pat, const char *patend);
5298 #define PERL_ARGS_ASSERT_FIRST_SYMBOL   \
5299         assert(pat); assert(patend)
5300 STATIC const char *     S_get_num(pTHX_ const char *patptr, SSize_t *lenptr)
5301                         __attribute__warn_unused_result__;
5302 #define PERL_ARGS_ASSERT_GET_NUM        \
5303         assert(patptr); assert(lenptr)
5304
5305 STATIC const char *     S_group_end(pTHX_ const char *patptr, const char *patend, char ender);
5306 #define PERL_ARGS_ASSERT_GROUP_END      \
5307         assert(patptr); assert(patend)
5308 STATIC SV*      S_is_an_int(pTHX_ const char *s, STRLEN l)
5309                         __attribute__warn_unused_result__;
5310 #define PERL_ARGS_ASSERT_IS_AN_INT      \
5311         assert(s)
5312
5313 STATIC SSize_t  S_measure_struct(pTHX_ struct tempsym* symptr);
5314 #define PERL_ARGS_ASSERT_MEASURE_STRUCT \
5315         assert(symptr)
5316 STATIC SV*      S_mul128(pTHX_ SV *sv, U8 m);
5317 #define PERL_ARGS_ASSERT_MUL128 \
5318         assert(sv)
5319 STATIC char *   S_my_bytes_to_utf8(const U8 *start, STRLEN len, char *dest, const bool needs_swap)
5320                         __attribute__warn_unused_result__;
5321 #define PERL_ARGS_ASSERT_MY_BYTES_TO_UTF8       \
5322         assert(start); assert(dest)
5323
5324 STATIC bool     S_need_utf8(const char *pat, const char *patend);
5325 #define PERL_ARGS_ASSERT_NEED_UTF8      \
5326         assert(pat); assert(patend)
5327 STATIC bool     S_next_symbol(pTHX_ struct tempsym* symptr);
5328 #define PERL_ARGS_ASSERT_NEXT_SYMBOL    \
5329         assert(symptr)
5330 STATIC SV **    S_pack_rec(pTHX_ SV *cat, struct tempsym* symptr, SV **beglist, SV **endlist);
5331 #define PERL_ARGS_ASSERT_PACK_REC       \
5332         assert(cat); assert(symptr); assert(beglist); assert(endlist)
5333 STATIC char *   S_sv_exp_grow(pTHX_ SV *sv, STRLEN needed)
5334                         __attribute__warn_unused_result__;
5335 #define PERL_ARGS_ASSERT_SV_EXP_GROW    \
5336         assert(sv)
5337
5338 STATIC SSize_t  S_unpack_rec(pTHX_ struct tempsym* symptr, const char *s, const char *strbeg, const char *strend, const char **new_s);
5339 #define PERL_ARGS_ASSERT_UNPACK_REC     \
5340         assert(symptr); assert(s); assert(strbeg); assert(strend)
5341 #endif
5342 #if defined(PERL_IN_PP_SORT_C)
5343 STATIC I32      S_amagic_cmp(pTHX_ SV *const str1, SV *const str2);
5344 #define PERL_ARGS_ASSERT_AMAGIC_CMP     \
5345         assert(str1); assert(str2)
5346 STATIC I32      S_amagic_i_ncmp(pTHX_ SV *const a, SV *const b);
5347 #define PERL_ARGS_ASSERT_AMAGIC_I_NCMP  \
5348         assert(a); assert(b)
5349 STATIC I32      S_amagic_ncmp(pTHX_ SV *const a, SV *const b);
5350 #define PERL_ARGS_ASSERT_AMAGIC_NCMP    \
5351         assert(a); assert(b)
5352 STATIC I32      S_sortcv(pTHX_ SV *const a, SV *const b);
5353 #define PERL_ARGS_ASSERT_SORTCV \
5354         assert(a); assert(b)
5355 STATIC I32      S_sortcv_stacked(pTHX_ SV *const a, SV *const b);
5356 #define PERL_ARGS_ASSERT_SORTCV_STACKED \
5357         assert(a); assert(b)
5358 STATIC I32      S_sortcv_xsub(pTHX_ SV *const a, SV *const b);
5359 #define PERL_ARGS_ASSERT_SORTCV_XSUB    \
5360         assert(a); assert(b)
5361 STATIC I32      S_sv_i_ncmp(pTHX_ SV *const a, SV *const b);
5362 #define PERL_ARGS_ASSERT_SV_I_NCMP      \
5363         assert(a); assert(b)
5364 STATIC I32      S_sv_ncmp(pTHX_ SV *const a, SV *const b);
5365 #define PERL_ARGS_ASSERT_SV_NCMP        \
5366         assert(a); assert(b)
5367 #  if defined(USE_LOCALE_COLLATE)
5368 STATIC I32      S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2);
5369 #define PERL_ARGS_ASSERT_AMAGIC_CMP_LOCALE      \
5370         assert(str1); assert(str2)
5371 #  endif
5372 #endif
5373 #if defined(PERL_IN_PP_SYS_C)
5374 STATIC OP*      S_doform(pTHX_ CV *cv, GV *gv, OP *retop);
5375 #define PERL_ARGS_ASSERT_DOFORM \
5376         assert(cv); assert(gv)
5377 STATIC SV *     S_space_join_names_mortal(pTHX_ char *const *array);
5378 #endif
5379 #if defined(PERL_IN_REGCOMP_C)
5380 STATIC SV*      S__make_exactf_invlist(pTHX_ RExC_state_t *pRExC_state, regnode *node)
5381                         __attribute__warn_unused_result__;
5382 #define PERL_ARGS_ASSERT__MAKE_EXACTF_INVLIST   \
5383         assert(pRExC_state); assert(node)
5384
5385 STATIC void     S_add_above_Latin1_folds(pTHX_ RExC_state_t *pRExC_state, const U8 cp, SV** invlist);
5386 #define PERL_ARGS_ASSERT_ADD_ABOVE_LATIN1_FOLDS \
5387         assert(pRExC_state); assert(invlist)
5388 #ifndef PERL_NO_INLINE_FUNCTIONS
5389 PERL_STATIC_INLINE SV*  S_add_cp_to_invlist(pTHX_ SV* invlist, const UV cp)
5390                         __attribute__warn_unused_result__;
5391 #endif
5392
5393 STATIC U32      S_add_data(RExC_state_t* const pRExC_state, const char* const s, const U32 n)
5394                         __attribute__warn_unused_result__;
5395 #define PERL_ARGS_ASSERT_ADD_DATA       \
5396         assert(pRExC_state); assert(s)
5397
5398 STATIC AV*      S_add_multi_match(pTHX_ AV* multi_char_matches, SV* multi_string, const STRLEN cp_count);
5399 #define PERL_ARGS_ASSERT_ADD_MULTI_MATCH        \
5400         assert(multi_string)
5401 STATIC void     S_change_engine_size(pTHX_ RExC_state_t *pRExC_state, const Ptrdiff_t size);
5402 #define PERL_ARGS_ASSERT_CHANGE_ENGINE_SIZE     \
5403         assert(pRExC_state)
5404 STATIC const char *     S_cntrl_to_mnemonic(const U8 c)
5405                         __attribute__warn_unused_result__;
5406
5407 #ifndef PERL_NO_INLINE_FUNCTIONS
5408 PERL_STATIC_INLINE U8   S_compute_EXACTish(RExC_state_t *pRExC_state);
5409 #define PERL_ARGS_ASSERT_COMPUTE_EXACTISH       \
5410         assert(pRExC_state)
5411 #endif
5412 STATIC regnode *        S_construct_ahocorasick_from_trie(pTHX_ RExC_state_t *pRExC_state, regnode *source, U32 depth);
5413 #define PERL_ARGS_ASSERT_CONSTRUCT_AHOCORASICK_FROM_TRIE        \
5414         assert(pRExC_state); assert(source)
5415 STATIC int      S_edit_distance(const UV *src, const UV *tgt, const STRLEN x, const STRLEN y, const SSize_t maxDistance)
5416                         __attribute__warn_unused_result__;
5417 #define PERL_ARGS_ASSERT_EDIT_DISTANCE  \
5418         assert(src); assert(tgt)
5419
5420 STATIC SV *     S_get_ANYOFM_contents(pTHX_ const regnode * n)
5421                         __attribute__warn_unused_result__;
5422 #define PERL_ARGS_ASSERT_GET_ANYOFM_CONTENTS    \
5423         assert(n)
5424
5425 STATIC SV*      S_get_ANYOF_cp_list_for_ssc(pTHX_ const RExC_state_t *pRExC_state, const regnode_charclass* const node);
5426 #define PERL_ARGS_ASSERT_GET_ANYOF_CP_LIST_FOR_SSC      \
5427         assert(pRExC_state); assert(node)
5428 #ifndef PERL_NO_INLINE_FUNCTIONS
5429 PERL_STATIC_INLINE STRLEN*      S_get_invlist_iter_addr(SV* invlist)
5430                         __attribute__warn_unused_result__;
5431 #define PERL_ARGS_ASSERT_GET_INVLIST_ITER_ADDR  \
5432         assert(invlist)
5433 #endif
5434
5435 STATIC bool     S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state, regnode_offset* nodep, UV *code_point_p, int* cp_count, I32 *flagp, const bool strict, const U32 depth);
5436 #define PERL_ARGS_ASSERT_GROK_BSLASH_N  \
5437         assert(pRExC_state); assert(flagp)
5438 #ifndef PERL_NO_INLINE_FUNCTIONS
5439 PERL_STATIC_INLINE regnode_offset       S_handle_named_backref(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, char * parse_start, char ch);
5440 #define PERL_ARGS_ASSERT_HANDLE_NAMED_BACKREF   \
5441         assert(pRExC_state); assert(flagp); assert(parse_start)
5442 #endif
5443 STATIC int      S_handle_possible_posix(pTHX_ RExC_state_t *pRExC_state, const char* const s, char ** updated_parse_ptr, AV** posix_warnings, const bool check_only);
5444 #define PERL_ARGS_ASSERT_HANDLE_POSSIBLE_POSIX  \
5445         assert(pRExC_state); assert(s)
5446 STATIC regnode_offset   S_handle_regex_sets(pTHX_ RExC_state_t *pRExC_state, SV ** return_invlist, I32 *flagp, U32 depth, char * const oregcomp_parse);
5447 #define PERL_ARGS_ASSERT_HANDLE_REGEX_SETS      \
5448         assert(pRExC_state); assert(flagp); assert(oregcomp_parse)
5449 STATIC SV*      S_invlist_contents(pTHX_ SV* const invlist, const bool traditional_style)
5450                         __attribute__warn_unused_result__;
5451 #define PERL_ARGS_ASSERT_INVLIST_CONTENTS       \
5452         assert(invlist)
5453
5454 #ifndef PERL_NO_INLINE_FUNCTIONS
5455 PERL_STATIC_INLINE UV   S_invlist_highest(SV* const invlist)
5456                         __attribute__warn_unused_result__;
5457 #define PERL_ARGS_ASSERT_INVLIST_HIGHEST        \
5458         assert(invlist)
5459 #endif
5460
5461 #ifndef PERL_NO_INLINE_FUNCTIONS
5462 PERL_STATIC_INLINE bool S_invlist_is_iterating(SV* const invlist)
5463                         __attribute__warn_unused_result__;
5464 #define PERL_ARGS_ASSERT_INVLIST_IS_ITERATING   \
5465         assert(invlist)
5466 #endif
5467
5468 #ifndef PERL_NO_INLINE_FUNCTIONS
5469 PERL_STATIC_INLINE void S_invlist_iterfinish(SV* invlist);
5470 #define PERL_ARGS_ASSERT_INVLIST_ITERFINISH     \
5471         assert(invlist)
5472 #endif
5473 #ifndef PERL_NO_INLINE_FUNCTIONS
5474 PERL_STATIC_INLINE void S_invlist_iterinit(SV* invlist);
5475 #define PERL_ARGS_ASSERT_INVLIST_ITERINIT       \
5476         assert(invlist)
5477 #endif
5478 STATIC bool     S_invlist_iternext(SV* invlist, UV* start, UV* end)
5479                         __attribute__warn_unused_result__;
5480 #define PERL_ARGS_ASSERT_INVLIST_ITERNEXT       \
5481         assert(invlist); assert(start); assert(end)
5482
5483 STATIC bool     S_is_ssc_worth_it(const RExC_state_t * pRExC_state, const regnode_ssc * ssc);
5484 #define PERL_ARGS_ASSERT_IS_SSC_WORTH_IT        \
5485         assert(pRExC_state); assert(ssc)
5486 STATIC U32      S_join_exact(pTHX_ RExC_state_t *pRExC_state, regnode *scan, UV *min_subtract, bool *unfolded_multi_char, U32 flags, regnode *val, U32 depth);
5487 #define PERL_ARGS_ASSERT_JOIN_EXACT     \
5488         assert(pRExC_state); assert(scan); assert(min_subtract); assert(unfolded_multi_char)
5489 STATIC I32      S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch, regnode *first, regnode *last, regnode *tail, U32 word_count, U32 flags, U32 depth);
5490 #define PERL_ARGS_ASSERT_MAKE_TRIE      \
5491         assert(pRExC_state); assert(startbranch); assert(first); assert(last); assert(tail)
5492 STATIC bool     S_new_regcurly(const char *s, const char *e)
5493                         __attribute__warn_unused_result__;
5494 #define PERL_ARGS_ASSERT_NEW_REGCURLY   \
5495         assert(s); assert(e)
5496
5497 STATIC void     S_nextchar(pTHX_ RExC_state_t *pRExC_state);
5498 #define PERL_ARGS_ASSERT_NEXTCHAR       \
5499         assert(pRExC_state)
5500 STATIC void     S_output_posix_warnings(pTHX_ RExC_state_t *pRExC_state, AV* posix_warnings);
5501 #define PERL_ARGS_ASSERT_OUTPUT_POSIX_WARNINGS  \
5502         assert(pRExC_state); assert(posix_warnings)
5503 STATIC void     S_parse_lparen_question_flags(pTHX_ RExC_state_t *pRExC_state);
5504 #define PERL_ARGS_ASSERT_PARSE_LPAREN_QUESTION_FLAGS    \
5505         assert(pRExC_state)
5506 PERL_CALLCONV SV *      Perl_parse_uniprop_string(pTHX_ const char * const name, const Size_t name_len, const bool to_fold, bool * invert);
5507 #define PERL_ARGS_ASSERT_PARSE_UNIPROP_STRING   \
5508         assert(name); assert(invert)
5509 STATIC void     S_populate_ANYOF_from_invlist(pTHX_ regnode *node, SV** invlist_ptr);
5510 #define PERL_ARGS_ASSERT_POPULATE_ANYOF_FROM_INVLIST    \
5511         assert(node); assert(invlist_ptr)
5512 PERL_STATIC_NO_RET void S_re_croak2(pTHX_ bool utf8, const char* pat1, const char* pat2, ...)
5513                         __attribute__noreturn__;
5514 #define PERL_ARGS_ASSERT_RE_CROAK2      \
5515         assert(pat1); assert(pat2)
5516
5517 STATIC regnode_offset   S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth);
5518 #define PERL_ARGS_ASSERT_REG    \
5519         assert(pRExC_state); assert(flagp)
5520 STATIC regnode_offset   S_reg2Lanode(pTHX_ RExC_state_t *pRExC_state, const U8 op, const U32 arg1, const I32 arg2);
5521 #define PERL_ARGS_ASSERT_REG2LANODE     \
5522         assert(pRExC_state)
5523 STATIC regnode_offset   S_reg_node(pTHX_ RExC_state_t *pRExC_state, U8 op);
5524 #define PERL_ARGS_ASSERT_REG_NODE       \
5525         assert(pRExC_state)
5526 STATIC SV *     S_reg_scan_name(pTHX_ RExC_state_t *pRExC_state, U32 flags);
5527 #define PERL_ARGS_ASSERT_REG_SCAN_NAME  \
5528         assert(pRExC_state)
5529 #ifndef PERL_NO_INLINE_FUNCTIONS
5530 PERL_STATIC_INLINE char *       S_reg_skipcomment(RExC_state_t *pRExC_state, char * p);
5531 #define PERL_ARGS_ASSERT_REG_SKIPCOMMENT        \
5532         assert(pRExC_state); assert(p)
5533 #endif
5534 STATIC regnode_offset   S_reganode(pTHX_ RExC_state_t *pRExC_state, U8 op, U32 arg);
5535 #define PERL_ARGS_ASSERT_REGANODE       \
5536         assert(pRExC_state)
5537 STATIC regnode_offset   S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth);
5538 #define PERL_ARGS_ASSERT_REGATOM        \
5539         assert(pRExC_state); assert(flagp)
5540 STATIC regnode_offset   S_regbranch(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, I32 first, U32 depth);
5541 #define PERL_ARGS_ASSERT_REGBRANCH      \
5542         assert(pRExC_state); assert(flagp)
5543 STATIC regnode_offset   S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth, const bool stop_at_1, bool allow_multi_fold, const bool silence_non_portable, const bool strict, bool optimizable, SV** ret_invlist);
5544 #define PERL_ARGS_ASSERT_REGCLASS       \
5545         assert(pRExC_state); assert(flagp)
5546 STATIC unsigned int     S_regex_set_precedence(const U8 my_operator)
5547                         __attribute__warn_unused_result__;
5548
5549 STATIC void     S_reginsert(pTHX_ RExC_state_t *pRExC_state, const U8 op, const regnode_offset operand, const U32 depth);
5550 #define PERL_ARGS_ASSERT_REGINSERT      \
5551         assert(pRExC_state)
5552 STATIC regnode_offset   S_regnode_guts(pTHX_ RExC_state_t *pRExC_state, const U8 op, const STRLEN extra_len, const char* const name);
5553 #define PERL_ARGS_ASSERT_REGNODE_GUTS   \
5554         assert(pRExC_state); assert(name)
5555 STATIC regnode_offset   S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth);
5556 #define PERL_ARGS_ASSERT_REGPIECE       \
5557         assert(pRExC_state); assert(flagp)
5558 STATIC void     S_regtail(pTHX_ RExC_state_t * pRExC_state, const regnode_offset p, const regnode_offset val, const U32 depth);
5559 #define PERL_ARGS_ASSERT_REGTAIL        \
5560         assert(pRExC_state); assert(p); assert(val)
5561 STATIC void     S_scan_commit(pTHX_ const RExC_state_t *pRExC_state, struct scan_data_t *data, SSize_t *minlenp, int is_inf);
5562 #define PERL_ARGS_ASSERT_SCAN_COMMIT    \
5563         assert(pRExC_state); assert(data); assert(minlenp)
5564 STATIC void     S_set_ANYOF_arg(pTHX_ RExC_state_t* const pRExC_state, regnode* const node, SV* const cp_list, SV* const runtime_defns, SV* const only_utf8_locale_list, SV* const swash, const bool has_user_defined_property);
5565 #define PERL_ARGS_ASSERT_SET_ANYOF_ARG  \
5566         assert(pRExC_state); assert(node)
5567 STATIC void     S_set_regex_pv(pTHX_ RExC_state_t *pRExC_state, REGEXP *Rx);
5568 #define PERL_ARGS_ASSERT_SET_REGEX_PV   \
5569         assert(pRExC_state); assert(Rx)
5570 STATIC void     S_skip_to_be_ignored_text(pTHX_ RExC_state_t *pRExC_state, char ** p, const bool force_to_xmod);
5571 #define PERL_ARGS_ASSERT_SKIP_TO_BE_IGNORED_TEXT        \
5572         assert(pRExC_state); assert(p)
5573 #ifndef PERL_NO_INLINE_FUNCTIONS
5574 PERL_STATIC_INLINE void S_ssc_add_range(pTHX_ regnode_ssc *ssc, UV const start, UV const end);
5575 #define PERL_ARGS_ASSERT_SSC_ADD_RANGE  \
5576         assert(ssc)
5577 #endif
5578 STATIC void     S_ssc_and(pTHX_ const RExC_state_t *pRExC_state, regnode_ssc *ssc, const regnode_charclass *and_with);
5579 #define PERL_ARGS_ASSERT_SSC_AND        \
5580         assert(pRExC_state); assert(ssc); assert(and_with)
5581 STATIC void     S_ssc_anything(pTHX_ regnode_ssc *ssc);
5582 #define PERL_ARGS_ASSERT_SSC_ANYTHING   \
5583         assert(ssc)
5584 #ifndef PERL_NO_INLINE_FUNCTIONS
5585 PERL_STATIC_INLINE void S_ssc_clear_locale(regnode_ssc *ssc);
5586 #define PERL_ARGS_ASSERT_SSC_CLEAR_LOCALE       \
5587         assert(ssc)
5588 #endif
5589 #ifndef PERL_NO_INLINE_FUNCTIONS
5590 PERL_STATIC_INLINE void S_ssc_cp_and(pTHX_ regnode_ssc *ssc, UV const cp);
5591 #define PERL_ARGS_ASSERT_SSC_CP_AND     \
5592         assert(ssc)
5593 #endif
5594 STATIC void     S_ssc_finalize(pTHX_ RExC_state_t *pRExC_state, regnode_ssc *ssc);
5595 #define PERL_ARGS_ASSERT_SSC_FINALIZE   \
5596         assert(pRExC_state); assert(ssc)
5597 STATIC void     S_ssc_init(pTHX_ const RExC_state_t *pRExC_state, regnode_ssc *ssc);
5598 #define PERL_ARGS_ASSERT_SSC_INIT       \
5599         assert(pRExC_state); assert(ssc)
5600 #ifndef PERL_NO_INLINE_FUNCTIONS
5601 PERL_STATIC_INLINE void S_ssc_intersection(pTHX_ regnode_ssc *ssc, SV* const invlist, const bool invert_2nd);
5602 #define PERL_ARGS_ASSERT_SSC_INTERSECTION       \
5603         assert(ssc); assert(invlist)
5604 #endif
5605 STATIC int      S_ssc_is_anything(const regnode_ssc *ssc)
5606                         __attribute__warn_unused_result__;
5607 #define PERL_ARGS_ASSERT_SSC_IS_ANYTHING        \
5608         assert(ssc)
5609
5610 STATIC int      S_ssc_is_cp_posixl_init(const RExC_state_t *pRExC_state, const regnode_ssc *ssc)
5611                         __attribute__warn_unused_result__;
5612 #define PERL_ARGS_ASSERT_SSC_IS_CP_POSIXL_INIT  \
5613         assert(pRExC_state); assert(ssc)
5614
5615 STATIC void     S_ssc_or(pTHX_ const RExC_state_t *pRExC_state, regnode_ssc *ssc, const regnode_charclass *or_with);
5616 #define PERL_ARGS_ASSERT_SSC_OR \
5617         assert(pRExC_state); assert(ssc); assert(or_with)
5618 #ifndef PERL_NO_INLINE_FUNCTIONS
5619 PERL_STATIC_INLINE void S_ssc_union(pTHX_ regnode_ssc *ssc, SV* const invlist, const bool invert_2nd);
5620 #define PERL_ARGS_ASSERT_SSC_UNION      \
5621         assert(ssc); assert(invlist)
5622 #endif
5623 STATIC SSize_t  S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, SSize_t *minlenp, SSize_t *deltap, regnode *last, struct scan_data_t *data, I32 stopparen, U32 recursed_depth, regnode_ssc *and_withp, U32 flags, U32 depth);
5624 #define PERL_ARGS_ASSERT_STUDY_CHUNK    \
5625         assert(pRExC_state); assert(scanp); assert(minlenp); assert(deltap); assert(last)
5626 #endif
5627 #if defined(PERL_IN_REGCOMP_C) || defined (PERL_IN_DUMP_C)
5628 PERL_CALLCONV void      Perl__invlist_dump(pTHX_ PerlIO *file, I32 level, const char* const indent, SV* const invlist);
5629 #define PERL_ARGS_ASSERT__INVLIST_DUMP  \
5630         assert(file); assert(indent); assert(invlist)
5631 #endif
5632 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_PERL_C) || defined(PERL_IN_UTF8_C)
5633 PERL_CALLCONV bool      Perl__invlistEQ(pTHX_ SV* const a, SV* const b, const bool complement_b);
5634 #define PERL_ARGS_ASSERT__INVLISTEQ     \
5635         assert(a); assert(b)
5636 PERL_CALLCONV SV*       Perl__new_invlist_C_array(pTHX_ const UV* const list)
5637                         __attribute__warn_unused_result__;
5638 #define PERL_ARGS_ASSERT__NEW_INVLIST_C_ARRAY   \
5639         assert(list)
5640
5641 #endif
5642 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C)
5643 PERL_CALLCONV SV*       Perl__get_regclass_nonbitmap_data(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **lonly_utf8_locale, SV **output_invlist);
5644 #define PERL_ARGS_ASSERT__GET_REGCLASS_NONBITMAP_DATA   \
5645         assert(node)
5646 PERL_CALLCONV int       Perl_re_printf(pTHX_ const char *fmt, ...);
5647 #define PERL_ARGS_ASSERT_RE_PRINTF      \
5648         assert(fmt)
5649 PERL_CALLCONV void      Perl_regprop(pTHX_ const regexp *prog, SV* sv, const regnode* o, const regmatch_info *reginfo, const RExC_state_t *pRExC_state);
5650 #define PERL_ARGS_ASSERT_REGPROP        \
5651         assert(sv); assert(o)
5652 #endif
5653 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C) || defined(PERL_IN_TOKE_C) || defined(PERL_IN_UTF8_C)
5654 PERL_CALLCONV SV*       Perl__get_swash_invlist(pTHX_ SV* const swash)
5655                         __attribute__warn_unused_result__;
5656 #define PERL_ARGS_ASSERT__GET_SWASH_INVLIST     \
5657         assert(swash)
5658
5659 #ifndef PERL_NO_INLINE_FUNCTIONS
5660 PERL_STATIC_INLINE bool S__invlist_contains_cp(SV* const invlist, const UV cp)
5661                         __attribute__warn_unused_result__;
5662 #define PERL_ARGS_ASSERT__INVLIST_CONTAINS_CP   \
5663         assert(invlist)
5664 #endif
5665
5666 #ifndef PERL_NO_INLINE_FUNCTIONS
5667 PERL_STATIC_INLINE UV   S__invlist_len(SV* const invlist)
5668                         __attribute__warn_unused_result__;
5669 #define PERL_ARGS_ASSERT__INVLIST_LEN   \
5670         assert(invlist)
5671 #endif
5672
5673 PERL_CALLCONV SSize_t   Perl__invlist_search(SV* const invlist, const UV cp)
5674                         __attribute__warn_unused_result__;
5675 #define PERL_ARGS_ASSERT__INVLIST_SEARCH        \
5676         assert(invlist)
5677
5678 #ifndef PERL_NO_INLINE_FUNCTIONS
5679 PERL_STATIC_INLINE bool*        S_get_invlist_offset_addr(SV* invlist)
5680                         __attribute__warn_unused_result__;
5681 #define PERL_ARGS_ASSERT_GET_INVLIST_OFFSET_ADDR        \
5682         assert(invlist)
5683 #endif
5684
5685 #ifndef PERL_NO_INLINE_FUNCTIONS
5686 PERL_STATIC_INLINE UV*  S_invlist_array(SV* const invlist)
5687                         __attribute__warn_unused_result__;
5688 #define PERL_ARGS_ASSERT_INVLIST_ARRAY  \
5689         assert(invlist)
5690 #endif
5691
5692 #ifndef PERL_NO_INLINE_FUNCTIONS
5693 PERL_STATIC_INLINE bool S_is_invlist(SV* const invlist)
5694                         __attribute__warn_unused_result__;
5695 #define PERL_ARGS_ASSERT_IS_INVLIST     \
5696         assert(invlist)
5697 #endif
5698
5699 #endif
5700 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C) || defined(PERL_IN_UTF8_C) || defined(PERL_IN_TOKE_C)
5701 PERL_CALLCONV SV*       Perl__core_swash_init(pTHX_ const char* pkg, const char* name, SV* listsv, I32 minbits, I32 none, SV* invlist, U8* const flags_p);
5702 #define PERL_ARGS_ASSERT__CORE_SWASH_INIT       \
5703         assert(pkg); assert(name); assert(listsv)
5704 #endif
5705 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_SV_C)
5706 PERL_CALLCONV SV*       Perl_invlist_clone(pTHX_ SV* const invlist, SV* newlist);
5707 #define PERL_ARGS_ASSERT_INVLIST_CLONE  \
5708         assert(invlist)
5709 #endif
5710 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_TOKE_C) || defined(PERL_IN_DQUOTE_C)
5711 #ifndef PERL_NO_INLINE_FUNCTIONS
5712 PERL_STATIC_INLINE char*        S_form_short_octal_warning(pTHX_ const char * const s, const STRLEN len)
5713                         __attribute__warn_unused_result__;
5714 #define PERL_ARGS_ASSERT_FORM_SHORT_OCTAL_WARNING       \
5715         assert(s)
5716 #endif
5717
5718 PERL_CALLCONV char      Perl_grok_bslash_c(pTHX_ const char source, const bool output_warning)
5719                         __attribute__warn_unused_result__;
5720
5721 PERL_CALLCONV bool      Perl_grok_bslash_o(pTHX_ char** s, const char* const send, UV* uv, const char** error_msg, const bool output_warning, const bool strict, const bool silence_non_portable, const bool utf8)
5722                         __attribute__warn_unused_result__;
5723 #define PERL_ARGS_ASSERT_GROK_BSLASH_O  \
5724         assert(s); assert(send); assert(uv); assert(error_msg)
5725
5726 PERL_CALLCONV bool      Perl_grok_bslash_x(pTHX_ char** s, const char* const send, UV* uv, const char** error_msg, const bool output_warning, const bool strict, const bool silence_non_portable, const bool utf8)
5727                         __attribute__warn_unused_result__;
5728 #define PERL_ARGS_ASSERT_GROK_BSLASH_X  \
5729         assert(s); assert(send); assert(uv); assert(error_msg)
5730
5731 #ifndef PERL_NO_INLINE_FUNCTIONS
5732 PERL_STATIC_INLINE I32  S_regcurly(const char *s)
5733                         __attribute__warn_unused_result__;
5734 #define PERL_ARGS_ASSERT_REGCURLY       \
5735         assert(s)
5736 #endif
5737
5738 #endif
5739 #if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_UTF8_C)
5740 PERL_CALLCONV SV*       Perl__add_range_to_invlist(pTHX_ SV* invlist, UV start, UV end)
5741                         __attribute__warn_unused_result__;
5742
5743 /* PERL_CALLCONV void   _invlist_intersection(pTHX_ SV* const a, SV* const b, SV** i); */
5744 PERL_CALLCONV void      Perl__invlist_intersection_maybe_complement_2nd(pTHX_ SV* const a, SV* const b, const bool complement_b, SV** i);
5745 #define PERL_ARGS_ASSERT__INVLIST_INTERSECTION_MAYBE_COMPLEMENT_2ND     \
5746         assert(b); assert(i)
5747 PERL_CALLCONV void      Perl__invlist_invert(pTHX_ SV* const invlist);
5748 #define PERL_ARGS_ASSERT__INVLIST_INVERT        \
5749         assert(invlist)
5750 PERL_CALLCONV void      Perl__invlist_populate_swatch(SV* const invlist, const UV start, const UV end, U8* swatch);
5751 #define PERL_ARGS_ASSERT__INVLIST_POPULATE_SWATCH       \
5752         assert(invlist); assert(swatch)
5753 /* PERL_CALLCONV void   _invlist_subtract(pTHX_ SV* const a, SV* const b, SV** result); */
5754 /* PERL_CALLCONV void   _invlist_union(pTHX_ SV* const a, SV* const b, SV** output); */
5755 PERL_CALLCONV void      Perl__invlist_union_maybe_complement_2nd(pTHX_ SV* const a, SV* const b, const bool complement_b, SV** output);
5756 #define PERL_ARGS_ASSERT__INVLIST_UNION_MAYBE_COMPLEMENT_2ND    \
5757         assert(b); assert(output)
5758 PERL_CALLCONV SV*       Perl__new_invlist(pTHX_ IV initial_size)
5759                         __attribute__warn_unused_result__;
5760
5761 PERL_CALLCONV SV*       Perl__setup_canned_invlist(pTHX_ const STRLEN size, const UV element0, UV** other_elements_ptr)
5762                         __attribute__warn_unused_result__;
5763 #define PERL_ARGS_ASSERT__SETUP_CANNED_INVLIST  \
5764         assert(other_elements_ptr)
5765
5766 PERL_CALLCONV SV*       Perl__swash_to_invlist(pTHX_ SV* const swash)
5767                         __attribute__warn_unused_result__;
5768 #define PERL_ARGS_ASSERT__SWASH_TO_INVLIST      \
5769         assert(swash)
5770
5771 #endif
5772 #if defined(PERL_IN_REGEXEC_C)
5773 STATIC LB_enum  S_advance_one_LB(pTHX_ U8 ** curpos, const U8 * const strend, const bool utf8_target)
5774                         __attribute__warn_unused_result__;
5775 #define PERL_ARGS_ASSERT_ADVANCE_ONE_LB \
5776         assert(curpos); assert(strend)
5777
5778 STATIC SB_enum  S_advance_one_SB(pTHX_ U8 ** curpos, const U8 * const strend, const bool utf8_target)
5779                         __attribute__warn_unused_result__;
5780 #define PERL_ARGS_ASSERT_ADVANCE_ONE_SB \
5781         assert(curpos); assert(strend)
5782
5783 STATIC WB_enum  S_advance_one_WB(pTHX_ U8 ** curpos, const U8 * const strend, const bool utf8_target, const bool skip_Extend_Format)
5784                         __attribute__warn_unused_result__;
5785 #define PERL_ARGS_ASSERT_ADVANCE_ONE_WB \
5786         assert(curpos); assert(strend)
5787
5788 STATIC GCB_enum S_backup_one_GCB(pTHX_ const U8 * const strbeg, U8 ** curpos, const bool utf8_target)
5789                         __attribute__warn_unused_result__;
5790 #define PERL_ARGS_ASSERT_BACKUP_ONE_GCB \
5791         assert(strbeg); assert(curpos)
5792
5793 STATIC LB_enum  S_backup_one_LB(pTHX_ const U8 * const strbeg, U8 ** curpos, const bool utf8_target)
5794                         __attribute__warn_unused_result__;
5795 #define PERL_ARGS_ASSERT_BACKUP_ONE_LB  \
5796         assert(strbeg); assert(curpos)
5797
5798 STATIC SB_enum  S_backup_one_SB(pTHX_ const U8 * const strbeg, U8 ** curpos, const bool utf8_target)
5799                         __attribute__warn_unused_result__;
5800 #define PERL_ARGS_ASSERT_BACKUP_ONE_SB  \
5801         assert(strbeg); assert(curpos)
5802
5803 STATIC WB_enum  S_backup_one_WB(pTHX_ WB_enum * previous, const U8 * const strbeg, U8 ** curpos, const bool utf8_target)
5804                         __attribute__warn_unused_result__;
5805 #define PERL_ARGS_ASSERT_BACKUP_ONE_WB  \
5806         assert(previous); assert(strbeg); assert(curpos)
5807
5808 STATIC char*    S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s, const char *strend, regmatch_info *reginfo)
5809                         __attribute__warn_unused_result__;
5810 #define PERL_ARGS_ASSERT_FIND_BYCLASS   \
5811         assert(prog); assert(c); assert(s); assert(strend)
5812
5813 STATIC U8 *     S_find_next_masked(U8 * s, const U8 * send, const U8 byte, const U8 mask)
5814                         __attribute__warn_unused_result__;
5815 #define PERL_ARGS_ASSERT_FIND_NEXT_MASKED       \
5816         assert(s); assert(send)
5817
5818 STATIC U8 *     S_find_span_end(U8* s, const U8 * send, const U8 span_byte)
5819                         __attribute__warn_unused_result__;
5820 #define PERL_ARGS_ASSERT_FIND_SPAN_END  \
5821         assert(s); assert(send)
5822
5823 STATIC U8 *     S_find_span_end_mask(U8 * s, const U8 * send, const U8 span_byte, const U8 mask)
5824                         __attribute__warn_unused_result__;
5825 #define PERL_ARGS_ASSERT_FIND_SPAN_END_MASK     \
5826         assert(s); assert(send)
5827
5828 #ifndef PERL_NO_INLINE_FUNCTIONS
5829 PERL_STATIC_INLINE I32  S_foldEQ_latin1_s2_folded(const char* a, const char* b, I32 len);
5830 #define PERL_ARGS_ASSERT_FOLDEQ_LATIN1_S2_FOLDED        \
5831         assert(a); assert(b)
5832 #endif
5833 STATIC bool     S_isFOO_utf8_lc(pTHX_ const U8 classnum, const U8* character, const U8* e)
5834                         __attribute__warn_unused_result__;
5835 #define PERL_ARGS_ASSERT_ISFOO_UTF8_LC  \
5836         assert(character); assert(e)
5837
5838 STATIC bool     S_isGCB(pTHX_ const GCB_enum before, const GCB_enum after, const U8 * const strbeg, const U8 * const curpos, const bool utf8_target)
5839                         __attribute__warn_unused_result__;
5840 #define PERL_ARGS_ASSERT_ISGCB  \
5841         assert(strbeg); assert(curpos)
5842
5843 STATIC bool     S_isLB(pTHX_ LB_enum before, LB_enum after, const U8 * const strbeg, const U8 * const curpos, const U8 * const strend, const bool utf8_target)
5844                         __attribute__warn_unused_result__;
5845 #define PERL_ARGS_ASSERT_ISLB   \
5846         assert(strbeg); assert(curpos); assert(strend)
5847
5848 STATIC bool     S_isSB(pTHX_ SB_enum before, SB_enum after, const U8 * const strbeg, const U8 * const curpos, const U8 * const strend, const bool utf8_target)
5849                         __attribute__warn_unused_result__;
5850 #define PERL_ARGS_ASSERT_ISSB   \
5851         assert(strbeg); assert(curpos); assert(strend)
5852
5853 STATIC bool     S_isWB(pTHX_ WB_enum previous, WB_enum before, WB_enum after, const U8 * const strbeg, const U8 * const curpos, const U8 * const strend, const bool utf8_target)
5854                         __attribute__warn_unused_result__;
5855 #define PERL_ARGS_ASSERT_ISWB   \
5856         assert(strbeg); assert(curpos); assert(strend)
5857
5858 STATIC I32      S_reg_check_named_buff_matched(const regexp *rex, const regnode *scan)
5859                         __attribute__warn_unused_result__;
5860 #define PERL_ARGS_ASSERT_REG_CHECK_NAMED_BUFF_MATCHED   \
5861         assert(rex); assert(scan)
5862
5863 STATIC void     S_regcp_restore(pTHX_ regexp *rex, I32 ix, U32 *maxopenparen_p _pDEPTH);
5864 #define PERL_ARGS_ASSERT_REGCP_RESTORE  \
5865         assert(rex); assert(maxopenparen_p)
5866 STATIC void     S_regcppop(pTHX_ regexp *rex, U32 *maxopenparen_p _pDEPTH);
5867 #define PERL_ARGS_ASSERT_REGCPPOP       \
5868         assert(rex); assert(maxopenparen_p)
5869 STATIC CHECKPOINT       S_regcppush(pTHX_ const regexp *rex, I32 parenfloor, U32 maxopenparen _pDEPTH);
5870 #define PERL_ARGS_ASSERT_REGCPPUSH      \
5871         assert(rex)
5872 STATIC U8*      S_reghop3(U8 *s, SSize_t off, const U8 *lim)
5873                         __attribute__warn_unused_result__;
5874 #define PERL_ARGS_ASSERT_REGHOP3        \
5875         assert(s); assert(lim)
5876
5877 STATIC U8*      S_reghop4(U8 *s, SSize_t off, const U8 *llim, const U8 *rlim)
5878                         __attribute__warn_unused_result__;
5879 #define PERL_ARGS_ASSERT_REGHOP4        \
5880         assert(s); assert(llim); assert(rlim)
5881
5882 STATIC U8*      S_reghopmaybe3(U8 *s, SSize_t off, const U8 * const lim)
5883                         __attribute__warn_unused_result__;
5884 #define PERL_ARGS_ASSERT_REGHOPMAYBE3   \
5885         assert(s); assert(lim)
5886
5887 STATIC bool     S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8 * const p, const U8 * const p_end, bool const utf8_target)
5888                         __attribute__warn_unused_result__;
5889 #define PERL_ARGS_ASSERT_REGINCLASS     \
5890         assert(n); assert(p); assert(p_end)
5891
5892 STATIC SSize_t  S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
5893                         __attribute__warn_unused_result__;
5894 #define PERL_ARGS_ASSERT_REGMATCH       \
5895         assert(reginfo); assert(startpos); assert(prog)
5896
5897 STATIC I32      S_regrepeat(pTHX_ regexp *prog, char **startposp, const regnode *p, regmatch_info *const reginfo, I32 max _pDEPTH)
5898                         __attribute__warn_unused_result__;
5899 #define PERL_ARGS_ASSERT_REGREPEAT      \
5900         assert(prog); assert(startposp); assert(p); assert(reginfo)
5901
5902 STATIC bool     S_regtry(pTHX_ regmatch_info *reginfo, char **startposp)
5903                         __attribute__warn_unused_result__;
5904 #define PERL_ARGS_ASSERT_REGTRY \
5905         assert(reginfo); assert(startposp)
5906
5907 STATIC bool     S_to_byte_substr(pTHX_ regexp * prog);
5908 #define PERL_ARGS_ASSERT_TO_BYTE_SUBSTR \
5909         assert(prog)
5910 STATIC void     S_to_utf8_substr(pTHX_ regexp * prog);
5911 #define PERL_ARGS_ASSERT_TO_UTF8_SUBSTR \
5912         assert(prog)
5913 #endif
5914 #if defined(PERL_IN_REGEXEC_C) || defined(PERL_IN_TOKE_C)
5915 PERL_CALLCONV bool      Perl__is_grapheme(pTHX_ const U8 * strbeg, const U8 * s, const U8 *strend, const UV cp)
5916                         __attribute__warn_unused_result__;
5917 #define PERL_ARGS_ASSERT__IS_GRAPHEME   \
5918         assert(strbeg); assert(s); assert(strend)
5919
5920 #endif
5921 #if defined(PERL_IN_REGEXEC_C) || defined(PERL_IN_UTF8_C)
5922 PERL_CALLCONV bool      Perl_isFOO_lc(pTHX_ const U8 classnum, const U8 character)
5923                         __attribute__warn_unused_result__;
5924
5925 #endif
5926 #if defined(PERL_IN_SCOPE_C)
5927 STATIC void     S_save_pushptri32ptr(pTHX_ void *const ptr1, const I32 i, void *const ptr2, const int type);
5928 STATIC SV*      S_save_scalar_at(pTHX_ SV **sptr, const U32 flags);
5929 #define PERL_ARGS_ASSERT_SAVE_SCALAR_AT \
5930         assert(sptr)
5931 #endif
5932 #if defined(PERL_IN_SV_C)
5933 STATIC char *   S_F0convert(NV nv, char *const endbuf, STRLEN *const len);
5934 #define PERL_ARGS_ASSERT_F0CONVERT      \
5935         assert(endbuf); assert(len)
5936 STATIC void     S_anonymise_cv_maybe(pTHX_ GV *gv, CV *cv);
5937 #define PERL_ARGS_ASSERT_ANONYMISE_CV_MAYBE     \
5938         assert(gv); assert(cv)
5939 STATIC void     S_assert_uft8_cache_coherent(pTHX_ const char *const func, STRLEN from_cache, STRLEN real, SV *const sv);
5940 #define PERL_ARGS_ASSERT_ASSERT_UFT8_CACHE_COHERENT     \
5941         assert(func); assert(sv)
5942 STATIC bool     S_curse(pTHX_ SV * const sv, const bool check_refcnt);
5943 #define PERL_ARGS_ASSERT_CURSE  \
5944         assert(sv)
5945 STATIC STRLEN   S_expect_number(pTHX_ const char **const pattern)
5946                         __attribute__warn_unused_result__;
5947 #define PERL_ARGS_ASSERT_EXPECT_NUMBER  \
5948         assert(pattern)
5949
5950 STATIC SSize_t  S_find_array_subscript(pTHX_ const AV *const av, const SV *const val);
5951 #define PERL_ARGS_ASSERT_FIND_ARRAY_SUBSCRIPT   \
5952         assert(val)
5953 STATIC SV *     S_find_hash_subscript(pTHX_ const HV *const hv, const SV *const val);
5954 #define PERL_ARGS_ASSERT_FIND_HASH_SUBSCRIPT    \
5955         assert(val)
5956 STATIC SV*      S_find_uninit_var(pTHX_ const OP *const obase, const SV *const uninit_sv, bool match, const char **desc_p);
5957 #define PERL_ARGS_ASSERT_FIND_UNINIT_VAR        \
5958         assert(desc_p)
5959 STATIC bool     S_glob_2number(pTHX_ GV* const gv);
5960 #define PERL_ARGS_ASSERT_GLOB_2NUMBER   \
5961         assert(gv)
5962 STATIC void     S_glob_assign_glob(pTHX_ SV *const dstr, SV *const sstr, const int dtype);
5963 #define PERL_ARGS_ASSERT_GLOB_ASSIGN_GLOB       \
5964         assert(dstr); assert(sstr)
5965 STATIC SV *     S_more_sv(pTHX);
5966 STATIC void     S_not_a_number(pTHX_ SV *const sv);
5967 #define PERL_ARGS_ASSERT_NOT_A_NUMBER   \
5968         assert(sv)
5969 STATIC void     S_not_incrementable(pTHX_ SV *const sv);
5970 #define PERL_ARGS_ASSERT_NOT_INCREMENTABLE      \
5971         assert(sv)
5972 STATIC PTR_TBL_ENT_t *  S_ptr_table_find(PTR_TBL_t *const tbl, const void *const sv)
5973                         __attribute__warn_unused_result__;
5974 #define PERL_ARGS_ASSERT_PTR_TABLE_FIND \
5975         assert(tbl)
5976
5977 STATIC bool     S_sv_2iuv_common(pTHX_ SV *const sv);
5978 #define PERL_ARGS_ASSERT_SV_2IUV_COMMON \
5979         assert(sv)
5980 STATIC void     S_sv_add_arena(pTHX_ char *const ptr, const U32 size, const U32 flags);
5981 #define PERL_ARGS_ASSERT_SV_ADD_ARENA   \
5982         assert(ptr)
5983 STATIC const char *     S_sv_display(pTHX_ SV *const sv, char *tmpbuf, STRLEN tmpbuf_size);
5984 #define PERL_ARGS_ASSERT_SV_DISPLAY     \
5985         assert(sv); assert(tmpbuf)
5986 STATIC STRLEN   S_sv_pos_b2u_midway(pTHX_ const U8 *const s, const U8 *const target, const U8 *end, STRLEN endu);
5987 #define PERL_ARGS_ASSERT_SV_POS_B2U_MIDWAY      \
5988         assert(s); assert(target); assert(end)
5989 STATIC STRLEN   S_sv_pos_u2b_cached(pTHX_ SV *const sv, MAGIC **const mgp, const U8 *const start, const U8 *const send, STRLEN uoffset, STRLEN uoffset0, STRLEN boffset0);
5990 #define PERL_ARGS_ASSERT_SV_POS_U2B_CACHED      \
5991         assert(sv); assert(mgp); assert(start); assert(send)
5992 STATIC STRLEN   S_sv_pos_u2b_forwards(const U8 *const start, const U8 *const send, STRLEN *const uoffset, bool *const at_end);
5993 #define PERL_ARGS_ASSERT_SV_POS_U2B_FORWARDS    \
5994         assert(start); assert(send); assert(uoffset); assert(at_end)
5995 STATIC STRLEN   S_sv_pos_u2b_midway(const U8 *const start, const U8 *send, STRLEN uoffset, const STRLEN uend);
5996 #define PERL_ARGS_ASSERT_SV_POS_U2B_MIDWAY      \
5997         assert(start); assert(send)
5998 #ifndef PERL_NO_INLINE_FUNCTIONS
5999 PERL_STATIC_INLINE void S_sv_unglob(pTHX_ SV *const sv, U32 flags);
6000 #define PERL_ARGS_ASSERT_SV_UNGLOB      \
6001         assert(sv)
6002 #endif
6003 #ifndef PERL_NO_INLINE_FUNCTIONS
6004 PERL_STATIC_INLINE char *       S_uiv_2buf(char *const buf, const IV iv, UV uv, const int is_uv, char **const peob)
6005                         __attribute__warn_unused_result__;
6006 #define PERL_ARGS_ASSERT_UIV_2BUF       \
6007         assert(buf); assert(peob)
6008 #endif
6009
6010 STATIC void     S_utf8_mg_len_cache_update(pTHX_ SV *const sv, MAGIC **const mgp, const STRLEN ulen);
6011 #define PERL_ARGS_ASSERT_UTF8_MG_LEN_CACHE_UPDATE       \
6012         assert(sv); assert(mgp)
6013 STATIC void     S_utf8_mg_pos_cache_update(pTHX_ SV *const sv, MAGIC **const mgp, const STRLEN byte, const STRLEN utf8, const STRLEN blen);
6014 #define PERL_ARGS_ASSERT_UTF8_MG_POS_CACHE_UPDATE       \
6015         assert(sv); assert(mgp)
6016 STATIC I32      S_visit(pTHX_ SVFUNC_t f, const U32 flags, const U32 mask);
6017 #define PERL_ARGS_ASSERT_VISIT  \
6018         assert(f)
6019 #  if defined(USE_ITHREADS)
6020 STATIC SV*      S_sv_dup_common(pTHX_ const SV *const sstr, CLONE_PARAMS *const param)
6021                         __attribute__warn_unused_result__;
6022 #define PERL_ARGS_ASSERT_SV_DUP_COMMON  \
6023         assert(sstr); assert(param)
6024
6025 STATIC SV **    S_sv_dup_inc_multiple(pTHX_ SV *const *source, SV **dest, SSize_t items, CLONE_PARAMS *const param);
6026 #define PERL_ARGS_ASSERT_SV_DUP_INC_MULTIPLE    \
6027         assert(source); assert(dest); assert(param)
6028 STATIC void     S_unreferenced_to_tmp_stack(pTHX_ AV *const unreferenced);
6029 #define PERL_ARGS_ASSERT_UNREFERENCED_TO_TMP_STACK      \
6030         assert(unreferenced)
6031 #  endif
6032 #endif
6033 #if defined(PERL_IN_SV_C) || defined (PERL_IN_OP_C)
6034 PERL_CALLCONV SV *      Perl_varname(pTHX_ const GV *const gv, const char gvtype, PADOFFSET targ, const SV *const keyname, SSize_t aindex, int subscript_type)
6035                         __attribute__warn_unused_result__;
6036
6037 #endif
6038 #if defined(PERL_IN_TOKE_C)
6039 STATIC int      S_ao(pTHX_ int toketype);
6040 STATIC void     S_check_uni(pTHX);
6041 STATIC void     S_checkcomma(pTHX_ const char *s, const char *name, const char *what);
6042 #define PERL_ARGS_ASSERT_CHECKCOMMA     \
6043         assert(s); assert(name); assert(what)
6044 STATIC char *   S_filter_gets(pTHX_ SV *sv, STRLEN append)
6045                         __attribute__warn_unused_result__;
6046 #define PERL_ARGS_ASSERT_FILTER_GETS    \
6047         assert(sv)
6048
6049 STATIC HV *     S_find_in_my_stash(pTHX_ const char *pkgname, STRLEN len)
6050                         __attribute__warn_unused_result__;
6051 #define PERL_ARGS_ASSERT_FIND_IN_MY_STASH       \
6052         assert(pkgname)
6053
6054 STATIC void     S_force_ident(pTHX_ const char *s, int kind);
6055 #define PERL_ARGS_ASSERT_FORCE_IDENT    \
6056         assert(s)
6057 STATIC void     S_force_ident_maybe_lex(pTHX_ char pit);
6058 STATIC void     S_force_next(pTHX_ I32 type);
6059 STATIC char*    S_force_strict_version(pTHX_ char *s);
6060 #define PERL_ARGS_ASSERT_FORCE_STRICT_VERSION   \
6061         assert(s)
6062 STATIC char*    S_force_version(pTHX_ char *s, int guessing);
6063 #define PERL_ARGS_ASSERT_FORCE_VERSION  \
6064         assert(s)
6065 STATIC char*    S_force_word(pTHX_ char *start, int token, int check_keyword, int allow_pack);
6066 #define PERL_ARGS_ASSERT_FORCE_WORD     \
6067         assert(start)
6068 STATIC SV*      S_get_and_check_backslash_N_name(pTHX_ const char* s, const char* const e)
6069                         __attribute__warn_unused_result__;
6070 #define PERL_ARGS_ASSERT_GET_AND_CHECK_BACKSLASH_N_NAME \
6071         assert(s); assert(e)
6072
6073 STATIC void     S_incline(pTHX_ const char *s, const char *end);
6074 #define PERL_ARGS_ASSERT_INCLINE        \
6075         assert(s); assert(end)
6076 STATIC int      S_intuit_method(pTHX_ char *s, SV *ioname, CV *cv);
6077 #define PERL_ARGS_ASSERT_INTUIT_METHOD  \
6078         assert(s)
6079 STATIC int      S_intuit_more(pTHX_ char *s, char *e);
6080 #define PERL_ARGS_ASSERT_INTUIT_MORE    \
6081         assert(s); assert(e)
6082 STATIC I32      S_lop(pTHX_ I32 f, U8 x, char *s);
6083 #define PERL_ARGS_ASSERT_LOP    \
6084         assert(s)
6085 PERL_STATIC_NO_RET void S_missingterm(pTHX_ char *s, STRLEN len)
6086                         __attribute__noreturn__;
6087
6088 STATIC SV*      S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, STRLEN keylen, SV *sv, SV *pv, const char *type, STRLEN typelen);
6089 #define PERL_ARGS_ASSERT_NEW_CONSTANT   \
6090         assert(key); assert(sv)
6091 STATIC void     S_no_op(pTHX_ const char *const what, char *s);
6092 #define PERL_ARGS_ASSERT_NO_OP  \
6093         assert(what)
6094 STATIC void     S_parse_ident(pTHX_ char **s, char **d, char * const e, int allow_package, bool is_utf8, bool check_dollar, bool tick_warn);
6095 #define PERL_ARGS_ASSERT_PARSE_IDENT    \
6096         assert(s); assert(d); assert(e)
6097 STATIC int      S_pending_ident(pTHX);
6098 STATIC char*    S_scan_const(pTHX_ char *start)
6099                         __attribute__warn_unused_result__;
6100 #define PERL_ARGS_ASSERT_SCAN_CONST     \
6101         assert(start)
6102
6103 STATIC char*    S_scan_formline(pTHX_ char *s)
6104                         __attribute__warn_unused_result__;
6105 #define PERL_ARGS_ASSERT_SCAN_FORMLINE  \
6106         assert(s)
6107
6108 STATIC char*    S_scan_heredoc(pTHX_ char *s)
6109                         __attribute__warn_unused_result__;
6110 #define PERL_ARGS_ASSERT_SCAN_HEREDOC   \
6111         assert(s)
6112
6113 STATIC char*    S_scan_ident(pTHX_ char *s, char *dest, STRLEN destlen, I32 ck_uni);
6114 #define PERL_ARGS_ASSERT_SCAN_IDENT     \
6115         assert(s); assert(dest)
6116 STATIC char*    S_scan_inputsymbol(pTHX_ char *start)
6117                         __attribute__warn_unused_result__;
6118 #define PERL_ARGS_ASSERT_SCAN_INPUTSYMBOL       \
6119         assert(start)
6120
6121 STATIC char*    S_scan_pat(pTHX_ char *start, I32 type)
6122                         __attribute__warn_unused_result__;
6123 #define PERL_ARGS_ASSERT_SCAN_PAT       \
6124         assert(start)
6125
6126 STATIC char*    S_scan_str(pTHX_ char *start, int keep_quoted, int keep_delims, int re_reparse, char **delimp)
6127                         __attribute__warn_unused_result__;
6128 #define PERL_ARGS_ASSERT_SCAN_STR       \
6129         assert(start)
6130
6131 STATIC char*    S_scan_subst(pTHX_ char *start)
6132                         __attribute__warn_unused_result__;
6133 #define PERL_ARGS_ASSERT_SCAN_SUBST     \
6134         assert(start)
6135
6136 STATIC char*    S_scan_trans(pTHX_ char *start)
6137                         __attribute__warn_unused_result__;
6138 #define PERL_ARGS_ASSERT_SCAN_TRANS     \
6139         assert(start)
6140
6141 STATIC char*    S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp);
6142 #define PERL_ARGS_ASSERT_SCAN_WORD      \
6143         assert(s); assert(dest); assert(slp)
6144 STATIC char*    S_skipspace_flags(pTHX_ char *s, U32 flags)
6145                         __attribute__warn_unused_result__;
6146 #define PERL_ARGS_ASSERT_SKIPSPACE_FLAGS        \
6147         assert(s)
6148
6149 STATIC I32      S_sublex_done(pTHX)
6150                         __attribute__warn_unused_result__;
6151
6152 STATIC I32      S_sublex_push(pTHX)
6153                         __attribute__warn_unused_result__;
6154
6155 STATIC I32      S_sublex_start(pTHX)
6156                         __attribute__warn_unused_result__;
6157
6158 STATIC char*    S_swallow_bom(pTHX_ U8 *s)
6159                         __attribute__warn_unused_result__;
6160 #define PERL_ARGS_ASSERT_SWALLOW_BOM    \
6161         assert(s)
6162
6163 STATIC char *   S_tokenize_use(pTHX_ int is_use, char *s)
6164                         __attribute__warn_unused_result__;
6165 #define PERL_ARGS_ASSERT_TOKENIZE_USE   \
6166         assert(s)
6167
6168 STATIC SV*      S_tokeq(pTHX_ SV *sv);
6169 #define PERL_ARGS_ASSERT_TOKEQ  \
6170         assert(sv)
6171 STATIC void     S_update_debugger_info(pTHX_ SV *orig_sv, const char *const buf, STRLEN len);
6172 STATIC int      S_yywarn(pTHX_ const char *const s, U32 flags);
6173 #define PERL_ARGS_ASSERT_YYWARN \
6174         assert(s)
6175 #endif
6176 #if defined(PERL_IN_UNIVERSAL_C)
6177 STATIC bool     S_isa_lookup(pTHX_ HV *stash, const char * const name, STRLEN len, U32 flags);
6178 #define PERL_ARGS_ASSERT_ISA_LOOKUP     \
6179         assert(stash); assert(name)
6180 #endif
6181 #if defined(PERL_IN_UTF8_C)
6182 STATIC UV       S__to_utf8_case(pTHX_ const UV uv1, const U8 *p, U8* ustrp, STRLEN *lenp, SV *invlist, const int * const invmap, const unsigned int * const * const aux_tables, const U8 * const aux_table_lengths, const char * const normal);
6183 #define PERL_ARGS_ASSERT__TO_UTF8_CASE  \
6184         assert(ustrp); assert(lenp); assert(invlist); assert(invmap); assert(normal)
6185 STATIC U32      S_check_and_deprecate(pTHX_ const U8 * p, const U8 ** e, const unsigned type, const bool use_locale, const char * const file, const unsigned line);
6186 #define PERL_ARGS_ASSERT_CHECK_AND_DEPRECATE    \
6187         assert(p); assert(e); assert(file)
6188 STATIC UV       S_check_locale_boundary_crossing(pTHX_ const U8* const p, const UV result, U8* const ustrp, STRLEN *lenp)
6189                         __attribute__warn_unused_result__;
6190 #define PERL_ARGS_ASSERT_CHECK_LOCALE_BOUNDARY_CROSSING \
6191         assert(p); assert(ustrp); assert(lenp)
6192
6193 #ifndef PERL_NO_INLINE_FUNCTIONS
6194 PERL_STATIC_INLINE int  S_does_utf8_overflow(const U8 * const s, const U8 * e, const bool consider_overlongs)
6195                         __attribute__warn_unused_result__;
6196 #define PERL_ARGS_ASSERT_DOES_UTF8_OVERFLOW     \
6197         assert(s); assert(e)
6198 #endif
6199
6200 #ifndef PERL_NO_INLINE_FUNCTIONS
6201 PERL_STATIC_INLINE int  S_isFF_OVERLONG(const U8 * const s, const STRLEN len)
6202                         __attribute__warn_unused_result__;
6203 #define PERL_ARGS_ASSERT_ISFF_OVERLONG  \
6204         assert(s)
6205 #endif
6206
6207 #ifndef PERL_NO_INLINE_FUNCTIONS
6208 PERL_STATIC_INLINE bool S_is_utf8_common(pTHX_ const U8 *const p, SV* const invlist)
6209                         __attribute__warn_unused_result__;
6210 #define PERL_ARGS_ASSERT_IS_UTF8_COMMON \
6211         assert(p)
6212 #endif
6213
6214 #ifndef PERL_NO_INLINE_FUNCTIONS
6215 PERL_STATIC_INLINE bool S_is_utf8_common_with_len(pTHX_ const U8 *const p, const U8 *const e, SV* const invlist)
6216                         __attribute__warn_unused_result__;
6217 #define PERL_ARGS_ASSERT_IS_UTF8_COMMON_WITH_LEN        \
6218         assert(p); assert(e)
6219 #endif
6220
6221 #ifndef PERL_NO_INLINE_FUNCTIONS
6222 PERL_STATIC_INLINE int  S_is_utf8_overlong_given_start_byte_ok(const U8 * const s, const STRLEN len)
6223                         __attribute__warn_unused_result__;
6224 #define PERL_ARGS_ASSERT_IS_UTF8_OVERLONG_GIVEN_START_BYTE_OK   \
6225         assert(s)
6226 #endif
6227
6228 STATIC HV *     S_new_msg_hv(pTHX_ const char * const message, U32 categories, U32 flag)
6229                         __attribute__warn_unused_result__;
6230 #define PERL_ARGS_ASSERT_NEW_MSG_HV     \
6231         assert(message)
6232
6233 STATIC U8*      S_swash_scan_list_line(pTHX_ U8* l, U8* const lend, UV* min, UV* max, UV* val, const bool wants_value, const U8* const typestr)
6234                         __attribute__warn_unused_result__;
6235 #define PERL_ARGS_ASSERT_SWASH_SCAN_LIST_LINE   \
6236         assert(l); assert(lend); assert(min); assert(max); assert(val); assert(typestr)
6237
6238 STATIC SV*      S_swatch_get(pTHX_ SV* swash, UV start, UV span)
6239                         __attribute__warn_unused_result__;
6240 #define PERL_ARGS_ASSERT_SWATCH_GET     \
6241         assert(swash)
6242
6243 STATIC U8       S_to_lower_latin1(const U8 c, U8 *p, STRLEN *lenp, const char dummy)
6244                         __attribute__warn_unused_result__;
6245
6246 STATIC char *   S_unexpected_non_continuation_text(pTHX_ const U8 * const s, STRLEN print_len, const STRLEN non_cont_byte_pos, const STRLEN expect_len)
6247                         __attribute__warn_unused_result__;
6248 #define PERL_ARGS_ASSERT_UNEXPECTED_NON_CONTINUATION_TEXT       \
6249         assert(s)
6250
6251 STATIC void     S_warn_on_first_deprecated_use(pTHX_ const char * const name, const char * const alternative, const bool use_locale, const char * const file, const unsigned line);
6252 #define PERL_ARGS_ASSERT_WARN_ON_FIRST_DEPRECATED_USE   \
6253         assert(name); assert(alternative); assert(file)
6254 #endif
6255 #if defined(PERL_IN_UTF8_C) || defined(PERL_IN_PP_C)
6256 PERL_CALLCONV UV        Perl__to_upper_title_latin1(pTHX_ const U8 c, U8 *p, STRLEN *lenp, const char S_or_s);
6257 #define PERL_ARGS_ASSERT__TO_UPPER_TITLE_LATIN1 \
6258         assert(p); assert(lenp)
6259 #endif
6260 #if defined(PERL_IN_UTF8_C) || defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C)
6261 PERL_CALLCONV UV        Perl__to_fold_latin1(const U8 c, U8 *p, STRLEN *lenp, const unsigned int flags);
6262 #define PERL_ARGS_ASSERT__TO_FOLD_LATIN1        \
6263         assert(p); assert(lenp)
6264 #endif
6265 #if defined(PERL_IN_UTIL_C)
6266 STATIC bool     S_ckwarn_common(pTHX_ U32 w);
6267 STATIC bool     S_invoke_exception_hook(pTHX_ SV *ex, bool warn);
6268 STATIC SV*      S_mess_alloc(pTHX);
6269 STATIC SV *     S_with_queued_errors(pTHX_ SV *ex);
6270 #define PERL_ARGS_ASSERT_WITH_QUEUED_ERRORS     \
6271         assert(ex)
6272 STATIC void     S_xs_version_bootcheck(pTHX_ U32 items, U32 ax, const char *xs_p, STRLEN xs_len);
6273 #define PERL_ARGS_ASSERT_XS_VERSION_BOOTCHECK   \
6274         assert(xs_p)
6275 #  if defined(PERL_MEM_LOG) && !defined(PERL_MEM_LOG_NOIMPL)
6276 STATIC void     S_mem_log_common(enum mem_log_type mlt, const UV n, const UV typesize, const char *type_name, const SV *sv, Malloc_t oldalloc, Malloc_t newalloc, const char *filename, const int linenumber, const char *funcname);
6277 #define PERL_ARGS_ASSERT_MEM_LOG_COMMON \
6278         assert(type_name); assert(filename); assert(funcname)
6279 #  endif
6280 #endif
6281 #if defined(PERL_MEM_LOG)
6282 PERL_CALLCONV Malloc_t  Perl_mem_log_alloc(const UV nconst, UV typesize, const char *type_name, Malloc_t newalloc, const char *filename, const int linenumber, const char *funcname);
6283 #define PERL_ARGS_ASSERT_MEM_LOG_ALLOC  \
6284         assert(type_name); assert(filename); assert(funcname)
6285 PERL_CALLCONV Malloc_t  Perl_mem_log_free(Malloc_t oldalloc, const char *filename, const int linenumber, const char *funcname);
6286 #define PERL_ARGS_ASSERT_MEM_LOG_FREE   \
6287         assert(filename); assert(funcname)
6288 PERL_CALLCONV Malloc_t  Perl_mem_log_realloc(const UV n, const UV typesize, const char *type_name, Malloc_t oldalloc, Malloc_t newalloc, const char *filename, const int linenumber, const char *funcname);
6289 #define PERL_ARGS_ASSERT_MEM_LOG_REALLOC        \
6290         assert(type_name); assert(filename); assert(funcname)
6291 #endif
6292 #if defined(PERL_USES_PL_PIDSTATUS) && defined(PERL_IN_UTIL_C)
6293 STATIC void     S_pidgone(pTHX_ Pid_t pid, int status);
6294 #endif
6295 #if defined(UNLINK_ALL_VERSIONS)
6296 PERL_CALLCONV I32       Perl_unlnk(pTHX_ const char* f);
6297 #define PERL_ARGS_ASSERT_UNLNK  \
6298         assert(f)
6299 #endif
6300 #if defined(USE_C_BACKTRACE)
6301 PERL_CALLCONV bool      Perl_dump_c_backtrace(pTHX_ PerlIO* fp, int max_depth, int skip);
6302 #define PERL_ARGS_ASSERT_DUMP_C_BACKTRACE       \
6303         assert(fp)
6304 /* PERL_CALLCONV void   free_c_backtrace(pTHX_ Perl_c_backtrace* bt); */
6305 PERL_CALLCONV Perl_c_backtrace* Perl_get_c_backtrace(pTHX_ int max_depth, int skip);
6306 PERL_CALLCONV SV*       Perl_get_c_backtrace_dump(pTHX_ int max_depth, int skip);
6307 #endif
6308 #if defined(USE_DTRACE)
6309 PERL_CALLCONV void      Perl_dtrace_probe_call(pTHX_ CV *cv, bool is_call);
6310 #define PERL_ARGS_ASSERT_DTRACE_PROBE_CALL      \
6311         assert(cv)
6312 PERL_CALLCONV void      Perl_dtrace_probe_load(pTHX_ const char *name, bool is_loading);
6313 #define PERL_ARGS_ASSERT_DTRACE_PROBE_LOAD      \
6314         assert(name)
6315 PERL_CALLCONV void      Perl_dtrace_probe_op(pTHX_ const OP *op);
6316 #define PERL_ARGS_ASSERT_DTRACE_PROBE_OP        \
6317         assert(op)
6318 PERL_CALLCONV void      Perl_dtrace_probe_phase(pTHX_ enum perl_phase phase);
6319 #endif
6320 #if defined(USE_ITHREADS)
6321 PERL_CALLCONV PADOFFSET Perl_alloccopstash(pTHX_ HV *hv);
6322 #define PERL_ARGS_ASSERT_ALLOCCOPSTASH  \
6323         assert(hv)
6324 PERL_CALLCONV void*     Perl_any_dup(pTHX_ void* v, const PerlInterpreter* proto_perl)
6325                         __attribute__warn_unused_result__;
6326 #define PERL_ARGS_ASSERT_ANY_DUP        \
6327         assert(proto_perl)
6328
6329 PERL_CALLCONV void      Perl_clone_params_del(CLONE_PARAMS *param);
6330 #define PERL_ARGS_ASSERT_CLONE_PARAMS_DEL       \
6331         assert(param)
6332 PERL_CALLCONV CLONE_PARAMS *    Perl_clone_params_new(PerlInterpreter *const from, PerlInterpreter *const to)
6333                         __attribute__warn_unused_result__;
6334 #define PERL_ARGS_ASSERT_CLONE_PARAMS_NEW       \
6335         assert(from); assert(to)
6336
6337 PERL_CALLCONV PERL_CONTEXT*     Perl_cx_dup(pTHX_ PERL_CONTEXT* cx, I32 ix, I32 max, CLONE_PARAMS* param)
6338                         __attribute__warn_unused_result__;
6339 #define PERL_ARGS_ASSERT_CX_DUP \
6340         assert(param)
6341
6342 PERL_CALLCONV DIR*      Perl_dirp_dup(pTHX_ DIR *const dp, CLONE_PARAMS *const param)
6343                         __attribute__warn_unused_result__;
6344 #define PERL_ARGS_ASSERT_DIRP_DUP       \
6345         assert(param)
6346
6347 PERL_CALLCONV PerlIO*   Perl_fp_dup(pTHX_ PerlIO *const fp, const char type, CLONE_PARAMS *const param);
6348 #define PERL_ARGS_ASSERT_FP_DUP \
6349         assert(param)
6350 PERL_CALLCONV GP*       Perl_gp_dup(pTHX_ GP *const gp, CLONE_PARAMS *const param)
6351                         __attribute__warn_unused_result__;
6352 #define PERL_ARGS_ASSERT_GP_DUP \
6353         assert(param)
6354
6355 PERL_CALLCONV HE*       Perl_he_dup(pTHX_ const HE* e, bool shared, CLONE_PARAMS* param)
6356                         __attribute__warn_unused_result__;
6357 #define PERL_ARGS_ASSERT_HE_DUP \
6358         assert(param)
6359
6360 PERL_CALLCONV HEK*      Perl_hek_dup(pTHX_ HEK* e, CLONE_PARAMS* param)
6361                         __attribute__warn_unused_result__;
6362 #define PERL_ARGS_ASSERT_HEK_DUP        \
6363         assert(param)
6364
6365 PERL_CALLCONV MAGIC*    Perl_mg_dup(pTHX_ MAGIC *mg, CLONE_PARAMS *const param)
6366                         __attribute__warn_unused_result__;
6367 #define PERL_ARGS_ASSERT_MG_DUP \
6368         assert(param)
6369
6370 PERL_CALLCONV struct mro_meta*  Perl_mro_meta_dup(pTHX_ struct mro_meta* smeta, CLONE_PARAMS* param);
6371 #define PERL_ARGS_ASSERT_MRO_META_DUP   \
6372         assert(smeta); assert(param)
6373 PERL_CALLCONV OP*       Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv)
6374                         __attribute__warn_unused_result__;
6375 #define PERL_ARGS_ASSERT_NEWPADOP       \
6376         assert(sv)
6377
6378 PERL_CALLCONV PADLIST * Perl_padlist_dup(pTHX_ PADLIST *srcpad, CLONE_PARAMS *param)
6379                         __attribute__warn_unused_result__;
6380 #define PERL_ARGS_ASSERT_PADLIST_DUP    \
6381         assert(srcpad); assert(param)
6382
6383 PERL_CALLCONV PADNAME * Perl_padname_dup(pTHX_ PADNAME *src, CLONE_PARAMS *param)
6384                         __attribute__warn_unused_result__;
6385 #define PERL_ARGS_ASSERT_PADNAME_DUP    \
6386         assert(src); assert(param)
6387
6388 PERL_CALLCONV PADNAMELIST *     Perl_padnamelist_dup(pTHX_ PADNAMELIST *srcpad, CLONE_PARAMS *param)
6389                         __attribute__warn_unused_result__;
6390 #define PERL_ARGS_ASSERT_PADNAMELIST_DUP        \
6391         assert(srcpad); assert(param)
6392
6393 PERL_CALLCONV yy_parser*        Perl_parser_dup(pTHX_ const yy_parser *const proto, CLONE_PARAMS *const param);
6394 #define PERL_ARGS_ASSERT_PARSER_DUP     \
6395         assert(param)
6396 PERL_CALLCONV PerlInterpreter*  perl_clone(PerlInterpreter *proto_perl, UV flags);
6397 #define PERL_ARGS_ASSERT_PERL_CLONE     \
6398         assert(proto_perl)
6399 PERL_CALLCONV void      Perl_re_dup_guts(pTHX_ const REGEXP *sstr, REGEXP *dstr, CLONE_PARAMS* param);
6400 #define PERL_ARGS_ASSERT_RE_DUP_GUTS    \
6401         assert(sstr); assert(dstr); assert(param)
6402 PERL_CALLCONV void*     Perl_regdupe_internal(pTHX_ REGEXP * const r, CLONE_PARAMS* param);
6403 #define PERL_ARGS_ASSERT_REGDUPE_INTERNAL       \
6404         assert(r); assert(param)
6405 PERL_CALLCONV void      Perl_rvpv_dup(pTHX_ SV *const dstr, const SV *const sstr, CLONE_PARAMS *const param);
6406 #define PERL_ARGS_ASSERT_RVPV_DUP       \
6407         assert(dstr); assert(sstr); assert(param)
6408 PERL_CALLCONV PERL_SI*  Perl_si_dup(pTHX_ PERL_SI* si, CLONE_PARAMS* param)
6409                         __attribute__warn_unused_result__;
6410 #define PERL_ARGS_ASSERT_SI_DUP \
6411         assert(param)
6412
6413 PERL_CALLCONV ANY*      Perl_ss_dup(pTHX_ PerlInterpreter* proto_perl, CLONE_PARAMS* param)
6414                         __attribute__warn_unused_result__;
6415 #define PERL_ARGS_ASSERT_SS_DUP \
6416         assert(proto_perl); assert(param)
6417
6418 PERL_CALLCONV SV*       Perl_sv_dup(pTHX_ const SV *const sstr, CLONE_PARAMS *const param)
6419                         __attribute__warn_unused_result__;
6420 #define PERL_ARGS_ASSERT_SV_DUP \
6421         assert(param)
6422
6423 PERL_CALLCONV SV*       Perl_sv_dup_inc(pTHX_ const SV *const sstr, CLONE_PARAMS *const param)
6424                         __attribute__warn_unused_result__;
6425 #define PERL_ARGS_ASSERT_SV_DUP_INC     \
6426         assert(param)
6427
6428 #endif
6429 #if defined(USE_LOCALE)             && (   defined(PERL_IN_LOCALE_C)            || defined(PERL_IN_MG_C)                || defined (PERL_EXT_POSIX)             || defined (PERL_EXT_LANGINFO))
6430 PERL_CALLCONV bool      Perl__is_cur_LC_category_utf8(pTHX_ int category);
6431 #endif
6432 #if defined(USE_LOCALE_COLLATE)
6433 PERL_CALLCONV int       Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg);
6434 #define PERL_ARGS_ASSERT_MAGIC_SETCOLLXFRM      \
6435         assert(sv); assert(mg)
6436 #ifndef NO_MATHOMS
6437 PERL_CALLCONV char*     Perl_mem_collxfrm(pTHX_ const char* input_string, STRLEN len, STRLEN* xlen);
6438 #define PERL_ARGS_ASSERT_MEM_COLLXFRM   \
6439         assert(input_string); assert(xlen)
6440 #endif
6441 #ifndef NO_MATHOMS
6442 PERL_CALLCONV char*     Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp);
6443 #define PERL_ARGS_ASSERT_SV_COLLXFRM    \
6444         assert(sv); assert(nxp)
6445 #endif
6446 PERL_CALLCONV char*     Perl_sv_collxfrm_flags(pTHX_ SV *const sv, STRLEN *const nxp, I32 const flags);
6447 #define PERL_ARGS_ASSERT_SV_COLLXFRM_FLAGS      \
6448         assert(sv); assert(nxp)
6449 #endif
6450 #if defined(USE_PERLIO)
6451 PERL_CALLCONV void      Perl_PerlIO_clearerr(pTHX_ PerlIO *f);
6452 PERL_CALLCONV int       Perl_PerlIO_close(pTHX_ PerlIO *f);
6453 PERL_CALLCONV int       Perl_PerlIO_eof(pTHX_ PerlIO *f);
6454 PERL_CALLCONV int       Perl_PerlIO_error(pTHX_ PerlIO *f);
6455 PERL_CALLCONV int       Perl_PerlIO_fileno(pTHX_ PerlIO *f);
6456 PERL_CALLCONV int       Perl_PerlIO_fill(pTHX_ PerlIO *f);
6457 PERL_CALLCONV int       Perl_PerlIO_flush(pTHX_ PerlIO *f);
6458 PERL_CALLCONV STDCHAR * Perl_PerlIO_get_base(pTHX_ PerlIO *f);
6459 PERL_CALLCONV SSize_t   Perl_PerlIO_get_bufsiz(pTHX_ PerlIO *f)
6460                         __attribute__warn_unused_result__;
6461
6462 PERL_CALLCONV SSize_t   Perl_PerlIO_get_cnt(pTHX_ PerlIO *f)
6463                         __attribute__warn_unused_result__;
6464
6465 PERL_CALLCONV STDCHAR * Perl_PerlIO_get_ptr(pTHX_ PerlIO *f);
6466 PERL_CALLCONV SSize_t   Perl_PerlIO_read(pTHX_ PerlIO *f, void *vbuf, Size_t count);
6467 #define PERL_ARGS_ASSERT_PERLIO_READ    \
6468         assert(vbuf)
6469 PERL_CALLCONV void      Perl_PerlIO_restore_errno(pTHX_ PerlIO *f);
6470 PERL_CALLCONV void      Perl_PerlIO_save_errno(pTHX_ PerlIO *f);
6471 PERL_CALLCONV int       Perl_PerlIO_seek(pTHX_ PerlIO *f, Off_t offset, int whence);
6472 PERL_CALLCONV void      Perl_PerlIO_set_cnt(pTHX_ PerlIO *f, SSize_t cnt);
6473 PERL_CALLCONV void      Perl_PerlIO_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR *ptr, SSize_t cnt);
6474 PERL_CALLCONV void      Perl_PerlIO_setlinebuf(pTHX_ PerlIO *f);
6475 PERL_CALLCONV PerlIO *  Perl_PerlIO_stderr(pTHX)
6476                         __attribute__warn_unused_result__;
6477
6478 PERL_CALLCONV PerlIO *  Perl_PerlIO_stdin(pTHX)
6479                         __attribute__warn_unused_result__;
6480
6481 PERL_CALLCONV PerlIO *  Perl_PerlIO_stdout(pTHX)
6482                         __attribute__warn_unused_result__;
6483
6484 PERL_CALLCONV Off_t     Perl_PerlIO_tell(pTHX_ PerlIO *f);
6485 PERL_CALLCONV SSize_t   Perl_PerlIO_unread(pTHX_ PerlIO *f, const void *vbuf, Size_t count);
6486 #define PERL_ARGS_ASSERT_PERLIO_UNREAD  \
6487         assert(vbuf)
6488 PERL_CALLCONV SSize_t   Perl_PerlIO_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count);
6489 #define PERL_ARGS_ASSERT_PERLIO_WRITE   \
6490         assert(vbuf)
6491 #endif
6492 #if defined(USE_QUADMATH)
6493 PERL_CALLCONV bool      Perl_quadmath_format_needed(const char* format);
6494 #define PERL_ARGS_ASSERT_QUADMATH_FORMAT_NEEDED \
6495         assert(format)
6496 PERL_CALLCONV const char*       Perl_quadmath_format_single(const char* format);
6497 #define PERL_ARGS_ASSERT_QUADMATH_FORMAT_SINGLE \
6498         assert(format)
6499 #endif
6500 #if defined(WIN32)
6501 PERL_CALLCONV_NO_RET void       win32_croak_not_implemented(const char * fname)
6502                         __attribute__noreturn__;
6503 #define PERL_ARGS_ASSERT_WIN32_CROAK_NOT_IMPLEMENTED    \
6504         assert(fname)
6505
6506 #endif
6507 #if defined(WIN32) || defined(__SYMBIAN32__) || defined(VMS)
6508 PERL_CALLCONV int       Perl_do_aspawn(pTHX_ SV* really, SV** mark, SV** sp);
6509 #define PERL_ARGS_ASSERT_DO_ASPAWN      \
6510         assert(mark); assert(sp)
6511 PERL_CALLCONV int       Perl_do_spawn(pTHX_ char* cmd);
6512 #define PERL_ARGS_ASSERT_DO_SPAWN       \
6513         assert(cmd)
6514 PERL_CALLCONV int       Perl_do_spawn_nowait(pTHX_ char* cmd);
6515 #define PERL_ARGS_ASSERT_DO_SPAWN_NOWAIT        \
6516         assert(cmd)
6517 #endif
6518 #if defined(_MSC_VER)
6519 PERL_CALLCONV int       Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg);
6520 #define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET     \
6521         assert(sv); assert(mg)
6522 #endif
6523 #ifdef PERL_CORE
6524 #  include "pp_proto.h"
6525 #endif
6526 END_EXTERN_C
6527
6528 /* ex: set ro: */