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