This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The vestigial PL_pad_reset_pending can actually be bool, rather than
[perl5.git] / proto.h
CommitLineData
37442d52
RGS
1/* -*- buffer-read-only: t -*-
2 *
f5e3445d
RGS
3 * proto.h
4 *
4bb101f2 5 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
67edeb9a 6 * 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, by Larry Wall and others
f5e3445d
RGS
7 *
8 * You may distribute under the terms of either the GNU General Public
9 * License or the Artistic License, as specified in the README file.
10 *
11 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
12 * This file is built by embed.pl from data in embed.fnc, embed.pl,
907b3e23 13 * pp.sym, intrpvar.h, and perlvars.h.
f5e3445d
RGS
14 * Any changes made here will be lost!
15 *
16 * Edit those files and run 'make regen_headers' to effect changes.
17 */
1d7c1841 18
1d7c1841
GS
19START_EXTERN_C
20
21#if defined(PERL_IMPLICIT_SYS)
16bf6295 22PERL_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)
fb9bf107
NC
23 __attribute__nonnull__(1)
24 __attribute__nonnull__(2)
25 __attribute__nonnull__(3)
26 __attribute__nonnull__(4)
27 __attribute__nonnull__(5)
28 __attribute__nonnull__(6)
29 __attribute__nonnull__(7)
30 __attribute__nonnull__(8)
31 __attribute__nonnull__(9);
7918f24d 32#define PERL_ARGS_ASSERT_PERL_ALLOC_USING \
16bf6295 33 assert(ipM); assert(ipMS); assert(ipMP); assert(ipE); assert(ipStd); assert(ipLIO); assert(ipD); assert(ipS); assert(ipP)
fb9bf107 34
1d7c1841 35#endif
b46bc2b6 36PERL_CALLCONV PerlInterpreter* perl_alloc(void);
4048f010 37PERL_CALLCONV void perl_construct(PerlInterpreter *my_perl)
abb2c242 38 __attribute__nonnull__(1);
7918f24d
NC
39#define PERL_ARGS_ASSERT_PERL_CONSTRUCT \
40 assert(my_perl)
f54cb97a 41
4048f010 42PERL_CALLCONV int perl_destruct(PerlInterpreter *my_perl)
abb2c242 43 __attribute__nonnull__(1);
7918f24d
NC
44#define PERL_ARGS_ASSERT_PERL_DESTRUCT \
45 assert(my_perl)
f54cb97a 46
4048f010 47PERL_CALLCONV void perl_free(PerlInterpreter *my_perl)
abb2c242 48 __attribute__nonnull__(1);
7918f24d
NC
49#define PERL_ARGS_ASSERT_PERL_FREE \
50 assert(my_perl)
f54cb97a 51
4048f010 52PERL_CALLCONV int perl_run(PerlInterpreter *my_perl)
abb2c242 53 __attribute__nonnull__(1);
7918f24d
NC
54#define PERL_ARGS_ASSERT_PERL_RUN \
55 assert(my_perl)
f54cb97a 56
4048f010 57PERL_CALLCONV int perl_parse(PerlInterpreter *my_perl, XSINIT_t xsinit, int argc, char** argv, char** env)
fb9bf107 58 __attribute__nonnull__(1);
7918f24d
NC
59#define PERL_ARGS_ASSERT_PERL_PARSE \
60 assert(my_perl)
fb9bf107 61
a28509cc
AL
62PERL_CALLCONV bool Perl_doing_taint(int argc, char** argv, char** env)
63 __attribute__warn_unused_result__;
64
1d7c1841 65#if defined(USE_ITHREADS)
4048f010 66PERL_CALLCONV PerlInterpreter* perl_clone(PerlInterpreter *proto_perl, UV flags)
fb9bf107 67 __attribute__nonnull__(1);
7918f24d
NC
68#define PERL_ARGS_ASSERT_PERL_CLONE \
69 assert(proto_perl)
fb9bf107 70
1d7c1841 71# if defined(PERL_IMPLICIT_SYS)
589df73b 72PERL_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)
fb9bf107
NC
73 __attribute__nonnull__(1)
74 __attribute__nonnull__(3)
75 __attribute__nonnull__(4)
76 __attribute__nonnull__(5)
77 __attribute__nonnull__(6)
78 __attribute__nonnull__(7)
79 __attribute__nonnull__(8)
80 __attribute__nonnull__(9)
81 __attribute__nonnull__(10)
82 __attribute__nonnull__(11);
7918f24d 83#define PERL_ARGS_ASSERT_PERL_CLONE_USING \
589df73b 84 assert(proto_perl); assert(ipM); assert(ipMS); assert(ipMP); assert(ipE); assert(ipStd); assert(ipLIO); assert(ipD); assert(ipS); assert(ipP)
fb9bf107 85
1d7c1841
GS
86# endif
87#endif
88
4373e329 89PERL_CALLCONV Malloc_t Perl_malloc(MEM_SIZE nbytes)
abb2c242
JH
90 __attribute__malloc__
91 __attribute__warn_unused_result__;
f54cb97a 92
4373e329 93PERL_CALLCONV Malloc_t Perl_calloc(MEM_SIZE elements, MEM_SIZE size)
abb2c242
JH
94 __attribute__malloc__
95 __attribute__warn_unused_result__;
f54cb97a 96
4373e329 97PERL_CALLCONV Malloc_t Perl_realloc(Malloc_t where, MEM_SIZE nbytes)
abb2c242
JH
98 __attribute__malloc__
99 __attribute__warn_unused_result__;
f54cb97a 100
1d7c1841 101PERL_CALLCONV Free_t Perl_mfree(Malloc_t where);
cae6d0e5 102#if defined(MYMALLOC)
b464bac0 103PERL_CALLCONV MEM_SIZE Perl_malloced_size(void *p)
fb9bf107
NC
104 __attribute__warn_unused_result__
105 __attribute__nonnull__(1);
7918f24d
NC
106#define PERL_ARGS_ASSERT_MALLOCED_SIZE \
107 assert(p)
b464bac0 108
64107180
NC
109PERL_CALLCONV MEM_SIZE Perl_malloc_good_size(size_t nbytes)
110 __attribute__warn_unused_result__;
111
1d7c1841
GS
112#endif
113
255164ba
DM
114PERL_CALLCONV void* Perl_get_context(void)
115 __attribute__warn_unused_result__;
116
9f6cc744 117PERL_CALLCONV void Perl_set_context(void *t)
255164ba 118 __attribute__nonnull__(1);
7918f24d
NC
119#define PERL_ARGS_ASSERT_SET_CONTEXT \
120 assert(t)
255164ba 121
ba869deb 122
1d7c1841
GS
123END_EXTERN_C
124
125/* functions with flag 'n' should come before here */
1d7c1841 126START_EXTERN_C
1d7c1841 127# include "pp_proto.h"
46c461b5
AL
128PERL_CALLCONV SV* Perl_amagic_call(pTHX_ SV* left, SV* right, int method, int dir)
129 __attribute__nonnull__(pTHX_1)
130 __attribute__nonnull__(pTHX_2);
7918f24d
NC
131#define PERL_ARGS_ASSERT_AMAGIC_CALL \
132 assert(left); assert(right)
46c461b5 133
255164ba
DM
134PERL_CALLCONV bool Perl_Gv_AMupdate(pTHX_ HV* stash)
135 __attribute__nonnull__(pTHX_1);
7918f24d
NC
136#define PERL_ARGS_ASSERT_GV_AMUPDATE \
137 assert(stash)
255164ba
DM
138
139PERL_CALLCONV CV* Perl_gv_handler(pTHX_ HV* stash, I32 id)
140 __attribute__warn_unused_result__;
141
142PERL_CALLCONV OP* Perl_append_elem(pTHX_ I32 optype, OP* first, OP* last);
1d7c1841 143PERL_CALLCONV OP* Perl_append_list(pTHX_ I32 optype, LISTOP* first, LISTOP* last);
255164ba
DM
144PERL_CALLCONV I32 Perl_apply(pTHX_ I32 type, SV** mark, SV** sp)
145 __attribute__nonnull__(pTHX_2)
146 __attribute__nonnull__(pTHX_3);
7918f24d
NC
147#define PERL_ARGS_ASSERT_APPLY \
148 assert(mark); assert(sp)
255164ba
DM
149
150PERL_CALLCONV void Perl_apply_attrs_string(pTHX_ const char *stashpv, CV *cv, const char *attrstr, STRLEN len)
151 __attribute__nonnull__(pTHX_1)
152 __attribute__nonnull__(pTHX_2)
153 __attribute__nonnull__(pTHX_3);
7918f24d
NC
154#define PERL_ARGS_ASSERT_APPLY_ATTRS_STRING \
155 assert(stashpv); assert(cv); assert(attrstr)
255164ba 156
4048f010 157PERL_CALLCONV void Perl_av_clear(pTHX_ AV *av)
7a5b473e 158 __attribute__nonnull__(pTHX_1);
7918f24d
NC
159#define PERL_ARGS_ASSERT_AV_CLEAR \
160 assert(av)
7a5b473e 161
4048f010 162PERL_CALLCONV SV* Perl_av_delete(pTHX_ AV *av, I32 key, I32 flags)
7a5b473e 163 __attribute__nonnull__(pTHX_1);
7918f24d
NC
164#define PERL_ARGS_ASSERT_AV_DELETE \
165 assert(av)
7a5b473e 166
4048f010 167PERL_CALLCONV bool Perl_av_exists(pTHX_ AV *av, I32 key)
7a5b473e
AL
168 __attribute__warn_unused_result__
169 __attribute__nonnull__(pTHX_1);
7918f24d
NC
170#define PERL_ARGS_ASSERT_AV_EXISTS \
171 assert(av)
a3b680e6 172
4048f010 173PERL_CALLCONV void Perl_av_extend(pTHX_ AV *av, I32 key)
abb2c242 174 __attribute__nonnull__(pTHX_1);
7918f24d
NC
175#define PERL_ARGS_ASSERT_AV_EXTEND \
176 assert(av)
a3b680e6 177
4048f010 178PERL_CALLCONV AV* Perl_av_fake(pTHX_ I32 size, SV **strp)
abb2c242
JH
179 __attribute__warn_unused_result__
180 __attribute__nonnull__(pTHX_2);
7918f24d
NC
181#define PERL_ARGS_ASSERT_AV_FAKE \
182 assert(strp)
a3b680e6 183
4048f010 184PERL_CALLCONV SV** Perl_av_fetch(pTHX_ AV *av, I32 key, I32 lval)
7a5b473e
AL
185 __attribute__warn_unused_result__
186 __attribute__nonnull__(pTHX_1);
7918f24d
NC
187#define PERL_ARGS_ASSERT_AV_FETCH \
188 assert(av)
a3b680e6 189
4048f010 190PERL_CALLCONV void Perl_av_fill(pTHX_ AV *av, I32 fill)
255164ba 191 __attribute__nonnull__(pTHX_1);
7918f24d
NC
192#define PERL_ARGS_ASSERT_AV_FILL \
193 assert(av)
255164ba 194
bb5dd93d 195PERL_CALLCONV I32 Perl_av_len(pTHX_ AV *av)
255164ba
DM
196 __attribute__warn_unused_result__
197 __attribute__nonnull__(pTHX_1);
7918f24d
NC
198#define PERL_ARGS_ASSERT_AV_LEN \
199 assert(av)
a3b680e6 200
4048f010 201PERL_CALLCONV AV* Perl_av_make(pTHX_ I32 size, SV **strp)
abb2c242
JH
202 __attribute__warn_unused_result__
203 __attribute__nonnull__(pTHX_2);
7918f24d
NC
204#define PERL_ARGS_ASSERT_AV_MAKE \
205 assert(strp)
a3b680e6 206
4048f010 207PERL_CALLCONV SV* Perl_av_pop(pTHX_ AV *av)
7a5b473e 208 __attribute__nonnull__(pTHX_1);
7918f24d
NC
209#define PERL_ARGS_ASSERT_AV_POP \
210 assert(av)
7a5b473e 211
29a861e7
NC
212PERL_CALLCONV void Perl_av_create_and_push(pTHX_ AV **const avp, SV *const val)
213 __attribute__nonnull__(pTHX_1)
214 __attribute__nonnull__(pTHX_2);
7918f24d
NC
215#define PERL_ARGS_ASSERT_AV_CREATE_AND_PUSH \
216 assert(avp); assert(val)
29a861e7 217
4048f010 218PERL_CALLCONV void Perl_av_push(pTHX_ AV *av, SV *val)
7a5b473e 219 __attribute__nonnull__(pTHX_1)
255164ba 220 __attribute__nonnull__(pTHX_2);
7918f24d
NC
221#define PERL_ARGS_ASSERT_AV_PUSH \
222 assert(av); assert(val)
255164ba 223
4048f010 224PERL_CALLCONV void Perl_av_reify(pTHX_ AV *av)
255164ba 225 __attribute__nonnull__(pTHX_1);
7918f24d
NC
226#define PERL_ARGS_ASSERT_AV_REIFY \
227 assert(av)
255164ba 228
4048f010 229PERL_CALLCONV SV* Perl_av_shift(pTHX_ AV *av)
7a5b473e
AL
230 __attribute__warn_unused_result__
231 __attribute__nonnull__(pTHX_1);
7918f24d
NC
232#define PERL_ARGS_ASSERT_AV_SHIFT \
233 assert(av)
7a5b473e 234
4048f010 235PERL_CALLCONV SV** Perl_av_store(pTHX_ AV *av, I32 key, SV *val)
7a5b473e 236 __attribute__nonnull__(pTHX_1);
7918f24d
NC
237#define PERL_ARGS_ASSERT_AV_STORE \
238 assert(av)
7a5b473e 239
4048f010 240PERL_CALLCONV void Perl_av_undef(pTHX_ AV *av)
7a5b473e 241 __attribute__nonnull__(pTHX_1);
7918f24d
NC
242#define PERL_ARGS_ASSERT_AV_UNDEF \
243 assert(av)
7a5b473e 244
29a861e7
NC
245PERL_CALLCONV SV** Perl_av_create_and_unshift_one(pTHX_ AV **const avp, SV *const val)
246 __attribute__nonnull__(pTHX_1)
247 __attribute__nonnull__(pTHX_2);
7918f24d
NC
248#define PERL_ARGS_ASSERT_AV_CREATE_AND_UNSHIFT_ONE \
249 assert(avp); assert(val)
29a861e7 250
4048f010 251PERL_CALLCONV void Perl_av_unshift(pTHX_ AV *av, I32 num)
7a5b473e 252 __attribute__nonnull__(pTHX_1);
7918f24d
NC
253#define PERL_ARGS_ASSERT_AV_UNSHIFT \
254 assert(av)
a3b680e6 255
4048f010 256PERL_CALLCONV SV** Perl_av_arylen_p(pTHX_ AV *av)
255164ba 257 __attribute__nonnull__(pTHX_1);
7918f24d
NC
258#define PERL_ARGS_ASSERT_AV_ARYLEN_P \
259 assert(av)
255164ba 260
4048f010 261PERL_CALLCONV IV* Perl_av_iter_p(pTHX_ AV *av)
878d132a 262 __attribute__nonnull__(pTHX_1);
7918f24d
NC
263#define PERL_ARGS_ASSERT_AV_ITER_P \
264 assert(av)
878d132a
NC
265
266#if defined(PERL_IN_AV_C) || defined(PERL_DECL_PROT)
267STATIC MAGIC* S_get_aux_mg(pTHX_ AV *av)
268 __attribute__nonnull__(pTHX_1);
7918f24d
NC
269#define PERL_ARGS_ASSERT_GET_AUX_MG \
270 assert(av)
878d132a
NC
271
272#endif
4048f010 273PERL_CALLCONV OP* Perl_bind_match(pTHX_ I32 type, OP *left, OP *right)
abb2c242
JH
274 __attribute__warn_unused_result__
275 __attribute__nonnull__(pTHX_2)
276 __attribute__nonnull__(pTHX_3);
7918f24d
NC
277#define PERL_ARGS_ASSERT_BIND_MATCH \
278 assert(left); assert(right)
a3b680e6
AL
279
280PERL_CALLCONV OP* Perl_block_end(pTHX_ I32 floor, OP* seq)
6472dca1 281 __attribute__warn_unused_result__;
a3b680e6
AL
282
283PERL_CALLCONV I32 Perl_block_gimme(pTHX)
abb2c242 284 __attribute__warn_unused_result__;
a3b680e6
AL
285
286PERL_CALLCONV int Perl_block_start(pTHX_ int full)
abb2c242 287 __attribute__warn_unused_result__;
a3b680e6 288
1d7c1841 289PERL_CALLCONV void Perl_boot_core_UNIVERSAL(pTHX);
36ed5425 290PERL_CALLCONV void Perl_boot_core_PerlIO(pTHX);
4048f010 291PERL_CALLCONV void Perl_call_list(pTHX_ I32 oldscope, AV *paramList)
abb2c242 292 __attribute__nonnull__(pTHX_2);
7918f24d
NC
293#define PERL_ARGS_ASSERT_CALL_LIST \
294 assert(paramList)
a3b680e6 295
ae1951c1 296PERL_CALLCONV bool Perl_cando(pTHX_ Mode_t mode, bool effective, const Stat_t* statbufp)
abb2c242
JH
297 __attribute__warn_unused_result__
298 __attribute__nonnull__(pTHX_3);
7918f24d
NC
299#define PERL_ARGS_ASSERT_CANDO \
300 assert(statbufp)
f54cb97a 301
53c1dcc0
AL
302PERL_CALLCONV U32 Perl_cast_ulong(pTHX_ NV f)
303 __attribute__warn_unused_result__;
304
305PERL_CALLCONV I32 Perl_cast_i32(pTHX_ NV f)
306 __attribute__warn_unused_result__;
307
308PERL_CALLCONV IV Perl_cast_iv(pTHX_ NV f)
309 __attribute__warn_unused_result__;
310
311PERL_CALLCONV UV Perl_cast_uv(pTHX_ NV f)
312 __attribute__warn_unused_result__;
313
cea2e8a9 314#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
53c1dcc0
AL
315PERL_CALLCONV I32 Perl_my_chsize(pTHX_ int fd, Off_t length)
316 __attribute__warn_unused_result__;
317
cea2e8a9 318#endif
53c1dcc0
AL
319PERL_CALLCONV OP* Perl_convert(pTHX_ I32 optype, I32 flags, OP* o)
320 __attribute__warn_unused_result__;
321
edb2152a 322PERL_CALLCONV PERL_CONTEXT* Perl_create_eval_scope(pTHX_ U32 flags);
f54cb97a 323PERL_CALLCONV void Perl_croak(pTHX_ const char* pat, ...)
cdfeb707
RB
324 __attribute__noreturn__
325 __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
f54cb97a
AL
326
327PERL_CALLCONV void Perl_vcroak(pTHX_ const char* pat, va_list* args)
f3dc127a 328 __attribute__noreturn__;
f54cb97a 329
afa74d42
NC
330PERL_CALLCONV void Perl_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
331 __attribute__noreturn__
332 __attribute__nonnull__(pTHX_1)
333 __attribute__nonnull__(pTHX_2);
334#define PERL_ARGS_ASSERT_CROAK_XS_USAGE \
335 assert(cv); assert(params)
336
337
cea2e8a9 338#if defined(PERL_IMPLICIT_CONTEXT)
f54cb97a 339PERL_CALLCONV void Perl_croak_nocontext(const char* pat, ...)
abb2c242 340 __attribute__noreturn__
52a5bfab 341 __attribute__format__null_ok__(__printf__,1,2);
f54cb97a 342
894356b3 343PERL_CALLCONV OP* Perl_die_nocontext(const char* pat, ...)
255164ba
DM
344 __attribute__format__(__printf__,1,2)
345 __attribute__nonnull__(1);
7918f24d
NC
346#define PERL_ARGS_ASSERT_DIE_NOCONTEXT \
347 assert(pat)
f54cb97a 348
894356b3 349PERL_CALLCONV void Perl_deb_nocontext(const char* pat, ...)
255164ba
DM
350 __attribute__format__(__printf__,1,2)
351 __attribute__nonnull__(1);
7918f24d
NC
352#define PERL_ARGS_ASSERT_DEB_NOCONTEXT \
353 assert(pat)
f54cb97a 354
894356b3 355PERL_CALLCONV char* Perl_form_nocontext(const char* pat, ...)
255164ba
DM
356 __attribute__format__(__printf__,1,2)
357 __attribute__nonnull__(1);
7918f24d
NC
358#define PERL_ARGS_ASSERT_FORM_NOCONTEXT \
359 assert(pat)
255164ba
DM
360
361PERL_CALLCONV void Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...)
3d4dd4c7 362 __attribute__nonnull__(2);
7918f24d
NC
363#define PERL_ARGS_ASSERT_LOAD_MODULE_NOCONTEXT \
364 assert(name)
f54cb97a 365
894356b3 366PERL_CALLCONV SV* Perl_mess_nocontext(const char* pat, ...)
255164ba
DM
367 __attribute__format__(__printf__,1,2)
368 __attribute__nonnull__(1);
7918f24d
NC
369#define PERL_ARGS_ASSERT_MESS_NOCONTEXT \
370 assert(pat)
f54cb97a 371
894356b3 372PERL_CALLCONV void Perl_warn_nocontext(const char* pat, ...)
255164ba
DM
373 __attribute__format__(__printf__,1,2)
374 __attribute__nonnull__(1);
7918f24d
NC
375#define PERL_ARGS_ASSERT_WARN_NOCONTEXT \
376 assert(pat)
f54cb97a 377
894356b3 378PERL_CALLCONV void Perl_warner_nocontext(U32 err, const char* pat, ...)
255164ba
DM
379 __attribute__format__(__printf__,2,3)
380 __attribute__nonnull__(2);
7918f24d
NC
381#define PERL_ARGS_ASSERT_WARNER_NOCONTEXT \
382 assert(pat)
f54cb97a 383
23f13727 384PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char *const pat, ...)
255164ba
DM
385 __attribute__format__(__printf__,1,2)
386 __attribute__nonnull__(1);
7918f24d
NC
387#define PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT \
388 assert(pat)
f54cb97a 389
89e38212 390PERL_CALLCONV void Perl_sv_catpvf_nocontext(SV *const sv, const char *const pat, ...)
255164ba 391 __attribute__format__(__printf__,2,3)
fb9bf107
NC
392 __attribute__nonnull__(1)
393 __attribute__nonnull__(2);
7918f24d
NC
394#define PERL_ARGS_ASSERT_SV_CATPVF_NOCONTEXT \
395 assert(sv); assert(pat)
f54cb97a 396
89e38212 397PERL_CALLCONV void Perl_sv_setpvf_nocontext(SV *const sv, const char *const pat, ...)
255164ba 398 __attribute__format__(__printf__,2,3)
fb9bf107
NC
399 __attribute__nonnull__(1)
400 __attribute__nonnull__(2);
7918f24d
NC
401#define PERL_ARGS_ASSERT_SV_SETPVF_NOCONTEXT \
402 assert(sv); assert(pat)
f54cb97a 403
89e38212 404PERL_CALLCONV void Perl_sv_catpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
255164ba 405 __attribute__format__(__printf__,2,3)
fb9bf107
NC
406 __attribute__nonnull__(1)
407 __attribute__nonnull__(2);
7918f24d
NC
408#define PERL_ARGS_ASSERT_SV_CATPVF_MG_NOCONTEXT \
409 assert(sv); assert(pat)
f54cb97a 410
89e38212 411PERL_CALLCONV void Perl_sv_setpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
255164ba 412 __attribute__format__(__printf__,2,3)
fb9bf107
NC
413 __attribute__nonnull__(1)
414 __attribute__nonnull__(2);
7918f24d
NC
415#define PERL_ARGS_ASSERT_SV_SETPVF_MG_NOCONTEXT \
416 assert(sv); assert(pat)
f54cb97a 417
4048f010 418PERL_CALLCONV int Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
255164ba
DM
419 __attribute__format__(__printf__,2,3)
420 __attribute__nonnull__(1)
421 __attribute__nonnull__(2);
7918f24d
NC
422#define PERL_ARGS_ASSERT_FPRINTF_NOCONTEXT \
423 assert(stream); assert(format)
f54cb97a 424
4048f010 425PERL_CALLCONV int Perl_printf_nocontext(const char *format, ...)
255164ba
DM
426 __attribute__format__(__printf__,1,2)
427 __attribute__nonnull__(1);
7918f24d
NC
428#define PERL_ARGS_ASSERT_PRINTF_NOCONTEXT \
429 assert(format)
f54cb97a 430
0cb96387 431#endif
cbf82dd0
NC
432PERL_CALLCONV void Perl_cv_ckproto_len(pTHX_ const CV* cv, const GV* gv, const char* p, const STRLEN len)
433 __attribute__nonnull__(pTHX_1);
7918f24d
NC
434#define PERL_ARGS_ASSERT_CV_CKPROTO_LEN \
435 assert(cv)
cbf82dd0 436
4373e329 437PERL_CALLCONV CV* Perl_cv_clone(pTHX_ CV* proto)
abb2c242 438 __attribute__nonnull__(pTHX_1);
7918f24d
NC
439#define PERL_ARGS_ASSERT_CV_CLONE \
440 assert(proto)
f54cb97a 441
62d55b22
NC
442PERL_CALLCONV SV* Perl_gv_const_sv(pTHX_ GV* gv)
443 __attribute__warn_unused_result__
444 __attribute__nonnull__(pTHX_1);
7918f24d
NC
445#define PERL_ARGS_ASSERT_GV_CONST_SV \
446 assert(gv)
62d55b22 447
d45f5b30 448PERL_CALLCONV SV* Perl_cv_const_sv(pTHX_ const CV *const cv)
255164ba
DM
449 __attribute__warn_unused_result__;
450
451PERL_CALLCONV SV* Perl_op_const_sv(pTHX_ const OP* o, CV* cv)
452 __attribute__warn_unused_result__;
453
454PERL_CALLCONV void Perl_cv_undef(pTHX_ CV* cv)
455 __attribute__nonnull__(pTHX_1);
7918f24d
NC
456#define PERL_ARGS_ASSERT_CV_UNDEF \
457 assert(cv)
255164ba
DM
458
459PERL_CALLCONV void Perl_cx_dump(pTHX_ PERL_CONTEXT* cx)
460 __attribute__nonnull__(pTHX_1);
7918f24d
NC
461#define PERL_ARGS_ASSERT_CX_DUMP \
462 assert(cx)
255164ba 463
1d7c1841 464PERL_CALLCONV SV* Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
255164ba
DM
465PERL_CALLCONV void Perl_filter_del(pTHX_ filter_t funcp)
466 __attribute__nonnull__(pTHX_1);
7918f24d
NC
467#define PERL_ARGS_ASSERT_FILTER_DEL \
468 assert(funcp)
255164ba 469
4048f010 470PERL_CALLCONV I32 Perl_filter_read(pTHX_ int idx, SV *buf_sv, int maxlen)
255164ba
DM
471 __attribute__warn_unused_result__
472 __attribute__nonnull__(pTHX_2);
7918f24d
NC
473#define PERL_ARGS_ASSERT_FILTER_READ \
474 assert(buf_sv)
255164ba 475
4373e329 476PERL_CALLCONV char** Perl_get_op_descs(pTHX)
abb2c242
JH
477 __attribute__warn_unused_result__
478 __attribute__pure__;
f54cb97a 479
4373e329 480PERL_CALLCONV char** Perl_get_op_names(pTHX)
abb2c242
JH
481 __attribute__warn_unused_result__
482 __attribute__pure__;
f54cb97a 483
4373e329 484PERL_CALLCONV const char* Perl_get_no_modify(pTHX)
abb2c242
JH
485 __attribute__warn_unused_result__
486 __attribute__pure__;
f54cb97a 487
4373e329 488PERL_CALLCONV U32* Perl_get_opargs(pTHX)
abb2c242
JH
489 __attribute__warn_unused_result__
490 __attribute__pure__;
f54cb97a 491
4373e329 492PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX)
abb2c242
JH
493 __attribute__warn_unused_result__
494 __attribute__pure__;
f54cb97a 495
a3b680e6 496PERL_CALLCONV I32 Perl_cxinc(pTHX)
abb2c242 497 __attribute__warn_unused_result__;
a3b680e6 498
894356b3 499PERL_CALLCONV void Perl_deb(pTHX_ const char* pat, ...)
255164ba
DM
500 __attribute__format__(__printf__,pTHX_1,pTHX_2)
501 __attribute__nonnull__(pTHX_1);
7918f24d
NC
502#define PERL_ARGS_ASSERT_DEB \
503 assert(pat)
255164ba
DM
504
505PERL_CALLCONV void Perl_vdeb(pTHX_ const char* pat, va_list* args)
506 __attribute__nonnull__(pTHX_1);
7918f24d
NC
507#define PERL_ARGS_ASSERT_VDEB \
508 assert(pat)
f54cb97a 509
1d7c1841 510PERL_CALLCONV void Perl_debprofdump(pTHX);
4373e329 511PERL_CALLCONV I32 Perl_debop(pTHX_ const OP* o)
abb2c242 512 __attribute__nonnull__(pTHX_1);
7918f24d
NC
513#define PERL_ARGS_ASSERT_DEBOP \
514 assert(o)
f54cb97a 515
1d7c1841
GS
516PERL_CALLCONV I32 Perl_debstack(pTHX);
517PERL_CALLCONV I32 Perl_debstackptrs(pTHX);
4373e329 518PERL_CALLCONV char* Perl_delimcpy(pTHX_ char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen)
abb2c242
JH
519 __attribute__nonnull__(pTHX_1)
520 __attribute__nonnull__(pTHX_2)
521 __attribute__nonnull__(pTHX_3)
522 __attribute__nonnull__(pTHX_4)
523 __attribute__nonnull__(pTHX_6);
7918f24d
NC
524#define PERL_ARGS_ASSERT_DELIMCPY \
525 assert(to); assert(toend); assert(from); assert(fromend); assert(retlen)
f54cb97a 526
edb2152a 527PERL_CALLCONV void Perl_delete_eval_scope(pTHX);
15f169a1 528PERL_CALLCONV void Perl_deprecate(pTHX_ const char *const s)
abb2c242 529 __attribute__nonnull__(pTHX_1);
7918f24d
NC
530#define PERL_ARGS_ASSERT_DEPRECATE \
531 assert(s)
f54cb97a 532
15f169a1 533PERL_CALLCONV void Perl_deprecate_old(pTHX_ const char *const s)
abb2c242 534 __attribute__nonnull__(pTHX_1);
7918f24d
NC
535#define PERL_ARGS_ASSERT_DEPRECATE_OLD \
536 assert(s)
f54cb97a 537
cdfeb707
RB
538PERL_CALLCONV OP* Perl_die(pTHX_ const char* pat, ...)
539 __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
540
82af08ae 541#if defined(PERL_IN_UTIL_C)
e3cf49e2 542STATIC OP* S_vdie(pTHX_ const char* pat, va_list* args);
82af08ae 543#endif
6472dca1 544PERL_CALLCONV OP* Perl_die_where(pTHX_ const char* message, STRLEN msglen);
1d7c1841 545PERL_CALLCONV void Perl_dounwind(pTHX_ I32 cxix);
a9f96b3f 546/* PERL_CALLCONV bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp)
255164ba 547 __attribute__nonnull__(pTHX_2)
a9f96b3f 548 __attribute__nonnull__(pTHX_3); */
7918f24d
NC
549#define PERL_ARGS_ASSERT_DO_AEXEC \
550 assert(mark); assert(sp)
255164ba 551
5b5cf8d2 552PERL_CALLCONV bool Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int do_report)
255164ba
DM
553 __attribute__nonnull__(pTHX_2)
554 __attribute__nonnull__(pTHX_3);
7918f24d
NC
555#define PERL_ARGS_ASSERT_DO_AEXEC5 \
556 assert(mark); assert(sp)
255164ba 557
4373e329 558PERL_CALLCONV int Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
abb2c242 559 __attribute__nonnull__(pTHX_1);
7918f24d
NC
560#define PERL_ARGS_ASSERT_DO_BINMODE \
561 assert(fp)
f54cb97a 562
4048f010 563PERL_CALLCONV void Perl_do_chop(pTHX_ SV *astr, SV *sv)
abb2c242
JH
564 __attribute__nonnull__(pTHX_1)
565 __attribute__nonnull__(pTHX_2);
7918f24d
NC
566#define PERL_ARGS_ASSERT_DO_CHOP \
567 assert(astr); assert(sv)
f54cb97a 568
063df69c 569PERL_CALLCONV bool Perl_do_close(pTHX_ GV* gv, bool not_implicit);
4373e329 570PERL_CALLCONV bool Perl_do_eof(pTHX_ GV* gv)
abb2c242 571 __attribute__nonnull__(pTHX_1);
7918f24d
NC
572#define PERL_ARGS_ASSERT_DO_EOF \
573 assert(gv)
f54cb97a 574
8c654ff2
NC
575
576#ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION
9555a685
NC
577/* PERL_CALLCONV bool Perl_do_exec(pTHX_ const char* cmd)
578 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
579#define PERL_ARGS_ASSERT_DO_EXEC \
580 assert(cmd)
f54cb97a 581
8c654ff2
NC
582#else
583PERL_CALLCONV bool Perl_do_exec(pTHX_ const char* cmd)
584 __attribute__nonnull__(pTHX_1);
7918f24d
NC
585#define PERL_ARGS_ASSERT_DO_EXEC \
586 assert(cmd)
8c654ff2
NC
587
588#endif
589
9ec7171b 590#if defined(WIN32) || defined(__SYMBIAN32__) || defined(VMS)
255164ba 591PERL_CALLCONV int Perl_do_aspawn(pTHX_ SV* really, SV** mark, SV** sp)
255164ba
DM
592 __attribute__nonnull__(pTHX_2)
593 __attribute__nonnull__(pTHX_3);
7918f24d 594#define PERL_ARGS_ASSERT_DO_ASPAWN \
a3e405b2 595 assert(mark); assert(sp)
255164ba
DM
596
597PERL_CALLCONV int Perl_do_spawn(pTHX_ char* cmd)
598 __attribute__nonnull__(pTHX_1);
7918f24d
NC
599#define PERL_ARGS_ASSERT_DO_SPAWN \
600 assert(cmd)
255164ba
DM
601
602PERL_CALLCONV int Perl_do_spawn_nowait(pTHX_ char* cmd)
603 __attribute__nonnull__(pTHX_1);
7918f24d
NC
604#define PERL_ARGS_ASSERT_DO_SPAWN_NOWAIT \
605 assert(cmd)
255164ba 606
54725af6 607#endif
864dbfa3 608#if !defined(WIN32)
4048f010 609PERL_CALLCONV bool Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
255164ba 610 __attribute__nonnull__(pTHX_1);
7918f24d
NC
611#define PERL_ARGS_ASSERT_DO_EXEC3 \
612 assert(incmd)
255164ba 613
864dbfa3 614#endif
1d7c1841 615PERL_CALLCONV void Perl_do_execfree(pTHX);
a0f2c8ec 616#ifdef PERL_IN_DOIO_C
b1366aaf
RGS
617STATIC void S_exec_failed(pTHX_ const char *cmd, int fd, int do_report)
618 __attribute__nonnull__(pTHX_1);
7918f24d
NC
619#define PERL_ARGS_ASSERT_EXEC_FAILED \
620 assert(cmd)
b1366aaf 621
a0f2c8ec 622#endif
864dbfa3 623#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
fb9bf107
NC
624PERL_CALLCONV I32 Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp)
625 __attribute__nonnull__(pTHX_2)
626 __attribute__nonnull__(pTHX_3);
7918f24d
NC
627#define PERL_ARGS_ASSERT_DO_IPCCTL \
628 assert(mark); assert(sp)
fb9bf107
NC
629
630PERL_CALLCONV I32 Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp)
631 __attribute__nonnull__(pTHX_2)
632 __attribute__nonnull__(pTHX_3);
7918f24d
NC
633#define PERL_ARGS_ASSERT_DO_IPCGET \
634 assert(mark); assert(sp)
fb9bf107
NC
635
636PERL_CALLCONV I32 Perl_do_msgrcv(pTHX_ SV** mark, SV** sp)
637 __attribute__nonnull__(pTHX_1)
638 __attribute__nonnull__(pTHX_2);
7918f24d
NC
639#define PERL_ARGS_ASSERT_DO_MSGRCV \
640 assert(mark); assert(sp)
fb9bf107
NC
641
642PERL_CALLCONV I32 Perl_do_msgsnd(pTHX_ SV** mark, SV** sp)
643 __attribute__nonnull__(pTHX_1)
644 __attribute__nonnull__(pTHX_2);
7918f24d
NC
645#define PERL_ARGS_ASSERT_DO_MSGSND \
646 assert(mark); assert(sp)
fb9bf107
NC
647
648PERL_CALLCONV I32 Perl_do_semop(pTHX_ SV** mark, SV** sp)
649 __attribute__nonnull__(pTHX_1)
650 __attribute__nonnull__(pTHX_2);
7918f24d
NC
651#define PERL_ARGS_ASSERT_DO_SEMOP \
652 assert(mark); assert(sp)
fb9bf107
NC
653
654PERL_CALLCONV I32 Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp)
655 __attribute__nonnull__(pTHX_2)
656 __attribute__nonnull__(pTHX_3);
7918f24d
NC
657#define PERL_ARGS_ASSERT_DO_SHMIO \
658 assert(mark); assert(sp)
fb9bf107 659
0cb96387 660#endif
4048f010 661PERL_CALLCONV void Perl_do_join(pTHX_ SV *sv, SV *delim, SV **mark, SV **sp)
abb2c242
JH
662 __attribute__nonnull__(pTHX_1)
663 __attribute__nonnull__(pTHX_2)
664 __attribute__nonnull__(pTHX_3)
665 __attribute__nonnull__(pTHX_4);
7918f24d
NC
666#define PERL_ARGS_ASSERT_DO_JOIN \
667 assert(sv); assert(delim); assert(mark); assert(sp)
f54cb97a 668
1d7c1841 669PERL_CALLCONV OP* Perl_do_kv(pTHX);
e4dba786 670/* PERL_CALLCONV bool Perl_do_open(pTHX_ GV* gv, const char* name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp)
255164ba 671 __attribute__nonnull__(pTHX_1)
e4dba786 672 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
673#define PERL_ARGS_ASSERT_DO_OPEN \
674 assert(gv); assert(name)
255164ba 675
2fbb330f 676PERL_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)
255164ba
DM
677 __attribute__nonnull__(pTHX_1)
678 __attribute__nonnull__(pTHX_2)
679 __attribute__nonnull__(pTHX_8);
7918f24d
NC
680#define PERL_ARGS_ASSERT_DO_OPEN9 \
681 assert(gv); assert(name); assert(svs)
255164ba 682
4048f010 683PERL_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)
255164ba
DM
684 __attribute__nonnull__(pTHX_1)
685 __attribute__nonnull__(pTHX_2);
7918f24d
NC
686#define PERL_ARGS_ASSERT_DO_OPENN \
687 assert(gv); assert(oname)
255164ba 688
255164ba
DM
689PERL_CALLCONV bool Perl_do_print(pTHX_ SV* sv, PerlIO* fp)
690 __attribute__nonnull__(pTHX_2);
7918f24d
NC
691#define PERL_ARGS_ASSERT_DO_PRINT \
692 assert(fp)
255164ba
DM
693
694PERL_CALLCONV OP* Perl_do_readline(pTHX)
695 __attribute__warn_unused_result__;
696
697PERL_CALLCONV I32 Perl_do_chomp(pTHX_ SV* sv)
698 __attribute__nonnull__(pTHX_1);
7918f24d
NC
699#define PERL_ARGS_ASSERT_DO_CHOMP \
700 assert(sv)
255164ba 701
1d7c1841 702PERL_CALLCONV bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
255164ba
DM
703PERL_CALLCONV void Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg)
704 __attribute__nonnull__(pTHX_1)
705 __attribute__nonnull__(pTHX_3);
7918f24d
NC
706#define PERL_ARGS_ASSERT_DO_SPRINTF \
707 assert(sv); assert(sarg)
255164ba
DM
708
709PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence)
710 __attribute__nonnull__(pTHX_1);
7918f24d
NC
711#define PERL_ARGS_ASSERT_DO_SYSSEEK \
712 assert(gv)
255164ba
DM
713
714PERL_CALLCONV Off_t Perl_do_tell(pTHX_ GV* gv)
715 __attribute__warn_unused_result__
716 __attribute__nonnull__(pTHX_1);
7918f24d
NC
717#define PERL_ARGS_ASSERT_DO_TELL \
718 assert(gv)
255164ba
DM
719
720PERL_CALLCONV I32 Perl_do_trans(pTHX_ SV* sv)
721 __attribute__nonnull__(pTHX_1);
7918f24d
NC
722#define PERL_ARGS_ASSERT_DO_TRANS \
723 assert(sv)
255164ba 724
4373e329 725PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size)
abb2c242 726 __attribute__nonnull__(pTHX_1);
7918f24d
NC
727#define PERL_ARGS_ASSERT_DO_VECGET \
728 assert(sv)
f54cb97a 729
4373e329 730PERL_CALLCONV void Perl_do_vecset(pTHX_ SV* sv)
abb2c242 731 __attribute__nonnull__(pTHX_1);
7918f24d
NC
732#define PERL_ARGS_ASSERT_DO_VECSET \
733 assert(sv)
f54cb97a 734
255164ba
DM
735PERL_CALLCONV void Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right)
736 __attribute__nonnull__(pTHX_2)
737 __attribute__nonnull__(pTHX_3)
738 __attribute__nonnull__(pTHX_4);
7918f24d
NC
739#define PERL_ARGS_ASSERT_DO_VOP \
740 assert(sv); assert(left); assert(right)
255164ba 741
850e8516 742PERL_CALLCONV OP* Perl_dofile(pTHX_ OP* term, I32 force_builtin)
255164ba 743 __attribute__nonnull__(pTHX_1);
7918f24d
NC
744#define PERL_ARGS_ASSERT_DOFILE \
745 assert(term)
255164ba
DM
746
747PERL_CALLCONV I32 Perl_dowantarray(pTHX)
748 __attribute__warn_unused_result__;
749
1d7c1841
GS
750PERL_CALLCONV void Perl_dump_all(pTHX);
751PERL_CALLCONV void Perl_dump_eval(pTHX);
864dbfa3 752#if defined(DUMP_FDS)
9a957fbc
AL
753PERL_CALLCONV void Perl_dump_fds(pTHX_ char* s)
754 __attribute__nonnull__(pTHX_1);
7918f24d
NC
755#define PERL_ARGS_ASSERT_DUMP_FDS \
756 assert(s)
9a957fbc 757
0cb96387 758#endif
9a957fbc
AL
759PERL_CALLCONV void Perl_dump_form(pTHX_ const GV* gv)
760 __attribute__nonnull__(pTHX_1);
7918f24d
NC
761#define PERL_ARGS_ASSERT_DUMP_FORM \
762 assert(gv)
9a957fbc 763
255164ba
DM
764PERL_CALLCONV void Perl_gv_dump(pTHX_ GV* gv)
765 __attribute__nonnull__(pTHX_1);
7918f24d
NC
766#define PERL_ARGS_ASSERT_GV_DUMP \
767 assert(gv)
255164ba 768
4048f010 769PERL_CALLCONV void Perl_op_dump(pTHX_ const OP *o)
255164ba 770 __attribute__nonnull__(pTHX_1);
7918f24d
NC
771#define PERL_ARGS_ASSERT_OP_DUMP \
772 assert(o)
255164ba 773
1d7c1841 774PERL_CALLCONV void Perl_pmop_dump(pTHX_ PMOP* pm);
9a957fbc
AL
775PERL_CALLCONV void Perl_dump_packsubs(pTHX_ const HV* stash)
776 __attribute__nonnull__(pTHX_1);
7918f24d
NC
777#define PERL_ARGS_ASSERT_DUMP_PACKSUBS \
778 assert(stash)
9a957fbc 779
f54cb97a 780PERL_CALLCONV void Perl_dump_sub(pTHX_ const GV* gv)
abb2c242 781 __attribute__nonnull__(pTHX_1);
7918f24d
NC
782#define PERL_ARGS_ASSERT_DUMP_SUB \
783 assert(gv)
f54cb97a 784
255164ba
DM
785PERL_CALLCONV void Perl_fbm_compile(pTHX_ SV* sv, U32 flags)
786 __attribute__nonnull__(pTHX_1);
7918f24d
NC
787#define PERL_ARGS_ASSERT_FBM_COMPILE \
788 assert(sv)
255164ba 789
9f6cc744 790PERL_CALLCONV char* Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlestr, U32 flags)
255164ba
DM
791 __attribute__warn_unused_result__
792 __attribute__nonnull__(pTHX_1)
793 __attribute__nonnull__(pTHX_2)
794 __attribute__nonnull__(pTHX_3);
7918f24d
NC
795#define PERL_ARGS_ASSERT_FBM_INSTR \
796 assert(big); assert(bigend); assert(littlestr)
255164ba 797
fb9bf107
NC
798PERL_CALLCONV char* Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char *const *const search_ext, I32 flags)
799 __attribute__nonnull__(pTHX_1);
7918f24d
NC
800#define PERL_ARGS_ASSERT_FIND_SCRIPT \
801 assert(scriptname)
fb9bf107 802
b7783a12
NC
803#if defined(PERL_IN_OP_C)
804STATIC OP* S_force_list(pTHX_ OP* arg);
805STATIC OP* S_fold_constants(pTHX_ OP *o)
abb2c242 806 __attribute__nonnull__(pTHX_1);
7918f24d
NC
807#define PERL_ARGS_ASSERT_FOLD_CONSTANTS \
808 assert(o)
f54cb97a 809
b7783a12 810#endif
894356b3 811PERL_CALLCONV char* Perl_form(pTHX_ const char* pat, ...)
aec46f14
AL
812 __attribute__format__(__printf__,pTHX_1,pTHX_2)
813 __attribute__nonnull__(pTHX_1);
7918f24d
NC
814#define PERL_ARGS_ASSERT_FORM \
815 assert(pat)
aec46f14
AL
816
817PERL_CALLCONV char* Perl_vform(pTHX_ const char* pat, va_list* args)
818 __attribute__nonnull__(pTHX_1);
7918f24d
NC
819#define PERL_ARGS_ASSERT_VFORM \
820 assert(pat)
f54cb97a 821
1d7c1841 822PERL_CALLCONV void Perl_free_tmps(pTHX);
0da8eb3a 823#if defined(PERL_IN_OP_C)
b7783a12 824STATIC OP* S_gen_constant_list(pTHX_ OP* o);
0da8eb3a 825#endif
864dbfa3 826#if !defined(HAS_GETENV_LEN)
9f6cc744 827PERL_CALLCONV char* Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len)
8772537c
AL
828 __attribute__nonnull__(pTHX_1)
829 __attribute__nonnull__(pTHX_2);
7918f24d
NC
830#define PERL_ARGS_ASSERT_GETENV_LEN \
831 assert(env_elem); assert(len)
8772537c 832
0cb96387 833#endif
005a8a35
NC
834PERL_CALLCONV void Perl_get_db_sub(pTHX_ SV **svp, CV *cv)
835 __attribute__nonnull__(pTHX_2);
7918f24d
NC
836#define PERL_ARGS_ASSERT_GET_DB_SUB \
837 assert(cv)
005a8a35 838
1d7c1841
GS
839PERL_CALLCONV void Perl_gp_free(pTHX_ GV* gv);
840PERL_CALLCONV GP* Perl_gp_ref(pTHX_ GP* gp);
53c1dcc0
AL
841PERL_CALLCONV GV* Perl_gv_AVadd(pTHX_ GV* gv)
842 __attribute__nonnull__(pTHX_1);
7918f24d
NC
843#define PERL_ARGS_ASSERT_GV_AVADD \
844 assert(gv)
53c1dcc0
AL
845
846PERL_CALLCONV GV* Perl_gv_HVadd(pTHX_ GV* gv)
847 __attribute__nonnull__(pTHX_1);
7918f24d
NC
848#define PERL_ARGS_ASSERT_GV_HVADD \
849 assert(gv)
53c1dcc0
AL
850
851PERL_CALLCONV GV* Perl_gv_IOadd(pTHX_ GV* gv)
852 __attribute__nonnull__(pTHX_1);
7918f24d
NC
853#define PERL_ARGS_ASSERT_GV_IOADD \
854 assert(gv)
53c1dcc0 855
a28509cc
AL
856PERL_CALLCONV GV* Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method)
857 __attribute__warn_unused_result__
858 __attribute__nonnull__(pTHX_2);
7918f24d
NC
859#define PERL_ARGS_ASSERT_GV_AUTOLOAD4 \
860 assert(name)
a28509cc 861
1146e912 862PERL_CALLCONV void Perl_gv_check(pTHX_ const HV* stash)
46c461b5 863 __attribute__nonnull__(pTHX_1);
7918f24d
NC
864#define PERL_ARGS_ASSERT_GV_CHECK \
865 assert(stash)
46c461b5
AL
866
867PERL_CALLCONV void Perl_gv_efullname(pTHX_ SV* sv, const GV* gv)
868 __attribute__nonnull__(pTHX_1)
869 __attribute__nonnull__(pTHX_2);
7918f24d
NC
870#define PERL_ARGS_ASSERT_GV_EFULLNAME \
871 assert(sv); assert(gv)
46c461b5
AL
872
873/* PERL_CALLCONV void Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
874 __attribute__nonnull__(pTHX_1)
875 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
876#define PERL_ARGS_ASSERT_GV_EFULLNAME3 \
877 assert(sv); assert(gv)
46c461b5
AL
878
879PERL_CALLCONV void Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
880 __attribute__nonnull__(pTHX_1)
881 __attribute__nonnull__(pTHX_2);
7918f24d
NC
882#define PERL_ARGS_ASSERT_GV_EFULLNAME4 \
883 assert(sv); assert(gv)
46c461b5 884
53c1dcc0
AL
885PERL_CALLCONV GV* Perl_gv_fetchfile(pTHX_ const char* name)
886 __attribute__nonnull__(pTHX_1);
7918f24d
NC
887#define PERL_ARGS_ASSERT_GV_FETCHFILE \
888 assert(name)
53c1dcc0 889
d9095cec
NC
890PERL_CALLCONV GV* Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN len, const U32 flags)
891 __attribute__nonnull__(pTHX_1);
7918f24d
NC
892#define PERL_ARGS_ASSERT_GV_FETCHFILE_FLAGS \
893 assert(name)
d9095cec 894
fb9bf107
NC
895PERL_CALLCONV GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
896 __attribute__nonnull__(pTHX_2);
7918f24d
NC
897#define PERL_ARGS_ASSERT_GV_FETCHMETH \
898 assert(name)
fb9bf107
NC
899
900PERL_CALLCONV GV* Perl_gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
901 __attribute__nonnull__(pTHX_2);
7918f24d
NC
902#define PERL_ARGS_ASSERT_GV_FETCHMETH_AUTOLOAD \
903 assert(name)
fb9bf107 904
887986eb 905/* PERL_CALLCONV GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name)
eff494dd 906 __attribute__nonnull__(pTHX_1)
887986eb 907 __attribute__nonnull__(pTHX_2); */
7918f24d 908#define PERL_ARGS_ASSERT_GV_FETCHMETHOD \
eff494dd 909 assert(stash); assert(name)
fb9bf107
NC
910
911PERL_CALLCONV GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload)
eff494dd 912 __attribute__nonnull__(pTHX_1)
fb9bf107 913 __attribute__nonnull__(pTHX_2);
7918f24d 914#define PERL_ARGS_ASSERT_GV_FETCHMETHOD_AUTOLOAD \
eff494dd 915 assert(stash); assert(name)
fb9bf107 916
256d1bb2 917PERL_CALLCONV GV* Perl_gv_fetchmethod_flags(pTHX_ HV* stash, const char* name, U32 flags)
eff494dd 918 __attribute__nonnull__(pTHX_1)
256d1bb2
NC
919 __attribute__nonnull__(pTHX_2);
920#define PERL_ARGS_ASSERT_GV_FETCHMETHOD_FLAGS \
eff494dd 921 assert(stash); assert(name)
256d1bb2 922
fe9845cc 923PERL_CALLCONV GV* Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, const svtype sv_type)
9a957fbc 924 __attribute__nonnull__(pTHX_1);
7918f24d
NC
925#define PERL_ARGS_ASSERT_GV_FETCHPV \
926 assert(nambeg)
9a957fbc
AL
927
928PERL_CALLCONV void Perl_gv_fullname(pTHX_ SV* sv, const GV* gv)
929 __attribute__nonnull__(pTHX_1)
930 __attribute__nonnull__(pTHX_2);
7918f24d
NC
931#define PERL_ARGS_ASSERT_GV_FULLNAME \
932 assert(sv); assert(gv)
9a957fbc
AL
933
934/* PERL_CALLCONV void Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
935 __attribute__nonnull__(pTHX_1)
936 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
937#define PERL_ARGS_ASSERT_GV_FULLNAME3 \
938 assert(sv); assert(gv)
9a957fbc
AL
939
940PERL_CALLCONV void Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
941 __attribute__nonnull__(pTHX_1)
942 __attribute__nonnull__(pTHX_2);
7918f24d
NC
943#define PERL_ARGS_ASSERT_GV_FULLNAME4 \
944 assert(sv); assert(gv)
9a957fbc 945
12816592
NC
946PERL_CALLCONV GP * Perl_newGP(pTHX_ GV *const gv)
947 __attribute__nonnull__(pTHX_1);
7918f24d
NC
948#define PERL_ARGS_ASSERT_NEWGP \
949 assert(gv)
12816592 950
53c1dcc0
AL
951PERL_CALLCONV void Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi)
952 __attribute__nonnull__(pTHX_1)
53c1dcc0 953 __attribute__nonnull__(pTHX_3);
7918f24d
NC
954#define PERL_ARGS_ASSERT_GV_INIT \
955 assert(gv); assert(name)
53c1dcc0 956
f5c1e807 957PERL_CALLCONV void Perl_gv_name_set(pTHX_ GV* gv, const char *name, U32 len, U32 flags)
9f616d01
MHM
958 __attribute__nonnull__(pTHX_1)
959 __attribute__nonnull__(pTHX_2);
7918f24d
NC
960#define PERL_ARGS_ASSERT_GV_NAME_SET \
961 assert(gv); assert(name)
f5c1e807 962
da51bb9b 963PERL_CALLCONV HV* Perl_gv_stashpv(pTHX_ const char* name, I32 flags)
aa924a5a 964 __attribute__nonnull__(pTHX_1);
7918f24d
NC
965#define PERL_ARGS_ASSERT_GV_STASHPV \
966 assert(name)
aa924a5a 967
da51bb9b 968PERL_CALLCONV HV* Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 flags)
aa924a5a 969 __attribute__nonnull__(pTHX_1);
7918f24d
NC
970#define PERL_ARGS_ASSERT_GV_STASHPVN \
971 assert(name)
aa924a5a 972
8798655d
NC
973PERL_CALLCONV HV* Perl_gv_stashsv(pTHX_ SV* sv, I32 flags)
974 __attribute__nonnull__(pTHX_1);
7918f24d
NC
975#define PERL_ARGS_ASSERT_GV_STASHSV \
976 assert(sv)
8798655d 977
4048f010 978PERL_CALLCONV void Perl_hv_clear(pTHX_ HV *hv);
3d4dd4c7 979PERL_CALLCONV HV * Perl_hv_copy_hints_hv(pTHX_ HV *const ohv);
4048f010 980PERL_CALLCONV void Perl_hv_delayfree_ent(pTHX_ HV *hv, HE *entry)
aa924a5a 981 __attribute__nonnull__(pTHX_1);
7918f24d
NC
982#define PERL_ARGS_ASSERT_HV_DELAYFREE_ENT \
983 assert(hv)
aa924a5a 984
4048f010 985/* PERL_CALLCONV SV* Perl_hv_delete(pTHX_ HV *hv, const char *key, I32 klen, I32 flags)
a038e571 986 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
987#define PERL_ARGS_ASSERT_HV_DELETE \
988 assert(key)
aa924a5a 989
4048f010 990/* PERL_CALLCONV SV* Perl_hv_delete_ent(pTHX_ HV *hv, SV *keysv, I32 flags, U32 hash)
4c2df08c 991 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
992#define PERL_ARGS_ASSERT_HV_DELETE_ENT \
993 assert(keysv)
aa924a5a 994
4048f010 995/* PERL_CALLCONV bool Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen)
aa924a5a 996 __attribute__warn_unused_result__
a038e571 997 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
998#define PERL_ARGS_ASSERT_HV_EXISTS \
999 assert(key)
901017d6 1000
4048f010 1001/* PERL_CALLCONV bool Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
aa924a5a 1002 __attribute__warn_unused_result__
4c2df08c 1003 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
1004#define PERL_ARGS_ASSERT_HV_EXISTS_ENT \
1005 assert(keysv)
aa924a5a 1006
4048f010 1007/* PERL_CALLCONV SV** Perl_hv_fetch(pTHX_ HV *hv, const char *key, I32 klen, I32 lval)
a038e571 1008 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
1009#define PERL_ARGS_ASSERT_HV_FETCH \
1010 assert(key)
901017d6 1011
4048f010 1012/* PERL_CALLCONV HE* Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, U32 hash)
4c2df08c 1013 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
1014#define PERL_ARGS_ASSERT_HV_FETCH_ENT \
1015 assert(keysv)
aa924a5a 1016
4048f010 1017PERL_CALLCONV void* Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char* key, STRLEN klen, int flags, int action, SV *val, U32 hash);
a038e571
NC
1018PERL_CALLCONV void* Perl_hv_common_key_len(pTHX_ HV *hv, const char *key, I32 klen_i32, const int action, SV *val, const U32 hash)
1019 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1020#define PERL_ARGS_ASSERT_HV_COMMON_KEY_LEN \
1021 assert(key)
a038e571 1022
4048f010 1023PERL_CALLCONV void Perl_hv_free_ent(pTHX_ HV *hv, HE *entryK)
abb2c242 1024 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1025#define PERL_ARGS_ASSERT_HV_FREE_ENT \
1026 assert(hv)
a3b680e6 1027
4048f010 1028PERL_CALLCONV I32 Perl_hv_iterinit(pTHX_ HV *hv)
abb2c242 1029 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1030#define PERL_ARGS_ASSERT_HV_ITERINIT \
1031 assert(hv)
a3b680e6
AL
1032
1033PERL_CALLCONV char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
abb2c242
JH
1034 __attribute__warn_unused_result__
1035 __attribute__nonnull__(pTHX_1)
1036 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1037#define PERL_ARGS_ASSERT_HV_ITERKEY \
1038 assert(entry); assert(retlen)
a3b680e6
AL
1039
1040PERL_CALLCONV SV* Perl_hv_iterkeysv(pTHX_ HE* entry)
abb2c242
JH
1041 __attribute__warn_unused_result__
1042 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1043#define PERL_ARGS_ASSERT_HV_ITERKEYSV \
1044 assert(entry)
a3b680e6 1045
4048f010 1046/* PERL_CALLCONV HE* Perl_hv_iternext(pTHX_ HV *hv)
abb2c242 1047 __attribute__warn_unused_result__
7a7b9979 1048 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1049#define PERL_ARGS_ASSERT_HV_ITERNEXT \
1050 assert(hv)
a3b680e6 1051
4048f010 1052PERL_CALLCONV SV* Perl_hv_iternextsv(pTHX_ HV *hv, char **key, I32 *retlen)
abb2c242
JH
1053 __attribute__warn_unused_result__
1054 __attribute__nonnull__(pTHX_1)
1055 __attribute__nonnull__(pTHX_2)
1056 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1057#define PERL_ARGS_ASSERT_HV_ITERNEXTSV \
1058 assert(hv); assert(key); assert(retlen)
a3b680e6 1059
4048f010 1060PERL_CALLCONV HE* Perl_hv_iternext_flags(pTHX_ HV *hv, I32 flags)
abb2c242
JH
1061 __attribute__warn_unused_result__
1062 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1063#define PERL_ARGS_ASSERT_HV_ITERNEXT_FLAGS \
1064 assert(hv)
a3b680e6 1065
4048f010 1066PERL_CALLCONV SV* Perl_hv_iterval(pTHX_ HV *hv, HE *entry)
abb2c242
JH
1067 __attribute__warn_unused_result__
1068 __attribute__nonnull__(pTHX_1)
1069 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1070#define PERL_ARGS_ASSERT_HV_ITERVAL \
1071 assert(hv); assert(entry)
a3b680e6 1072
4048f010 1073PERL_CALLCONV void Perl_hv_ksplit(pTHX_ HV *hv, IV newmax)
abb2c242 1074 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1075#define PERL_ARGS_ASSERT_HV_KSPLIT \
1076 assert(hv)
a3b680e6 1077
4048f010 1078/* PERL_CALLCONV void Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how)
bc5cdc23 1079 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1080#define PERL_ARGS_ASSERT_HV_MAGIC \
1081 assert(hv)
fb9bf107 1082
b3ca2e83 1083PERL_CALLCONV HV * Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c);
18759386 1084PERL_CALLCONV SV * Perl_refcounted_he_fetch(pTHX_ const struct refcounted_he *chain, SV *keysv, const char *key, STRLEN klen, int flags, U32 hash);
b3ca2e83 1085PERL_CALLCONV void Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
b46c265e 1086PERL_CALLCONV struct refcounted_he * Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, SV *const key, SV *const value);
012da8e5
NC
1087#if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT)
1088STATIC struct refcounted_he * S_refcounted_he_new_common(pTHX_ struct refcounted_he *const parent, const char *const key_p, const STRLEN key_len, const char flags, char value_type, const void *value, const STRLEN value_len)
1089 __attribute__nonnull__(pTHX_2)
1090 __attribute__nonnull__(pTHX_6);
1091#define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_COMMON \
1092 assert(key_p); assert(value)
1093
1094#endif
4048f010
NC
1095/* PERL_CALLCONV SV** Perl_hv_store(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash); */
1096/* PERL_CALLCONV HE* Perl_hv_store_ent(pTHX_ HV *hv, SV *key, SV *val, U32 hash); */
1097/* PERL_CALLCONV SV** Perl_hv_store_flags(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash, int flags); */
1098PERL_CALLCONV void Perl_hv_undef(pTHX_ HV *hv);
4373e329 1099PERL_CALLCONV I32 Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len)
abb2c242
JH
1100 __attribute__pure__
1101 __attribute__nonnull__(pTHX_1)
1102 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1103#define PERL_ARGS_ASSERT_IBCMP \
1104 assert(a); assert(b)
f54cb97a 1105
4373e329 1106PERL_CALLCONV I32 Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len)
abb2c242
JH
1107 __attribute__pure__
1108 __attribute__nonnull__(pTHX_1)
1109 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1110#define PERL_ARGS_ASSERT_IBCMP_LOCALE \
1111 assert(a); assert(b)
f54cb97a 1112
4048f010 1113PERL_CALLCONV I32 Perl_ibcmp_utf8(pTHX_ const char *s1, char **pe1, UV l1, bool u1, const char *s2, char **pe2, UV l2, bool u2)
abb2c242
JH
1114 __attribute__nonnull__(pTHX_1)
1115 __attribute__nonnull__(pTHX_5);
7918f24d
NC
1116#define PERL_ARGS_ASSERT_IBCMP_UTF8 \
1117 assert(s1); assert(s2)
f54cb97a 1118
0da8eb3a
NC
1119#if defined(PERL_IN_DOIO_C)
1120STATIC bool S_ingroup(pTHX_ Gid_t testgid, bool effective)
abb2c242 1121 __attribute__warn_unused_result__;
f54cb97a 1122
0da8eb3a 1123#endif
4373e329 1124PERL_CALLCONV void Perl_init_argv_symbols(pTHX_ int argc, char **argv)
abb2c242 1125 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1126#define PERL_ARGS_ASSERT_INIT_ARGV_SYMBOLS \
1127 assert(argv)
f54cb97a 1128
1d7c1841
GS
1129PERL_CALLCONV void Perl_init_debugger(pTHX);
1130PERL_CALLCONV void Perl_init_stacks(pTHX);
bfce84ec
AL
1131PERL_CALLCONV void Perl_init_tm(pTHX_ struct tm *ptm)
1132 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1133#define PERL_ARGS_ASSERT_INIT_TM \
1134 assert(ptm)
bfce84ec 1135
1d7c1841 1136PERL_CALLCONV U32 Perl_intro_my(pTHX);
4373e329 1137PERL_CALLCONV char* Perl_instr(pTHX_ const char* big, const char* little)
b464bac0 1138 __attribute__warn_unused_result__
abb2c242
JH
1139 __attribute__pure__
1140 __attribute__nonnull__(pTHX_1)
1141 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1142#define PERL_ARGS_ASSERT_INSTR \
1143 assert(big); assert(little)
f54cb97a 1144
b464bac0 1145PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit)
b464bac0 1146 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1147#define PERL_ARGS_ASSERT_IO_CLOSE \
1148 assert(io)
b464bac0
AL
1149
1150PERL_CALLCONV OP* Perl_invert(pTHX_ OP* cmd)
1151 __attribute__warn_unused_result__;
1152
c8aa86e1
NC
1153#if defined(PERL_IN_GV_C)
1154STATIC bool S_is_gv_magical(pTHX_ const char *name, STRLEN len, U32 flags)
9d4ba2ae
AL
1155 __attribute__warn_unused_result__
1156 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1157#define PERL_ARGS_ASSERT_IS_GV_MAGICAL \
1158 assert(name)
f54cb97a 1159
c8aa86e1 1160#endif
f54cb97a 1161PERL_CALLCONV I32 Perl_is_lvalue_sub(pTHX)
abb2c242 1162 __attribute__warn_unused_result__;
f54cb97a
AL
1163
1164PERL_CALLCONV U32 Perl_to_uni_upper_lc(pTHX_ U32 c)
abb2c242
JH
1165 __attribute__warn_unused_result__
1166 __attribute__pure__;
f54cb97a
AL
1167
1168PERL_CALLCONV U32 Perl_to_uni_title_lc(pTHX_ U32 c)
abb2c242
JH
1169 __attribute__warn_unused_result__
1170 __attribute__pure__;
f54cb97a
AL
1171
1172PERL_CALLCONV U32 Perl_to_uni_lower_lc(pTHX_ U32 c)
abb2c242
JH
1173 __attribute__warn_unused_result__
1174 __attribute__pure__;
f54cb97a
AL
1175
1176PERL_CALLCONV bool Perl_is_uni_alnum(pTHX_ UV c)
abb2c242
JH
1177 __attribute__warn_unused_result__
1178 __attribute__pure__;
f54cb97a
AL
1179
1180PERL_CALLCONV bool Perl_is_uni_alnumc(pTHX_ UV c)
abb2c242
JH
1181 __attribute__warn_unused_result__
1182 __attribute__pure__;
f54cb97a
AL
1183
1184PERL_CALLCONV bool Perl_is_uni_idfirst(pTHX_ UV c)
abb2c242
JH
1185 __attribute__warn_unused_result__
1186 __attribute__pure__;
f54cb97a
AL
1187
1188PERL_CALLCONV bool Perl_is_uni_alpha(pTHX_ UV c)
abb2c242
JH
1189 __attribute__warn_unused_result__
1190 __attribute__pure__;
f54cb97a
AL
1191
1192PERL_CALLCONV bool Perl_is_uni_ascii(pTHX_ UV c)
abb2c242
JH
1193 __attribute__warn_unused_result__
1194 __attribute__pure__;
f54cb97a
AL
1195
1196PERL_CALLCONV bool Perl_is_uni_space(pTHX_ UV c)
abb2c242
JH
1197 __attribute__warn_unused_result__
1198 __attribute__pure__;
f54cb97a
AL
1199
1200PERL_CALLCONV bool Perl_is_uni_cntrl(pTHX_ UV c)
abb2c242
JH
1201 __attribute__warn_unused_result__
1202 __attribute__pure__;
f54cb97a
AL
1203
1204PERL_CALLCONV bool Perl_is_uni_graph(pTHX_ UV c)
abb2c242
JH
1205 __attribute__warn_unused_result__
1206 __attribute__pure__;
f54cb97a
AL
1207
1208PERL_CALLCONV bool Perl_is_uni_digit(pTHX_ UV c)
abb2c242
JH
1209 __attribute__warn_unused_result__
1210 __attribute__pure__;
f54cb97a
AL
1211
1212PERL_CALLCONV bool Perl_is_uni_upper(pTHX_ UV c)
abb2c242
JH
1213 __attribute__warn_unused_result__
1214 __attribute__pure__;
f54cb97a
AL
1215
1216PERL_CALLCONV bool Perl_is_uni_lower(pTHX_ UV c)
abb2c242
JH
1217 __attribute__warn_unused_result__
1218 __attribute__pure__;
f54cb97a
AL
1219
1220PERL_CALLCONV bool Perl_is_uni_print(pTHX_ UV c)
abb2c242
JH
1221 __attribute__warn_unused_result__
1222 __attribute__pure__;
f54cb97a
AL
1223
1224PERL_CALLCONV bool Perl_is_uni_punct(pTHX_ UV c)
abb2c242
JH
1225 __attribute__warn_unused_result__
1226 __attribute__pure__;
f54cb97a
AL
1227
1228PERL_CALLCONV bool Perl_is_uni_xdigit(pTHX_ UV c)
abb2c242
JH
1229 __attribute__warn_unused_result__
1230 __attribute__pure__;
f54cb97a 1231
4373e329 1232PERL_CALLCONV UV Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1233 __attribute__nonnull__(pTHX_2)
1234 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1235#define PERL_ARGS_ASSERT_TO_UNI_UPPER \
1236 assert(p); assert(lenp)
f54cb97a 1237
4373e329 1238PERL_CALLCONV UV Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1239 __attribute__nonnull__(pTHX_2)
1240 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1241#define PERL_ARGS_ASSERT_TO_UNI_TITLE \
1242 assert(p); assert(lenp)
f54cb97a 1243
4373e329 1244PERL_CALLCONV UV Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1245 __attribute__nonnull__(pTHX_2)
1246 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1247#define PERL_ARGS_ASSERT_TO_UNI_LOWER \
1248 assert(p); assert(lenp)
f54cb97a 1249
4373e329 1250PERL_CALLCONV UV Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1251 __attribute__nonnull__(pTHX_2)
1252 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1253#define PERL_ARGS_ASSERT_TO_UNI_FOLD \
1254 assert(p); assert(lenp)
f54cb97a
AL
1255
1256PERL_CALLCONV bool Perl_is_uni_alnum_lc(pTHX_ UV c)
abb2c242
JH
1257 __attribute__warn_unused_result__
1258 __attribute__pure__;
f54cb97a
AL
1259
1260PERL_CALLCONV bool Perl_is_uni_alnumc_lc(pTHX_ UV c)
abb2c242
JH
1261 __attribute__warn_unused_result__
1262 __attribute__pure__;
f54cb97a
AL
1263
1264PERL_CALLCONV bool Perl_is_uni_idfirst_lc(pTHX_ UV c)
abb2c242
JH
1265 __attribute__warn_unused_result__
1266 __attribute__pure__;
f54cb97a
AL
1267
1268PERL_CALLCONV bool Perl_is_uni_alpha_lc(pTHX_ UV c)
abb2c242
JH
1269 __attribute__warn_unused_result__
1270 __attribute__pure__;
f54cb97a
AL
1271
1272PERL_CALLCONV bool Perl_is_uni_ascii_lc(pTHX_ UV c)
abb2c242
JH
1273 __attribute__warn_unused_result__
1274 __attribute__pure__;
f54cb97a
AL
1275
1276PERL_CALLCONV bool Perl_is_uni_space_lc(pTHX_ UV c)
abb2c242
JH
1277 __attribute__warn_unused_result__
1278 __attribute__pure__;
f54cb97a
AL
1279
1280PERL_CALLCONV bool Perl_is_uni_cntrl_lc(pTHX_ UV c)
abb2c242
JH
1281 __attribute__warn_unused_result__
1282 __attribute__pure__;
f54cb97a
AL
1283
1284PERL_CALLCONV bool Perl_is_uni_graph_lc(pTHX_ UV c)
abb2c242
JH
1285 __attribute__warn_unused_result__
1286 __attribute__pure__;
f54cb97a
AL
1287
1288PERL_CALLCONV bool Perl_is_uni_digit_lc(pTHX_ UV c)
abb2c242
JH
1289 __attribute__warn_unused_result__
1290 __attribute__pure__;
f54cb97a
AL
1291
1292PERL_CALLCONV bool Perl_is_uni_upper_lc(pTHX_ UV c)
abb2c242
JH
1293 __attribute__warn_unused_result__
1294 __attribute__pure__;
f54cb97a
AL
1295
1296PERL_CALLCONV bool Perl_is_uni_lower_lc(pTHX_ UV c)
abb2c242
JH
1297 __attribute__warn_unused_result__
1298 __attribute__pure__;
f54cb97a
AL
1299
1300PERL_CALLCONV bool Perl_is_uni_print_lc(pTHX_ UV c)
abb2c242
JH
1301 __attribute__warn_unused_result__
1302 __attribute__pure__;
f54cb97a
AL
1303
1304PERL_CALLCONV bool Perl_is_uni_punct_lc(pTHX_ UV c)
abb2c242
JH
1305 __attribute__warn_unused_result__
1306 __attribute__pure__;
f54cb97a
AL
1307
1308PERL_CALLCONV bool Perl_is_uni_xdigit_lc(pTHX_ UV c)
abb2c242
JH
1309 __attribute__warn_unused_result__
1310 __attribute__pure__;
f54cb97a 1311
4048f010 1312PERL_CALLCONV STRLEN Perl_is_utf8_char(pTHX_ const U8 *s)
abb2c242 1313 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1314#define PERL_ARGS_ASSERT_IS_UTF8_CHAR \
1315 assert(s)
f54cb97a 1316
4373e329 1317PERL_CALLCONV bool Perl_is_utf8_string(pTHX_ const U8 *s, STRLEN len)
abb2c242 1318 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1319#define PERL_ARGS_ASSERT_IS_UTF8_STRING \
1320 assert(s)
f54cb97a 1321
814fafa7
NC
1322/* PERL_CALLCONV bool Perl_is_utf8_string_loc(pTHX_ const U8 *s, STRLEN len, const U8 **p)
1323 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1324#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC \
1325 assert(s)
768c67ee
JH
1326
1327PERL_CALLCONV bool Perl_is_utf8_string_loclen(pTHX_ const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)
1328 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1329#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN \
1330 assert(s)
f54cb97a 1331
4373e329 1332PERL_CALLCONV bool Perl_is_utf8_alnum(pTHX_ const U8 *p)
1df70142 1333 __attribute__warn_unused_result__
abb2c242 1334 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1335#define PERL_ARGS_ASSERT_IS_UTF8_ALNUM \
1336 assert(p)
f54cb97a 1337
4373e329 1338PERL_CALLCONV bool Perl_is_utf8_alnumc(pTHX_ const U8 *p)
1df70142 1339 __attribute__warn_unused_result__
abb2c242 1340 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1341#define PERL_ARGS_ASSERT_IS_UTF8_ALNUMC \
1342 assert(p)
f54cb97a 1343
4373e329 1344PERL_CALLCONV bool Perl_is_utf8_idfirst(pTHX_ const U8 *p)
1df70142 1345 __attribute__warn_unused_result__
abb2c242 1346 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1347#define PERL_ARGS_ASSERT_IS_UTF8_IDFIRST \
1348 assert(p)
f54cb97a 1349
4373e329 1350PERL_CALLCONV bool Perl_is_utf8_idcont(pTHX_ const U8 *p)
1df70142 1351 __attribute__warn_unused_result__
abb2c242 1352 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1353#define PERL_ARGS_ASSERT_IS_UTF8_IDCONT \
1354 assert(p)
f54cb97a 1355
4373e329 1356PERL_CALLCONV bool Perl_is_utf8_alpha(pTHX_ const U8 *p)
1df70142 1357 __attribute__warn_unused_result__
abb2c242 1358 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1359#define PERL_ARGS_ASSERT_IS_UTF8_ALPHA \
1360 assert(p)
f54cb97a 1361
4373e329 1362PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ const U8 *p)
1df70142 1363 __attribute__warn_unused_result__
abb2c242 1364 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1365#define PERL_ARGS_ASSERT_IS_UTF8_ASCII \
1366 assert(p)
f54cb97a 1367
4373e329 1368PERL_CALLCONV bool Perl_is_utf8_space(pTHX_ const U8 *p)
1df70142 1369 __attribute__warn_unused_result__
abb2c242 1370 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1371#define PERL_ARGS_ASSERT_IS_UTF8_SPACE \
1372 assert(p)
f54cb97a 1373
4373e329 1374PERL_CALLCONV bool Perl_is_utf8_cntrl(pTHX_ const U8 *p)
1df70142 1375 __attribute__warn_unused_result__
abb2c242 1376 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1377#define PERL_ARGS_ASSERT_IS_UTF8_CNTRL \
1378 assert(p)
f54cb97a 1379
4373e329 1380PERL_CALLCONV bool Perl_is_utf8_digit(pTHX_ const U8 *p)
1df70142 1381 __attribute__warn_unused_result__
abb2c242 1382 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1383#define PERL_ARGS_ASSERT_IS_UTF8_DIGIT \
1384 assert(p)
f54cb97a 1385
4373e329 1386PERL_CALLCONV bool Perl_is_utf8_graph(pTHX_ const U8 *p)
1df70142 1387 __attribute__warn_unused_result__
abb2c242 1388 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1389#define PERL_ARGS_ASSERT_IS_UTF8_GRAPH \
1390 assert(p)
f54cb97a 1391
4373e329 1392PERL_CALLCONV bool Perl_is_utf8_upper(pTHX_ const U8 *p)
1df70142 1393 __attribute__warn_unused_result__
abb2c242 1394 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1395#define PERL_ARGS_ASSERT_IS_UTF8_UPPER \
1396 assert(p)
f54cb97a 1397
4373e329 1398PERL_CALLCONV bool Perl_is_utf8_lower(pTHX_ const U8 *p)
1df70142 1399 __attribute__warn_unused_result__
abb2c242 1400 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1401#define PERL_ARGS_ASSERT_IS_UTF8_LOWER \
1402 assert(p)
f54cb97a 1403
4373e329 1404PERL_CALLCONV bool Perl_is_utf8_print(pTHX_ const U8 *p)
1df70142 1405 __attribute__warn_unused_result__
abb2c242 1406 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1407#define PERL_ARGS_ASSERT_IS_UTF8_PRINT \
1408 assert(p)
f54cb97a 1409
4373e329 1410PERL_CALLCONV bool Perl_is_utf8_punct(pTHX_ const U8 *p)
1df70142 1411 __attribute__warn_unused_result__
abb2c242 1412 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1413#define PERL_ARGS_ASSERT_IS_UTF8_PUNCT \
1414 assert(p)
f54cb97a 1415
4373e329 1416PERL_CALLCONV bool Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1df70142 1417 __attribute__warn_unused_result__
abb2c242 1418 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1419#define PERL_ARGS_ASSERT_IS_UTF8_XDIGIT \
1420 assert(p)
f54cb97a 1421
4373e329 1422PERL_CALLCONV bool Perl_is_utf8_mark(pTHX_ const U8 *p)
1df70142 1423 __attribute__warn_unused_result__
abb2c242 1424 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1425#define PERL_ARGS_ASSERT_IS_UTF8_MARK \
1426 assert(p)
f54cb97a 1427
4048f010 1428PERL_CALLCONV OP* Perl_jmaybe(pTHX_ OP *o)
abb2c242 1429 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1430#define PERL_ARGS_ASSERT_JMAYBE \
1431 assert(o)
f54cb97a 1432
4048f010 1433PERL_CALLCONV I32 Perl_keyword(pTHX_ const char *name, I32 len, bool all_keywords)
abb2c242
JH
1434 __attribute__pure__
1435 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1436#define PERL_ARGS_ASSERT_KEYWORD \
1437 assert(name)
f54cb97a 1438
1d7c1841
GS
1439PERL_CALLCONV void Perl_leave_scope(pTHX_ I32 base);
1440PERL_CALLCONV void Perl_lex_end(pTHX);
5486870f 1441PERL_CALLCONV void Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, bool new_filter);
aec46f14
AL
1442PERL_CALLCONV void Perl_op_null(pTHX_ OP* o)
1443 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1444#define PERL_ARGS_ASSERT_OP_NULL \
1445 assert(o)
aec46f14
AL
1446
1447PERL_CALLCONV void Perl_op_clear(pTHX_ OP* o)
1448 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1449#define PERL_ARGS_ASSERT_OP_CLEAR \
1450 assert(o)
aec46f14 1451
4026c95a
SH
1452PERL_CALLCONV void Perl_op_refcnt_lock(pTHX);
1453PERL_CALLCONV void Perl_op_refcnt_unlock(pTHX);
2dd5337b 1454#if defined(PERL_IN_OP_C)
12e93c28 1455STATIC OP* S_linklist(pTHX_ OP *o)
aec46f14 1456 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1457#define PERL_ARGS_ASSERT_LINKLIST \
1458 assert(o)
aec46f14 1459
412da003 1460STATIC OP* S_listkids(pTHX_ OP* o);
2dd5337b 1461#endif
1d7c1841 1462PERL_CALLCONV OP* Perl_list(pTHX_ OP* o);
aec46f14
AL
1463PERL_CALLCONV void Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...)
1464 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1465#define PERL_ARGS_ASSERT_LOAD_MODULE \
1466 assert(name)
aec46f14
AL
1467
1468PERL_CALLCONV void Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args)
1469 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1470#define PERL_ARGS_ASSERT_VLOAD_MODULE \
1471 assert(name)
aec46f14 1472
4048f010 1473PERL_CALLCONV OP* Perl_localize(pTHX_ OP *o, I32 lex)
bfce84ec 1474 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1475#define PERL_ARGS_ASSERT_LOCALIZE \
1476 assert(o)
bfce84ec 1477
aad570aa 1478PERL_CALLCONV I32 Perl_looks_like_number(pTHX_ SV *const sv)
abb2c242
JH
1479 __attribute__warn_unused_result__
1480 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1481#define PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER \
1482 assert(sv)
f54cb97a 1483
a3b680e6 1484PERL_CALLCONV UV Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1485 __attribute__nonnull__(pTHX_1)
1486 __attribute__nonnull__(pTHX_2)
1487 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1488#define PERL_ARGS_ASSERT_GROK_BIN \
1489 assert(start); assert(len_p); assert(flags)
f54cb97a 1490
a3b680e6 1491PERL_CALLCONV UV Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1492 __attribute__nonnull__(pTHX_1)
1493 __attribute__nonnull__(pTHX_2)
1494 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1495#define PERL_ARGS_ASSERT_GROK_HEX \
1496 assert(start); assert(len_p); assert(flags)
f54cb97a
AL
1497
1498PERL_CALLCONV int Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
abb2c242 1499 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1500#define PERL_ARGS_ASSERT_GROK_NUMBER \
1501 assert(pv)
f54cb97a 1502
901017d6 1503PERL_CALLCONV bool Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
bfce84ec
AL
1504 __attribute__warn_unused_result__
1505 __attribute__nonnull__(pTHX_1)
1506 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1507#define PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX \
1508 assert(sp); assert(send)
bfce84ec
AL
1509
1510PERL_CALLCONV UV Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
fb9bf107
NC
1511 __attribute__nonnull__(pTHX_1)
1512 __attribute__nonnull__(pTHX_2)
1513 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1514#define PERL_ARGS_ASSERT_GROK_OCT \
1515 assert(start); assert(len_p); assert(flags)
bfce84ec
AL
1516
1517PERL_CALLCONV int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg)
1518 __attribute__nonnull__(pTHX_1)
1519 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1520#define PERL_ARGS_ASSERT_MAGIC_CLEARENV \
1521 assert(sv); assert(mg)
bfce84ec
AL
1522
1523PERL_CALLCONV int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg)
1524 __attribute__nonnull__(pTHX_1)
1525 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1526#define PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV \
1527 assert(sv); assert(mg)
bfce84ec 1528
b3ca2e83
NC
1529PERL_CALLCONV int Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg)
1530 __attribute__nonnull__(pTHX_1)
1531 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1532#define PERL_ARGS_ASSERT_MAGIC_CLEARHINT \
1533 assert(sv); assert(mg)
b3ca2e83 1534
52b45067
RD
1535PERL_CALLCONV int Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg)
1536 __attribute__nonnull__(pTHX_1)
1537 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1538#define PERL_ARGS_ASSERT_MAGIC_CLEARISA \
1539 assert(sv); assert(mg)
52b45067 1540
bfce84ec
AL
1541PERL_CALLCONV int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg)
1542 __attribute__nonnull__(pTHX_1)
1543 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1544#define PERL_ARGS_ASSERT_MAGIC_CLEARPACK \
1545 assert(sv); assert(mg)
bfce84ec
AL
1546
1547PERL_CALLCONV int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg)
1548 __attribute__nonnull__(pTHX_1)
1549 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1550#define PERL_ARGS_ASSERT_MAGIC_CLEARSIG \
1551 assert(sv); assert(mg)
bfce84ec 1552
1146e912 1553PERL_CALLCONV int Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg)
bfce84ec
AL
1554 __attribute__nonnull__(pTHX_1)
1555 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1556#define PERL_ARGS_ASSERT_MAGIC_EXISTSPACK \
1557 assert(sv); assert(mg)
bfce84ec 1558
bfce84ec
AL
1559PERL_CALLCONV int Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg)
1560 __attribute__nonnull__(pTHX_1)
1561 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1562#define PERL_ARGS_ASSERT_MAGIC_FREEOVRLD \
1563 assert(sv); assert(mg)
bfce84ec
AL
1564
1565PERL_CALLCONV int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg)
1566 __attribute__nonnull__(pTHX_1)
1567 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1568#define PERL_ARGS_ASSERT_MAGIC_GET \
1569 assert(sv); assert(mg)
901017d6 1570
8772537c
AL
1571PERL_CALLCONV int Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg)
1572 __attribute__nonnull__(pTHX_1)
1573 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1574#define PERL_ARGS_ASSERT_MAGIC_GETARYLEN \
1575 assert(sv); assert(mg)
8772537c 1576
bfce84ec
AL
1577PERL_CALLCONV int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg)
1578 __attribute__nonnull__(pTHX_1)
1579 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1580#define PERL_ARGS_ASSERT_MAGIC_GETDEFELEM \
1581 assert(sv); assert(mg)
bfce84ec 1582
bfce84ec
AL
1583PERL_CALLCONV int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg)
1584 __attribute__nonnull__(pTHX_1)
1585 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1586#define PERL_ARGS_ASSERT_MAGIC_GETNKEYS \
1587 assert(sv); assert(mg)
bfce84ec
AL
1588
1589PERL_CALLCONV int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg)
1590 __attribute__nonnull__(pTHX_1)
1591 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1592#define PERL_ARGS_ASSERT_MAGIC_GETPACK \
1593 assert(sv); assert(mg)
bfce84ec
AL
1594
1595PERL_CALLCONV int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg)
1596 __attribute__nonnull__(pTHX_1)
1597 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1598#define PERL_ARGS_ASSERT_MAGIC_GETPOS \
1599 assert(sv); assert(mg)
bfce84ec
AL
1600
1601PERL_CALLCONV int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg)
1602 __attribute__nonnull__(pTHX_1)
1603 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1604#define PERL_ARGS_ASSERT_MAGIC_GETSIG \
1605 assert(sv); assert(mg)
bfce84ec
AL
1606
1607PERL_CALLCONV int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg)
1608 __attribute__nonnull__(pTHX_1)
1609 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1610#define PERL_ARGS_ASSERT_MAGIC_GETSUBSTR \
1611 assert(sv); assert(mg)
bfce84ec
AL
1612
1613PERL_CALLCONV int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg)
1614 __attribute__nonnull__(pTHX_1)
1615 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1616#define PERL_ARGS_ASSERT_MAGIC_GETTAINT \
1617 assert(sv); assert(mg)
bfce84ec
AL
1618
1619PERL_CALLCONV int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg)
1620 __attribute__nonnull__(pTHX_1)
1621 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1622#define PERL_ARGS_ASSERT_MAGIC_GETUVAR \
1623 assert(sv); assert(mg)
bfce84ec
AL
1624
1625PERL_CALLCONV int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg)
1626 __attribute__nonnull__(pTHX_1)
1627 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1628#define PERL_ARGS_ASSERT_MAGIC_GETVEC \
1629 assert(sv); assert(mg)
bfce84ec
AL
1630
1631PERL_CALLCONV U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg)
1632 __attribute__nonnull__(pTHX_1)
1633 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1634#define PERL_ARGS_ASSERT_MAGIC_LEN \
1635 assert(sv); assert(mg)
bfce84ec 1636
4048f010 1637PERL_CALLCONV int Perl_magic_nextpack(pTHX_ SV *sv, MAGIC *mg, SV *key)
bfce84ec
AL
1638 __attribute__nonnull__(pTHX_1)
1639 __attribute__nonnull__(pTHX_2)
1640 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1641#define PERL_ARGS_ASSERT_MAGIC_NEXTPACK \
1642 assert(sv); assert(mg); assert(key)
bfce84ec
AL
1643
1644PERL_CALLCONV U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg)
1645 __attribute__nonnull__(pTHX_1)
1646 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1647#define PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT \
1648 assert(sv); assert(mg)
bfce84ec
AL
1649
1650PERL_CALLCONV int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg)
1651 __attribute__nonnull__(pTHX_1)
1652 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1653#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET \
1654 assert(sv); assert(mg)
bfce84ec 1655
f54cb97a 1656PERL_CALLCONV int Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1657 __attribute__noreturn__
1658 __attribute__nonnull__(pTHX_1)
1659 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1660#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET \
1661 assert(sv); assert(mg)
bfce84ec
AL
1662
1663PERL_CALLCONV int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg)
1664 __attribute__nonnull__(pTHX_1)
1665 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1666#define PERL_ARGS_ASSERT_MAGIC_SET \
1667 assert(sv); assert(mg)
bfce84ec
AL
1668
1669PERL_CALLCONV int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg)
1670 __attribute__nonnull__(pTHX_1)
1671 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1672#define PERL_ARGS_ASSERT_MAGIC_SETAMAGIC \
1673 assert(sv); assert(mg)
bfce84ec
AL
1674
1675PERL_CALLCONV int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg)
1676 __attribute__nonnull__(pTHX_1)
1677 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1678#define PERL_ARGS_ASSERT_MAGIC_SETARYLEN \
1679 assert(sv); assert(mg)
bfce84ec
AL
1680
1681PERL_CALLCONV int Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg)
1682 __attribute__nonnull__(pTHX_1)
1683 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1684#define PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P \
1685 assert(sv); assert(mg)
bfce84ec 1686
488344d2 1687PERL_CALLCONV int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1688 __attribute__nonnull__(pTHX_1)
1689 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1690#define PERL_ARGS_ASSERT_MAGIC_SETDBLINE \
1691 assert(sv); assert(mg)
bfce84ec 1692
488344d2 1693PERL_CALLCONV int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1694 __attribute__nonnull__(pTHX_1)
1695 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1696#define PERL_ARGS_ASSERT_MAGIC_SETDEFELEM \
1697 assert(sv); assert(mg)
bfce84ec 1698
488344d2 1699PERL_CALLCONV int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1700 __attribute__nonnull__(pTHX_1)
1701 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1702#define PERL_ARGS_ASSERT_MAGIC_SETENV \
1703 assert(sv); assert(mg)
bfce84ec 1704
b3ca2e83
NC
1705PERL_CALLCONV int Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg)
1706 __attribute__nonnull__(pTHX_1)
1707 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1708#define PERL_ARGS_ASSERT_MAGIC_SETHINT \
1709 assert(sv); assert(mg)
b3ca2e83 1710
bfce84ec
AL
1711PERL_CALLCONV int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg)
1712 __attribute__nonnull__(pTHX_1)
1713 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1714#define PERL_ARGS_ASSERT_MAGIC_SETISA \
1715 assert(sv); assert(mg)
bfce84ec 1716
bfce84ec
AL
1717PERL_CALLCONV int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg)
1718 __attribute__nonnull__(pTHX_1)
1719 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1720#define PERL_ARGS_ASSERT_MAGIC_SETMGLOB \
1721 assert(sv); assert(mg)
bfce84ec
AL
1722
1723PERL_CALLCONV int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg)
1724 __attribute__nonnull__(pTHX_1)
1725 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1726#define PERL_ARGS_ASSERT_MAGIC_SETNKEYS \
1727 assert(sv); assert(mg)
bfce84ec
AL
1728
1729PERL_CALLCONV int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg)
1730 __attribute__nonnull__(pTHX_1)
1731 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1732#define PERL_ARGS_ASSERT_MAGIC_SETPACK \
1733 assert(sv); assert(mg)
bfce84ec
AL
1734
1735PERL_CALLCONV int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg)
1736 __attribute__nonnull__(pTHX_1)
1737 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1738#define PERL_ARGS_ASSERT_MAGIC_SETPOS \
1739 assert(sv); assert(mg)
bfce84ec
AL
1740
1741PERL_CALLCONV int Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg)
1742 __attribute__nonnull__(pTHX_1)
1743 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1744#define PERL_ARGS_ASSERT_MAGIC_SETREGEXP \
1745 assert(sv); assert(mg)
bfce84ec
AL
1746
1747PERL_CALLCONV int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg)
1748 __attribute__nonnull__(pTHX_1)
1749 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1750#define PERL_ARGS_ASSERT_MAGIC_SETSIG \
1751 assert(sv); assert(mg)
bfce84ec
AL
1752
1753PERL_CALLCONV int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg)
1754 __attribute__nonnull__(pTHX_1)
1755 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1756#define PERL_ARGS_ASSERT_MAGIC_SETSUBSTR \
1757 assert(sv); assert(mg)
bfce84ec
AL
1758
1759PERL_CALLCONV int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg)
1760 __attribute__nonnull__(pTHX_1)
1761 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1762#define PERL_ARGS_ASSERT_MAGIC_SETTAINT \
1763 assert(sv); assert(mg)
bfce84ec
AL
1764
1765PERL_CALLCONV int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg)
1766 __attribute__nonnull__(pTHX_1)
1767 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1768#define PERL_ARGS_ASSERT_MAGIC_SETUVAR \
1769 assert(sv); assert(mg)
bfce84ec
AL
1770
1771PERL_CALLCONV int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg)
1772 __attribute__nonnull__(pTHX_1)
1773 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1774#define PERL_ARGS_ASSERT_MAGIC_SETVEC \
1775 assert(sv); assert(mg)
bfce84ec
AL
1776
1777PERL_CALLCONV int Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg)
1778 __attribute__nonnull__(pTHX_1)
1779 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1780#define PERL_ARGS_ASSERT_MAGIC_SETUTF8 \
1781 assert(sv); assert(mg)
bfce84ec
AL
1782
1783PERL_CALLCONV int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg)
1784 __attribute__nonnull__(pTHX_1)
1785 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1786#define PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV \
1787 assert(sv); assert(mg)
bfce84ec
AL
1788
1789PERL_CALLCONV U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg)
1790 __attribute__nonnull__(pTHX_1)
1791 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1792#define PERL_ARGS_ASSERT_MAGIC_SIZEPACK \
1793 assert(sv); assert(mg)
bfce84ec
AL
1794
1795PERL_CALLCONV int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg)
1796 __attribute__nonnull__(pTHX_1)
1797 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1798#define PERL_ARGS_ASSERT_MAGIC_WIPEPACK \
1799 assert(sv); assert(mg)
bfce84ec 1800
1d7c1841 1801PERL_CALLCONV void Perl_markstack_grow(pTHX);
864dbfa3 1802#if defined(USE_LOCALE_COLLATE)
aa924a5a
SH
1803PERL_CALLCONV int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg)
1804 __attribute__nonnull__(pTHX_1)
1805 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1806#define PERL_ARGS_ASSERT_MAGIC_SETCOLLXFRM \
1807 assert(sv); assert(mg)
aa924a5a
SH
1808
1809PERL_CALLCONV char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen)
1810 __attribute__nonnull__(pTHX_1)
1811 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1812#define PERL_ARGS_ASSERT_MEM_COLLXFRM \
1813 assert(s); assert(xlen)
aa924a5a 1814
0cb96387 1815#endif
894356b3 1816PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...)
aec46f14
AL
1817 __attribute__format__(__printf__,pTHX_1,pTHX_2)
1818 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1819#define PERL_ARGS_ASSERT_MESS \
1820 assert(pat)
aec46f14
AL
1821
1822PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args)
1823 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1824#define PERL_ARGS_ASSERT_VMESS \
1825 assert(pat)
f54cb97a 1826
aa924a5a
SH
1827PERL_CALLCONV void Perl_qerror(pTHX_ SV* err)
1828 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1829#define PERL_ARGS_ASSERT_QERROR \
1830 assert(err)
aa924a5a
SH
1831
1832PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp)
52657f30 1833 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1834#define PERL_ARGS_ASSERT_SORTSV \
1835 assert(cmp)
aa924a5a 1836
7b9ef140 1837PERL_CALLCONV void Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags)
52657f30 1838 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1839#define PERL_ARGS_ASSERT_SORTSV_FLAGS \
1840 assert(cmp)
7b9ef140 1841
9a957fbc
AL
1842PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv)
1843 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1844#define PERL_ARGS_ASSERT_MG_CLEAR \
1845 assert(sv)
9a957fbc 1846
4048f010 1847PERL_CALLCONV int Perl_mg_copy(pTHX_ SV *sv, SV *nsv, const char *key, I32 klen)
9a957fbc
AL
1848 __attribute__nonnull__(pTHX_1)
1849 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1850#define PERL_ARGS_ASSERT_MG_COPY \
1851 assert(sv); assert(nsv)
9a957fbc 1852
af7df257 1853PERL_CALLCONV void Perl_mg_localize(pTHX_ SV* sv, SV* nsv, bool setmagic)
9a957fbc
AL
1854 __attribute__nonnull__(pTHX_1)
1855 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1856#define PERL_ARGS_ASSERT_MG_LOCALIZE \
1857 assert(sv); assert(nsv)
9a957fbc 1858
255164ba
DM
1859PERL_CALLCONV MAGIC* Perl_mg_find(pTHX_ const SV* sv, int type)
1860 __attribute__warn_unused_result__;
1861
9a957fbc
AL
1862PERL_CALLCONV int Perl_mg_free(pTHX_ SV* sv)
1863 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1864#define PERL_ARGS_ASSERT_MG_FREE \
1865 assert(sv)
9a957fbc
AL
1866
1867PERL_CALLCONV int Perl_mg_get(pTHX_ SV* sv)
1868 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1869#define PERL_ARGS_ASSERT_MG_GET \
1870 assert(sv)
9a957fbc
AL
1871
1872PERL_CALLCONV U32 Perl_mg_length(pTHX_ SV* sv)
1873 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1874#define PERL_ARGS_ASSERT_MG_LENGTH \
1875 assert(sv)
9a957fbc
AL
1876
1877PERL_CALLCONV void Perl_mg_magical(pTHX_ SV* sv)
1878 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1879#define PERL_ARGS_ASSERT_MG_MAGICAL \
1880 assert(sv)
9a957fbc
AL
1881
1882PERL_CALLCONV int Perl_mg_set(pTHX_ SV* sv)
1883 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1884#define PERL_ARGS_ASSERT_MG_SET \
1885 assert(sv)
9a957fbc
AL
1886
1887PERL_CALLCONV I32 Perl_mg_size(pTHX_ SV* sv)
1888 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1889#define PERL_ARGS_ASSERT_MG_SIZE \
1890 assert(sv)
9a957fbc 1891
9f6cc744 1892PERL_CALLCONV void Perl_mini_mktime(pTHX_ struct tm *ptm)
9a957fbc 1893 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1894#define PERL_ARGS_ASSERT_MINI_MKTIME \
1895 assert(ptm)
9a957fbc 1896
1d7c1841 1897PERL_CALLCONV OP* Perl_mod(pTHX_ OP* o, I32 type);
a79b25b7 1898PERL_CALLCONV int Perl_mode_from_discipline(pTHX_ const char* s, STRLEN len);
c7030b81 1899PERL_CALLCONV const char* Perl_moreswitches(pTHX_ const char* s)
bfce84ec 1900 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1901#define PERL_ARGS_ASSERT_MORESWITCHES \
1902 assert(s)
bfce84ec 1903
4373e329 1904PERL_CALLCONV NV Perl_my_atof(pTHX_ const char *s)
abb2c242 1905 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1906#define PERL_ARGS_ASSERT_MY_ATOF \
1907 assert(s)
f54cb97a 1908
2253333f 1909#if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
4373e329 1910PERL_CALLCONV char* Perl_my_bcopy(const char* from, char* to, I32 len)
abb2c242
JH
1911 __attribute__nonnull__(1)
1912 __attribute__nonnull__(2);
7918f24d
NC
1913#define PERL_ARGS_ASSERT_MY_BCOPY \
1914 assert(from); assert(to)
f54cb97a 1915
5f05dabc 1916#endif
a0d0e21e 1917#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
4373e329 1918PERL_CALLCONV char* Perl_my_bzero(char* loc, I32 len)
abb2c242 1919 __attribute__nonnull__(1);
7918f24d
NC
1920#define PERL_ARGS_ASSERT_MY_BZERO \
1921 assert(loc)
f54cb97a 1922
864dbfa3 1923#endif
f54cb97a 1924PERL_CALLCONV void Perl_my_exit(pTHX_ U32 status)
abb2c242 1925 __attribute__noreturn__;
f54cb97a
AL
1926
1927PERL_CALLCONV void Perl_my_failure_exit(pTHX)
abb2c242 1928 __attribute__noreturn__;
f54cb97a 1929
1d7c1841 1930PERL_CALLCONV I32 Perl_my_fflush_all(pTHX);
52e18b1f
GS
1931PERL_CALLCONV Pid_t Perl_my_fork(void);
1932PERL_CALLCONV void Perl_atfork_lock(void);
1933PERL_CALLCONV void Perl_atfork_unlock(void);
1d7c1841 1934PERL_CALLCONV I32 Perl_my_lstat(pTHX);
5f05dabc 1935#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
4373e329 1936PERL_CALLCONV I32 Perl_my_memcmp(const char* s1, const char* s2, I32 len)
abb2c242
JH
1937 __attribute__pure__
1938 __attribute__nonnull__(1)
1939 __attribute__nonnull__(2);
7918f24d
NC
1940#define PERL_ARGS_ASSERT_MY_MEMCMP \
1941 assert(s1); assert(s2)
f54cb97a 1942
a0d0e21e 1943#endif
fc36a67e 1944#if !defined(HAS_MEMSET)
4373e329 1945PERL_CALLCONV void* Perl_my_memset(char* loc, I32 ch, I32 len)
abb2c242 1946 __attribute__nonnull__(1);
7918f24d
NC
1947#define PERL_ARGS_ASSERT_MY_MEMSET \
1948 assert(loc)
f54cb97a 1949
864dbfa3 1950#endif
1d7c1841 1951PERL_CALLCONV I32 Perl_my_pclose(pTHX_ PerlIO* ptr);
bfce84ec
AL
1952PERL_CALLCONV PerlIO* Perl_my_popen(pTHX_ const char* cmd, const char* mode)
1953 __attribute__nonnull__(pTHX_1)
1954 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1955#define PERL_ARGS_ASSERT_MY_POPEN \
1956 assert(cmd); assert(mode)
bfce84ec 1957
c9289b7b 1958PERL_CALLCONV PerlIO* Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args)
bfce84ec
AL
1959 __attribute__nonnull__(pTHX_1)
1960 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1961#define PERL_ARGS_ASSERT_MY_POPEN_LIST \
1962 assert(mode); assert(args)
bfce84ec 1963
e1ec3a88 1964PERL_CALLCONV void Perl_my_setenv(pTHX_ const char* nam, const char* val);
1d7c1841 1965PERL_CALLCONV I32 Perl_my_stat(pTHX);
bfce84ec
AL
1966PERL_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)
1967 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1968#define PERL_ARGS_ASSERT_MY_STRFTIME \
1969 assert(fmt)
bfce84ec 1970
864dbfa3 1971#if defined(MYSWAP)
4373e329 1972PERL_CALLCONV short Perl_my_swap(pTHX_ short s)
abb2c242
JH
1973 __attribute__malloc__
1974 __attribute__warn_unused_result__
1975 __attribute__pure__;
f54cb97a 1976
4373e329 1977PERL_CALLCONV long Perl_my_htonl(pTHX_ long l)
abb2c242
JH
1978 __attribute__malloc__
1979 __attribute__warn_unused_result__
1980 __attribute__pure__;
f54cb97a 1981
4373e329 1982PERL_CALLCONV long Perl_my_ntohl(pTHX_ long l)
abb2c242
JH
1983 __attribute__malloc__
1984 __attribute__warn_unused_result__
1985 __attribute__pure__;
f54cb97a 1986
0cb96387 1987#endif
1d7c1841 1988PERL_CALLCONV void Perl_my_unexec(pTHX);
f54cb97a 1989PERL_CALLCONV OP* Perl_newANONLIST(pTHX_ OP* o)
abb2c242
JH
1990 __attribute__malloc__
1991 __attribute__warn_unused_result__;
f54cb97a
AL
1992
1993PERL_CALLCONV OP* Perl_newANONHASH(pTHX_ OP* o)
abb2c242
JH
1994 __attribute__malloc__
1995 __attribute__warn_unused_result__;
f54cb97a 1996
1d7c1841 1997PERL_CALLCONV OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
f54cb97a 1998PERL_CALLCONV OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
abb2c242
JH
1999 __attribute__malloc__
2000 __attribute__warn_unused_result__;
f54cb97a 2001
aec46f14 2002PERL_CALLCONV OP* Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
abb2c242 2003 __attribute__malloc__
aec46f14
AL
2004 __attribute__warn_unused_result__
2005 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2006#define PERL_ARGS_ASSERT_NEWCONDOP \
2007 assert(first)
aec46f14 2008
9a957fbc 2009PERL_CALLCONV CV* Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
eb8433b7
NC
2010#ifdef PERL_MAD
2011PERL_CALLCONV OP* Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
2012#else
1d7c1841 2013PERL_CALLCONV void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
eb8433b7 2014#endif
aa924a5a 2015PERL_CALLCONV OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sv, OP* expr, OP* block, OP* cont)
abb2c242 2016 __attribute__malloc__
aa924a5a
SH
2017 __attribute__warn_unused_result__
2018 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2019#define PERL_ARGS_ASSERT_NEWFOROP \
2020 assert(expr)
f54cb97a 2021
0d863452
RH
2022PERL_CALLCONV OP* Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
2023 __attribute__malloc__
2024 __attribute__warn_unused_result__
2025 __attribute__nonnull__(pTHX_1)
2026 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2027#define PERL_ARGS_ASSERT_NEWGIVENOP \
2028 assert(cond); assert(block)
0d863452 2029
4048f010 2030PERL_CALLCONV OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP *first, OP *other)
abb2c242 2031 __attribute__malloc__
aa924a5a
SH
2032 __attribute__warn_unused_result__
2033 __attribute__nonnull__(pTHX_3)
2034 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2035#define PERL_ARGS_ASSERT_NEWLOGOP \
2036 assert(first); assert(other)
f54cb97a
AL
2037
2038PERL_CALLCONV OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label)
abb2c242 2039 __attribute__malloc__
aa924a5a
SH
2040 __attribute__warn_unused_result__
2041 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2042#define PERL_ARGS_ASSERT_NEWLOOPEX \
2043 assert(label)
f54cb97a
AL
2044
2045PERL_CALLCONV OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
abb2c242
JH
2046 __attribute__malloc__
2047 __attribute__warn_unused_result__;
f54cb97a 2048
4373e329 2049PERL_CALLCONV OP* Perl_newNULLLIST(pTHX)
abb2c242
JH
2050 __attribute__malloc__
2051 __attribute__warn_unused_result__;
f54cb97a
AL
2052
2053PERL_CALLCONV OP* Perl_newOP(pTHX_ I32 optype, I32 flags)
abb2c242
JH
2054 __attribute__malloc__
2055 __attribute__warn_unused_result__;
f54cb97a
AL
2056
2057PERL_CALLCONV void Perl_newPROG(pTHX_ OP* o)
abb2c242 2058 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2059#define PERL_ARGS_ASSERT_NEWPROG \
2060 assert(o)
f54cb97a
AL
2061
2062PERL_CALLCONV OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
abb2c242 2063 __attribute__malloc__
aa924a5a
SH
2064 __attribute__warn_unused_result__
2065 __attribute__nonnull__(pTHX_2)
2066 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2067#define PERL_ARGS_ASSERT_NEWRANGE \
2068 assert(left); assert(right)
f54cb97a
AL
2069
2070PERL_CALLCONV OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
abb2c242
JH
2071 __attribute__malloc__
2072 __attribute__warn_unused_result__;
f54cb97a
AL
2073
2074PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
abb2c242
JH
2075 __attribute__malloc__
2076 __attribute__warn_unused_result__;
f54cb97a 2077
1d7c1841 2078PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
77004dee
NC
2079PERL_CALLCONV CV * Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags)
2080 __attribute__nonnull__(pTHX_2)
2081 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2082#define PERL_ARGS_ASSERT_NEWXS_FLAGS \
2083 assert(subaddr); assert(filename)
77004dee 2084
4048f010 2085PERL_CALLCONV CV* Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename)
9a957fbc 2086 __attribute__nonnull__(pTHX_2)
abb2c242 2087 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2088#define PERL_ARGS_ASSERT_NEWXS \
2089 assert(subaddr); assert(filename)
f54cb97a 2090
ac572bf4 2091/* PERL_CALLCONV AV* Perl_newAV(pTHX)
ac572bf4 2092 __attribute__warn_unused_result__; */
f54cb97a 2093
4373e329 2094PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o)
abb2c242
JH
2095 __attribute__malloc__
2096 __attribute__warn_unused_result__
2097 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2098#define PERL_ARGS_ASSERT_NEWAVREF \
2099 assert(o)
f54cb97a
AL
2100
2101PERL_CALLCONV OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2102 __attribute__malloc__
2103 __attribute__warn_unused_result__;
f54cb97a
AL
2104
2105PERL_CALLCONV OP* Perl_newCVREF(pTHX_ I32 flags, OP* o)
abb2c242
JH
2106 __attribute__malloc__
2107 __attribute__warn_unused_result__;
f54cb97a
AL
2108
2109PERL_CALLCONV OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
abb2c242 2110 __attribute__malloc__
2d03de9c
AL
2111 __attribute__warn_unused_result__
2112 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2113#define PERL_ARGS_ASSERT_NEWGVOP \
2114 assert(gv)
f54cb97a
AL
2115
2116PERL_CALLCONV GV* Perl_newGVgen(pTHX_ const char* pack)
abb2c242 2117 __attribute__malloc__
aa924a5a
SH
2118 __attribute__warn_unused_result__
2119 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2120#define PERL_ARGS_ASSERT_NEWGVGEN \
2121 assert(pack)
f54cb97a
AL
2122
2123PERL_CALLCONV OP* Perl_newGVREF(pTHX_ I32 type, OP* o)
abb2c242
JH
2124 __attribute__malloc__
2125 __attribute__warn_unused_result__;
f54cb97a 2126
4373e329 2127PERL_CALLCONV OP* Perl_newHVREF(pTHX_ OP* o)
abb2c242
JH
2128 __attribute__malloc__
2129 __attribute__warn_unused_result__
2130 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2131#define PERL_ARGS_ASSERT_NEWHVREF \
2132 assert(o)
f54cb97a 2133
78ac7dd9 2134/* PERL_CALLCONV HV* Perl_newHV(pTHX)
78ac7dd9 2135 __attribute__warn_unused_result__; */
f54cb97a 2136
4048f010 2137PERL_CALLCONV HV* Perl_newHVhv(pTHX_ HV *hv)
abb2c242
JH
2138 __attribute__malloc__
2139 __attribute__warn_unused_result__;
f54cb97a
AL
2140
2141PERL_CALLCONV IO* Perl_newIO(pTHX)
abb2c242
JH
2142 __attribute__malloc__
2143 __attribute__warn_unused_result__;
f54cb97a
AL
2144
2145PERL_CALLCONV OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2146 __attribute__malloc__
2147 __attribute__warn_unused_result__;
f54cb97a 2148
392d04bb 2149#ifdef USE_ITHREADS
f54cb97a 2150PERL_CALLCONV OP* Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242 2151 __attribute__malloc__
58182927
NC
2152 __attribute__warn_unused_result__
2153 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2154#define PERL_ARGS_ASSERT_NEWPADOP \
2155 assert(sv)
f54cb97a 2156
392d04bb 2157#endif
f54cb97a 2158PERL_CALLCONV OP* Perl_newPMOP(pTHX_ I32 type, I32 flags)
abb2c242
JH
2159 __attribute__malloc__
2160 __attribute__warn_unused_result__;
f54cb97a
AL
2161
2162PERL_CALLCONV OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
abb2c242
JH
2163 __attribute__malloc__
2164 __attribute__warn_unused_result__;
f54cb97a 2165
23f13727 2166PERL_CALLCONV SV* Perl_newRV(pTHX_ SV *const sv)
abb2c242 2167 __attribute__malloc__
66a1b24b
AL
2168 __attribute__warn_unused_result__
2169 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2170#define PERL_ARGS_ASSERT_NEWRV \
2171 assert(sv)
f54cb97a 2172
23f13727 2173PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV *const sv)
abb2c242
JH
2174 __attribute__malloc__
2175 __attribute__warn_unused_result__
2176 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2177#define PERL_ARGS_ASSERT_NEWRV_NOINC \
2178 assert(sv)
f54cb97a 2179
2b021c53 2180PERL_CALLCONV SV* Perl_newSV(pTHX_ const STRLEN len)
abb2c242
JH
2181 __attribute__malloc__
2182 __attribute__warn_unused_result__;
f54cb97a 2183
4373e329 2184PERL_CALLCONV OP* Perl_newSVREF(pTHX_ OP* o)
abb2c242
JH
2185 __attribute__malloc__
2186 __attribute__warn_unused_result__
2187 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2188#define PERL_ARGS_ASSERT_NEWSVREF \
2189 assert(o)
f54cb97a 2190
4373e329 2191PERL_CALLCONV OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242
JH
2192 __attribute__malloc__
2193 __attribute__warn_unused_result__
2194 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2195#define PERL_ARGS_ASSERT_NEWSVOP \
2196 assert(sv)
f54cb97a 2197
23f13727 2198PERL_CALLCONV SV* Perl_newSViv(pTHX_ const IV i)
abb2c242
JH
2199 __attribute__malloc__
2200 __attribute__warn_unused_result__;
f54cb97a 2201
23f13727 2202PERL_CALLCONV SV* Perl_newSVuv(pTHX_ const UV u)
abb2c242
JH
2203 __attribute__malloc__
2204 __attribute__warn_unused_result__;
f54cb97a 2205
23f13727 2206PERL_CALLCONV SV* Perl_newSVnv(pTHX_ const NV n)
abb2c242
JH
2207 __attribute__malloc__
2208 __attribute__warn_unused_result__;
f54cb97a 2209
23f13727 2210PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
abb2c242
JH
2211 __attribute__malloc__
2212 __attribute__warn_unused_result__;
f54cb97a 2213
23f13727 2214PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char *const s, const STRLEN len)
abb2c242
JH
2215 __attribute__malloc__
2216 __attribute__warn_unused_result__;
f54cb97a 2217
23f13727 2218PERL_CALLCONV SV* Perl_newSVpvn_flags(pTHX_ const char *const s, const STRLEN len, const U32 flags)
740cce10
NC
2219 __attribute__malloc__
2220 __attribute__warn_unused_result__;
2221
23f13727 2222PERL_CALLCONV SV* Perl_newSVhek(pTHX_ const HEK *const hek)
c1b02ed8
NC
2223 __attribute__malloc__
2224 __attribute__warn_unused_result__;
2225
f54cb97a 2226PERL_CALLCONV SV* Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
abb2c242
JH
2227 __attribute__malloc__
2228 __attribute__warn_unused_result__;
f54cb97a 2229
23f13727 2230PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char *const pat, ...)
abb2c242
JH
2231 __attribute__malloc__
2232 __attribute__warn_unused_result__
aec46f14
AL
2233 __attribute__format__(__printf__,pTHX_1,pTHX_2)
2234 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2235#define PERL_ARGS_ASSERT_NEWSVPVF \
2236 assert(pat)
aec46f14 2237
23f13727 2238PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char *const pat, va_list *const args)
aec46f14
AL
2239 __attribute__malloc__
2240 __attribute__warn_unused_result__
2241 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2242#define PERL_ARGS_ASSERT_VNEWSVPVF \
2243 assert(pat)
f54cb97a 2244
12964ddd 2245PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV *const rv, const char *const classname)
1b6737cc 2246 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2247#define PERL_ARGS_ASSERT_NEWSVRV \
2248 assert(rv)
f54cb97a 2249
23f13727 2250PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV *const old)
abb2c242
JH
2251 __attribute__malloc__
2252 __attribute__warn_unused_result__;
f54cb97a 2253
fe9845cc 2254PERL_CALLCONV SV* Perl_newSV_type(pTHX_ const svtype type)
b9f83d2f
NC
2255 __attribute__malloc__
2256 __attribute__warn_unused_result__;
2257
f54cb97a 2258PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
abb2c242
JH
2259 __attribute__malloc__
2260 __attribute__warn_unused_result__;
f54cb97a 2261
0d863452
RH
2262PERL_CALLCONV OP* Perl_newWHENOP(pTHX_ OP* cond, OP* block)
2263 __attribute__malloc__
2264 __attribute__warn_unused_result__
2265 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2266#define PERL_ARGS_ASSERT_NEWWHENOP \
2267 assert(block)
0d863452 2268
f54cb97a 2269PERL_CALLCONV OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my)
abb2c242
JH
2270 __attribute__malloc__
2271 __attribute__warn_unused_result__;
f54cb97a
AL
2272
2273PERL_CALLCONV PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
abb2c242
JH
2274 __attribute__malloc__
2275 __attribute__warn_unused_result__;
f54cb97a 2276
4048f010 2277PERL_CALLCONV char* Perl_scan_vstring(pTHX_ const char *s, const char *const e, SV *sv)
abb2c242 2278 __attribute__nonnull__(pTHX_1)
65b06e02
DM
2279 __attribute__nonnull__(pTHX_2)
2280 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2281#define PERL_ARGS_ASSERT_SCAN_VSTRING \
2282 assert(s); assert(e); assert(sv)
f54cb97a 2283
9f6cc744 2284PERL_CALLCONV const char* Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv)
abb2c242
JH
2285 __attribute__nonnull__(pTHX_1)
2286 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2287#define PERL_ARGS_ASSERT_SCAN_VERSION \
2288 assert(s); assert(rv)
f54cb97a 2289
2d03de9c
AL
2290PERL_CALLCONV SV* Perl_new_version(pTHX_ SV *ver)
2291 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2292#define PERL_ARGS_ASSERT_NEW_VERSION \
2293 assert(ver)
2d03de9c 2294
ac0e6a2f 2295PERL_CALLCONV SV* Perl_upg_version(pTHX_ SV *ver, bool qv)
2d03de9c 2296 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2297#define PERL_ARGS_ASSERT_UPG_VERSION \
2298 assert(ver)
2d03de9c 2299
e0218a61
JP
2300PERL_CALLCONV bool Perl_vverify(pTHX_ SV *vs)
2301 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2302#define PERL_ARGS_ASSERT_VVERIFY \
2303 assert(vs)
e0218a61 2304
2d03de9c
AL
2305PERL_CALLCONV SV* Perl_vnumify(pTHX_ SV *vs)
2306 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2307#define PERL_ARGS_ASSERT_VNUMIFY \
2308 assert(vs)
2d03de9c
AL
2309
2310PERL_CALLCONV SV* Perl_vnormal(pTHX_ SV *vs)
2311 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2312#define PERL_ARGS_ASSERT_VNORMAL \
2313 assert(vs)
2d03de9c
AL
2314
2315PERL_CALLCONV SV* Perl_vstringify(pTHX_ SV *vs)
2316 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2317#define PERL_ARGS_ASSERT_VSTRINGIFY \
2318 assert(vs)
2d03de9c 2319
9f6cc744 2320PERL_CALLCONV int Perl_vcmp(pTHX_ SV *lhv, SV *rhv)
abb2c242
JH
2321 __attribute__nonnull__(pTHX_1)
2322 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2323#define PERL_ARGS_ASSERT_VCMP \
2324 assert(lhv); assert(rhv)
f54cb97a 2325
2d03de9c
AL
2326PERL_CALLCONV PerlIO* Perl_nextargv(pTHX_ GV* gv)
2327 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2328#define PERL_ARGS_ASSERT_NEXTARGV \
2329 assert(gv)
2d03de9c 2330
4373e329 2331PERL_CALLCONV char* Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
2d03de9c
AL
2332 __attribute__pure__
2333 __attribute__nonnull__(pTHX_1)
2334 __attribute__nonnull__(pTHX_2)
2335 __attribute__nonnull__(pTHX_3)
2336 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2337#define PERL_ARGS_ASSERT_NINSTR \
2338 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a
AL
2339
2340PERL_CALLCONV OP* Perl_oopsCV(pTHX_ OP* o)
2d03de9c
AL
2341 __attribute__noreturn__
2342 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2343#define PERL_ARGS_ASSERT_OOPSCV \
2344 assert(o)
2d03de9c 2345
6472dca1 2346PERL_CALLCONV void Perl_op_free(pTHX_ OP* arg);
eb8433b7
NC
2347#ifdef PERL_MAD
2348PERL_CALLCONV OP* Perl_package(pTHX_ OP* o)
2349 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2350#define PERL_ARGS_ASSERT_PACKAGE \
2351 assert(o)
eb8433b7
NC
2352
2353#else
2d03de9c
AL
2354PERL_CALLCONV void Perl_package(pTHX_ OP* o)
2355 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2356#define PERL_ARGS_ASSERT_PACKAGE \
2357 assert(o)
f54cb97a 2358
eb8433b7 2359#endif
1d7c1841 2360PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
262cbcdb 2361PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name)
abb2c242 2362 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2363#define PERL_ARGS_ASSERT_ALLOCMY \
2364 assert(name)
f54cb97a 2365
4373e329 2366PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name)
255164ba 2367 __attribute__warn_unused_result__
abb2c242 2368 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2369#define PERL_ARGS_ASSERT_PAD_FINDMY \
2370 assert(name)
f54cb97a 2371
e1f795dc 2372PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX);
4373e329 2373PERL_CALLCONV OP* Perl_oopsAV(pTHX_ OP* o)
1df70142 2374 __attribute__warn_unused_result__
abb2c242 2375 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2376#define PERL_ARGS_ASSERT_OOPSAV \
2377 assert(o)
f54cb97a 2378
4373e329 2379PERL_CALLCONV OP* Perl_oopsHV(pTHX_ OP* o)
1df70142 2380 __attribute__warn_unused_result__
abb2c242 2381 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2382#define PERL_ARGS_ASSERT_OOPSHV \
2383 assert(o)
f54cb97a 2384
dd2155a4 2385PERL_CALLCONV void Perl_pad_leavemy(pTHX);
1d7c1841
GS
2386PERL_CALLCONV SV* Perl_pad_sv(pTHX_ PADOFFSET po);
2387PERL_CALLCONV void Perl_pad_free(pTHX_ PADOFFSET po);
82af08ae
NC
2388#if defined(PERL_IN_PAD_C)
2389STATIC void S_pad_reset(pTHX);
2390#endif
dd2155a4 2391PERL_CALLCONV void Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
1d7c1841 2392PERL_CALLCONV void Perl_peep(pTHX_ OP* o);
4048f010 2393PERL_CALLCONV PerlIO* Perl_start_glob(pTHX_ SV *tmpglob, IO *io)
2d03de9c
AL
2394 __attribute__nonnull__(pTHX_1)
2395 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2396#define PERL_ARGS_ASSERT_START_GLOB \
2397 assert(tmpglob); assert(io)
2d03de9c 2398
59bd0823 2399#if defined(USE_REENTRANT_API)
10bc17b6 2400PERL_CALLCONV void Perl_reentrant_size(pTHX);
59bd0823 2401PERL_CALLCONV void Perl_reentrant_init(pTHX);
10bc17b6 2402PERL_CALLCONV void Perl_reentrant_free(pTHX);
4048f010 2403PERL_CALLCONV void* Perl_reentrant_retry(const char *f, ...)
fb9bf107 2404 __attribute__nonnull__(1);
7918f24d
NC
2405#define PERL_ARGS_ASSERT_REENTRANT_RETRY \
2406 assert(f)
fb9bf107 2407
59bd0823 2408#endif
1d7c1841 2409PERL_CALLCONV void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
4373e329 2410PERL_CALLCONV I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv)
abb2c242
JH
2411 __attribute__nonnull__(pTHX_1)
2412 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2413#define PERL_ARGS_ASSERT_CALL_ARGV \
2414 assert(sub_name); assert(argv)
f54cb97a 2415
4373e329 2416PERL_CALLCONV I32 Perl_call_method(pTHX_ const char* methname, I32 flags)
abb2c242 2417 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2418#define PERL_ARGS_ASSERT_CALL_METHOD \
2419 assert(methname)
f54cb97a 2420
4373e329 2421PERL_CALLCONV I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags)
abb2c242 2422 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2423#define PERL_ARGS_ASSERT_CALL_PV \
2424 assert(sub_name)
f54cb97a 2425
8c54174d 2426PERL_CALLCONV I32 Perl_call_sv(pTHX_ SV* sv, VOL I32 flags)
aec46f14 2427 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2428#define PERL_ARGS_ASSERT_CALL_SV \
2429 assert(sv)
aec46f14 2430
ce08f86c 2431PERL_CALLCONV void Perl_despatch_signals(pTHX);
e4c5ccf3
RH
2432PERL_CALLCONV OP * Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref)
2433 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2434#define PERL_ARGS_ASSERT_DOREF \
2435 assert(o)
e4c5ccf3 2436
4373e329 2437PERL_CALLCONV SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error)
abb2c242 2438 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2439#define PERL_ARGS_ASSERT_EVAL_PV \
2440 assert(p)
f54cb97a 2441
4373e329 2442PERL_CALLCONV I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags)
abb2c242 2443 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2444#define PERL_ARGS_ASSERT_EVAL_SV \
2445 assert(sv)
f54cb97a 2446
4373e329 2447PERL_CALLCONV SV* Perl_get_sv(pTHX_ const char* name, I32 create)
abb2c242 2448 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2449#define PERL_ARGS_ASSERT_GET_SV \
2450 assert(name)
f54cb97a 2451
4373e329 2452PERL_CALLCONV AV* Perl_get_av(pTHX_ const char* name, I32 create)
255164ba 2453 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2454#define PERL_ARGS_ASSERT_GET_AV \
2455 assert(name)
255164ba
DM
2456
2457PERL_CALLCONV HV* Perl_get_hv(pTHX_ const char* name, I32 create)
255164ba 2458 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2459#define PERL_ARGS_ASSERT_GET_HV \
2460 assert(name)
255164ba 2461
780a5241
NC
2462PERL_CALLCONV CV* Perl_get_cv(pTHX_ const char* name, I32 flags)
2463 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2464#define PERL_ARGS_ASSERT_GET_CV \
2465 assert(name)
780a5241
NC
2466
2467PERL_CALLCONV CV* Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags)
abb2c242 2468 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2469#define PERL_ARGS_ASSERT_GET_CVN_FLAGS \
2470 assert(name)
f54cb97a 2471
1d7c1841
GS
2472PERL_CALLCONV int Perl_init_i18nl10n(pTHX_ int printwarn);
2473PERL_CALLCONV int Perl_init_i18nl14n(pTHX_ int printwarn);
8772537c
AL
2474PERL_CALLCONV void Perl_new_collate(pTHX_ const char* newcoll);
2475PERL_CALLCONV void Perl_new_ctype(pTHX_ const char* newctype)
abb2c242 2476 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2477#define PERL_ARGS_ASSERT_NEW_CTYPE \
2478 assert(newctype)
f54cb97a 2479
8772537c 2480PERL_CALLCONV void Perl_new_numeric(pTHX_ const char* newcoll);
1d7c1841
GS
2481PERL_CALLCONV void Perl_set_numeric_local(pTHX);
2482PERL_CALLCONV void Perl_set_numeric_radix(pTHX);
2483PERL_CALLCONV void Perl_set_numeric_standard(pTHX);
4373e329 2484PERL_CALLCONV void Perl_require_pv(pTHX_ const char* pv)
abb2c242 2485 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2486#define PERL_ARGS_ASSERT_REQUIRE_PV \
2487 assert(pv)
f54cb97a 2488
2d03de9c
AL
2489PERL_CALLCONV void Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags)
2490 __attribute__nonnull__(pTHX_1)
2491 __attribute__nonnull__(pTHX_2)
2492 __attribute__nonnull__(pTHX_3)
2493 __attribute__nonnull__(pTHX_4)
2494 __attribute__nonnull__(pTHX_5)
2495 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2496#define PERL_ARGS_ASSERT_PACK_CAT \
2497 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
2d03de9c
AL
2498
2499PERL_CALLCONV void Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist)
2500 __attribute__nonnull__(pTHX_1)
2501 __attribute__nonnull__(pTHX_2)
2502 __attribute__nonnull__(pTHX_3)
2503 __attribute__nonnull__(pTHX_4)
2504 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2505#define PERL_ARGS_ASSERT_PACKLIST \
2506 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist)
2d03de9c 2507
e3790a26 2508#ifdef PERL_USES_PL_PIDSTATUS
1d7c1841 2509PERL_CALLCONV void Perl_pidgone(pTHX_ Pid_t pid, int status);
e3790a26 2510#endif
4373e329 2511PERL_CALLCONV void Perl_pmflag(pTHX_ U32* pmfl, int ch)
abb2c242 2512 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2513#define PERL_ARGS_ASSERT_PMFLAG \
2514 assert(pmfl)
f54cb97a 2515
4048f010 2516PERL_CALLCONV OP* Perl_pmruntime(pTHX_ OP *o, OP *expr, bool isreg)
abb2c242
JH
2517 __attribute__nonnull__(pTHX_1)
2518 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2519#define PERL_ARGS_ASSERT_PMRUNTIME \
2520 assert(o); assert(expr)
f54cb97a 2521
4373e329 2522PERL_CALLCONV OP* Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl)
abb2c242 2523 __attribute__nonnull__(pTHX_1)
2d03de9c
AL
2524 __attribute__nonnull__(pTHX_2)
2525 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2526#define PERL_ARGS_ASSERT_PMTRANS \
2527 assert(o); assert(expr); assert(repl)
f54cb97a 2528
1d7c1841
GS
2529PERL_CALLCONV void Perl_pop_scope(pTHX);
2530PERL_CALLCONV OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
1d7c1841 2531PERL_CALLCONV void Perl_push_scope(pTHX);
25b0f989 2532/* PERL_CALLCONV OP* Perl_ref(pTHX_ OP* o, I32 type); */
1d7c1841 2533PERL_CALLCONV OP* Perl_refkids(pTHX_ OP* o, I32 type);
097eb12c 2534PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
abb2c242 2535 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2536#define PERL_ARGS_ASSERT_REGDUMP \
2537 assert(r)
f54cb97a 2538
f7819f85
A
2539PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
2540 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2541#define PERL_ARGS_ASSERT_REGDUMP \
2542 assert(r)
f7819f85 2543
4048f010 2544PERL_CALLCONV SV* Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **altsvp)
32fc9b6a 2545 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2546#define PERL_ARGS_ASSERT_REGCLASS_SWASH \
2547 assert(node)
2d03de9c 2548
49d7dfbc 2549PERL_CALLCONV I32 Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave)
abb2c242
JH
2550 __attribute__nonnull__(pTHX_1)
2551 __attribute__nonnull__(pTHX_2)
2552 __attribute__nonnull__(pTHX_3)
2553 __attribute__nonnull__(pTHX_4)
2554 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2555#define PERL_ARGS_ASSERT_PREGEXEC \
2556 assert(prog); assert(stringarg); assert(strend); assert(strbeg); assert(screamer)
f54cb97a 2557
84679df5 2558PERL_CALLCONV void Perl_pregfree(pTHX_ REGEXP* r);
4048f010 2559PERL_CALLCONV void Perl_pregfree2(pTHX_ REGEXP *rx)
288b8c02 2560 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2561#define PERL_ARGS_ASSERT_PREGFREE2 \
2562 assert(rx)
288b8c02 2563
84679df5 2564PERL_CALLCONV REGEXP* Perl_reg_temp_copy(pTHX_ REGEXP* r)
28d8d7f4 2565 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2566#define PERL_ARGS_ASSERT_REG_TEMP_COPY \
2567 assert(r)
28d8d7f4 2568
4048f010 2569PERL_CALLCONV void Perl_regfree_internal(pTHX_ REGEXP *const rx)
8074533a 2570 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2571#define PERL_ARGS_ASSERT_REGFREE_INTERNAL \
2572 assert(rx)
8074533a 2573
a3c0e9ca 2574#if defined(USE_ITHREADS)
49d7dfbc 2575PERL_CALLCONV void* Perl_regdupe_internal(pTHX_ REGEXP * const r, CLONE_PARAMS* param)
84da74a7
YO
2576 __attribute__nonnull__(pTHX_1)
2577 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2578#define PERL_ARGS_ASSERT_REGDUPE_INTERNAL \
2579 assert(r); assert(param)
84da74a7 2580
a3c0e9ca 2581#endif
1593ad57 2582PERL_CALLCONV REGEXP* Perl_pregcomp(pTHX_ SV * const pattern, const U32 flags)
3ab4a224 2583 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2584#define PERL_ARGS_ASSERT_PREGCOMP \
2585 assert(pattern)
f54cb97a 2586
1593ad57 2587PERL_CALLCONV REGEXP* Perl_re_compile(pTHX_ SV * const pattern, U32 flags)
3ab4a224 2588 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2589#define PERL_ARGS_ASSERT_RE_COMPILE \
2590 assert(pattern)
2a5d9b1d 2591
9f61653a 2592PERL_CALLCONV char* Perl_re_intuit_start(pTHX_ REGEXP * const rx, SV* sv, char* strpos, char* strend, const U32 flags, re_scream_pos_data *data)
2d03de9c
AL
2593 __attribute__nonnull__(pTHX_1)
2594 __attribute__nonnull__(pTHX_3)
2595 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2596#define PERL_ARGS_ASSERT_RE_INTUIT_START \
2597 assert(rx); assert(strpos); assert(strend)
2d03de9c 2598
4048f010 2599PERL_CALLCONV SV* Perl_re_intuit_string(pTHX_ REGEXP *const r)
2d03de9c 2600 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2601#define PERL_ARGS_ASSERT_RE_INTUIT_STRING \
2602 assert(r)
2d03de9c 2603
4048f010 2604PERL_CALLCONV I32 Perl_regexec_flags(pTHX_ REGEXP *const rx, char *stringarg, char *strend, char *strbeg, I32 minend, SV *sv, void *data, U32 flags)
abb2c242
JH
2605 __attribute__nonnull__(pTHX_1)
2606 __attribute__nonnull__(pTHX_2)
2607 __attribute__nonnull__(pTHX_3)
fb9bf107
NC
2608 __attribute__nonnull__(pTHX_4)
2609 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2610#define PERL_ARGS_ASSERT_REGEXEC_FLAGS \
2611 assert(rx); assert(stringarg); assert(strend); assert(strbeg); assert(sv)
a3b680e6 2612
1df70142 2613PERL_CALLCONV regnode* Perl_regnext(pTHX_ regnode* p)
8074533a 2614 __attribute__warn_unused_result__;
1df70142 2615
81714fb9 2616
192b9cd1
AB
2617PERL_CALLCONV SV* Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags)
2618 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2619#define PERL_ARGS_ASSERT_REG_NAMED_BUFF \
2620 assert(rx)
192b9cd1
AB
2621
2622PERL_CALLCONV SV* Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags)
2623 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2624#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER \
2625 assert(rx)
192b9cd1
AB
2626
2627PERL_CALLCONV SV* Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags)
93b32b6d 2628 __attribute__nonnull__(pTHX_1)
44a2ac75 2629 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2630#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH \
2631 assert(rx); assert(namesv)
44a2ac75 2632
192b9cd1
AB
2633PERL_CALLCONV bool Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags)
2634 __attribute__nonnull__(pTHX_1)
2635 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2636#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS \
2637 assert(rx); assert(key)
192b9cd1
AB
2638
2639PERL_CALLCONV SV* Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags)
2640 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2641#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY \
2642 assert(rx)
192b9cd1
AB
2643
2644PERL_CALLCONV SV* Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags)
2645 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2646#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY \
2647 assert(rx)
192b9cd1
AB
2648
2649PERL_CALLCONV SV* Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags)
2650 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2651#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR \
2652 assert(rx)
192b9cd1
AB
2653
2654PERL_CALLCONV SV* Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags)
2655 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2656#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL \
2657 assert(rx)
192b9cd1 2658
2fdbfb4d
AB
2659
2660PERL_CALLCONV void Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv)
2661 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2662#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH \
2663 assert(rx)
2fdbfb4d
AB
2664
2665PERL_CALLCONV void Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value)
93b32b6d 2666 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2667#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE \
2668 assert(rx)
93b32b6d 2669
2fdbfb4d
AB
2670PERL_CALLCONV I32 Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren)
2671 __attribute__nonnull__(pTHX_1)
2672 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2673#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH \
2674 assert(rx); assert(sv)
2fdbfb4d
AB
2675
2676
49d7dfbc 2677PERL_CALLCONV SV* Perl_reg_qr_package(pTHX_ REGEXP * const rx)
fe578d7f 2678 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2679#define PERL_ARGS_ASSERT_REG_QR_PACKAGE \
2680 assert(rx)
fe578d7f 2681
93b32b6d 2682
32fc9b6a
DM
2683PERL_CALLCONV void Perl_regprop(pTHX_ const regexp *prog, SV* sv, const regnode* o)
2684 __attribute__nonnull__(pTHX_2)
2685 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2686#define PERL_ARGS_ASSERT_REGPROP \
2687 assert(sv); assert(o)
2d03de9c 2688
4373e329 2689PERL_CALLCONV void Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count)
abb2c242
JH
2690 __attribute__nonnull__(pTHX_1)
2691 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2692#define PERL_ARGS_ASSERT_REPEATCPY \
2693 assert(to); assert(from)
f54cb97a 2694
4373e329 2695PERL_CALLCONV char* Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
abb2c242
JH
2696 __attribute__pure__
2697 __attribute__nonnull__(pTHX_1)
2698 __attribute__nonnull__(pTHX_2)
2699 __attribute__nonnull__(pTHX_3)
2700 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2701#define PERL_ARGS_ASSERT_RNINSTR \
2702 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a 2703
1d7c1841
GS
2704PERL_CALLCONV Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t);
2705PERL_CALLCONV int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
9f6cc744 2706PERL_CALLCONV int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save)
9a957fbc 2707 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2708#define PERL_ARGS_ASSERT_RSIGNAL_SAVE \
2709 assert(save)
9a957fbc 2710
1d7c1841 2711PERL_CALLCONV Sighandler_t Perl_rsignal_state(pTHX_ int i);
a3b680e6 2712PERL_CALLCONV void Perl_rxres_free(pTHX_ void** rsp)
abb2c242 2713 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2714#define PERL_ARGS_ASSERT_RXRES_FREE \
2715 assert(rsp)
a3b680e6 2716
4048f010 2717PERL_CALLCONV void Perl_rxres_restore(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2718 __attribute__nonnull__(pTHX_1)
2719 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2720#define PERL_ARGS_ASSERT_RXRES_RESTORE \
2721 assert(rsp); assert(rx)
a3b680e6 2722
4048f010 2723PERL_CALLCONV void Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2724 __attribute__nonnull__(pTHX_1)
2725 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2726#define PERL_ARGS_ASSERT_RXRES_SAVE \
2727 assert(rsp); assert(rx)
a3b680e6 2728
cea2e8a9 2729#if !defined(HAS_RENAME)
4373e329 2730PERL_CALLCONV I32 Perl_same_dirent(pTHX_ const char* a, const char* b)
abb2c242
JH
2731 __attribute__nonnull__(pTHX_1)
2732 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2733#define PERL_ARGS_ASSERT_SAME_DIRENT \
2734 assert(a); assert(b)
f54cb97a 2735
0cb96387 2736#endif
53c1dcc0
AL
2737PERL_CALLCONV char* Perl_savepv(pTHX_ const char* pv)
2738 __attribute__malloc__
639f6c3d 2739 __attribute__warn_unused_result__;
53c1dcc0
AL
2740
2741PERL_CALLCONV char* Perl_savepvn(pTHX_ const char* pv, I32 len)
2742 __attribute__malloc__
639f6c3d 2743 __attribute__warn_unused_result__;
53c1dcc0
AL
2744
2745PERL_CALLCONV char* Perl_savesharedpv(pTHX_ const char* pv)
2746 __attribute__malloc__
2747 __attribute__warn_unused_result__;
2748
d9095cec
NC
2749PERL_CALLCONV char* Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
2750 __attribute__malloc__
2751 __attribute__warn_unused_result__
2752 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2753#define PERL_ARGS_ASSERT_SAVESHAREDPVN \
2754 assert(pv)
d9095cec 2755
53c1dcc0
AL
2756PERL_CALLCONV char* Perl_savesvpv(pTHX_ SV* sv)
2757 __attribute__malloc__
2758 __attribute__warn_unused_result__
2759 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2760#define PERL_ARGS_ASSERT_SAVESVPV \
2761 assert(sv)
53c1dcc0 2762
1d7c1841 2763PERL_CALLCONV void Perl_savestack_grow(pTHX);
4b3c1a47 2764PERL_CALLCONV void Perl_savestack_grow_cnt(pTHX_ I32 need);
59413342 2765PERL_CALLCONV void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr)
9a957fbc
AL
2766 __attribute__nonnull__(pTHX_1)
2767 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2768#define PERL_ARGS_ASSERT_SAVE_AELEM \
2769 assert(av); assert(sptr)
9a957fbc 2770
1d7c1841 2771PERL_CALLCONV I32 Perl_save_alloc(pTHX_ I32 size, I32 pad);
9a957fbc
AL
2772PERL_CALLCONV void Perl_save_aptr(pTHX_ AV** aptr)
2773 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2774#define PERL_ARGS_ASSERT_SAVE_APTR \
2775 assert(aptr)
9a957fbc
AL
2776
2777PERL_CALLCONV AV* Perl_save_ary(pTHX_ GV* gv)
2778 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2779#define PERL_ARGS_ASSERT_SAVE_ARY \
2780 assert(gv)
9a957fbc
AL
2781
2782PERL_CALLCONV void Perl_save_bool(pTHX_ bool* boolp)
2783 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2784#define PERL_ARGS_ASSERT_SAVE_BOOL \
2785 assert(boolp)
9a957fbc
AL
2786
2787PERL_CALLCONV void Perl_save_clearsv(pTHX_ SV** svp)
2788 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2789#define PERL_ARGS_ASSERT_SAVE_CLEARSV \
2790 assert(svp)
9a957fbc 2791
4048f010 2792PERL_CALLCONV void Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen)
9a957fbc
AL
2793 __attribute__nonnull__(pTHX_1)
2794 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2795#define PERL_ARGS_ASSERT_SAVE_DELETE \
2796 assert(hv); assert(key)
9a957fbc 2797
fb9bf107
NC
2798PERL_CALLCONV void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p)
2799 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2800#define PERL_ARGS_ASSERT_SAVE_DESTRUCTOR \
2801 assert(p)
fb9bf107 2802
55968144 2803PERL_CALLCONV void Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
1d7c1841
GS
2804PERL_CALLCONV void Perl_save_freesv(pTHX_ SV* sv);
2805PERL_CALLCONV void Perl_save_freeop(pTHX_ OP* o);
2806PERL_CALLCONV void Perl_save_freepv(pTHX_ char* pv);
9a957fbc
AL
2807PERL_CALLCONV void Perl_save_generic_svref(pTHX_ SV** sptr)
2808 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2809#define PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF \
2810 assert(sptr)
9a957fbc
AL
2811
2812PERL_CALLCONV void Perl_save_generic_pvref(pTHX_ char** str)
2813 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2814#define PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF \
2815 assert(str)
9a957fbc
AL
2816
2817PERL_CALLCONV void Perl_save_shared_pvref(pTHX_ char** str)
2818 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2819#define PERL_ARGS_ASSERT_SAVE_SHARED_PVREF \
2820 assert(str)
9a957fbc 2821
aec46f14
AL
2822PERL_CALLCONV void Perl_save_gp(pTHX_ GV* gv, I32 empty)
2823 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2824#define PERL_ARGS_ASSERT_SAVE_GP \
2825 assert(gv)
aec46f14
AL
2826
2827PERL_CALLCONV HV* Perl_save_hash(pTHX_ GV* gv)
2828 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2829#define PERL_ARGS_ASSERT_SAVE_HASH \
2830 assert(gv)
aec46f14 2831
af7df257 2832/* PERL_CALLCONV void Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr)
9a957fbc
AL
2833 __attribute__nonnull__(pTHX_1)
2834 __attribute__nonnull__(pTHX_2)
af7df257 2835 __attribute__nonnull__(pTHX_3); */
7918f24d
NC
2836#define PERL_ARGS_ASSERT_SAVE_HELEM \
2837 assert(hv); assert(key); assert(sptr)
9a957fbc 2838
af7df257
CS
2839PERL_CALLCONV void Perl_save_helem_flags(pTHX_ HV *hv, SV *key, SV **sptr, const U32 flags)
2840 __attribute__nonnull__(pTHX_1)
2841 __attribute__nonnull__(pTHX_2)
2842 __attribute__nonnull__(pTHX_3);
2843#define PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS \
2844 assert(hv); assert(key); assert(sptr)
2845
aec46f14
AL
2846PERL_CALLCONV void Perl_save_hptr(pTHX_ HV** hptr)
2847 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2848#define PERL_ARGS_ASSERT_SAVE_HPTR \
2849 assert(hptr)
aec46f14
AL
2850
2851PERL_CALLCONV void Perl_save_I16(pTHX_ I16* intp)
2852 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2853#define PERL_ARGS_ASSERT_SAVE_I16 \
2854 assert(intp)
aec46f14
AL
2855
2856PERL_CALLCONV void Perl_save_I32(pTHX_ I32* intp)
2857 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2858#define PERL_ARGS_ASSERT_SAVE_I32 \
2859 assert(intp)
aec46f14
AL
2860
2861PERL_CALLCONV void Perl_save_I8(pTHX_ I8* bytep)
2862 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2863#define PERL_ARGS_ASSERT_SAVE_I8 \
2864 assert(bytep)
aec46f14
AL
2865
2866PERL_CALLCONV void Perl_save_int(pTHX_ int* intp)
2867 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2868#define PERL_ARGS_ASSERT_SAVE_INT \
2869 assert(intp)
aec46f14
AL
2870
2871PERL_CALLCONV void Perl_save_item(pTHX_ SV* item)
2872 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2873#define PERL_ARGS_ASSERT_SAVE_ITEM \
2874 assert(item)
aec46f14 2875
4048f010 2876PERL_CALLCONV void Perl_save_iv(pTHX_ IV *ivp)
aec46f14 2877 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2878#define PERL_ARGS_ASSERT_SAVE_IV \
2879 assert(ivp)
aec46f14
AL
2880
2881PERL_CALLCONV void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg)
2882 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2883#define PERL_ARGS_ASSERT_SAVE_LIST \
2884 assert(sarg)
aec46f14
AL
2885
2886PERL_CALLCONV void Perl_save_long(pTHX_ long* longp)
2887 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2888#define PERL_ARGS_ASSERT_SAVE_LONG \
2889 assert(longp)
aec46f14
AL
2890
2891PERL_CALLCONV void Perl_save_mortalizesv(pTHX_ SV* sv)
2892 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2893#define PERL_ARGS_ASSERT_SAVE_MORTALIZESV \
2894 assert(sv)
aec46f14 2895
3d4dd4c7
NC
2896PERL_CALLCONV void Perl_save_nogv(pTHX_ GV* gv)
2897 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2898#define PERL_ARGS_ASSERT_SAVE_NOGV \
2899 assert(gv)
3d4dd4c7 2900
1d7c1841 2901PERL_CALLCONV void Perl_save_op(pTHX);
aec46f14
AL
2902PERL_CALLCONV SV* Perl_save_scalar(pTHX_ GV* gv)
2903 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2904#define PERL_ARGS_ASSERT_SAVE_SCALAR \
2905 assert(gv)
aec46f14
AL
2906
2907PERL_CALLCONV void Perl_save_pptr(pTHX_ char** pptr)
2908 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2909#define PERL_ARGS_ASSERT_SAVE_PPTR \
2910 assert(pptr)
aec46f14 2911
4048f010 2912PERL_CALLCONV void Perl_save_vptr(pTHX_ void *ptr)
aec46f14 2913 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2914#define PERL_ARGS_ASSERT_SAVE_VPTR \
2915 assert(ptr)
aec46f14 2916
1d7c1841 2917PERL_CALLCONV void Perl_save_re_context(pTHX);
09edbca0 2918PERL_CALLCONV void Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
aec46f14
AL
2919PERL_CALLCONV void Perl_save_sptr(pTHX_ SV** sptr)
2920 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2921#define PERL_ARGS_ASSERT_SAVE_SPTR \
2922 assert(sptr)
aec46f14
AL
2923
2924PERL_CALLCONV SV* Perl_save_svref(pTHX_ SV** sptr)
2925 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2926#define PERL_ARGS_ASSERT_SAVE_SVREF \
2927 assert(sptr)
aec46f14 2928
1d7c1841
GS
2929PERL_CALLCONV OP* Perl_sawparens(pTHX_ OP* o);
2930PERL_CALLCONV OP* Perl_scalar(pTHX_ OP* o);
2dd5337b
NC
2931#if defined(PERL_IN_OP_C)
2932STATIC OP* S_scalarkids(pTHX_ OP* o);
2933STATIC OP* S_scalarseq(pTHX_ OP* o);
2934#endif
aec46f14
AL
2935PERL_CALLCONV OP* Perl_scalarvoid(pTHX_ OP* o)
2936 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2937#define PERL_ARGS_ASSERT_SCALARVOID \
2938 assert(o)
aec46f14
AL
2939
2940PERL_CALLCONV NV Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2941 __attribute__nonnull__(pTHX_1)
2942 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2943#define PERL_ARGS_ASSERT_SCAN_BIN \
2944 assert(start); assert(retlen)
aec46f14
AL
2945
2946PERL_CALLCONV NV Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2947 __attribute__nonnull__(pTHX_1)
2948 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2949#define PERL_ARGS_ASSERT_SCAN_HEX \
2950 assert(start); assert(retlen)
aec46f14
AL
2951
2952PERL_CALLCONV char* Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp)
2953 __attribute__nonnull__(pTHX_1)
2954 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2955#define PERL_ARGS_ASSERT_SCAN_NUM \
2956 assert(s); assert(lvalp)
aec46f14
AL
2957
2958PERL_CALLCONV NV Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2959 __attribute__nonnull__(pTHX_1)
2960 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2961#define PERL_ARGS_ASSERT_SCAN_OCT \
2962 assert(start); assert(retlen)
aec46f14 2963
1d7c1841 2964PERL_CALLCONV OP* Perl_scope(pTHX_ OP* o);
9f6cc744 2965PERL_CALLCONV char* Perl_screaminstr(pTHX_ SV *bigstr, SV *littlestr, I32 start_shift, I32 end_shift, I32 *old_posp, I32 last)
aec46f14
AL
2966 __attribute__nonnull__(pTHX_1)
2967 __attribute__nonnull__(pTHX_2)
2968 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2969#define PERL_ARGS_ASSERT_SCREAMINSTR \
2970 assert(bigstr); assert(littlestr); assert(old_posp)
aec46f14 2971
864dbfa3 2972#if !defined(VMS)
fb9bf107
NC
2973PERL_CALLCONV I32 Perl_setenv_getix(pTHX_ const char* nam)
2974 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2975#define PERL_ARGS_ASSERT_SETENV_GETIX \
2976 assert(nam)
fb9bf107 2977
0cb96387 2978#endif
1d7c1841 2979PERL_CALLCONV void Perl_setdefout(pTHX_ GV* gv);
aec46f14
AL
2980PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash)
2981 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2982#define PERL_ARGS_ASSERT_SHARE_HEK \
2983 assert(str)
aec46f14 2984
8aad04aa 2985#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
b6455c53
SR
2986PERL_CALLCONV Signal_t Perl_sighandler(int sig, siginfo_t *info, void *uap);
2987PERL_CALLCONV Signal_t Perl_csighandler(int sig, siginfo_t *info, void *uap);
8aad04aa 2988#else
1d7c1841 2989PERL_CALLCONV Signal_t Perl_sighandler(int sig);
d36b6582 2990PERL_CALLCONV Signal_t Perl_csighandler(int sig);
8aad04aa 2991#endif
c48640ec 2992PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV** p, int n)
abb2c242
JH
2993 __attribute__nonnull__(pTHX_1)
2994 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2995#define PERL_ARGS_ASSERT_STACK_GROW \
2996 assert(sp); assert(p)
f54cb97a 2997
0b1558d1 2998PERL_CALLCONV I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
aec46f14
AL
2999PERL_CALLCONV void Perl_sub_crush_depth(pTHX_ CV* cv)
3000 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3001#define PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH \
3002 assert(cv)
aec46f14 3003
7bc54cea 3004PERL_CALLCONV bool Perl_sv_2bool(pTHX_ SV *const sv)
abb2c242 3005 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3006#define PERL_ARGS_ASSERT_SV_2BOOL \
3007 assert(sv)
f54cb97a 3008
23f13727 3009PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV **const st, GV **const gvp, const I32 lref)
aec46f14
AL
3010 __attribute__nonnull__(pTHX_2)
3011 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3012#define PERL_ARGS_ASSERT_SV_2CV \
3013 assert(st); assert(gvp)
f54cb97a 3014
23f13727 3015PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV *const sv)
abb2c242 3016 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3017#define PERL_ARGS_ASSERT_SV_2IO \
3018 assert(sv)
f54cb97a 3019
180488f8 3020#ifdef PERL_IN_SV_C
19f6321d 3021STATIC bool S_glob_2number(pTHX_ GV* const gv)
180488f8 3022 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3023#define PERL_ARGS_ASSERT_GLOB_2NUMBER \
3024 assert(gv)
180488f8 3025
19f6321d 3026STATIC char* S_glob_2pv(pTHX_ GV* const gv, STRLEN * const len)
4789ae7c 3027 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3028#define PERL_ARGS_ASSERT_GLOB_2PV \
3029 assert(gv)
675c862f 3030
180488f8 3031#endif
53e85712
NC
3032/* PERL_CALLCONV IV Perl_sv_2iv(pTHX_ SV *sv); */
3033PERL_CALLCONV IV Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
23f13727 3034PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV *const sv);
53e85712 3035PERL_CALLCONV NV Perl_sv_2nv(pTHX_ SV *const sv);
5de3775c 3036PERL_CALLCONV SV* Perl_sv_2num(pTHX_ SV *const sv)
800401ee 3037 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3038#define PERL_ARGS_ASSERT_SV_2NUM \
3039 assert(sv)
800401ee 3040
53e85712
NC
3041/* PERL_CALLCONV char* Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp); */
3042PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
7bc54cea 3043PERL_CALLCONV char* Perl_sv_2pvutf8(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3044 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3045#define PERL_ARGS_ASSERT_SV_2PVUTF8 \
3046 assert(sv)
f54cb97a 3047
5de3775c 3048PERL_CALLCONV char* Perl_sv_2pvbyte(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3049 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3050#define PERL_ARGS_ASSERT_SV_2PVBYTE \
3051 assert(sv)
f54cb97a 3052
4373e329 3053PERL_CALLCONV char* Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp)
f49ed1da 3054 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3055#define PERL_ARGS_ASSERT_SV_PVN_NOMG \
3056 assert(sv)
f54cb97a 3057
53e85712
NC
3058/* PERL_CALLCONV UV Perl_sv_2uv(pTHX_ SV *sv); */
3059PERL_CALLCONV UV Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
4373e329 3060PERL_CALLCONV IV Perl_sv_iv(pTHX_ SV* sv)
abb2c242 3061 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3062#define PERL_ARGS_ASSERT_SV_IV \
3063 assert(sv)
f54cb97a 3064
4373e329 3065PERL_CALLCONV UV Perl_sv_uv(pTHX_ SV* sv)
abb2c242 3066 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3067#define PERL_ARGS_ASSERT_SV_UV \
3068 assert(sv)
f54cb97a 3069
4373e329 3070PERL_CALLCONV NV Perl_sv_nv(pTHX_ SV* sv)
abb2c242 3071 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3072#define PERL_ARGS_ASSERT_SV_NV \
3073 assert(sv)
f54cb97a 3074
4048f010 3075PERL_CALLCONV char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3076 __attribute__nonnull__(pTHX_1)
3077 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3078#define PERL_ARGS_ASSERT_SV_PVN \
3079 assert(sv); assert(lp)
f54cb97a 3080
4048f010 3081PERL_CALLCONV char* Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3082 __attribute__nonnull__(pTHX_1)
3083 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3084#define PERL_ARGS_ASSERT_SV_PVUTF8N \
3085 assert(sv); assert(lp)
f54cb97a 3086
4048f010 3087PERL_CALLCONV char* Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3088 __attribute__nonnull__(pTHX_1)
3089 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3090#define PERL_ARGS_ASSERT_SV_PVBYTEN \
3091 assert(sv); assert(lp)
f54cb97a 3092
23f13727 3093PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *const sv);
de37a194 3094PERL_CALLCONV void Perl_sv_add_arena(pTHX_ char *const ptr, const U32 size, const U32 flags)
abb2c242 3095 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3096#define PERL_ARGS_ASSERT_SV_ADD_ARENA \
3097 assert(ptr)
f54cb97a 3098
aad570aa 3099PERL_CALLCONV int Perl_sv_backoff(pTHX_ SV *const sv)
abb2c242 3100 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3101#define PERL_ARGS_ASSERT_SV_BACKOFF \
3102 assert(sv)
f54cb97a 3103
12964ddd 3104PERL_CALLCONV SV* Perl_sv_bless(pTHX_ SV *const sv, HV *const stash)
abb2c242
JH
3105 __attribute__nonnull__(pTHX_1)
3106 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3107#define PERL_ARGS_ASSERT_SV_BLESS \
3108 assert(sv); assert(stash)
f54cb97a 3109
66ceb532 3110PERL_CALLCONV void Perl_sv_catpvf(pTHX_ SV *const sv, const char *const pat, ...)
f54cb97a 3111 __attribute__format__(__printf__,pTHX_2,pTHX_3)
aec46f14
AL
3112 __attribute__nonnull__(pTHX_1)
3113 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3114#define PERL_ARGS_ASSERT_SV_CATPVF \
3115 assert(sv); assert(pat)
f54cb97a 3116
66ceb532 3117PERL_CALLCONV void Perl_sv_vcatpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args)
aec46f14
AL
3118 __attribute__nonnull__(pTHX_1)
3119 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3120#define PERL_ARGS_ASSERT_SV_VCATPVF \
3121 assert(sv); assert(pat)
f54cb97a 3122
2b021c53 3123PERL_CALLCONV void Perl_sv_catpv(pTHX_ SV *const sv, const char* ptr)
cf684db6 3124 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3125#define PERL_ARGS_ASSERT_SV_CATPV \
3126 assert(sv)
f54cb97a 3127
4048f010 3128/* PERL_CALLCONV void Perl_sv_catpvn(pTHX_ SV *dsv, const char *sstr, STRLEN len)
aec46f14
AL
3129 __attribute__nonnull__(pTHX_1)
3130 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
3131#define PERL_ARGS_ASSERT_SV_CATPVN \
3132 assert(dsv); assert(sstr)
f54cb97a 3133
4048f010 3134/* PERL_CALLCONV void Perl_sv_catsv(pTHX_ SV *dstr, SV *sstr)
abb2c242 3135 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3136#define PERL_ARGS_ASSERT_SV_CATSV \
3137 assert(dstr)
f54cb97a 3138
2e000ff2 3139PERL_CALLCONV void Perl_sv_chop(pTHX_ SV *const sv, const char *const ptr)
abb2c242 3140 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3141#define PERL_ARGS_ASSERT_SV_CHOP \
3142 assert(sv)
f54cb97a 3143
5226ed68 3144PERL_CALLCONV I32 Perl_sv_clean_all(pTHX);
1d7c1841 3145PERL_CALLCONV void Perl_sv_clean_objs(pTHX);
af828c01 3146PERL_CALLCONV void Perl_sv_clear(pTHX_ SV *const sv)
abb2c242 3147 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3148#define PERL_ARGS_ASSERT_SV_CLEAR \
3149 assert(sv)
f54cb97a 3150
ac1e9476
SS
3151PERL_CALLCONV I32 Perl_sv_cmp(pTHX_ SV *const sv1, SV *const sv2);
3152PERL_CALLCONV I32 Perl_sv_cmp_locale(pTHX_ SV *const sv1, SV *const sv2);
864dbfa3 3153#if defined(USE_LOCALE_COLLATE)
ac1e9476 3154PERL_CALLCONV char* Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp)
1df70142
AL
3155 __attribute__nonnull__(pTHX_1)
3156 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3157#define PERL_ARGS_ASSERT_SV_COLLXFRM \
3158 assert(sv); assert(nxp)
f54cb97a 3159
0cb96387 3160#endif
4048f010 3161PERL_CALLCONV OP* Perl_sv_compile_2op(pTHX_ SV *sv, OP **startop, const char *code, PAD **padp)
abb2c242
JH
3162 __attribute__nonnull__(pTHX_1)
3163 __attribute__nonnull__(pTHX_2)
3164 __attribute__nonnull__(pTHX_3)
3165 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3166#define PERL_ARGS_ASSERT_SV_COMPILE_2OP \
3167 assert(sv); assert(startop); assert(code); assert(padp)
f54cb97a 3168
4373e329 3169PERL_CALLCONV int Perl_getcwd_sv(pTHX_ SV* sv)
abb2c242 3170 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3171#define PERL_ARGS_ASSERT_GETCWD_SV \
3172 assert(sv)
f54cb97a 3173
ac1e9476 3174PERL_CALLCONV void Perl_sv_dec(pTHX_ SV *const sv);
f54cb97a 3175PERL_CALLCONV void Perl_sv_dump(pTHX_ SV* sv)
abb2c242 3176 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3177#define PERL_ARGS_ASSERT_SV_DUMP \
3178 assert(sv)
f54cb97a 3179
15f169a1 3180PERL_CALLCONV bool Perl_sv_derived_from(pTHX_ SV* sv, const char *const name)
abb2c242
JH
3181 __attribute__warn_unused_result__
3182 __attribute__nonnull__(pTHX_1)
3183 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3184#define PERL_ARGS_ASSERT_SV_DERIVED_FROM \
3185 assert(sv); assert(name)
f54cb97a 3186
15f169a1 3187PERL_CALLCONV bool Perl_sv_does(pTHX_ SV* sv, const char *const name)
cbc021f9 3188 __attribute__warn_unused_result__
3189 __attribute__nonnull__(pTHX_1)
3190 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3191#define PERL_ARGS_ASSERT_SV_DOES \
3192 assert(sv); assert(name)
cbc021f9 3193
551405c4 3194PERL_CALLCONV I32 Perl_sv_eq(pTHX_ SV* sv1, SV* sv2);
af828c01
SS
3195PERL_CALLCONV void Perl_sv_free(pTHX_ SV *const sv);
3196PERL_CALLCONV void Perl_sv_free2(pTHX_ SV *const sv)
abb2c242 3197 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3198#define PERL_ARGS_ASSERT_SV_FREE2 \
3199 assert(sv)
f54cb97a 3200
1d7c1841 3201PERL_CALLCONV void Perl_sv_free_arenas(pTHX);
ac1e9476 3202PERL_CALLCONV char* Perl_sv_gets(pTHX_ SV *const sv, PerlIO *const fp, I32 append)
abb2c242
JH
3203 __attribute__nonnull__(pTHX_1)
3204 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3205#define PERL_ARGS_ASSERT_SV_GETS \
3206 assert(sv); assert(fp)
f54cb97a 3207
aad570aa 3208PERL_CALLCONV char* Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen)
abb2c242 3209 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3210#define PERL_ARGS_ASSERT_SV_GROW \
3211 assert(sv)
f54cb97a 3212
ac1e9476 3213PERL_CALLCONV void Perl_sv_inc(pTHX_ SV *const sv);
84335ee9 3214/* PERL_CALLCONV void Perl_sv_insert(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen)
abb2c242 3215 __attribute__nonnull__(pTHX_1)
84335ee9 3216 __attribute__nonnull__(pTHX_4); */
7918f24d
NC
3217#define PERL_ARGS_ASSERT_SV_INSERT \
3218 assert(bigstr); assert(little)
f54cb97a 3219
c0dd94a0
VP
3220PERL_CALLCONV void Perl_sv_insert_flags(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen, const U32 flags)
3221 __attribute__nonnull__(pTHX_1)
3222 __attribute__nonnull__(pTHX_4);
3223#define PERL_ARGS_ASSERT_SV_INSERT_FLAGS \
3224 assert(bigstr); assert(little)
3225
12964ddd 3226PERL_CALLCONV int Perl_sv_isa(pTHX_ SV* sv, const char *const name)
aec46f14 3227 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3228#define PERL_ARGS_ASSERT_SV_ISA \
3229 assert(name)
f54cb97a 3230
aec46f14 3231PERL_CALLCONV int Perl_sv_isobject(pTHX_ SV* sv);
af828c01
SS
3232PERL_CALLCONV STRLEN Perl_sv_len(pTHX_ SV *const sv);
3233PERL_CALLCONV STRLEN Perl_sv_len_utf8(pTHX_ SV *const sv);
ac1e9476 3234PERL_CALLCONV void Perl_sv_magic(pTHX_ SV *const sv, SV *const obj, const int how, const char *const name, const I32 namlen)
abb2c242 3235 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3236#define PERL_ARGS_ASSERT_SV_MAGIC \
3237 assert(sv)
f54cb97a 3238
2b021c53 3239PERL_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)
abb2c242 3240 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3241#define PERL_ARGS_ASSERT_SV_MAGICEXT \
3242 assert(sv)
f54cb97a 3243
ac1e9476 3244PERL_CALLCONV SV* Perl_sv_mortalcopy(pTHX_ SV *const oldsv)
1b6737cc
AL
3245 __attribute__malloc__
3246 __attribute__warn_unused_result__;
f54cb97a
AL
3247
3248PERL_CALLCONV SV* Perl_sv_newmortal(pTHX)
abb2c242 3249 __attribute__warn_unused_result__;
f54cb97a 3250
af828c01 3251PERL_CALLCONV SV* Perl_sv_newref(pTHX_ SV *const sv);
1d7c1841 3252PERL_CALLCONV char* Perl_sv_peek(pTHX_ SV* sv);
af828c01 3253PERL_CALLCONV void Perl_sv_pos_u2b(pTHX_ SV *const sv, I32 *const offsetp, I32 *const lenp)
b464bac0 3254 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3255#define PERL_ARGS_ASSERT_SV_POS_U2B \
3256 assert(offsetp)
b464bac0 3257
ac1e9476 3258PERL_CALLCONV void Perl_sv_pos_b2u(pTHX_ SV *const sv, I32 *const offsetp)
b464bac0 3259 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3260#define PERL_ARGS_ASSERT_SV_POS_B2U \
3261 assert(offsetp)
b464bac0 3262
25b0f989 3263/* PERL_CALLCONV char* Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp)
aec46f14 3264 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3265#define PERL_ARGS_ASSERT_SV_PVN_FORCE \
3266 assert(sv)
aec46f14 3267
12964ddd 3268PERL_CALLCONV char* Perl_sv_pvutf8n_force(pTHX_ SV *const sv, STRLEN *const lp)
aec46f14 3269 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3270#define PERL_ARGS_ASSERT_SV_PVUTF8N_FORCE \
3271 assert(sv)
aec46f14 3272
12964ddd 3273PERL_CALLCONV char* Perl_sv_pvbyten_force(pTHX_ SV *const sv, STRLEN *const lp)
aec46f14 3274 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3275#define PERL_ARGS_ASSERT_SV_PVBYTEN_FORCE \
3276 assert(sv)
aec46f14
AL
3277
3278PERL_CALLCONV char* Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding)
3279 __attribute__nonnull__(pTHX_1)
3280 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3281#define PERL_ARGS_ASSERT_SV_RECODE_TO_UTF8 \
3282 assert(sv); assert(encoding)
aec46f14
AL
3283
3284PERL_CALLCONV bool Perl_sv_cat_decode(pTHX_ SV* dsv, SV *encoding, SV *ssv, int *offset, char* tstr, int tlen)
3285 __attribute__nonnull__(pTHX_1)
3286 __attribute__nonnull__(pTHX_2)
3287 __attribute__nonnull__(pTHX_3)
3288 __attribute__nonnull__(pTHX_4)
3289 __attribute__nonnull__(pTHX_5);
7918f24d
NC
3290#define PERL_ARGS_ASSERT_SV_CAT_DECODE \
3291 assert(dsv); assert(encoding); assert(ssv); assert(offset); assert(tstr)
aec46f14 3292
12964ddd 3293PERL_CALLCONV const char* Perl_sv_reftype(pTHX_ const SV *const sv, const int ob)
abb2c242
JH
3294 __attribute__warn_unused_result__
3295 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3296#define PERL_ARGS_ASSERT_SV_REFTYPE \
3297 assert(sv)
a3b680e6 3298
af828c01 3299PERL_CALLCONV void Perl_sv_replace(pTHX_ SV *const sv, SV *const nsv)
abb2c242
JH
3300 __attribute__nonnull__(pTHX_1)
3301 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3302#define PERL_ARGS_ASSERT_SV_REPLACE \
3303 assert(sv); assert(nsv)
a3b680e6 3304
1d7c1841 3305PERL_CALLCONV void Perl_sv_report_used(pTHX);
23f13727 3306PERL_CALLCONV void Perl_sv_reset(pTHX_ const char* s, HV *const stash)
504618e9 3307 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3308#define PERL_ARGS_ASSERT_SV_RESET \
3309 assert(s)
504618e9 3310
89e38212 3311PERL_CALLCONV void Perl_sv_setpvf(pTHX_ SV *const sv, const char *const pat, ...)
aec46f14
AL
3312 __attribute__format__(__printf__,pTHX_2,pTHX_3)
3313 __attribute__nonnull__(pTHX_1)
3314 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3315#define PERL_ARGS_ASSERT_SV_SETPVF \
3316 assert(sv); assert(pat)
aec46f14 3317
89e38212 3318PERL_CALLCONV void Perl_sv_vsetpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args)
aec46f14
AL
3319 __attribute__nonnull__(pTHX_1)
3320 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3321#define PERL_ARGS_ASSERT_SV_VSETPVF \
3322 assert(sv); assert(pat)
aec46f14 3323
aad570aa 3324PERL_CALLCONV void Perl_sv_setiv(pTHX_ SV *const sv, const IV num)
aec46f14 3325 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3326#define PERL_ARGS_ASSERT_SV_SETIV \
3327 assert(sv)
f54cb97a 3328
89e38212 3329PERL_CALLCONV void Perl_sv_setpviv(pTHX_ SV *const sv, const IV num)
504618e9 3330 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3331#define PERL_ARGS_ASSERT_SV_SETPVIV \
3332 assert(sv)
504618e9 3333
aad570aa 3334PERL_CALLCONV void Perl_sv_setuv(pTHX_ SV *const sv, const UV num)
aec46f14 3335 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3336#define PERL_ARGS_ASSERT_SV_SETUV \
3337 assert(sv)
aec46f14 3338
aad570aa 3339PERL_CALLCONV void Perl_sv_setnv(pTHX_ SV *const sv, const NV num)
aec46f14 3340 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3341#define PERL_ARGS_ASSERT_SV_SETNV \
3342 assert(sv)
aec46f14 3343
12964ddd 3344PERL_CALLCONV SV* Perl_sv_setref_iv(pTHX_ SV *const rv, const char *const classname, const IV iv)
aec46f14 3345 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3346#define PERL_ARGS_ASSERT_SV_SETREF_IV \
3347 assert(rv)
aec46f14 3348
12964ddd 3349PERL_CALLCONV SV* Perl_sv_setref_uv(pTHX_ SV *const rv, const char *const classname, const UV uv)
aec46f14 3350 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3351#define PERL_ARGS_ASSERT_SV_SETREF_UV \
3352 assert(rv)
aec46f14 3353
12964ddd 3354PERL_CALLCONV SV* Perl_sv_setref_nv(pTHX_ SV *const rv, const char *const classname, const NV nv)
aec46f14 3355 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3356#define PERL_ARGS_ASSERT_SV_SETREF_NV \
3357 assert(rv)
aec46f14 3358
12964ddd 3359PERL_CALLCONV SV* Perl_sv_setref_pv(pTHX_ SV *const rv, const char *const classname, void *const pv)
aec46f14 3360 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3361#define PERL_ARGS_ASSERT_SV_SETREF_PV \
3362 assert(rv)
aec46f14 3363
12964ddd 3364PERL_CALLCONV SV* Perl_sv_setref_pvn(pTHX_ SV *const rv, const char *const classname, const char *const pv, const STRLEN n)
aec46f14 3365 __attribute__nonnull__(pTHX_1)
1b6737cc 3366 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3367#define PERL_ARGS_ASSERT_SV_SETREF_PVN \
3368 assert(rv); assert(pv)
1b6737cc 3369
2e000ff2 3370PERL_CALLCONV void Perl_sv_setpv(pTHX_ SV *const sv, const char *const ptr)
aec46f14 3371 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3372#define PERL_ARGS_ASSERT_SV_SETPV \
3373 assert(sv)
aec46f14 3374
2e000ff2 3375PERL_CALLCONV void Perl_sv_setpvn(pTHX_ SV *const sv, const char *const ptr, const STRLEN len)
abb2c242 3376 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3377#define PERL_ARGS_ASSERT_SV_SETPVN \
3378 assert(sv)
f54cb97a 3379
4048f010 3380/* PERL_CALLCONV void Perl_sv_setsv(pTHX_ SV *dstr, SV *sstr)
aec46f14 3381 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3382#define PERL_ARGS_ASSERT_SV_SETSV \
3383 assert(dstr)
aec46f14 3384
25b0f989 3385/* PERL_CALLCONV void Perl_sv_taint(pTHX_ SV* sv)
aae9cea0 3386 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3387#define PERL_ARGS_ASSERT_SV_TAINT \
3388 assert(sv)
aec46f14 3389
89e38212 3390PERL_CALLCONV bool Perl_sv_tainted(pTHX_ SV *const sv)
aec46f14
AL
3391 __attribute__warn_unused_result__
3392 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3393#define PERL_ARGS_ASSERT_SV_TAINTED \
3394 assert(sv)
a28509cc 3395
2b021c53 3396PERL_CALLCONV int Perl_sv_unmagic(pTHX_ SV *const sv, const int type)
abb2c242 3397 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3398#define PERL_ARGS_ASSERT_SV_UNMAGIC \
3399 assert(sv)
f54cb97a 3400
174c73e3
NC
3401/* PERL_CALLCONV void Perl_sv_unref(pTHX_ SV* sv)
3402 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3403#define PERL_ARGS_ASSERT_SV_UNREF \
3404 assert(sv)
f54cb97a 3405
89e38212 3406PERL_CALLCONV void Perl_sv_unref_flags(pTHX_ SV *const ref, const U32 flags)
abb2c242 3407 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3408#define PERL_ARGS_ASSERT_SV_UNREF_FLAGS \
3409 assert(ref)
f54cb97a 3410
89e38212 3411PERL_CALLCONV void Perl_sv_untaint(pTHX_ SV *const sv)
abb2c242 3412 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3413#define PERL_ARGS_ASSERT_SV_UNTAINT \
3414 assert(sv)
f54cb97a 3415
aad570aa 3416PERL_CALLCONV void Perl_sv_upgrade(pTHX_ SV *const sv, svtype new_type)
abb2c242 3417 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3418#define PERL_ARGS_ASSERT_SV_UPGRADE \
3419 assert(sv)
f54cb97a 3420
47518d95
NC
3421/* PERL_CALLCONV void Perl_sv_usepvn(pTHX_ SV* sv, char* ptr, STRLEN len)
3422 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3423#define PERL_ARGS_ASSERT_SV_USEPVN \
3424 assert(sv)
47518d95 3425
2e000ff2 3426PERL_CALLCONV void Perl_sv_usepvn_flags(pTHX_ SV *const sv, char* ptr, const STRLEN len, const U32 flags)
abb2c242 3427 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3428#define PERL_ARGS_ASSERT_SV_USEPVN_FLAGS \
3429 assert(sv)
f54cb97a 3430
66ceb532 3431PERL_CALLCONV void Perl_sv_vcatpvfn(pTHX_ SV *const sv, const char *const pat, const STRLEN patlen, va_list *const args, SV **const svargs, const I32 svmax, bool *const maybe_tainted)
abb2c242
JH
3432 __attribute__nonnull__(pTHX_1)
3433 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3434#define PERL_ARGS_ASSERT_SV_VCATPVFN \
3435 assert(sv); assert(pat)
f54cb97a 3436
66ceb532 3437PERL_CALLCONV void Perl_sv_vsetpvfn(pTHX_ SV *const sv, const char *const pat, const STRLEN patlen, va_list *const args, SV **const svargs, const I32 svmax, bool *const maybe_tainted)
abb2c242
JH
3438 __attribute__nonnull__(pTHX_1)
3439 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3440#define PERL_ARGS_ASSERT_SV_VSETPVFN \
3441 assert(sv); assert(pat)
f54cb97a 3442
aec46f14
AL
3443PERL_CALLCONV NV Perl_str_to_version(pTHX_ SV *sv)
3444 __attribute__warn_unused_result__
3445 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3446#define PERL_ARGS_ASSERT_STR_TO_VERSION \
3447 assert(sv)
aec46f14
AL
3448
3449PERL_CALLCONV SV* Perl_swash_init(pTHX_ const char* pkg, const char* name, SV* listsv, I32 minbits, I32 none)
3450 __attribute__nonnull__(pTHX_1)
3451 __attribute__nonnull__(pTHX_2)
3452 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3453#define PERL_ARGS_ASSERT_SWASH_INIT \
3454 assert(pkg); assert(name); assert(listsv)
aec46f14 3455
680c470c 3456PERL_CALLCONV UV Perl_swash_fetch(pTHX_ SV *swash, const U8 *ptr, bool do_utf8)
aec46f14
AL
3457 __attribute__nonnull__(pTHX_1)
3458 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3459#define PERL_ARGS_ASSERT_SWASH_FETCH \
3460 assert(swash); assert(ptr)
aec46f14 3461
1d7c1841 3462PERL_CALLCONV void Perl_taint_env(pTHX);
e1c41806 3463PERL_CALLCONV void Perl_taint_proper(pTHX_ const char* f, const char *const s)
8772537c 3464 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3465#define PERL_ARGS_ASSERT_TAINT_PROPER \
3466 assert(s)
8772537c 3467
9a957fbc 3468PERL_CALLCONV UV Perl_to_utf8_case(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp, SV **swashp, const char *normal, const char *special)
abb2c242 3469 __attribute__nonnull__(pTHX_1)
9a957fbc 3470 __attribute__nonnull__(pTHX_2)
fb9bf107
NC
3471 __attribute__nonnull__(pTHX_4)
3472 __attribute__nonnull__(pTHX_5)
3473 __attribute__nonnull__(pTHX_6);
7918f24d
NC
3474#define PERL_ARGS_ASSERT_TO_UTF8_CASE \
3475 assert(p); assert(ustrp); assert(swashp); assert(normal); assert(special)
f54cb97a
AL
3476
3477PERL_CALLCONV UV Perl_to_utf8_lower(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
abb2c242
JH
3478 __attribute__nonnull__(pTHX_1)
3479 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3480#define PERL_ARGS_ASSERT_TO_UTF8_LOWER \
3481 assert(p); assert(ustrp)
f54cb97a
AL
3482
3483PERL_CALLCONV UV Perl_to_utf8_upper(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
abb2c242
JH
3484 __attribute__nonnull__(pTHX_1)
3485 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3486#define PERL_ARGS_ASSERT_TO_UTF8_UPPER \
3487 assert(p); assert(ustrp)
f54cb97a
AL
3488
3489PERL_CALLCONV UV Perl_to_utf8_title(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
abb2c242
JH
3490 __attribute__nonnull__(pTHX_1)
3491 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3492#define PERL_ARGS_ASSERT_TO_UTF8_TITLE \
3493 assert(p); assert(ustrp)
f54cb97a
AL
3494
3495PERL_CALLCONV UV Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp)
abb2c242
JH
3496 __attribute__nonnull__(pTHX_1)
3497 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3498#define PERL_ARGS_ASSERT_TO_UTF8_FOLD \
3499 assert(p); assert(ustrp)
f54cb97a 3500
864dbfa3 3501#if defined(UNLINK_ALL_VERSIONS)
6e732051 3502PERL_CALLCONV I32 Perl_unlnk(pTHX_ const char* f)
aec46f14 3503 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3504#define PERL_ARGS_ASSERT_UNLNK \
3505 assert(f)
aec46f14 3506
864dbfa3 3507#endif
aec46f14
AL
3508PERL_CALLCONV I32 Perl_unpack_str(pTHX_ const char *pat, const char *patend, const char *s, const char *strbeg, const char *strend, char **new_s, I32 ocnt, U32 flags)
3509 __attribute__nonnull__(pTHX_1)
3510 __attribute__nonnull__(pTHX_2)
3511 __attribute__nonnull__(pTHX_3)
3512 __attribute__nonnull__(pTHX_5);
7918f24d
NC
3513#define PERL_ARGS_ASSERT_UNPACK_STR \
3514 assert(pat); assert(patend); assert(s); assert(strend)
aec46f14
AL
3515
3516PERL_CALLCONV I32 Perl_unpackstring(pTHX_ const char *pat, const char *patend, const char *s, const char *strend, U32 flags)
3517 __attribute__nonnull__(pTHX_1)
3518 __attribute__nonnull__(pTHX_2)
3519 __attribute__nonnull__(pTHX_3)
3520 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3521#define PERL_ARGS_ASSERT_UNPACKSTRING \
3522 assert(pat); assert(patend); assert(s); assert(strend)
aec46f14 3523
1d7c1841
GS
3524PERL_CALLCONV void Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
3525PERL_CALLCONV void Perl_unshare_hek(pTHX_ HEK* hek);
eb8433b7
NC
3526#ifdef PERL_MAD
3527PERL_CALLCONV OP * Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg)
3528 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3529#define PERL_ARGS_ASSERT_UTILIZE \
3530 assert(idop)
eb8433b7
NC
3531
3532#else
aec46f14
AL
3533PERL_CALLCONV void Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg)
3534 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3535#define PERL_ARGS_ASSERT_UTILIZE \
3536 assert(idop)
aec46f14 3537
eb8433b7 3538#endif
aec46f14
AL
3539PERL_CALLCONV U8* Perl_utf16_to_utf8(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen)
3540 __attribute__nonnull__(pTHX_1)
3541 __attribute__nonnull__(pTHX_2)
3542 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3543#define PERL_ARGS_ASSERT_UTF16_TO_UTF8 \
3544 assert(p); assert(d); assert(newlen)
aec46f14
AL
3545
3546PERL_CALLCONV U8* Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen)
3547 __attribute__nonnull__(pTHX_1)
3548 __attribute__nonnull__(pTHX_2)
3549 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3550#define PERL_ARGS_ASSERT_UTF16_TO_UTF8_REVERSED \
3551 assert(p); assert(d); assert(newlen)
aec46f14 3552
4373e329 3553PERL_CALLCONV STRLEN Perl_utf8_length(pTHX_ const U8* s, const U8 *e)
abb2c242
JH
3554 __attribute__warn_unused_result__
3555 __attribute__pure__
3556 __attribute__nonnull__(pTHX_1)
3557 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3558#define PERL_ARGS_ASSERT_UTF8_LENGTH \
3559 assert(s); assert(e)
f54cb97a 3560
4373e329 3561PERL_CALLCONV IV Perl_utf8_distance(pTHX_ const U8 *a, const U8 *b)
abb2c242
JH
3562 __attribute__warn_unused_result__
3563 __attribute__pure__
3564 __attribute__nonnull__(pTHX_1)
3565 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3566#define PERL_ARGS_ASSERT_UTF8_DISTANCE \
3567 assert(a); assert(b)
f54cb97a 3568
4373e329 3569PERL_CALLCONV U8* Perl_utf8_hop(pTHX_ const U8 *s, I32 off)
abb2c242
JH
3570 __attribute__warn_unused_result__
3571 __attribute__pure__
3572 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3573#define PERL_ARGS_ASSERT_UTF8_HOP \
3574 assert(s)
f54cb97a 3575
4373e329 3576PERL_CALLCONV U8* Perl_utf8_to_bytes(pTHX_ U8 *s, STRLEN *len)
abb2c242
JH
3577 __attribute__nonnull__(pTHX_1)
3578 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3579#define PERL_ARGS_ASSERT_UTF8_TO_BYTES \
3580 assert(s); assert(len)
f54cb97a 3581
aec46f14
AL
3582PERL_CALLCONV U8* Perl_bytes_from_utf8(pTHX_ const U8 *s, STRLEN *len, bool *is_utf8)
3583 __attribute__nonnull__(pTHX_1)
3584 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3585#define PERL_ARGS_ASSERT_BYTES_FROM_UTF8 \
3586 assert(s); assert(len)
aec46f14
AL
3587
3588PERL_CALLCONV U8* Perl_bytes_to_utf8(pTHX_ const U8 *s, STRLEN *len)
3589 __attribute__nonnull__(pTHX_1)
3590 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3591#define PERL_ARGS_ASSERT_BYTES_TO_UTF8 \
3592 assert(s); assert(len)
aec46f14
AL
3593
3594PERL_CALLCONV UV Perl_utf8_to_uvchr(pTHX_ const U8 *s, STRLEN *retlen)
3595 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3596#define PERL_ARGS_ASSERT_UTF8_TO_UVCHR \
3597 assert(s)
aec46f14
AL
3598
3599PERL_CALLCONV UV Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
3600 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3601#define PERL_ARGS_ASSERT_UTF8_TO_UVUNI \
3602 assert(s)
aec46f14 3603
1754c1a1
NC
3604
3605#ifdef EBCDIC
aec46f14
AL
3606PERL_CALLCONV UV Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
3607 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3608#define PERL_ARGS_ASSERT_UTF8N_TO_UVCHR \
3609 assert(s)
aec46f14 3610
1754c1a1
NC
3611#else
3612/* PERL_CALLCONV UV Perl_utf8n_to_uvchr(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
3613 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3614#define PERL_ARGS_ASSERT_UTF8N_TO_UVCHR \
3615 assert(s)
1754c1a1
NC
3616
3617#endif
3618
aec46f14
AL
3619PERL_CALLCONV UV Perl_utf8n_to_uvuni(pTHX_ const U8 *s, STRLEN curlen, STRLEN *retlen, U32 flags)
3620 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3621#define PERL_ARGS_ASSERT_UTF8N_TO_UVUNI \
3622 assert(s)
aec46f14 3623
1754c1a1
NC
3624
3625#ifdef EBCDIC
4373e329 3626PERL_CALLCONV U8* Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv)
abb2c242 3627 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3628#define PERL_ARGS_ASSERT_UVCHR_TO_UTF8 \
3629 assert(d)
f54cb97a 3630
1754c1a1
NC
3631#else
3632/* PERL_CALLCONV U8* Perl_uvchr_to_utf8(pTHX_ U8 *d, UV uv)
3633 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3634#define PERL_ARGS_ASSERT_UVCHR_TO_UTF8 \
3635 assert(d)
1754c1a1
NC
3636
3637#endif
3638
038e8d3c
NC
3639/* PERL_CALLCONV U8* Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
3640 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3641#define PERL_ARGS_ASSERT_UVUNI_TO_UTF8 \
3642 assert(d)
f54cb97a 3643
4373e329 3644PERL_CALLCONV U8* Perl_uvchr_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
abb2c242 3645 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3646#define PERL_ARGS_ASSERT_UVCHR_TO_UTF8_FLAGS \
3647 assert(d)
f54cb97a 3648
4373e329 3649PERL_CALLCONV U8* Perl_uvuni_to_utf8_flags(pTHX_ U8 *d, UV uv, UV flags)
abb2c242 3650 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3651#define PERL_ARGS_ASSERT_UVUNI_TO_UTF8_FLAGS \
3652 assert(d)
f54cb97a 3653
fb9bf107
NC
3654PERL_CALLCONV char* Perl_pv_uni_display(pTHX_ SV *dsv, const U8 *spv, STRLEN len, STRLEN pvlim, UV flags)
3655 __attribute__nonnull__(pTHX_1)
3656 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3657#define PERL_ARGS_ASSERT_PV_UNI_DISPLAY \
3658 assert(dsv); assert(spv)
fb9bf107 3659
a3b680e6 3660PERL_CALLCONV char* Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim, UV flags)
fb9bf107
NC
3661 __attribute__warn_unused_result__
3662 __attribute__nonnull__(pTHX_1)
3663 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3664#define PERL_ARGS_ASSERT_SV_UNI_DISPLAY \
3665 assert(dsv); assert(ssv)
a3b680e6 3666
aec46f14
AL
3667PERL_CALLCONV void Perl_vivify_defelem(pTHX_ SV* sv)
3668 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3669#define PERL_ARGS_ASSERT_VIVIFY_DEFELEM \
3670 assert(sv)
aec46f14
AL
3671
3672PERL_CALLCONV void Perl_vivify_ref(pTHX_ SV* sv, U32 to_what)
3673 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3674#define PERL_ARGS_ASSERT_VIVIFY_REF \
3675 assert(sv)
aec46f14
AL
3676
3677PERL_CALLCONV I32 Perl_wait4pid(pTHX_ Pid_t pid, int* statusp, int flags)
3678 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3679#define PERL_ARGS_ASSERT_WAIT4PID \
3680 assert(statusp)
aec46f14 3681
fb9bf107
NC
3682PERL_CALLCONV U32 Perl_parse_unicode_opts(pTHX_ const char **popt)
3683 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3684#define PERL_ARGS_ASSERT_PARSE_UNICODE_OPTS \
3685 assert(popt)
fb9bf107 3686
132efe8b 3687PERL_CALLCONV U32 Perl_seed(pTHX);
255164ba
DM
3688PERL_CALLCONV UV Perl_get_hash_seed(pTHX)
3689 __attribute__warn_unused_result__;
3690
e1ec3a88 3691PERL_CALLCONV void Perl_report_evil_fh(pTHX_ const GV *gv, const IO *io, I32 op);
b3dbd76e 3692PERL_CALLCONV void Perl_report_uninit(pTHX_ const SV *uninit_sv);
894356b3 3693PERL_CALLCONV void Perl_warn(pTHX_ const char* pat, ...)
aec46f14
AL
3694 __attribute__format__(__printf__,pTHX_1,pTHX_2)
3695 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3696#define PERL_ARGS_ASSERT_WARN \
3697 assert(pat)
aec46f14
AL
3698
3699PERL_CALLCONV void Perl_vwarn(pTHX_ const char* pat, va_list* args)
3700 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3701#define PERL_ARGS_ASSERT_VWARN \
3702 assert(pat)
f54cb97a 3703
894356b3 3704PERL_CALLCONV void Perl_warner(pTHX_ U32 err, const char* pat, ...)
aec46f14
AL
3705 __attribute__format__(__printf__,pTHX_2,pTHX_3)
3706 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3707#define PERL_ARGS_ASSERT_WARNER \
3708 assert(pat)
aec46f14
AL
3709
3710PERL_CALLCONV void Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args)
3711 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3712#define PERL_ARGS_ASSERT_VWARNER \
3713 assert(pat)
aec46f14
AL
3714
3715PERL_CALLCONV void Perl_watch(pTHX_ char** addr)
3716 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3717#define PERL_ARGS_ASSERT_WATCH \
3718 assert(addr)
aec46f14
AL
3719
3720PERL_CALLCONV I32 Perl_whichsig(pTHX_ const char* sig)
3721 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3722#define PERL_ARGS_ASSERT_WHICHSIG \
3723 assert(sig)
aec46f14
AL
3724
3725PERL_CALLCONV void Perl_write_to_stderr(pTHX_ const char* message, int msglen)
3726 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3727#define PERL_ARGS_ASSERT_WRITE_TO_STDERR \
3728 assert(message)
aec46f14 3729
15f169a1 3730PERL_CALLCONV int Perl_yyerror(pTHX_ const char *const s)
aec46f14 3731 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3732#define PERL_ARGS_ASSERT_YYERROR \
3733 assert(s)
f54cb97a 3734
48cf72c8 3735PERL_CALLCONV int Perl_yylex(pTHX);
1d7c1841 3736PERL_CALLCONV int Perl_yyparse(pTHX);
734c2451 3737PERL_CALLCONV void Perl_parser_free(pTHX_ const yy_parser *parser)
acdf0a21 3738 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3739#define PERL_ARGS_ASSERT_PARSER_FREE \
3740 assert(parser)
acdf0a21 3741
15f169a1 3742PERL_CALLCONV int Perl_yywarn(pTHX_ const char *const s)
aec46f14 3743 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3744#define PERL_ARGS_ASSERT_YYWARN \
3745 assert(s)
aec46f14 3746
cea2e8a9 3747#if defined(MYMALLOC)
6e9b0e18 3748PERL_CALLCONV void Perl_dump_mstats(pTHX_ const char* s)
aec46f14 3749 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3750#define PERL_ARGS_ASSERT_DUMP_MSTATS \
3751 assert(s)
aec46f14 3752
255164ba 3753PERL_CALLCONV int Perl_get_mstats(pTHX_ perl_mstats_t *buf, int buflen, int level)
255164ba 3754 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3755#define PERL_ARGS_ASSERT_GET_MSTATS \
3756 assert(buf)
255164ba 3757
0cb96387 3758#endif
4373e329 3759PERL_CALLCONV Malloc_t Perl_safesysmalloc(MEM_SIZE nbytes)
abb2c242
JH
3760 __attribute__malloc__
3761 __attribute__warn_unused_result__;
f54cb97a 3762
4373e329 3763PERL_CALLCONV Malloc_t Perl_safesyscalloc(MEM_SIZE elements, MEM_SIZE size)
abb2c242
JH
3764 __attribute__malloc__
3765 __attribute__warn_unused_result__;
f54cb97a 3766
4373e329 3767PERL_CALLCONV Malloc_t Perl_safesysrealloc(Malloc_t where, MEM_SIZE nbytes)
abb2c242
JH
3768 __attribute__malloc__
3769 __attribute__warn_unused_result__;
f54cb97a 3770
1d7c1841 3771PERL_CALLCONV Free_t Perl_safesysfree(Malloc_t where);
cea2e8a9 3772#if defined(PERL_GLOBAL_STRUCT)
1d7c1841 3773PERL_CALLCONV struct perl_vars * Perl_GetVars(pTHX);
77304e85 3774PERL_CALLCONV struct perl_vars* Perl_init_global_struct(pTHX);
fb9bf107
NC
3775PERL_CALLCONV void Perl_free_global_struct(pTHX_ struct perl_vars *plvarsp)
3776 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3777#define PERL_ARGS_ASSERT_FREE_GLOBAL_STRUCT \
3778 assert(plvarsp)
fb9bf107 3779
1d7c1841
GS
3780#endif
3781PERL_CALLCONV int Perl_runops_standard(pTHX);
3782PERL_CALLCONV int Perl_runops_debug(pTHX);
66ceb532 3783PERL_CALLCONV void Perl_sv_catpvf_mg(pTHX_ SV *const sv, const char *const pat, ...)
aec46f14
AL
3784 __attribute__format__(__printf__,pTHX_2,pTHX_3)
3785 __attribute__nonnull__(pTHX_1)
3786 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3787#define PERL_ARGS_ASSERT_SV_CATPVF_MG \
3788 assert(sv); assert(pat)
aec46f14 3789
66ceb532 3790PERL_CALLCONV void Perl_sv_vcatpvf_mg(pTHX_ SV *const sv, const char *const pat, va_list *const args)
aec46f14
AL
3791 __attribute__nonnull__(pTHX_1)
3792 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3793#define PERL_ARGS_ASSERT_SV_VCATPVF_MG \
3794 assert(sv); assert(pat)
aec46f14 3795
2b021c53 3796PERL_CALLCONV void Perl_sv_catpv_mg(pTHX_ SV *const sv, const char *const ptr)
cf684db6 3797 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3798#define PERL_ARGS_ASSERT_SV_CATPV_MG \
3799 assert(sv)
aec46f14 3800
b347df82 3801/* PERL_CALLCONV void Perl_sv_catpvn_mg(pTHX_ SV *sv, const char *ptr, STRLEN len)
aec46f14 3802 __attribute__nonnull__(pTHX_1)
b347df82 3803 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
3804#define PERL_ARGS_ASSERT_SV_CATPVN_MG \
3805 assert(sv); assert(ptr)
aec46f14 3806
4048f010 3807/* PERL_CALLCONV void Perl_sv_catsv_mg(pTHX_ SV *dsv, SV *ssv)
b347df82 3808 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3809#define PERL_ARGS_ASSERT_SV_CATSV_MG \
3810 assert(dsv)
f54cb97a 3811
89e38212 3812PERL_CALLCONV void Perl_sv_setpvf_mg(pTHX_ SV *const sv, const char *const pat, ...)
aec46f14
AL
3813 __attribute__format__(__printf__,pTHX_2,pTHX_3)
3814 __attribute__nonnull__(pTHX_1)
3815 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3816#define PERL_ARGS_ASSERT_SV_SETPVF_MG \
3817 assert(sv); assert(pat)
aec46f14 3818
89e38212 3819PERL_CALLCONV void Perl_sv_vsetpvf_mg(pTHX_ SV *const sv, const char *const pat, va_list *const args)
aec46f14
AL
3820 __attribute__nonnull__(pTHX_1)
3821 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3822#define PERL_ARGS_ASSERT_SV_VSETPVF_MG \
3823 assert(sv); assert(pat)
aec46f14 3824
aad570aa 3825PERL_CALLCONV void Perl_sv_setiv_mg(pTHX_ SV *const sv, const IV i)
aec46f14 3826 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3827#define PERL_ARGS_ASSERT_SV_SETIV_MG \
3828 assert(sv)
f54cb97a 3829
89e38212 3830PERL_CALLCONV void Perl_sv_setpviv_mg(pTHX_ SV *const sv, const IV iv)
504618e9 3831 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3832#define PERL_ARGS_ASSERT_SV_SETPVIV_MG \
3833 assert(sv)
504618e9 3834
aad570aa 3835PERL_CALLCONV void Perl_sv_setuv_mg(pTHX_ SV *const sv, const UV u)
aec46f14 3836 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3837#define PERL_ARGS_ASSERT_SV_SETUV_MG \
3838 assert(sv)
aec46f14 3839
aad570aa 3840PERL_CALLCONV void Perl_sv_setnv_mg(pTHX_ SV *const sv, const NV num)
aec46f14 3841 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3842#define PERL_ARGS_ASSERT_SV_SETNV_MG \
3843 assert(sv)
aec46f14 3844
2e000ff2 3845PERL_CALLCONV void Perl_sv_setpv_mg(pTHX_ SV *const sv, const char *const ptr)
aec46f14 3846 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3847#define PERL_ARGS_ASSERT_SV_SETPV_MG \
3848 assert(sv)
aec46f14 3849
2e000ff2 3850PERL_CALLCONV void Perl_sv_setpvn_mg(pTHX_ SV *const sv, const char *const ptr, const STRLEN len)
aec46f14
AL
3851 __attribute__nonnull__(pTHX_1)
3852 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3853#define PERL_ARGS_ASSERT_SV_SETPVN_MG \
3854 assert(sv); assert(ptr)
aec46f14 3855
7bc54cea 3856PERL_CALLCONV void Perl_sv_setsv_mg(pTHX_ SV *const dstr, SV *const sstr)
aec46f14 3857 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3858#define PERL_ARGS_ASSERT_SV_SETSV_MG \
3859 assert(dstr)
aec46f14 3860
47518d95
NC
3861/* PERL_CALLCONV void Perl_sv_usepvn_mg(pTHX_ SV *sv, char *ptr, STRLEN len)
3862 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3863#define PERL_ARGS_ASSERT_SV_USEPVN_MG \
3864 assert(sv)
aec46f14
AL
3865
3866PERL_CALLCONV MGVTBL* Perl_get_vtbl(pTHX_ int vtbl_id)
3867 __attribute__warn_unused_result__;
3868
3869PERL_CALLCONV char* Perl_pv_display(pTHX_ SV *dsv, const char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
3870 __attribute__nonnull__(pTHX_1)
3871 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3872#define PERL_ARGS_ASSERT_PV_DISPLAY \
3873 assert(dsv); assert(pv)
aec46f14 3874
ddc5bc0f 3875PERL_CALLCONV char* Perl_pv_escape(pTHX_ SV *dsv, char const * const str, const STRLEN count, const STRLEN max, STRLEN * const escaped, const U32 flags)
5a2bdfd0
DM
3876 __attribute__nonnull__(pTHX_1)
3877 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3878#define PERL_ARGS_ASSERT_PV_ESCAPE \
3879 assert(dsv); assert(str)
5a2bdfd0 3880
ddc5bc0f 3881PERL_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)
3df15adc
YO
3882 __attribute__nonnull__(pTHX_1)
3883 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3884#define PERL_ARGS_ASSERT_PV_PRETTY \
3885 assert(dsv); assert(str)
3df15adc 3886
894356b3 3887PERL_CALLCONV void Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
1b6737cc 3888 __attribute__format__(__printf__,pTHX_3,pTHX_4)
aec46f14
AL
3889 __attribute__nonnull__(pTHX_2)
3890 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3891#define PERL_ARGS_ASSERT_DUMP_INDENT \
3892 assert(file); assert(pat)
1b6737cc
AL
3893
3894PERL_CALLCONV void Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args)
aec46f14
AL
3895 __attribute__nonnull__(pTHX_2)
3896 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3897#define PERL_ARGS_ASSERT_DUMP_VINDENT \
3898 assert(file); assert(pat)
1b6737cc
AL
3899
3900PERL_CALLCONV void Perl_do_gv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv)
aec46f14 3901 __attribute__nonnull__(pTHX_2)
b4390064 3902 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3903#define PERL_ARGS_ASSERT_DO_GV_DUMP \
3904 assert(file); assert(name)
1b6737cc
AL
3905
3906PERL_CALLCONV void Perl_do_gvgv_dump(pTHX_ I32 level, PerlIO *file, const char *name, GV *sv)
aec46f14 3907 __attribute__nonnull__(pTHX_2)
b4390064 3908 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3909#define PERL_ARGS_ASSERT_DO_GVGV_DUMP \
3910 assert(file); assert(name)
1b6737cc
AL
3911
3912PERL_CALLCONV void Perl_do_hv_dump(pTHX_ I32 level, PerlIO *file, const char *name, HV *sv)
aec46f14 3913 __attribute__nonnull__(pTHX_2)
4c31e473 3914 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3915#define PERL_ARGS_ASSERT_DO_HV_DUMP \
3916 assert(file); assert(name)
1b6737cc
AL
3917
3918PERL_CALLCONV void Perl_do_magic_dump(pTHX_ I32 level, PerlIO *file, const MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim)
aec46f14
AL
3919 __attribute__nonnull__(pTHX_2)
3920 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3921#define PERL_ARGS_ASSERT_DO_MAGIC_DUMP \
3922 assert(file); assert(mg)
1b6737cc
AL
3923
3924PERL_CALLCONV void Perl_do_op_dump(pTHX_ I32 level, PerlIO *file, const OP *o)
3925 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3926#define PERL_ARGS_ASSERT_DO_OP_DUMP \
3927 assert(file)
1b6737cc
AL
3928
3929PERL_CALLCONV void Perl_do_pmop_dump(pTHX_ I32 level, PerlIO *file, const PMOP *pm)
3930 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3931#define PERL_ARGS_ASSERT_DO_PMOP_DUMP \
3932 assert(file)
1b6737cc
AL
3933
3934PERL_CALLCONV void Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim)
3935 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3936#define PERL_ARGS_ASSERT_DO_SV_DUMP \
3937 assert(file)
1b6737cc 3938
6867be6d 3939PERL_CALLCONV void Perl_magic_dump(pTHX_ const MAGIC *mg);
1d7c1841 3940PERL_CALLCONV void Perl_reginitcolors(pTHX);
cb2f1b7b 3941/* PERL_CALLCONV char* Perl_sv_2pv_nolen(pTHX_ SV* sv)
aec46f14 3942 __attribute__warn_unused_result__
cb2f1b7b 3943 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3944#define PERL_ARGS_ASSERT_SV_2PV_NOLEN \
3945 assert(sv)
aec46f14 3946
cb2f1b7b 3947/* PERL_CALLCONV char* Perl_sv_2pvutf8_nolen(pTHX_ SV* sv)
aec46f14 3948 __attribute__warn_unused_result__
cb2f1b7b 3949 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3950#define PERL_ARGS_ASSERT_SV_2PVUTF8_NOLEN \
3951 assert(sv)
aec46f14 3952
cb2f1b7b 3953/* PERL_CALLCONV char* Perl_sv_2pvbyte_nolen(pTHX_ SV* sv)
aec46f14 3954 __attribute__warn_unused_result__
cb2f1b7b 3955 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3956#define PERL_ARGS_ASSERT_SV_2PVBYTE_NOLEN \
3957 assert(sv)
aec46f14 3958
25b0f989 3959/* PERL_CALLCONV char* Perl_sv_pv(pTHX_ SV *sv)
f75877b5
SH
3960 __attribute__warn_unused_result__
3961 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3962#define PERL_ARGS_ASSERT_SV_PV \
3963 assert(sv)
f75877b5 3964
25b0f989 3965/* PERL_CALLCONV char* Perl_sv_pvutf8(pTHX_ SV *sv)
f75877b5
SH
3966 __attribute__warn_unused_result__
3967 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3968#define PERL_ARGS_ASSERT_SV_PVUTF8 \
3969 assert(sv)
f75877b5 3970
25b0f989 3971/* PERL_CALLCONV char* Perl_sv_pvbyte(pTHX_ SV *sv)
f75877b5
SH
3972 __attribute__warn_unused_result__
3973 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3974#define PERL_ARGS_ASSERT_SV_PVBYTE \
3975 assert(sv)
f75877b5 3976
25b0f989 3977/* PERL_CALLCONV STRLEN Perl_sv_utf8_upgrade(pTHX_ SV *sv)
f75877b5 3978 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3979#define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE \
3980 assert(sv)
f75877b5 3981
7bc54cea 3982PERL_CALLCONV bool Perl_sv_utf8_downgrade(pTHX_ SV *const sv, const bool fail_ok)
f75877b5 3983 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3984#define PERL_ARGS_ASSERT_SV_UTF8_DOWNGRADE \
3985 assert(sv)
f75877b5 3986
7bc54cea 3987PERL_CALLCONV void Perl_sv_utf8_encode(pTHX_ SV *const sv)
f75877b5 3988 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3989#define PERL_ARGS_ASSERT_SV_UTF8_ENCODE \
3990 assert(sv)
f75877b5 3991
7bc54cea 3992PERL_CALLCONV bool Perl_sv_utf8_decode(pTHX_ SV *const sv)
f75877b5 3993 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3994#define PERL_ARGS_ASSERT_SV_UTF8_DECODE \
3995 assert(sv)
f75877b5 3996
5abc721d
NC
3997/* PERL_CALLCONV void Perl_sv_force_normal(pTHX_ SV *sv)
3998 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3999#define PERL_ARGS_ASSERT_SV_FORCE_NORMAL \
4000 assert(sv)
f75877b5 4001
2e000ff2 4002PERL_CALLCONV void Perl_sv_force_normal_flags(pTHX_ SV *const sv, const U32 flags)
f75877b5 4003 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4004#define PERL_ARGS_ASSERT_SV_FORCE_NORMAL_FLAGS \
4005 assert(sv)
f75877b5 4006
1d7c1841 4007PERL_CALLCONV void Perl_tmps_grow(pTHX_ I32 n);
2b021c53 4008PERL_CALLCONV SV* Perl_sv_rvweaken(pTHX_ SV *const sv)
f75877b5 4009 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4010#define PERL_ARGS_ASSERT_SV_RVWEAKEN \
4011 assert(sv)
f75877b5
SH
4012
4013PERL_CALLCONV int Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg)
4014 __attribute__nonnull__(pTHX_1)
4015 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4016#define PERL_ARGS_ASSERT_MAGIC_KILLBACKREFS \
4017 assert(sv); assert(mg)
f75877b5 4018
1d7c1841
GS
4019PERL_CALLCONV OP* Perl_newANONATTRSUB(pTHX_ I32 floor, OP *proto, OP *attrs, OP *block);
4020PERL_CALLCONV CV* Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block);
eb8433b7
NC
4021#ifdef PERL_MAD
4022PERL_CALLCONV OP * Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
4023 __attribute__noreturn__;
4024
4025#else
f54cb97a 4026PERL_CALLCONV void Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
abb2c242 4027 __attribute__noreturn__;
f54cb97a 4028
eb8433b7 4029#endif
4373e329 4030PERL_CALLCONV OP * Perl_my_attrs(pTHX_ OP *o, OP *attrs)
abb2c242 4031 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4032#define PERL_ARGS_ASSERT_MY_ATTRS \
4033 assert(o)
f54cb97a 4034
1d7c1841
GS
4035PERL_CALLCONV void Perl_boot_core_xsutils(pTHX);
4036#if defined(USE_ITHREADS)
53c1dcc0 4037PERL_CALLCONV PERL_CONTEXT* Perl_cx_dup(pTHX_ PERL_CONTEXT* cx, I32 ix, I32 max, CLONE_PARAMS* param)
aec46f14
AL
4038 __attribute__warn_unused_result__
4039 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4040#define PERL_ARGS_ASSERT_CX_DUP \
4041 assert(param)
53c1dcc0
AL
4042
4043PERL_CALLCONV PERL_SI* Perl_si_dup(pTHX_ PERL_SI* si, CLONE_PARAMS* param)
aec46f14
AL
4044 __attribute__warn_unused_result__
4045 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4046#define PERL_ARGS_ASSERT_SI_DUP \
4047 assert(param)
53c1dcc0
AL
4048
4049PERL_CALLCONV ANY* Perl_ss_dup(pTHX_ PerlInterpreter* proto_perl, CLONE_PARAMS* param)
4050 __attribute__malloc__
4051 __attribute__warn_unused_result__
aec46f14
AL
4052 __attribute__nonnull__(pTHX_1)
4053 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4054#define PERL_ARGS_ASSERT_SS_DUP \
4055 assert(proto_perl); assert(param)
53c1dcc0
AL
4056
4057PERL_CALLCONV void* Perl_any_dup(pTHX_ void* v, const PerlInterpreter* proto_perl)
53c1dcc0 4058 __attribute__warn_unused_result__
abb2c242 4059 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4060#define PERL_ARGS_ASSERT_ANY_DUP \
4061 assert(proto_perl)
f54cb97a 4062
5c4138a0 4063PERL_CALLCONV HE* Perl_he_dup(pTHX_ const HE* e, bool shared, CLONE_PARAMS* param)
aec46f14
AL
4064 __attribute__warn_unused_result__
4065 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4066#define PERL_ARGS_ASSERT_HE_DUP \
4067 assert(param)
53c1dcc0
AL
4068
4069PERL_CALLCONV HEK* Perl_hek_dup(pTHX_ HEK* e, CLONE_PARAMS* param)
aec46f14
AL
4070 __attribute__warn_unused_result__
4071 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4072#define PERL_ARGS_ASSERT_HEK_DUP \
4073 assert(param)
53c1dcc0 4074
288b8c02
NC
4075PERL_CALLCONV void Perl_re_dup_guts(pTHX_ const REGEXP *sstr, REGEXP *dstr, CLONE_PARAMS* param)
4076 __attribute__nonnull__(pTHX_1)
4077 __attribute__nonnull__(pTHX_2)
4078 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4079#define PERL_ARGS_ASSERT_RE_DUP_GUTS \
4080 assert(sstr); assert(dstr); assert(param)
53c1dcc0 4081
66ceb532 4082PERL_CALLCONV PerlIO* Perl_fp_dup(pTHX_ PerlIO *const fp, const char type, CLONE_PARAMS *const param)
aec46f14 4083 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4084#define PERL_ARGS_ASSERT_FP_DUP \
4085 assert(param)
53c1dcc0 4086
66ceb532 4087PERL_CALLCONV DIR* Perl_dirp_dup(pTHX_ DIR *const dp)
53c1dcc0
AL
4088 __attribute__warn_unused_result__;
4089
66ceb532 4090PERL_CALLCONV GP* Perl_gp_dup(pTHX_ GP *const gp, CLONE_PARAMS *const param)
aec46f14
AL
4091 __attribute__warn_unused_result__
4092 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4093#define PERL_ARGS_ASSERT_GP_DUP \
4094 assert(param)
53c1dcc0 4095
b88ec9b8 4096PERL_CALLCONV MAGIC* Perl_mg_dup(pTHX_ MAGIC *mg, CLONE_PARAMS *const param)
53c1dcc0 4097 __attribute__warn_unused_result__
aec46f14 4098 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4099#define PERL_ARGS_ASSERT_MG_DUP \
4100 assert(param)
53c1dcc0 4101
1eb6e4ca 4102PERL_CALLCONV SV* Perl_sv_dup(pTHX_ const SV *const sstr, CLONE_PARAMS *const param)
53c1dcc0 4103 __attribute__warn_unused_result__
aec46f14 4104 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4105#define PERL_ARGS_ASSERT_SV_DUP \
4106 assert(param)
f54cb97a 4107
1eb6e4ca 4108PERL_CALLCONV void Perl_rvpv_dup(pTHX_ SV *const dstr, const SV *const sstr, CLONE_PARAMS *const param)
53c1dcc0 4109 __attribute__nonnull__(pTHX_1)
aec46f14
AL
4110 __attribute__nonnull__(pTHX_2)
4111 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4112#define PERL_ARGS_ASSERT_RVPV_DUP \
4113 assert(dstr); assert(sstr); assert(param)
53c1dcc0 4114
66ceb532 4115PERL_CALLCONV yy_parser* Perl_parser_dup(pTHX_ const yy_parser *const proto, CLONE_PARAMS *const param)
780a5241 4116 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4117#define PERL_ARGS_ASSERT_PARSER_DUP \
4118 assert(param)
780a5241 4119
4674ade5 4120#endif
53c1dcc0
AL
4121PERL_CALLCONV PTR_TBL_t* Perl_ptr_table_new(pTHX)
4122 __attribute__malloc__
4123 __attribute__warn_unused_result__;
4124
1eb6e4ca 4125PERL_CALLCONV void* Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *const tbl, const void *const sv)
53c1dcc0 4126 __attribute__warn_unused_result__
3d4dd4c7 4127 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4128#define PERL_ARGS_ASSERT_PTR_TABLE_FETCH \
4129 assert(tbl)
53c1dcc0 4130
1eb6e4ca 4131PERL_CALLCONV void Perl_ptr_table_store(pTHX_ PTR_TBL_t *const tbl, const void *const oldsv, void *const newsv)
53c1dcc0
AL
4132 __attribute__nonnull__(pTHX_1)
4133 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4134#define PERL_ARGS_ASSERT_PTR_TABLE_STORE \
4135 assert(tbl); assert(newsv)
53c1dcc0 4136
1eb6e4ca 4137PERL_CALLCONV void Perl_ptr_table_split(pTHX_ PTR_TBL_t *const tbl)
abb2c242 4138 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4139#define PERL_ARGS_ASSERT_PTR_TABLE_SPLIT \
4140 assert(tbl)
f54cb97a 4141
1eb6e4ca
SS
4142PERL_CALLCONV void Perl_ptr_table_clear(pTHX_ PTR_TBL_t *const tbl);
4143PERL_CALLCONV void Perl_ptr_table_free(pTHX_ PTR_TBL_t *const tbl);
4674ade5 4144#if defined(USE_ITHREADS)
504618e9
AL
4145# if defined(HAVE_INTERP_INTERN)
4146PERL_CALLCONV void Perl_sys_intern_dup(pTHX_ struct interp_intern* src, struct interp_intern* dst)
4147 __attribute__nonnull__(pTHX_1)
4148 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4149#define PERL_ARGS_ASSERT_SYS_INTERN_DUP \
4150 assert(src); assert(dst)
504618e9 4151
ddacffcf
SH
4152# endif
4153#endif
4154#if defined(HAVE_INTERP_INTERN)
3dbbd0f5
GS
4155PERL_CALLCONV void Perl_sys_intern_clear(pTHX);
4156PERL_CALLCONV void Perl_sys_intern_init(pTHX);
4157#endif
cae16f1a 4158
4048f010 4159PERL_CALLCONV const char * Perl_custom_op_name(pTHX_ const OP *o)
53c1dcc0 4160 __attribute__warn_unused_result__
abb2c242 4161 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4162#define PERL_ARGS_ASSERT_CUSTOM_OP_NAME \
4163 assert(o)
f54cb97a 4164
4048f010 4165PERL_CALLCONV const char * Perl_custom_op_desc(pTHX_ const OP *o)
53c1dcc0 4166 __attribute__warn_unused_result__
abb2c242 4167 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4168#define PERL_ARGS_ASSERT_CUSTOM_OP_DESC \
4169 assert(o)
cae16f1a 4170
f54cb97a 4171
c48640ec
AL
4172PERL_CALLCONV void Perl_sv_nosharing(pTHX_ SV *sv);
4173/* PERL_CALLCONV void Perl_sv_nolocking(pTHX_ SV *sv); */
eba16661 4174PERL_CALLCONV bool Perl_sv_destroyable(pTHX_ SV *sv);
d0647d4e 4175#ifdef NO_MATHOMS
c48640ec 4176/* PERL_CALLCONV void Perl_sv_nounlocking(pTHX_ SV *sv); */
d0647d4e
NC
4177#else
4178PERL_CALLCONV void Perl_sv_nounlocking(pTHX_ SV *sv);
4179#endif
62375a60 4180PERL_CALLCONV int Perl_nothreadhook(pTHX);
1d7c1841 4181
1d7c1841 4182END_EXTERN_C
1d7c1841 4183
0cb96387 4184#if defined(PERL_IN_DOOP_C) || defined(PERL_DECL_PROT)
c395bd6c 4185STATIC I32 S_do_trans_simple(pTHX_ SV * const sv)
53c1dcc0 4186 __attribute__warn_unused_result__
abb2c242 4187 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4188#define PERL_ARGS_ASSERT_DO_TRANS_SIMPLE \
4189 assert(sv)
f54cb97a 4190
c395bd6c 4191STATIC I32 S_do_trans_count(pTHX_ SV * const sv)
53c1dcc0 4192 __attribute__warn_unused_result__
abb2c242 4193 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4194#define PERL_ARGS_ASSERT_DO_TRANS_COUNT \
4195 assert(sv)
f54cb97a 4196
c395bd6c 4197STATIC I32 S_do_trans_complex(pTHX_ SV * const sv)
53c1dcc0 4198 __attribute__warn_unused_result__
abb2c242 4199 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4200#define PERL_ARGS_ASSERT_DO_TRANS_COMPLEX \
4201 assert(sv)
f54cb97a 4202
c395bd6c 4203STATIC I32 S_do_trans_simple_utf8(pTHX_ SV * const sv)
53c1dcc0 4204 __attribute__warn_unused_result__
abb2c242 4205 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4206#define PERL_ARGS_ASSERT_DO_TRANS_SIMPLE_UTF8 \
4207 assert(sv)
f54cb97a 4208
c395bd6c 4209STATIC I32 S_do_trans_count_utf8(pTHX_ SV * const sv)
53c1dcc0 4210 __attribute__warn_unused_result__
abb2c242 4211 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4212#define PERL_ARGS_ASSERT_DO_TRANS_COUNT_UTF8 \
4213 assert(sv)
f54cb97a 4214
c395bd6c 4215STATIC I32 S_do_trans_complex_utf8(pTHX_ SV * const sv)
53c1dcc0 4216 __attribute__warn_unused_result__
abb2c242 4217 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4218#define PERL_ARGS_ASSERT_DO_TRANS_COMPLEX_UTF8 \
4219 assert(sv)
f54cb97a 4220
cea2e8a9 4221#endif
1d7c1841 4222
0cb96387 4223#if defined(PERL_IN_GV_C) || defined(PERL_DECL_PROT)
fe9845cc 4224STATIC void S_gv_init_sv(pTHX_ GV *gv, const svtype sv_type)
53c1dcc0 4225 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4226#define PERL_ARGS_ASSERT_GV_INIT_SV \
4227 assert(gv)
53c1dcc0 4228
7d3b1f61
BB
4229STATIC HV* S_gv_get_super_pkg(pTHX_ const char* name, I32 namelen)
4230 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4231#define PERL_ARGS_ASSERT_GV_GET_SUPER_PKG \
4232 assert(name)
7d3b1f61 4233
44a2ac75
YO
4234STATIC HV* S_require_tie_mod(pTHX_ GV *gv, const char *varpv, SV* namesv, const char *methpv, const U32 flags)
4235 __attribute__nonnull__(pTHX_1)
4236 __attribute__nonnull__(pTHX_2)
4237 __attribute__nonnull__(pTHX_3)
4238 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4239#define PERL_ARGS_ASSERT_REQUIRE_TIE_MOD \
4240 assert(gv); assert(varpv); assert(namesv); assert(methpv)
a3b680e6 4241
864dbfa3 4242#endif
1d7c1841 4243
de37a194 4244PERL_CALLCONV void* Perl_get_arena(pTHX_ const size_t svtype, const U32 misc)
5e258f8c
JC
4245 __attribute__malloc__
4246 __attribute__warn_unused_result__;
4247
4248
0cb96387 4249#if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT)
53c1dcc0
AL
4250STATIC void S_hsplit(pTHX_ HV *hv)
4251 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4252#define PERL_ARGS_ASSERT_HSPLIT \
4253 assert(hv)
53c1dcc0 4254
3abe233e
AL
4255STATIC void S_hfreeentries(pTHX_ HV *hv)
4256 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4257#define PERL_ARGS_ASSERT_HFREEENTRIES \
4258 assert(hv)
3abe233e 4259
1df70142 4260STATIC HE* S_new_he(pTHX)
53c1dcc0 4261 __attribute__malloc__
1df70142
AL
4262 __attribute__warn_unused_result__;
4263
44af46ee 4264STATIC HEK* S_save_hek_flags(const char *str, I32 len, U32 hash, int flags)
53c1dcc0 4265 __attribute__malloc__
1df70142 4266 __attribute__warn_unused_result__
44af46ee 4267 __attribute__nonnull__(1);
7918f24d
NC
4268#define PERL_ARGS_ASSERT_SAVE_HEK_FLAGS \
4269 assert(str)
1df70142 4270
b0e6ae5b
SH
4271STATIC void S_hv_magic_check(HV *hv, bool *needs_copy, bool *needs_store)
4272 __attribute__nonnull__(1)
4273 __attribute__nonnull__(2)
4274 __attribute__nonnull__(3);
7918f24d
NC
4275#define PERL_ARGS_ASSERT_HV_MAGIC_CHECK \
4276 assert(hv); assert(needs_copy); assert(needs_store)
1df70142 4277
97ddebaf 4278STATIC void S_unshare_hek_or_pvn(pTHX_ const HEK* hek, const char* str, I32 len, U32 hash);
4048f010 4279STATIC HEK* S_share_hek_flags(pTHX_ const char *str, I32 len, U32 hash, int flags)
1b6737cc
AL
4280 __attribute__warn_unused_result__
4281 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4282#define PERL_ARGS_ASSERT_SHARE_HEK_FLAGS \
4283 assert(str)
1df70142 4284
f54cb97a 4285STATIC void S_hv_notallowed(pTHX_ int flags, const char *key, I32 klen, const char *msg)
1df70142
AL
4286 __attribute__noreturn__
4287 __attribute__nonnull__(pTHX_2)
4288 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4289#define PERL_ARGS_ASSERT_HV_NOTALLOWED \
4290 assert(key); assert(msg)
f54cb97a 4291
44af46ee 4292STATIC struct xpvhv_aux* S_hv_auxinit(HV *hv)
44af46ee 4293 __attribute__nonnull__(1);
7918f24d
NC
4294#define PERL_ARGS_ASSERT_HV_AUXINIT \
4295 assert(hv)
53c1dcc0 4296
4048f010
NC
4297STATIC SV* S_hv_delete_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen, int k_flags, I32 d_flags, U32 hash);
4298STATIC void S_clear_placeholders(pTHX_ HV *hv, U32 items)
7b0bddfa 4299 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4300#define PERL_ARGS_ASSERT_CLEAR_PLACEHOLDERS \
4301 assert(hv)
7b0bddfa
NC
4302
4303STATIC SV * S_refcounted_he_value(pTHX_ const struct refcounted_he *he)
b3ca2e83 4304 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4305#define PERL_ARGS_ASSERT_REFCOUNTED_HE_VALUE \
4306 assert(he)
b3ca2e83 4307
864dbfa3 4308#endif
1d7c1841 4309
0cb96387 4310#if defined(PERL_IN_MG_C) || defined(PERL_DECL_PROT)
504618e9
AL
4311STATIC void S_save_magic(pTHX_ I32 mgs_ix, SV *sv)
4312 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4313#define PERL_ARGS_ASSERT_SAVE_MAGIC \
4314 assert(sv)
504618e9
AL
4315
4316STATIC int S_magic_methpack(pTHX_ SV *sv, const MAGIC *mg, const char *meth)
4317 __attribute__nonnull__(pTHX_1)
4318 __attribute__nonnull__(pTHX_2)
4319 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4320#define PERL_ARGS_ASSERT_MAGIC_METHPACK \
4321 assert(sv); assert(mg); assert(meth)
504618e9
AL
4322
4323STATIC int S_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, const char *meth, I32 f, int n, SV *val)
4324 __attribute__nonnull__(pTHX_1)
4325 __attribute__nonnull__(pTHX_2)
4326 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4327#define PERL_ARGS_ASSERT_MAGIC_METHCALL \
4328 assert(sv); assert(mg); assert(meth)
504618e9 4329
251cc6a6 4330STATIC void S_restore_magic(pTHX_ const void *p);
8772537c
AL
4331STATIC void S_unwind_handler_stack(pTHX_ const void *p)
4332 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4333#define PERL_ARGS_ASSERT_UNWIND_HANDLER_STACK \
4334 assert(p)
8772537c
AL
4335
4336
864dbfa3 4337#endif
1d7c1841 4338
0cb96387 4339#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
504618e9
AL
4340PERL_CALLCONV OP* Perl_ck_anoncode(pTHX_ OP *o)
4341 __attribute__warn_unused_result__
4342 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4343#define PERL_ARGS_ASSERT_CK_ANONCODE \
4344 assert(o)
504618e9
AL
4345
4346PERL_CALLCONV OP* Perl_ck_bitop(pTHX_ OP *o)
4347 __attribute__warn_unused_result__
4348 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4349#define PERL_ARGS_ASSERT_CK_BITOP \
4350 assert(o)
504618e9
AL
4351
4352PERL_CALLCONV OP* Perl_ck_concat(pTHX_ OP *o)
4353 __attribute__warn_unused_result__
4354 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4355#define PERL_ARGS_ASSERT_CK_CONCAT \
4356 assert(o)
504618e9
AL
4357
4358PERL_CALLCONV OP* Perl_ck_defined(pTHX_ OP *o)
4359 __attribute__warn_unused_result__
4360 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4361#define PERL_ARGS_ASSERT_CK_DEFINED \
4362 assert(o)
504618e9
AL
4363
4364PERL_CALLCONV OP* Perl_ck_delete(pTHX_ OP *o)
4365 __attribute__warn_unused_result__
4366 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4367#define PERL_ARGS_ASSERT_CK_DELETE \
4368 assert(o)
504618e9
AL
4369
4370PERL_CALLCONV OP* Perl_ck_die(pTHX_ OP *o)
4371 __attribute__warn_unused_result__
4372 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4373#define PERL_ARGS_ASSERT_CK_DIE \
4374 assert(o)
504618e9
AL
4375
4376PERL_CALLCONV OP* Perl_ck_eof(pTHX_ OP *o)
4377 __attribute__warn_unused_result__
4378 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4379#define PERL_ARGS_ASSERT_CK_EOF \
4380 assert(o)
504618e9
AL
4381
4382PERL_CALLCONV OP* Perl_ck_eval(pTHX_ OP *o)
4383 __attribute__warn_unused_result__
4384 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4385#define PERL_ARGS_ASSERT_CK_EVAL \
4386 assert(o)
504618e9
AL
4387
4388PERL_CALLCONV OP* Perl_ck_exec(pTHX_ OP *o)
4389 __attribute__warn_unused_result__
4390 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4391#define PERL_ARGS_ASSERT_CK_EXEC \
4392 assert(o)
504618e9
AL
4393
4394PERL_CALLCONV OP* Perl_ck_exists(pTHX_ OP *o)
4395 __attribute__warn_unused_result__
4396 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4397#define PERL_ARGS_ASSERT_CK_EXISTS \
4398 assert(o)
504618e9
AL
4399
4400PERL_CALLCONV OP* Perl_ck_exit(pTHX_ OP *o)
4401 __attribute__warn_unused_result__
4402 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4403#define PERL_ARGS_ASSERT_CK_EXIT \
4404 assert(o)
504618e9
AL
4405
4406PERL_CALLCONV OP* Perl_ck_ftst(pTHX_ OP *o)
4407 __attribute__warn_unused_result__
4408 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4409#define PERL_ARGS_ASSERT_CK_FTST \
4410 assert(o)
504618e9
AL
4411
4412PERL_CALLCONV OP* Perl_ck_fun(pTHX_ OP *o)
4413 __attribute__warn_unused_result__
4414 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4415#define PERL_ARGS_ASSERT_CK_FUN \
4416 assert(o)
504618e9
AL
4417
4418PERL_CALLCONV OP* Perl_ck_glob(pTHX_ OP *o)
4419 __attribute__warn_unused_result__
4420 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4421#define PERL_ARGS_ASSERT_CK_GLOB \
4422 assert(o)
504618e9
AL
4423
4424PERL_CALLCONV OP* Perl_ck_grep(pTHX_ OP *o)
4425 __attribute__warn_unused_result__
4426 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4427#define PERL_ARGS_ASSERT_CK_GREP \
4428 assert(o)
504618e9
AL
4429
4430PERL_CALLCONV OP* Perl_ck_index(pTHX_ OP *o)
4431 __attribute__warn_unused_result__
4432 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4433#define PERL_ARGS_ASSERT_CK_INDEX \
4434 assert(o)
504618e9
AL
4435
4436PERL_CALLCONV OP* Perl_ck_join(pTHX_ OP *o)
4437 __attribute__warn_unused_result__
4438 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4439#define PERL_ARGS_ASSERT_CK_JOIN \
4440 assert(o)
504618e9 4441
504618e9
AL
4442PERL_CALLCONV OP* Perl_ck_lfun(pTHX_ OP *o)
4443 __attribute__warn_unused_result__
4444 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4445#define PERL_ARGS_ASSERT_CK_LFUN \
4446 assert(o)
504618e9
AL
4447
4448PERL_CALLCONV OP* Perl_ck_listiob(pTHX_ OP *o)
4449 __attribute__warn_unused_result__
4450 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4451#define PERL_ARGS_ASSERT_CK_LISTIOB \
4452 assert(o)
504618e9
AL
4453
4454PERL_CALLCONV OP* Perl_ck_match(pTHX_ OP *o)
4455 __attribute__warn_unused_result__
4456 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4457#define PERL_ARGS_ASSERT_CK_MATCH \
4458 assert(o)
504618e9
AL
4459
4460PERL_CALLCONV OP* Perl_ck_method(pTHX_ OP *o)
4461 __attribute__warn_unused_result__
4462 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4463#define PERL_ARGS_ASSERT_CK_METHOD \
4464 assert(o)
504618e9
AL
4465
4466PERL_CALLCONV OP* Perl_ck_null(pTHX_ OP *o)
4467 __attribute__warn_unused_result__
4468 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4469#define PERL_ARGS_ASSERT_CK_NULL \
4470 assert(o)
504618e9
AL
4471
4472PERL_CALLCONV OP* Perl_ck_open(pTHX_ OP *o)
4473 __attribute__warn_unused_result__
4474 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4475#define PERL_ARGS_ASSERT_CK_OPEN \
4476 assert(o)
504618e9 4477
e4b7ebf3
RGS
4478PERL_CALLCONV OP* Perl_ck_readline(pTHX_ OP *o)
4479 __attribute__warn_unused_result__
4480 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4481#define PERL_ARGS_ASSERT_CK_READLINE \
4482 assert(o)
e4b7ebf3 4483
504618e9
AL
4484PERL_CALLCONV OP* Perl_ck_repeat(pTHX_ OP *o)
4485 __attribute__warn_unused_result__
4486 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4487#define PERL_ARGS_ASSERT_CK_REPEAT \
4488 assert(o)
504618e9
AL
4489
4490PERL_CALLCONV OP* Perl_ck_require(pTHX_ OP *o)
4491 __attribute__warn_unused_result__
4492 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4493#define PERL_ARGS_ASSERT_CK_REQUIRE \
4494 assert(o)
504618e9 4495
504618e9
AL
4496PERL_CALLCONV OP* Perl_ck_return(pTHX_ OP *o)
4497 __attribute__warn_unused_result__
4498 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4499#define PERL_ARGS_ASSERT_CK_RETURN \
4500 assert(o)
504618e9
AL
4501
4502PERL_CALLCONV OP* Perl_ck_rfun(pTHX_ OP *o)
4503 __attribute__warn_unused_result__
4504 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4505#define PERL_ARGS_ASSERT_CK_RFUN \
4506 assert(o)
504618e9
AL
4507
4508PERL_CALLCONV OP* Perl_ck_rvconst(pTHX_ OP *o)
4509 __attribute__warn_unused_result__
4510 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4511#define PERL_ARGS_ASSERT_CK_RVCONST \
4512 assert(o)
504618e9
AL
4513
4514PERL_CALLCONV OP* Perl_ck_sassign(pTHX_ OP *o)
4515 __attribute__warn_unused_result__
4516 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4517#define PERL_ARGS_ASSERT_CK_SASSIGN \
4518 assert(o)
504618e9
AL
4519
4520PERL_CALLCONV OP* Perl_ck_select(pTHX_ OP *o)
4521 __attribute__warn_unused_result__
4522 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4523#define PERL_ARGS_ASSERT_CK_SELECT \
4524 assert(o)
504618e9
AL
4525
4526PERL_CALLCONV OP* Perl_ck_shift(pTHX_ OP *o)
4527 __attribute__warn_unused_result__
4528 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4529#define PERL_ARGS_ASSERT_CK_SHIFT \
4530 assert(o)
504618e9
AL
4531
4532PERL_CALLCONV OP* Perl_ck_sort(pTHX_ OP *o)
4533 __attribute__warn_unused_result__
4534 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4535#define PERL_ARGS_ASSERT_CK_SORT \
4536 assert(o)
504618e9
AL
4537
4538PERL_CALLCONV OP* Perl_ck_spair(pTHX_ OP *o)
4539 __attribute__warn_unused_result__
4540 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4541#define PERL_ARGS_ASSERT_CK_SPAIR \
4542 assert(o)
504618e9
AL
4543
4544PERL_CALLCONV OP* Perl_ck_split(pTHX_ OP *o)
4545 __attribute__warn_unused_result__
4546 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4547#define PERL_ARGS_ASSERT_CK_SPLIT \
4548 assert(o)
504618e9
AL
4549
4550PERL_CALLCONV OP* Perl_ck_subr(pTHX_ OP *o)
4551 __attribute__warn_unused_result__
4552 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4553#define PERL_ARGS_ASSERT_CK_SUBR \
4554 assert(o)
504618e9
AL
4555
4556PERL_CALLCONV OP* Perl_ck_substr(pTHX_ OP *o)
4557 __attribute__warn_unused_result__
4558 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4559#define PERL_ARGS_ASSERT_CK_SUBSTR \
4560 assert(o)
504618e9
AL
4561
4562PERL_CALLCONV OP* Perl_ck_svconst(pTHX_ OP *o)
4563 __attribute__warn_unused_result__
4564 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4565#define PERL_ARGS_ASSERT_CK_SVCONST \
4566 assert(o)
504618e9
AL
4567
4568PERL_CALLCONV OP* Perl_ck_trunc(pTHX_ OP *o)
4569 __attribute__warn_unused_result__
4570 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4571#define PERL_ARGS_ASSERT_CK_TRUNC \
4572 assert(o)
504618e9
AL
4573
4574PERL_CALLCONV OP* Perl_ck_unpack(pTHX_ OP *o)
4575 __attribute__warn_unused_result__
4576 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4577#define PERL_ARGS_ASSERT_CK_UNPACK \
4578 assert(o)
504618e9 4579
878d132a
NC
4580PERL_CALLCONV OP* Perl_ck_each(pTHX_ OP *o)
4581 __attribute__warn_unused_result__
4582 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4583#define PERL_ARGS_ASSERT_CK_EACH \
4584 assert(o)
878d132a 4585
44af46ee 4586STATIC bool S_is_handle_constructor(const OP *o, I32 numargs)
504618e9 4587 __attribute__warn_unused_result__
44af46ee 4588 __attribute__nonnull__(1);
7918f24d
NC
4589#define PERL_ARGS_ASSERT_IS_HANDLE_CONSTRUCTOR \
4590 assert(o)
504618e9
AL
4591
4592STATIC I32 S_is_list_assignment(pTHX_ const OP *o)
4593 __attribute__warn_unused_result__;
4594
c4bd3ae5 4595# ifdef USE_ITHREADS
aec42b5d
NC
4596STATIC void S_forget_pmop(pTHX_ PMOP *const o, U32 flags)
4597 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4598#define PERL_ARGS_ASSERT_FORGET_PMOP \
4599 assert(o)
aec42b5d 4600
c4bd3ae5
NC
4601# else
4602STATIC void S_forget_pmop(pTHX_ PMOP *const o)
4603 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4604#define PERL_ARGS_ASSERT_FORGET_PMOP \
4605 assert(o)
c4bd3ae5
NC
4606
4607# endif
bfd0ff22
NC
4608STATIC void S_find_and_forget_pmops(pTHX_ OP *o)
4609 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4610#define PERL_ARGS_ASSERT_FIND_AND_FORGET_PMOPS \
4611 assert(o)
bfd0ff22 4612
504618e9
AL
4613STATIC void S_cop_free(pTHX_ COP *cop)
4614 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4615#define PERL_ARGS_ASSERT_COP_FREE \
4616 assert(cop)
504618e9 4617
cea2e8a9 4618STATIC OP* S_modkids(pTHX_ OP *o, I32 type);
504618e9
AL
4619STATIC OP* S_scalarboolean(pTHX_ OP *o)
4620 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4621#define PERL_ARGS_ASSERT_SCALARBOOLEAN \
4622 assert(o)
504618e9
AL
4623
4624STATIC OP* S_newDEFSVOP(pTHX)
4625 __attribute__warn_unused_result__;
4626
71c4dbc3
VP
4627STATIC OP* S_search_const(pTHX_ OP *o)
4628 __attribute__warn_unused_result__
4629 __attribute__nonnull__(pTHX_1);
4630#define PERL_ARGS_ASSERT_SEARCH_CONST \
4631 assert(o)
4632
504618e9
AL
4633STATIC OP* S_new_logop(pTHX_ I32 type, I32 flags, OP **firstp, OP **otherp)
4634 __attribute__warn_unused_result__
4635 __attribute__nonnull__(pTHX_3)
4636 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4637#define PERL_ARGS_ASSERT_NEW_LOGOP \
4638 assert(firstp); assert(otherp)
504618e9
AL
4639
4640STATIC void S_simplify_sort(pTHX_ OP *o)
4641 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4642#define PERL_ARGS_ASSERT_SIMPLIFY_SORT \
4643 assert(o)
504618e9 4644
aec46f14
AL
4645STATIC const char* S_gv_ename(pTHX_ GV *gv)
4646 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4647#define PERL_ARGS_ASSERT_GV_ENAME \
4648 assert(gv)
aec46f14 4649
44af46ee
RGS
4650STATIC bool S_scalar_mod_type(const OP *o, I32 type)
4651 __attribute__warn_unused_result__
4652 __attribute__nonnull__(1);
7918f24d
NC
4653#define PERL_ARGS_ASSERT_SCALAR_MOD_TYPE \
4654 assert(o)
aec46f14
AL
4655
4656STATIC OP * S_my_kid(pTHX_ OP *o, OP *attrs, OP **imopsp)
4657 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4658#define PERL_ARGS_ASSERT_MY_KID \
4659 assert(imopsp)
aec46f14
AL
4660
4661STATIC OP * S_dup_attrlist(pTHX_ OP *o)
4662 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4663#define PERL_ARGS_ASSERT_DUP_ATTRLIST \
4664 assert(o)
aec46f14
AL
4665
4666STATIC void S_apply_attrs(pTHX_ HV *stash, SV *target, OP *attrs, bool for_my)
4667 __attribute__nonnull__(pTHX_1)
4668 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4669#define PERL_ARGS_ASSERT_APPLY_ATTRS \
4670 assert(stash); assert(target)
aec46f14
AL
4671
4672STATIC void S_apply_attrs_my(pTHX_ HV *stash, OP *target, OP *attrs, OP **imopsp)
4673 __attribute__nonnull__(pTHX_1)
4674 __attribute__nonnull__(pTHX_2)
4675 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4676#define PERL_ARGS_ASSERT_APPLY_ATTRS_MY \
4677 assert(stash); assert(target); assert(imopsp)
aec46f14 4678
504618e9
AL
4679STATIC void S_bad_type(pTHX_ I32 n, const char *t, const char *name, const OP *kid)
4680 __attribute__nonnull__(pTHX_2)
4681 __attribute__nonnull__(pTHX_3)
4682 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4683#define PERL_ARGS_ASSERT_BAD_TYPE \
4684 assert(t); assert(name); assert(kid)
504618e9
AL
4685
4686STATIC void S_no_bareword_allowed(pTHX_ const OP *o)
4687 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4688#define PERL_ARGS_ASSERT_NO_BAREWORD_ALLOWED \
4689 assert(o)
504618e9
AL
4690
4691STATIC OP* S_no_fh_allowed(pTHX_ OP *o)
4692 __attribute__warn_unused_result__
4693 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4694#define PERL_ARGS_ASSERT_NO_FH_ALLOWED \
4695 assert(o)
504618e9
AL
4696
4697STATIC OP* S_too_few_arguments(pTHX_ OP *o, const char* name)
4698 __attribute__warn_unused_result__
4699 __attribute__nonnull__(pTHX_1)
4700 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4701#define PERL_ARGS_ASSERT_TOO_FEW_ARGUMENTS \
4702 assert(o); assert(name)
504618e9
AL
4703
4704STATIC OP* S_too_many_arguments(pTHX_ OP *o, const char* name)
4705 __attribute__warn_unused_result__
4706 __attribute__nonnull__(pTHX_1)
4707 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4708#define PERL_ARGS_ASSERT_TOO_MANY_ARGUMENTS \
4709 assert(o); assert(name)
504618e9 4710
ef519e13 4711STATIC bool S_looks_like_bool(pTHX_ const OP* o)
0d863452 4712 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4713#define PERL_ARGS_ASSERT_LOOKS_LIKE_BOOL \
4714 assert(o)
0d863452
RH
4715
4716STATIC OP* S_newGIVWHENOP(pTHX_ OP* cond, OP *block, I32 enter_opcode, I32 leave_opcode, PADOFFSET entertarg)
4717 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4718#define PERL_ARGS_ASSERT_NEWGIVWHENOP \
4719 assert(block)
0d863452
RH
4720
4721STATIC OP* S_ref_array_or_hash(pTHX_ OP* cond);
33fb7a6e
NC
4722STATIC void S_process_special_blocks(pTHX_ const char *const fullname, GV *const gv, CV *const cv)
4723 __attribute__nonnull__(pTHX_1)
4724 __attribute__nonnull__(pTHX_2)
4725 __attribute__nonnull__(pTHX_3);
7918f24d
NC
4726#define PERL_ARGS_ASSERT_PROCESS_SPECIAL_BLOCKS \
4727 assert(fullname); assert(gv); assert(cv)
33fb7a6e 4728
c7e45529
AE
4729#endif
4730#if defined(PL_OP_SLAB_ALLOC)
e91d68d5 4731PERL_CALLCONV void* Perl_Slab_Alloc(pTHX_ size_t sz)
aec46f14 4732 __attribute__malloc__
504618e9
AL
4733 __attribute__warn_unused_result__;
4734
aec46f14
AL
4735PERL_CALLCONV void Perl_Slab_Free(pTHX_ void *op)
4736 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4737#define PERL_ARGS_ASSERT_SLAB_FREE \
4738 assert(op)
aec46f14 4739
f1fac472
NC
4740# if defined(PERL_DEBUG_READONLY_OPS)
4741PERL_CALLCONV void Perl_pending_Slabs_to_ro(pTHX);
fc97af9c
NC
4742PERL_CALLCONV OP * Perl_op_refcnt_inc(pTHX_ OP *o);
4743PERL_CALLCONV PADOFFSET Perl_op_refcnt_dec(pTHX_ OP *o)
4744 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4745#define PERL_ARGS_ASSERT_OP_REFCNT_DEC \
4746 assert(o)
fc97af9c 4747
f1fac472
NC
4748# if defined(PERL_IN_OP_C)
4749STATIC void S_Slab_to_rw(pTHX_ void *op)
4750 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4751#define PERL_ARGS_ASSERT_SLAB_TO_RW \
4752 assert(op)
f1fac472
NC
4753
4754# endif
4755# endif
864dbfa3 4756#endif
1d7c1841 4757
0cb96387 4758#if defined(PERL_IN_PERL_C) || defined(PERL_DECL_PROT)
2f9285f8
DM
4759STATIC void S_find_beginning(pTHX_ SV* linestr_sv, PerlIO *rsfp)
4760 __attribute__nonnull__(pTHX_1)
4761 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4762#define PERL_ARGS_ASSERT_FIND_BEGINNING \
4763 assert(linestr_sv); assert(rsfp)
009d90df 4764
f20b2998 4765STATIC void S_forbid_setid(pTHX_ const char flag, const bool suidscript);
dd374669 4766STATIC void S_incpush(pTHX_ const char *dir, bool addsubdirs, bool addoldvers, bool usesep, bool canrelocate);
cea2e8a9
GS
4767STATIC void S_init_interp(pTHX);
4768STATIC void S_init_ids(pTHX);
cea2e8a9
GS
4769STATIC void S_init_main_stash(pTHX);
4770STATIC void S_init_perllib(pTHX);
aec46f14
AL
4771STATIC void S_init_postdump_symbols(pTHX_ int argc, char **argv, char **env)
4772 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4773#define PERL_ARGS_ASSERT_INIT_POSTDUMP_SYMBOLS \
4774 assert(argv)
aec46f14 4775
cea2e8a9 4776STATIC void S_init_predump_symbols(pTHX);
f54cb97a 4777STATIC void S_my_exit_jump(pTHX)
abb2c242 4778 __attribute__noreturn__;
f54cb97a 4779
cea2e8a9 4780STATIC void S_nuke_stacks(pTHX);
f20b2998 4781STATIC int S_open_script(pTHX_ const char *scriptname, bool dosearch, bool *suidscript, PerlIO **rsfpp)
aec46f14 4782 __attribute__nonnull__(pTHX_1)
cdd8118e 4783 __attribute__nonnull__(pTHX_3)
2f352907 4784 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4785#define PERL_ARGS_ASSERT_OPEN_SCRIPT \
4786 assert(scriptname); assert(suidscript); assert(rsfpp)
aec46f14
AL
4787
4788STATIC void S_usage(pTHX_ const char *name)
4789 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4790#define PERL_ARGS_ASSERT_USAGE \
4791 assert(name)
aec46f14 4792
ec2019ad
NC
4793#ifdef DOSUID
4794# ifdef IAMSUID
f20b2998 4795STATIC void S_validate_suid(pTHX_ const char *validarg, int fdscript, bool suidscript, SV* linestr_sv, PerlIO *rsfp)
ec2019ad
NC
4796 __attribute__nonnull__(pTHX_1)
4797 __attribute__nonnull__(pTHX_4)
4798 __attribute__nonnull__(pTHX_5);
7918f24d
NC
4799#define PERL_ARGS_ASSERT_VALIDATE_SUID \
4800 assert(validarg); assert(linestr_sv); assert(rsfp)
ec2019ad
NC
4801
4802# else
4803STATIC void S_validate_suid(pTHX_ const char *validarg, const char *scriptname, int fdscript, SV* linestr_sv, PerlIO *rsfp)
aec46f14 4804 __attribute__nonnull__(pTHX_1)
009d90df 4805 __attribute__nonnull__(pTHX_2)
ec2019ad
NC
4806 __attribute__nonnull__(pTHX_4)
4807 __attribute__nonnull__(pTHX_5);
7918f24d
NC
4808#define PERL_ARGS_ASSERT_VALIDATE_SUID \
4809 assert(validarg); assert(scriptname); assert(linestr_sv); assert(rsfp)
2f9285f8 4810
ec2019ad
NC
4811# endif
4812#else
4813# ifndef SETUID_SCRIPTS_ARE_SECURE_NOW
4814STATIC void S_validate_suid(pTHX_ PerlIO *rsfp)
4815 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4816#define PERL_ARGS_ASSERT_VALIDATE_SUID \
4817 assert(rsfp)
ec2019ad
NC
4818
4819# endif
4820#endif
aec46f14 4821
cea2e8a9
GS
4822# if defined(IAMSUID)
4823STATIC int S_fd_on_nosuid_fs(pTHX_ int fd);
4824# endif
14dd3ad8 4825STATIC void* S_parse_body(pTHX_ char **env, XSINIT_t xsinit);
f54cb97a 4826STATIC void S_run_body(pTHX_ I32 oldscope)
abb2c242 4827 __attribute__noreturn__;
f54cb97a 4828
0bd48802
AL
4829STATIC SV * S_incpush_if_exists(pTHX_ SV *dir)
4830 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4831#define PERL_ARGS_ASSERT_INCPUSH_IF_EXISTS \
4832 assert(dir)
0bd48802 4833
864dbfa3 4834#endif
1d7c1841 4835
0cb96387 4836#if defined(PERL_IN_PP_C) || defined(PERL_DECL_PROT)
901017d6 4837STATIC SV* S_refto(pTHX_ SV* sv)
aec46f14
AL
4838 __attribute__warn_unused_result__
4839 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4840#define PERL_ARGS_ASSERT_REFTO \
4841 assert(sv)
901017d6 4842
a6ec74c1 4843#endif
dc3c76f8 4844#if defined(PERL_IN_PP_C) || defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT)
fe9845cc 4845PERL_CALLCONV GV* Perl_softref2xv(pTHX_ SV *const sv, const char *const what, const svtype type, SV ***spp)
dc3c76f8
NC
4846 __attribute__warn_unused_result__
4847 __attribute__nonnull__(pTHX_1)
4848 __attribute__nonnull__(pTHX_2)
4849 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4850#define PERL_ARGS_ASSERT_SOFTREF2XV \
4851 assert(sv); assert(what); assert(spp)
dc3c76f8
NC
4852
4853#endif
a6ec74c1
JH
4854
4855#if defined(PERL_IN_PP_PACK_C) || defined(PERL_DECL_PROT)
aec46f14
AL
4856STATIC I32 S_unpack_rec(pTHX_ struct tempsym* symptr, const char *s, const char *strbeg, const char *strend, const char **new_s)
4857 __attribute__nonnull__(pTHX_1)
4858 __attribute__nonnull__(pTHX_2)
4859 __attribute__nonnull__(pTHX_3)
4860 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4861#define PERL_ARGS_ASSERT_UNPACK_REC \
4862 assert(symptr); assert(s); assert(strbeg); assert(strend)
aec46f14
AL
4863
4864STATIC SV ** S_pack_rec(pTHX_ SV *cat, struct tempsym* symptr, SV **beglist, SV **endlist)
4865 __attribute__nonnull__(pTHX_1)
4866 __attribute__nonnull__(pTHX_2)
4867 __attribute__nonnull__(pTHX_3)
4868 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4869#define PERL_ARGS_ASSERT_PACK_REC \
4870 assert(cat); assert(symptr); assert(beglist); assert(endlist)
aec46f14 4871
4373e329 4872STATIC SV* S_mul128(pTHX_ SV *sv, U8 m)
abb2c242 4873 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4874#define PERL_ARGS_ASSERT_MUL128 \
4875 assert(sv)
f54cb97a 4876
4373e329 4877STATIC I32 S_measure_struct(pTHX_ struct tempsym* symptr)
abb2c242 4878 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4879#define PERL_ARGS_ASSERT_MEASURE_STRUCT \
4880 assert(symptr)
f54cb97a 4881
4373e329 4882STATIC bool S_next_symbol(pTHX_ struct tempsym* symptr)
abb2c242 4883 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4884#define PERL_ARGS_ASSERT_NEXT_SYMBOL \
4885 assert(symptr)
f54cb97a 4886
4373e329 4887STATIC SV* S_is_an_int(pTHX_ const char *s, STRLEN l)
1df70142 4888 __attribute__warn_unused_result__
abb2c242 4889 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4890#define PERL_ARGS_ASSERT_IS_AN_INT \
4891 assert(s)
f54cb97a 4892
4373e329 4893STATIC int S_div128(pTHX_ SV *pnum, bool *done)
abb2c242
JH
4894 __attribute__nonnull__(pTHX_1)
4895 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4896#define PERL_ARGS_ASSERT_DIV128 \
4897 assert(pnum); assert(done)
f54cb97a 4898
4048f010 4899STATIC const char * S_group_end(pTHX_ const char *patptr, const char *patend, char ender)
abb2c242
JH
4900 __attribute__nonnull__(pTHX_1)
4901 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4902#define PERL_ARGS_ASSERT_GROUP_END \
4903 assert(patptr); assert(patend)
f54cb97a 4904
4048f010 4905STATIC const char * S_get_num(pTHX_ const char *patptr, I32 *lenptr)
255164ba 4906 __attribute__warn_unused_result__
abb2c242
JH
4907 __attribute__nonnull__(pTHX_1)
4908 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4909#define PERL_ARGS_ASSERT_GET_NUM \
4910 assert(patptr); assert(lenptr)
f54cb97a 4911
aec46f14
AL
4912STATIC bool S_need_utf8(const char *pat, const char *patend)
4913 __attribute__nonnull__(1)
4914 __attribute__nonnull__(2);
7918f24d
NC
4915#define PERL_ARGS_ASSERT_NEED_UTF8 \
4916 assert(pat); assert(patend)
aec46f14
AL
4917
4918STATIC char S_first_symbol(const char *pat, const char *patend)
4919 __attribute__nonnull__(1)
4920 __attribute__nonnull__(2);
7918f24d
NC
4921#define PERL_ARGS_ASSERT_FIRST_SYMBOL \
4922 assert(pat); assert(patend)
aec46f14 4923
0bd48802
AL
4924STATIC char * S_sv_exp_grow(pTHX_ SV *sv, STRLEN needed)
4925 __attribute__warn_unused_result__
4926 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4927#define PERL_ARGS_ASSERT_SV_EXP_GROW \
4928 assert(sv)
0bd48802 4929
14333449 4930STATIC char * S_bytes_to_uni(const U8 *start, STRLEN len, char *dest)
64844641 4931 __attribute__warn_unused_result__
14333449
AL
4932 __attribute__nonnull__(1)
4933 __attribute__nonnull__(3);
7918f24d
NC
4934#define PERL_ARGS_ASSERT_BYTES_TO_UNI \
4935 assert(start); assert(dest)
64844641 4936
864dbfa3 4937#endif
1d7c1841 4938
0cb96387 4939#if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT)
901017d6
AL
4940STATIC OP* S_docatch(pTHX_ OP *o)
4941 __attribute__warn_unused_result__;
4942
901017d6 4943STATIC OP* S_dofindlabel(pTHX_ OP *o, const char *label, OP **opstack, OP **oplimit)
aec46f14
AL
4944 __attribute__warn_unused_result__
4945 __attribute__nonnull__(pTHX_1)
4946 __attribute__nonnull__(pTHX_2)
4947 __attribute__nonnull__(pTHX_3)
4948 __attribute__nonnull__(pTHX_4);
7918f24d
NC
4949#define PERL_ARGS_ASSERT_DOFINDLABEL \
4950 assert(o); assert(label); assert(opstack); assert(oplimit)
901017d6
AL
4951
4952STATIC OP* S_doparseform(pTHX_ SV *sv)
aec46f14
AL
4953 __attribute__warn_unused_result__
4954 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4955#define PERL_ARGS_ASSERT_DOPARSEFORM \
4956 assert(sv)
901017d6
AL
4957
4958STATIC bool S_num_overflow(NV value, I32 fldsize, I32 frcsize)
4959 __attribute__warn_unused_result__;
4960
4961STATIC I32 S_dopoptoeval(pTHX_ I32 startingblock)
4962 __attribute__warn_unused_result__;
4963
0d863452
RH
4964STATIC I32 S_dopoptogiven(pTHX_ I32 startingblock)
4965 __attribute__warn_unused_result__;
4966
4373e329 4967STATIC I32 S_dopoptolabel(pTHX_ const char *label)
901017d6 4968 __attribute__warn_unused_result__
abb2c242 4969 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4970#define PERL_ARGS_ASSERT_DOPOPTOLABEL \
4971 assert(label)
f54cb97a 4972
901017d6
AL
4973STATIC I32 S_dopoptoloop(pTHX_ I32 startingblock)
4974 __attribute__warn_unused_result__;
901017d6
AL
4975
4976STATIC I32 S_dopoptosub_at(pTHX_ const PERL_CONTEXT* cxstk, I32 startingblock)
aec46f14
AL
4977 __attribute__warn_unused_result__
4978 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4979#define PERL_ARGS_ASSERT_DOPOPTOSUB_AT \
4980 assert(cxstk)
901017d6 4981
0d863452
RH
4982STATIC I32 S_dopoptowhen(pTHX_ I32 startingblock)
4983 __attribute__warn_unused_result__;
4984
46c461b5
AL
4985STATIC void S_save_lines(pTHX_ AV *array, SV *sv)
4986 __attribute__nonnull__(pTHX_2);
7918f24d
NC
4987#define PERL_ARGS_ASSERT_SAVE_LINES \
4988 assert(sv)
46c461b5 4989
410be5db 4990STATIC bool S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq);
0786552a 4991STATIC PerlIO * S_check_type_and_open(pTHX_ const char *name)
ce8abf5f 4992 __attribute__warn_unused_result__
0786552a 4993 __attribute__nonnull__(pTHX_1);
7918f24d
NC
4994#define PERL_ARGS_ASSERT_CHECK_TYPE_AND_OPEN \
4995 assert(name)
ce8abf5f 4996
75c20bac 4997#ifndef PERL_DISABLE_PMC
0786552a 4998STATIC PerlIO * S_doopen_pm(pTHX_ const char *name, const STRLEN namelen)
aec46f14 4999 __attribute__warn_unused_result__
0786552a 5000 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5001#define PERL_ARGS_ASSERT_DOOPEN_PM \
5002 assert(name)
901017d6 5003
75c20bac 5004#endif
44af46ee 5005STATIC bool S_path_is_absolute(const char *name)
901017d6 5006 __attribute__warn_unused_result__
44af46ee 5007 __attribute__nonnull__(1);
7918f24d
NC
5008#define PERL_ARGS_ASSERT_PATH_IS_ABSOLUTE \
5009 assert(name)
f54cb97a 5010
0bd48802
AL
5011STATIC I32 S_run_user_filter(pTHX_ int idx, SV *buf_sv, int maxlen)
5012 __attribute__warn_unused_result__
5013 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5014#define PERL_ARGS_ASSERT_RUN_USER_FILTER \
5015 assert(buf_sv)
0bd48802 5016
84679df5 5017STATIC PMOP* S_make_matcher(pTHX_ REGEXP* re)
0d863452
RH
5018 __attribute__warn_unused_result__
5019 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5020#define PERL_ARGS_ASSERT_MAKE_MATCHER \
5021 assert(re)
0d863452
RH
5022
5023STATIC bool S_matcher_matches_sv(pTHX_ PMOP* matcher, SV* sv)
5024 __attribute__warn_unused_result__
5025 __attribute__nonnull__(pTHX_1)
5026 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5027#define PERL_ARGS_ASSERT_MATCHER_MATCHES_SV \
5028 assert(matcher); assert(sv)
0d863452
RH
5029
5030STATIC void S_destroy_matcher(pTHX_ PMOP* matcher)
5031 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5032#define PERL_ARGS_ASSERT_DESTROY_MATCHER \
5033 assert(matcher)
0d863452
RH
5034
5035STATIC OP* S_do_smartmatch(pTHX_ HV* seen_this, HV* seen_other);
864dbfa3 5036#endif
1d7c1841 5037
0cb96387 5038#if defined(PERL_IN_PP_HOT_C) || defined(PERL_DECL_PROT)
a28509cc
AL
5039STATIC void S_do_oddball(pTHX_ HV *hash, SV **relem, SV **firstrelem)
5040 __attribute__nonnull__(pTHX_1)
5041 __attribute__nonnull__(pTHX_2)
5042 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5043#define PERL_ARGS_ASSERT_DO_ODDBALL \
5044 assert(hash); assert(relem); assert(firstrelem)
a28509cc 5045
a28509cc
AL
5046STATIC SV* S_method_common(pTHX_ SV* meth, U32* hashp)
5047 __attribute__warn_unused_result__
5048 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5049#define PERL_ARGS_ASSERT_METHOD_COMMON \
5050 assert(meth)
a28509cc 5051
864dbfa3 5052#endif
1d7c1841 5053
f0f5dc9d 5054#if defined(PERL_IN_PP_SORT_C) || defined(PERL_DECL_PROT)
31e9e0a3 5055STATIC I32 S_sv_ncmp(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5056 __attribute__nonnull__(pTHX_1)
5057 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5058#define PERL_ARGS_ASSERT_SV_NCMP \
5059 assert(a); assert(b)
f0f5dc9d 5060
31e9e0a3 5061STATIC I32 S_sv_i_ncmp(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5062 __attribute__nonnull__(pTHX_1)
5063 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5064#define PERL_ARGS_ASSERT_SV_I_NCMP \
5065 assert(a); assert(b)
f0f5dc9d 5066
31e9e0a3 5067STATIC I32 S_amagic_ncmp(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5068 __attribute__nonnull__(pTHX_1)
5069 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5070#define PERL_ARGS_ASSERT_AMAGIC_NCMP \
5071 assert(a); assert(b)
f0f5dc9d 5072
31e9e0a3 5073STATIC I32 S_amagic_i_ncmp(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5074 __attribute__nonnull__(pTHX_1)
5075 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5076#define PERL_ARGS_ASSERT_AMAGIC_I_NCMP \
5077 assert(a); assert(b)
f0f5dc9d 5078
31e9e0a3 5079STATIC I32 S_amagic_cmp(pTHX_ SV *const str1, SV *const str2)
f0f5dc9d
AL
5080 __attribute__nonnull__(pTHX_1)
5081 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5082#define PERL_ARGS_ASSERT_AMAGIC_CMP \
5083 assert(str1); assert(str2)
f0f5dc9d 5084
31e9e0a3 5085STATIC I32 S_amagic_cmp_locale(pTHX_ SV *const str1, SV *const str2)
f0f5dc9d
AL
5086 __attribute__nonnull__(pTHX_1)
5087 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5088#define PERL_ARGS_ASSERT_AMAGIC_CMP_LOCALE \
5089 assert(str1); assert(str2)
f0f5dc9d 5090
31e9e0a3 5091STATIC I32 S_sortcv(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5092 __attribute__nonnull__(pTHX_1)
5093 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5094#define PERL_ARGS_ASSERT_SORTCV \
5095 assert(a); assert(b)
f0f5dc9d 5096
31e9e0a3 5097STATIC I32 S_sortcv_xsub(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5098 __attribute__nonnull__(pTHX_1)
5099 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5100#define PERL_ARGS_ASSERT_SORTCV_XSUB \
5101 assert(a); assert(b)
f0f5dc9d 5102
31e9e0a3 5103STATIC I32 S_sortcv_stacked(pTHX_ SV *const a, SV *const b)
f0f5dc9d
AL
5104 __attribute__nonnull__(pTHX_1)
5105 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5106#define PERL_ARGS_ASSERT_SORTCV_STACKED \
5107 assert(a); assert(b)
f0f5dc9d 5108
fe2ae508 5109STATIC void S_qsortsvu(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t compare)
fe2ae508 5110 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5111#define PERL_ARGS_ASSERT_QSORTSVU \
5112 assert(compare)
fe2ae508 5113
f0f5dc9d
AL
5114#endif
5115
0cb96387 5116#if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT)
b464bac0
AL
5117STATIC OP* S_doform(pTHX_ CV *cv, GV *gv, OP *retop)
5118 __attribute__nonnull__(pTHX_1)
5119 __attribute__nonnull__(pTHX_2)
5120 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5121#define PERL_ARGS_ASSERT_DOFORM \
5122 assert(cv); assert(gv); assert(retop)
b464bac0 5123
cea2e8a9 5124# if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
b464bac0
AL
5125STATIC int S_dooneliner(pTHX_ const char *cmd, const char *filename)
5126 __attribute__warn_unused_result__
5127 __attribute__nonnull__(pTHX_1)
5128 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5129#define PERL_ARGS_ASSERT_DOONELINER \
5130 assert(cmd); assert(filename)
b464bac0 5131
cea2e8a9 5132# endif
5cdc4e88
NC
5133STATIC SV * S_space_join_names_mortal(pTHX_ char *const *array)
5134 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5135#define PERL_ARGS_ASSERT_SPACE_JOIN_NAMES_MORTAL \
5136 assert(array)
5cdc4e88 5137
864dbfa3 5138#endif
1d7c1841 5139
0cb96387 5140#if defined(PERL_IN_REGCOMP_C) || defined(PERL_DECL_PROT)
4048f010 5141STATIC regnode* S_reg(pTHX_ struct RExC_state_t *pRExC_state, I32 paren, I32 *flagp, U32 depth)
a28509cc
AL
5142 __attribute__nonnull__(pTHX_1)
5143 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5144#define PERL_ARGS_ASSERT_REG \
5145 assert(pRExC_state); assert(flagp)
a28509cc 5146
4048f010 5147STATIC regnode* S_reganode(pTHX_ struct RExC_state_t *pRExC_state, U8 op, U32 arg)
a28509cc 5148 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5149#define PERL_ARGS_ASSERT_REGANODE \
5150 assert(pRExC_state)
a28509cc 5151
4048f010 5152STATIC regnode* S_regatom(pTHX_ struct RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
a28509cc
AL
5153 __attribute__nonnull__(pTHX_1)
5154 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5155#define PERL_ARGS_ASSERT_REGATOM \
5156 assert(pRExC_state); assert(flagp)
a28509cc 5157
4048f010 5158STATIC regnode* S_regbranch(pTHX_ struct RExC_state_t *pRExC_state, I32 *flagp, I32 first, U32 depth)
a28509cc
AL
5159 __attribute__nonnull__(pTHX_1)
5160 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5161#define PERL_ARGS_ASSERT_REGBRANCH \
5162 assert(pRExC_state); assert(flagp)
a28509cc 5163
4048f010 5164STATIC STRLEN S_reguni(pTHX_ const struct RExC_state_t *pRExC_state, UV uv, char *s)
a28509cc 5165 __attribute__nonnull__(pTHX_1)
71207a34 5166 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5167#define PERL_ARGS_ASSERT_REGUNI \
5168 assert(pRExC_state); assert(s)
a28509cc 5169
4048f010 5170STATIC regnode* S_regclass(pTHX_ struct RExC_state_t *pRExC_state, U32 depth)
a28509cc 5171 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5172#define PERL_ARGS_ASSERT_REGCLASS \
5173 assert(pRExC_state)
a28509cc 5174
734c2451 5175STATIC I32 S_regcurly(const char *s)
abb2c242 5176 __attribute__warn_unused_result__
44af46ee 5177 __attribute__nonnull__(1);
7918f24d
NC
5178#define PERL_ARGS_ASSERT_REGCURLY \
5179 assert(s)
a3b680e6 5180
4048f010 5181STATIC regnode* S_reg_node(pTHX_ struct RExC_state_t *pRExC_state, U8 op)
a28509cc 5182 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5183#define PERL_ARGS_ASSERT_REG_NODE \
5184 assert(pRExC_state)
a28509cc 5185
c86f7df5
AL
5186STATIC UV S_reg_recode(pTHX_ const char value, SV **encp)
5187 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5188#define PERL_ARGS_ASSERT_REG_RECODE \
5189 assert(encp)
c86f7df5 5190
4048f010 5191STATIC regnode* S_regpiece(pTHX_ struct RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
a28509cc
AL
5192 __attribute__nonnull__(pTHX_1)
5193 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5194#define PERL_ARGS_ASSERT_REGPIECE \
5195 assert(pRExC_state); assert(flagp)
a28509cc 5196
4048f010 5197STATIC regnode* S_reg_namedseq(pTHX_ struct RExC_state_t *pRExC_state, UV *valuep)
fc8cd66c 5198 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5199#define PERL_ARGS_ASSERT_REG_NAMEDSEQ \
5200 assert(pRExC_state)
fc8cd66c 5201
4048f010 5202STATIC void S_reginsert(pTHX_ struct RExC_state_t *pRExC_state, U8 op, regnode *opnd, U32 depth)
a28509cc
AL
5203 __attribute__nonnull__(pTHX_1)
5204 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5205#define PERL_ARGS_ASSERT_REGINSERT \
5206 assert(pRExC_state); assert(opnd)
a28509cc 5207
4048f010 5208STATIC void S_regtail(pTHX_ struct RExC_state_t *pRExC_state, regnode *p, const regnode *val, U32 depth)
8e11feef
RGS
5209 __attribute__nonnull__(pTHX_1)
5210 __attribute__nonnull__(pTHX_2)
5211 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5212#define PERL_ARGS_ASSERT_REGTAIL \
5213 assert(pRExC_state); assert(p); assert(val)
8e11feef 5214
4048f010 5215STATIC SV * S_reg_scan_name(pTHX_ struct RExC_state_t *pRExC_state, U32 flags)
894be9b7 5216 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5217#define PERL_ARGS_ASSERT_REG_SCAN_NAME \
5218 assert(pRExC_state)
894be9b7 5219
4048f010 5220STATIC U32 S_join_exact(pTHX_ struct RExC_state_t *pRExC_state, regnode *scan, I32 *min, U32 flags, regnode *val, U32 depth)
a28509cc
AL
5221 __attribute__nonnull__(pTHX_1)
5222 __attribute__nonnull__(pTHX_2)
5223 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5224#define PERL_ARGS_ASSERT_JOIN_EXACT \
5225 assert(pRExC_state); assert(scan); assert(min)
a28509cc 5226
4048f010 5227STATIC char * S_regwhite(struct RExC_state_t *pRExC_state, char *p)
44af46ee
RGS
5228 __attribute__warn_unused_result__
5229 __attribute__nonnull__(1)
5230 __attribute__nonnull__(2);
7918f24d
NC
5231#define PERL_ARGS_ASSERT_REGWHITE \
5232 assert(pRExC_state); assert(p)
a28509cc 5233
4048f010 5234STATIC char * S_nextchar(pTHX_ struct RExC_state_t *pRExC_state)
bcdf7404 5235 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5236#define PERL_ARGS_ASSERT_NEXTCHAR \
5237 assert(pRExC_state)
bcdf7404 5238
4048f010 5239STATIC bool S_reg_skipcomment(pTHX_ struct RExC_state_t *pRExC_state)
a28509cc 5240 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5241#define PERL_ARGS_ASSERT_REG_SKIPCOMMENT \
5242 assert(pRExC_state)
a28509cc 5243
4048f010 5244STATIC void S_scan_commit(pTHX_ const struct RExC_state_t *pRExC_state, struct scan_data_t *data, I32 *minlenp, int is_inf)
aec46f14 5245 __attribute__nonnull__(pTHX_1)
1de06328
YO
5246 __attribute__nonnull__(pTHX_2)
5247 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5248#define PERL_ARGS_ASSERT_SCAN_COMMIT \
5249 assert(pRExC_state); assert(data); assert(minlenp)
aec46f14 5250
4048f010 5251STATIC void S_cl_anything(const struct RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
44af46ee
RGS
5252 __attribute__nonnull__(1)
5253 __attribute__nonnull__(2);
7918f24d
NC
5254#define PERL_ARGS_ASSERT_CL_ANYTHING \
5255 assert(pRExC_state); assert(cl)
a28509cc 5256
44af46ee
RGS
5257STATIC int S_cl_is_anything(const struct regnode_charclass_class *cl)
5258 __attribute__warn_unused_result__
5259 __attribute__nonnull__(1);
7918f24d
NC
5260#define PERL_ARGS_ASSERT_CL_IS_ANYTHING \
5261 assert(cl)
a28509cc 5262
4048f010 5263STATIC void S_cl_init(const struct RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
44af46ee
RGS
5264 __attribute__nonnull__(1)
5265 __attribute__nonnull__(2);
7918f24d
NC
5266#define PERL_ARGS_ASSERT_CL_INIT \
5267 assert(pRExC_state); assert(cl)
a28509cc 5268
4048f010 5269STATIC void S_cl_init_zero(const struct RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
44af46ee
RGS
5270 __attribute__nonnull__(1)
5271 __attribute__nonnull__(2);
7918f24d
NC
5272#define PERL_ARGS_ASSERT_CL_INIT_ZERO \
5273 assert(pRExC_state); assert(cl)
a28509cc 5274
44af46ee
RGS
5275STATIC void S_cl_and(struct regnode_charclass_class *cl, const struct regnode_charclass_class *and_with)
5276 __attribute__nonnull__(1)
5277 __attribute__nonnull__(2);
7918f24d
NC
5278#define PERL_ARGS_ASSERT_CL_AND \
5279 assert(cl); assert(and_with)
a28509cc 5280
4048f010 5281STATIC void S_cl_or(const struct RExC_state_t *pRExC_state, struct regnode_charclass_class *cl, const struct regnode_charclass_class *or_with)
44af46ee
RGS
5282 __attribute__nonnull__(1)
5283 __attribute__nonnull__(2)
5284 __attribute__nonnull__(3);
7918f24d
NC
5285#define PERL_ARGS_ASSERT_CL_OR \
5286 assert(pRExC_state); assert(cl); assert(or_with)
a28509cc 5287
4048f010 5288STATIC I32 S_study_chunk(pTHX_ struct RExC_state_t *pRExC_state, regnode **scanp, I32 *minlenp, I32 *deltap, regnode *last, struct scan_data_t *data, I32 stopparen, U8* recursed, struct regnode_charclass_class *and_withp, U32 flags, U32 depth)
aec46f14
AL
5289 __attribute__nonnull__(pTHX_1)
5290 __attribute__nonnull__(pTHX_2)
5291 __attribute__nonnull__(pTHX_3)
1de06328
YO
5292 __attribute__nonnull__(pTHX_4)
5293 __attribute__nonnull__(pTHX_5);
7918f24d
NC
5294#define PERL_ARGS_ASSERT_STUDY_CHUNK \
5295 assert(pRExC_state); assert(scanp); assert(minlenp); assert(deltap); assert(last)
aec46f14 5296
4048f010 5297STATIC U32 S_add_data(struct RExC_state_t *pRExC_state, U32 n, const char *s)
44af46ee
RGS
5298 __attribute__warn_unused_result__
5299 __attribute__nonnull__(1)
5300 __attribute__nonnull__(3);
7918f24d
NC
5301#define PERL_ARGS_ASSERT_ADD_DATA \
5302 assert(pRExC_state); assert(s)
aec46f14 5303
f54cb97a 5304STATIC void S_re_croak2(pTHX_ const char* pat1, const char* pat2, ...)
46c461b5
AL
5305 __attribute__noreturn__
5306 __attribute__nonnull__(pTHX_1)
5307 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5308#define PERL_ARGS_ASSERT_RE_CROAK2 \
5309 assert(pat1); assert(pat2)
f54cb97a 5310
4048f010 5311STATIC I32 S_regpposixcc(pTHX_ struct RExC_state_t *pRExC_state, I32 value)
aec46f14 5312 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5313#define PERL_ARGS_ASSERT_REGPPOSIXCC \
5314 assert(pRExC_state)
aec46f14 5315
4048f010 5316STATIC void S_checkposixcc(pTHX_ struct RExC_state_t *pRExC_state)
aec46f14 5317 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5318#define PERL_ARGS_ASSERT_CHECKPOSIXCC \
5319 assert(pRExC_state)
aec46f14 5320
4048f010 5321STATIC I32 S_make_trie(pTHX_ struct RExC_state_t *pRExC_state, regnode *startbranch, regnode *first, regnode *last, regnode *tail, U32 word_count, U32 flags, U32 depth)
aec46f14
AL
5322 __attribute__nonnull__(pTHX_1)
5323 __attribute__nonnull__(pTHX_2)
5324 __attribute__nonnull__(pTHX_3)
5325 __attribute__nonnull__(pTHX_4)
5326 __attribute__nonnull__(pTHX_5);
7918f24d
NC
5327#define PERL_ARGS_ASSERT_MAKE_TRIE \
5328 assert(pRExC_state); assert(startbranch); assert(first); assert(last); assert(tail)
a3621e74 5329
4048f010 5330STATIC void S_make_trie_failtable(pTHX_ struct RExC_state_t *pRExC_state, regnode *source, regnode *stclass, U32 depth)
07be1b83
YO
5331 __attribute__nonnull__(pTHX_1)
5332 __attribute__nonnull__(pTHX_2)
5333 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5334#define PERL_ARGS_ASSERT_MAKE_TRIE_FAILTABLE \
5335 assert(pRExC_state); assert(source); assert(stclass)
07be1b83 5336
8e11feef 5337# ifdef DEBUGGING
f7819f85 5338STATIC void S_regdump_extflags(pTHX_ const char *lead, const U32 flags);
786e8c11 5339STATIC 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)
8e11feef
RGS
5340 __attribute__nonnull__(pTHX_1)
5341 __attribute__nonnull__(pTHX_2)
5342 __attribute__nonnull__(pTHX_3)
786e8c11 5343 __attribute__nonnull__(pTHX_6);
7918f24d
NC
5344#define PERL_ARGS_ASSERT_DUMPUNTIL \
5345 assert(r); assert(start); assert(node); assert(sv)
8e11feef
RGS
5346
5347STATIC void S_put_byte(pTHX_ SV* sv, int c)
5348 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5349#define PERL_ARGS_ASSERT_PUT_BYTE \
5350 assert(sv)
8e11feef 5351
2b8b4781
NC
5352STATIC void S_dump_trie(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 depth)
5353 __attribute__nonnull__(pTHX_1)
5354 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5355#define PERL_ARGS_ASSERT_DUMP_TRIE \
5356 assert(trie); assert(revcharmap)
8e11feef 5357
2b8b4781
NC
5358STATIC void S_dump_trie_interim_list(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth)
5359 __attribute__nonnull__(pTHX_1)
5360 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5361#define PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_LIST \
5362 assert(trie); assert(revcharmap)
8e11feef 5363
2b8b4781
NC
5364STATIC void S_dump_trie_interim_table(pTHX_ const struct _reg_trie_data *trie, HV* widecharmap, AV *revcharmap, U32 next_alloc, U32 depth)
5365 __attribute__nonnull__(pTHX_1)
5366 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5367#define PERL_ARGS_ASSERT_DUMP_TRIE_INTERIM_TABLE \
5368 assert(trie); assert(revcharmap)
8e11feef 5369
4048f010 5370STATIC U8 S_regtail_study(pTHX_ struct RExC_state_t *pRExC_state, regnode *p, const regnode *val, U32 depth)
07be1b83
YO
5371 __attribute__nonnull__(pTHX_1)
5372 __attribute__nonnull__(pTHX_2)
5373 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5374#define PERL_ARGS_ASSERT_REGTAIL_STUDY \
5375 assert(pRExC_state); assert(p); assert(val)
07be1b83 5376
8e11feef 5377# endif
864dbfa3 5378#endif
1d7c1841 5379
0cb96387 5380#if defined(PERL_IN_REGEXEC_C) || defined(PERL_DECL_PROT)
24b23f37 5381STATIC I32 S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
abb2c242 5382 __attribute__warn_unused_result__
4f639d21
DM
5383 __attribute__nonnull__(pTHX_1)
5384 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5385#define PERL_ARGS_ASSERT_REGMATCH \
5386 assert(reginfo); assert(prog)
a3b680e6 5387
e2e6a0f1 5388STATIC I32 S_regrepeat(pTHX_ const regexp *prog, const regnode *p, I32 max, int depth)
abb2c242 5389 __attribute__warn_unused_result__
32fc9b6a
DM
5390 __attribute__nonnull__(pTHX_1)
5391 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5392#define PERL_ARGS_ASSERT_REGREPEAT \
5393 assert(prog); assert(p)
a3b680e6 5394
24b23f37 5395STATIC I32 S_regtry(pTHX_ regmatch_info *reginfo, char **startpos)
46c461b5
AL
5396 __attribute__warn_unused_result__
5397 __attribute__nonnull__(pTHX_1)
5398 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5399#define PERL_ARGS_ASSERT_REGTRY \
5400 assert(reginfo); assert(startpos)
a3b680e6 5401
32fc9b6a 5402STATIC bool S_reginclass(pTHX_ const regexp *prog, const regnode *n, const U8 *p, STRLEN *lenp, bool do_utf8sv_is_utf8)
abb2c242 5403 __attribute__warn_unused_result__
32fc9b6a
DM
5404 __attribute__nonnull__(pTHX_2)
5405 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5406#define PERL_ARGS_ASSERT_REGINCLASS \
5407 assert(n); assert(p)
a3b680e6 5408
cea2e8a9 5409STATIC CHECKPOINT S_regcppush(pTHX_ I32 parenfloor);
097eb12c 5410STATIC char* S_regcppop(pTHX_ const regexp *rex)
46c461b5 5411 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5412#define PERL_ARGS_ASSERT_REGCPPOP \
5413 assert(rex)
46c461b5 5414
4048f010 5415STATIC U8* S_reghop3(U8 *s, I32 off, const U8 *lim)
aec46f14 5416 __attribute__warn_unused_result__
44af46ee
RGS
5417 __attribute__nonnull__(1)
5418 __attribute__nonnull__(3);
7918f24d
NC
5419#define PERL_ARGS_ASSERT_REGHOP3 \
5420 assert(s); assert(lim)
a3b680e6 5421
f9f4320a 5422#ifdef XXX_dmq
4048f010 5423STATIC U8* S_reghop4(U8 *s, I32 off, const U8 *llim, const U8 *rlim)
1de06328
YO
5424 __attribute__warn_unused_result__
5425 __attribute__nonnull__(1)
5426 __attribute__nonnull__(3)
5427 __attribute__nonnull__(4);
7918f24d
NC
5428#define PERL_ARGS_ASSERT_REGHOP4 \
5429 assert(s); assert(llim); assert(rlim)
1de06328 5430
f9f4320a 5431#endif
4048f010 5432STATIC U8* S_reghopmaybe3(U8 *s, I32 off, const U8 *lim)
abb2c242 5433 __attribute__warn_unused_result__
44af46ee
RGS
5434 __attribute__nonnull__(1)
5435 __attribute__nonnull__(3);
7918f24d
NC
5436#define PERL_ARGS_ASSERT_REGHOPMAYBE3 \
5437 assert(s); assert(lim)
a3b680e6 5438
24b23f37 5439STATIC char* S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s, const char *strend, regmatch_info *reginfo)
abb2c242
JH
5440 __attribute__warn_unused_result__
5441 __attribute__nonnull__(pTHX_1)
5442 __attribute__nonnull__(pTHX_2)
5443 __attribute__nonnull__(pTHX_3)
5444 __attribute__nonnull__(pTHX_4);
7918f24d
NC
5445#define PERL_ARGS_ASSERT_FIND_BYCLASS \
5446 assert(prog); assert(c); assert(s); assert(strend)
a3b680e6 5447
fae667d5
YO
5448STATIC void S_swap_match_buff(pTHX_ regexp * prog)
5449 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5450#define PERL_ARGS_ASSERT_SWAP_MATCH_BUFF \
5451 assert(prog)
fae667d5 5452
a3b680e6 5453STATIC void S_to_utf8_substr(pTHX_ regexp * prog)
abb2c242 5454 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5455#define PERL_ARGS_ASSERT_TO_UTF8_SUBSTR \
5456 assert(prog)
a3b680e6
AL
5457
5458STATIC void S_to_byte_substr(pTHX_ regexp * prog)
abb2c242 5459 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5460#define PERL_ARGS_ASSERT_TO_BYTE_SUBSTR \
5461 assert(prog)
a3b680e6 5462
4048f010 5463STATIC I32 S_reg_check_named_buff_matched(pTHX_ const regexp *rex, const regnode *scan)
0a4db386
YO
5464 __attribute__warn_unused_result__
5465 __attribute__nonnull__(pTHX_1)
5466 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5467#define PERL_ARGS_ASSERT_REG_CHECK_NAMED_BUFF_MATCHED \
5468 assert(rex); assert(scan)
0a4db386 5469
07be1b83 5470# ifdef DEBUGGING
786e8c11 5471STATIC 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)
07be1b83 5472 __attribute__nonnull__(pTHX_1)
786e8c11
YO
5473 __attribute__nonnull__(pTHX_2)
5474 __attribute__nonnull__(pTHX_3)
5475 __attribute__nonnull__(pTHX_4)
5476 __attribute__nonnull__(pTHX_5);
7918f24d
NC
5477#define PERL_ARGS_ASSERT_DUMP_EXEC_POS \
5478 assert(locinput); assert(scan); assert(loc_regeol); assert(loc_bostr); assert(loc_reg_starttry)
07be1b83 5479
efd26800 5480STATIC void S_debug_start_match(pTHX_ const REGEXP *prog, const bool do_utf8, const char *start, const char *end, const char *blurb)
5a2bdfd0
DM
5481 __attribute__nonnull__(pTHX_1)
5482 __attribute__nonnull__(pTHX_3)
5483 __attribute__nonnull__(pTHX_4)
5484 __attribute__nonnull__(pTHX_5);
7918f24d
NC
5485#define PERL_ARGS_ASSERT_DEBUG_START_MATCH \
5486 assert(prog); assert(start); assert(end); assert(blurb)
5a2bdfd0 5487
07be1b83 5488# endif
864dbfa3 5489#endif
1d7c1841 5490
bd16a5f0 5491#if defined(PERL_IN_DUMP_C) || defined(PERL_DECL_PROT)
2cedf74c 5492STATIC CV* S_deb_curcv(pTHX_ const I32 ix);
46c461b5
AL
5493STATIC void S_debprof(pTHX_ const OP *o)
5494 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5495#define PERL_ARGS_ASSERT_DEBPROF \
5496 assert(o)
46c461b5 5497
0bd48802 5498STATIC void S_sequence(pTHX_ const OP *o);
294b3b39 5499STATIC void S_sequence_tail(pTHX_ const OP *o);
0bd48802 5500STATIC UV S_sequence_num(pTHX_ const OP *o);
4199688e
AL
5501STATIC SV* S_pm_description(pTHX_ const PMOP *pm)
5502 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5503#define PERL_ARGS_ASSERT_PM_DESCRIPTION \
5504 assert(pm)
4199688e 5505
864dbfa3 5506#endif
1d7c1841 5507
0cb96387 5508#if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT)
af7df257 5509STATIC SV* S_save_scalar_at(pTHX_ SV **sptr, const U32 flags)
46c461b5 5510 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5511#define PERL_ARGS_ASSERT_SAVE_SCALAR_AT \
5512 assert(sptr)
46c461b5 5513
864dbfa3 5514#endif
1d7c1841 5515
e15faf7d 5516#if defined(PERL_IN_GV_C) || defined(PERL_IN_SV_C) || defined(PERL_IN_PAD_C) || defined(PERL_DECL_PROT)
2b021c53 5517PERL_CALLCONV void Perl_sv_add_backref(pTHX_ SV *const tsv, SV *const sv)
e15faf7d
NC
5518 __attribute__nonnull__(pTHX_1)
5519 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5520#define PERL_ARGS_ASSERT_SV_ADD_BACKREF \
5521 assert(tsv); assert(sv)
e15faf7d
NC
5522
5523#endif
5524
86f55936 5525#if defined(PERL_IN_HV_C) || defined(PERL_IN_MG_C) || defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
2b021c53 5526PERL_CALLCONV int Perl_sv_kill_backrefs(pTHX_ SV *const sv, AV *const av)
86f55936
NC
5527 __attribute__nonnull__(pTHX_1)
5528 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5529#define PERL_ARGS_ASSERT_SV_KILL_BACKREFS \
5530 assert(sv); assert(av)
86f55936
NC
5531
5532#endif
5533
0cb96387 5534#if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
5de3775c 5535STATIC char * S_uiv_2buf(char *const buf, const IV iv, UV uv, const int is_uv, char **const peob)
aec46f14
AL
5536 __attribute__warn_unused_result__
5537 __attribute__nonnull__(1)
5538 __attribute__nonnull__(5);
7918f24d
NC
5539#define PERL_ARGS_ASSERT_UIV_2BUF \
5540 assert(buf); assert(peob)
aec46f14 5541
89e38212 5542STATIC void S_sv_unglob(pTHX_ SV *const sv)
1b6737cc 5543 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5544#define PERL_ARGS_ASSERT_SV_UNGLOB \
5545 assert(sv)
1b6737cc 5546
aad570aa 5547STATIC void S_not_a_number(pTHX_ SV *const sv)
1b6737cc 5548 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5549#define PERL_ARGS_ASSERT_NOT_A_NUMBER \
5550 assert(sv)
1b6737cc 5551
de37a194 5552STATIC I32 S_visit(pTHX_ SVFUNC_t f, const U32 flags, const U32 mask)
1b6737cc 5553 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5554#define PERL_ARGS_ASSERT_VISIT \
5555 assert(f)
1b6737cc 5556
2b021c53 5557STATIC void S_sv_del_backref(pTHX_ SV *const tsv, SV *const sv)
1b6737cc
AL
5558 __attribute__nonnull__(pTHX_1)
5559 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5560#define PERL_ARGS_ASSERT_SV_DEL_BACKREF \
5561 assert(tsv); assert(sv)
1b6737cc 5562
6c1b357c 5563STATIC SV * S_varname(pTHX_ const GV *const gv, const char gvtype, PADOFFSET targ, const SV *const keyname, I32 aindex, int subscript_type)
be2ef075 5564 __attribute__warn_unused_result__;
a3b680e6 5565
8fa7f367 5566# ifdef DEBUGGING
46c461b5
AL
5567STATIC void S_del_sv(pTHX_ SV *p)
5568 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5569#define PERL_ARGS_ASSERT_DEL_SV \
5570 assert(p)
46c461b5 5571
cea2e8a9 5572# endif
28e5dec8 5573# if !defined(NV_PRESERVES_UV)
47031da6 5574# ifdef DEBUGGING
5de3775c 5575STATIC int S_sv_2iuv_non_preserve(pTHX_ SV *const sv, I32 numtype)
46c461b5 5576 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5577#define PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE \
5578 assert(sv)
46c461b5 5579
47031da6 5580# else
5de3775c 5581STATIC int S_sv_2iuv_non_preserve(pTHX_ SV *const sv)
47031da6 5582 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5583#define PERL_ARGS_ASSERT_SV_2IUV_NON_PRESERVE \
5584 assert(sv)
47031da6
NC
5585
5586# endif
28e5dec8 5587# endif
66ceb532 5588STATIC I32 S_expect_number(pTHX_ char **const pattern)
abb2c242
JH
5589 __attribute__warn_unused_result__
5590 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5591#define PERL_ARGS_ASSERT_EXPECT_NUMBER \
5592 assert(pattern)
a3b680e6 5593
9cbac4c7 5594#
721e86b6
AL
5595STATIC STRLEN S_sv_pos_u2b_forwards(const U8 *const start, const U8 *const send, STRLEN uoffset)
5596 __attribute__nonnull__(1)
5597 __attribute__nonnull__(2);
7918f24d
NC
5598#define PERL_ARGS_ASSERT_SV_POS_U2B_FORWARDS \
5599 assert(start); assert(send)
25a8a4ef 5600
af828c01 5601STATIC STRLEN S_sv_pos_u2b_midway(const U8 *const start, const U8 *send, const STRLEN uoffset, const STRLEN uend)
721e86b6
AL
5602 __attribute__nonnull__(1)
5603 __attribute__nonnull__(2);
7918f24d
NC
5604#define PERL_ARGS_ASSERT_SV_POS_U2B_MIDWAY \
5605 assert(start); assert(send)
25a8a4ef 5606
af828c01 5607STATIC STRLEN S_sv_pos_u2b_cached(pTHX_ SV *const sv, MAGIC **const mgp, const U8 *const start, const U8 *const send, const STRLEN uoffset, STRLEN uoffset0, STRLEN boffset0)
abb2c242
JH
5608 __attribute__nonnull__(pTHX_1)
5609 __attribute__nonnull__(pTHX_2)
5610 __attribute__nonnull__(pTHX_3)
25a8a4ef 5611 __attribute__nonnull__(pTHX_4);
7918f24d
NC
5612#define PERL_ARGS_ASSERT_SV_POS_U2B_CACHED \
5613 assert(sv); assert(mgp); assert(start); assert(send)
a3b680e6 5614
ac1e9476 5615STATIC void S_utf8_mg_pos_cache_update(pTHX_ SV *const sv, MAGIC **const mgp, const STRLEN byte, const STRLEN utf8, const STRLEN blen)
25a8a4ef
NC
5616 __attribute__nonnull__(pTHX_1)
5617 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5618#define PERL_ARGS_ASSERT_UTF8_MG_POS_CACHE_UPDATE \
5619 assert(sv); assert(mgp)
25a8a4ef 5620
ac1e9476 5621STATIC STRLEN S_sv_pos_b2u_midway(pTHX_ const U8 *const s, const U8 *const target, const U8 *end, STRLEN endu)
abb2c242
JH
5622 __attribute__nonnull__(pTHX_1)
5623 __attribute__nonnull__(pTHX_2)
25a8a4ef 5624 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5625#define PERL_ARGS_ASSERT_SV_POS_B2U_MIDWAY \
5626 assert(s); assert(target); assert(end)
a3b680e6 5627
66ceb532 5628STATIC char * S_F0convert(NV nv, char *const endbuf, STRLEN *const len)
c445ea15
AL
5629 __attribute__nonnull__(2)
5630 __attribute__nonnull__(3);
7918f24d
NC
5631#define PERL_ARGS_ASSERT_F0CONVERT \
5632 assert(endbuf); assert(len)
c445ea15 5633
44af46ee 5634# if defined(PERL_OLD_COPY_ON_WRITE)
5302ffd4 5635STATIC void S_sv_release_COW(pTHX_ SV *sv, const char *pvx, SV *after)
aec46f14
AL
5636 __attribute__nonnull__(pTHX_1)
5637 __attribute__nonnull__(pTHX_2)
5302ffd4 5638 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5639#define PERL_ARGS_ASSERT_SV_RELEASE_COW \
5640 assert(sv); assert(pvx); assert(after)
aec46f14 5641
44af46ee
RGS
5642# endif
5643STATIC SV * S_more_sv(pTHX);
de37a194 5644STATIC void * S_more_bodies(pTHX_ const svtype sv_type);
5de3775c 5645STATIC bool S_sv_2iuv_common(pTHX_ SV *const sv)
44af46ee 5646 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5647#define PERL_ARGS_ASSERT_SV_2IUV_COMMON \
5648 assert(sv)
44af46ee 5649
7bc54cea 5650STATIC void S_glob_assign_glob(pTHX_ SV *const dstr, SV *const sstr, const int dtype)
44af46ee
RGS
5651 __attribute__nonnull__(pTHX_1)
5652 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5653#define PERL_ARGS_ASSERT_GLOB_ASSIGN_GLOB \
5654 assert(dstr); assert(sstr)
44af46ee 5655
7bc54cea 5656STATIC void S_glob_assign_ref(pTHX_ SV *const dstr, SV *const sstr)
44af46ee
RGS
5657 __attribute__nonnull__(pTHX_1)
5658 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5659#define PERL_ARGS_ASSERT_GLOB_ASSIGN_REF \
5660 assert(dstr); assert(sstr)
44af46ee 5661
1eb6e4ca 5662STATIC PTR_TBL_ENT_t * S_ptr_table_find(PTR_TBL_t *const tbl, const void *const sv)
44af46ee 5663 __attribute__warn_unused_result__
cf684db6 5664 __attribute__nonnull__(1);
7918f24d
NC
5665#define PERL_ARGS_ASSERT_PTR_TABLE_FIND \
5666 assert(tbl)
44af46ee 5667
cea2e8a9 5668#endif
1d7c1841 5669
0cb96387 5670#if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
cea2e8a9
GS
5671STATIC void S_check_uni(pTHX);
5672STATIC void S_force_next(pTHX_ I32 type);
4048f010 5673STATIC char* S_force_version(pTHX_ char *s, int guessing)
46c461b5 5674 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5675#define PERL_ARGS_ASSERT_FORCE_VERSION \
5676 assert(s)
46c461b5
AL
5677
5678STATIC char* S_force_word(pTHX_ char *start, int token, int check_keyword, int allow_pack, int allow_tick)
5679 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5680#define PERL_ARGS_ASSERT_FORCE_WORD \
5681 assert(start)
46c461b5
AL
5682
5683STATIC SV* S_tokeq(pTHX_ SV *sv)
5684 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5685#define PERL_ARGS_ASSERT_TOKEQ \
5686 assert(sv)
46c461b5 5687
1d51329b 5688STATIC void S_readpipe_override(pTHX);
f54cb97a 5689STATIC char* S_scan_const(pTHX_ char *start)
46c461b5 5690 __attribute__warn_unused_result__
abb2c242 5691 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5692#define PERL_ARGS_ASSERT_SCAN_CONST \
5693 assert(start)
f54cb97a
AL
5694
5695STATIC char* S_scan_formline(pTHX_ char *s)
46c461b5 5696 __attribute__warn_unused_result__
abb2c242 5697 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5698#define PERL_ARGS_ASSERT_SCAN_FORMLINE \
5699 assert(s)
f54cb97a
AL
5700
5701STATIC char* S_scan_heredoc(pTHX_ char *s)
46c461b5 5702 __attribute__warn_unused_result__
abb2c242 5703 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5704#define PERL_ARGS_ASSERT_SCAN_HEREDOC \
5705 assert(s)
f54cb97a
AL
5706
5707STATIC char* S_scan_ident(pTHX_ char *s, const char *send, char *dest, STRLEN destlen, I32 ck_uni)
abb2c242
JH
5708 __attribute__nonnull__(pTHX_1)
5709 __attribute__nonnull__(pTHX_2)
5710 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5711#define PERL_ARGS_ASSERT_SCAN_IDENT \
5712 assert(s); assert(send); assert(dest)
f54cb97a 5713
46c461b5
AL
5714STATIC char* S_scan_inputsymbol(pTHX_ char *start)
5715 __attribute__warn_unused_result__
5716 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5717#define PERL_ARGS_ASSERT_SCAN_INPUTSYMBOL \
5718 assert(start)
46c461b5
AL
5719
5720STATIC char* S_scan_pat(pTHX_ char *start, I32 type)
5721 __attribute__warn_unused_result__
5722 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5723#define PERL_ARGS_ASSERT_SCAN_PAT \
5724 assert(start)
46c461b5
AL
5725
5726STATIC char* S_scan_str(pTHX_ char *start, int keep_quoted, int keep_delims)
5727 __attribute__warn_unused_result__
5728 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5729#define PERL_ARGS_ASSERT_SCAN_STR \
5730 assert(start)
46c461b5
AL
5731
5732STATIC char* S_scan_subst(pTHX_ char *start)
5733 __attribute__warn_unused_result__
5734 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5735#define PERL_ARGS_ASSERT_SCAN_SUBST \
5736 assert(start)
46c461b5
AL
5737
5738STATIC char* S_scan_trans(pTHX_ char *start)
5739 __attribute__warn_unused_result__
5740 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5741#define PERL_ARGS_ASSERT_SCAN_TRANS \
5742 assert(start)
46c461b5
AL
5743
5744STATIC char* S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp)
5745 __attribute__nonnull__(pTHX_1)
5746 __attribute__nonnull__(pTHX_2)
5747 __attribute__nonnull__(pTHX_5);
7918f24d
NC
5748#define PERL_ARGS_ASSERT_SCAN_WORD \
5749 assert(s); assert(dest); assert(slp)
46c461b5 5750
15f169a1 5751STATIC void S_update_debugger_info(pTHX_ SV *orig_sv, const char *const buf, STRLEN len);
46c461b5
AL
5752STATIC char* S_skipspace(pTHX_ char *s)
5753 __attribute__warn_unused_result__
5754 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5755#define PERL_ARGS_ASSERT_SKIPSPACE \
5756 assert(s)
46c461b5
AL
5757
5758STATIC char* S_swallow_bom(pTHX_ U8 *s)
5759 __attribute__warn_unused_result__
5760 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5761#define PERL_ARGS_ASSERT_SWALLOW_BOM \
5762 assert(s)
46c461b5 5763
c94115d8 5764STATIC void S_checkcomma(pTHX_ const char *s, const char *name, const char *what)
abb2c242
JH
5765 __attribute__nonnull__(pTHX_1)
5766 __attribute__nonnull__(pTHX_2)
5767 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5768#define PERL_ARGS_ASSERT_CHECKCOMMA \
5769 assert(s); assert(name); assert(what)
f54cb97a 5770
15f169a1 5771STATIC bool S_feature_is_enabled(pTHX_ const char *const name, STRLEN namelen)
0d863452 5772 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5773#define PERL_ARGS_ASSERT_FEATURE_IS_ENABLED \
5774 assert(name)
0d863452 5775
46c461b5
AL
5776STATIC void S_force_ident(pTHX_ const char *s, int kind)
5777 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5778#define PERL_ARGS_ASSERT_FORCE_IDENT \
5779 assert(s)
46c461b5 5780
d9095cec 5781STATIC void S_incline(pTHX_ const char *s)
46c461b5 5782 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5783#define PERL_ARGS_ASSERT_INCLINE \
5784 assert(s)
46c461b5 5785
62d55b22 5786STATIC int S_intuit_method(pTHX_ char *s, GV *gv, CV *cv)
6472dca1 5787 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5788#define PERL_ARGS_ASSERT_INTUIT_METHOD \
5789 assert(s)
46c461b5
AL
5790
5791STATIC int S_intuit_more(pTHX_ char *s)
5792 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5793#define PERL_ARGS_ASSERT_INTUIT_MORE \
5794 assert(s)
46c461b5
AL
5795
5796STATIC I32 S_lop(pTHX_ I32 f, int x, char *s)
5797 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5798#define PERL_ARGS_ASSERT_LOP \
5799 assert(s)
46c461b5 5800
f54cb97a 5801STATIC void S_missingterm(pTHX_ char *s)
abb2c242 5802 __attribute__noreturn__;
f54cb97a 5803
15f169a1 5804STATIC void S_no_op(pTHX_ const char *const what, char *s)
46c461b5 5805 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5806#define PERL_ARGS_ASSERT_NO_OP \
5807 assert(what)
46c461b5 5808
46c461b5
AL
5809STATIC I32 S_sublex_done(pTHX)
5810 __attribute__warn_unused_result__;
5811
5812STATIC I32 S_sublex_push(pTHX)
5813 __attribute__warn_unused_result__;
5814
5815STATIC I32 S_sublex_start(pTHX)
5816 __attribute__warn_unused_result__;
5817
255164ba
DM
5818STATIC char * S_filter_gets(pTHX_ SV *sv, PerlIO *fp, STRLEN append)
5819 __attribute__warn_unused_result__
5820 __attribute__nonnull__(pTHX_1)
5821 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5822#define PERL_ARGS_ASSERT_FILTER_GETS \
5823 assert(sv); assert(fp)
255164ba 5824
9bde8eb0 5825STATIC HV * S_find_in_my_stash(pTHX_ const char *pkgname, STRLEN len)
255164ba
DM
5826 __attribute__warn_unused_result__
5827 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5828#define PERL_ARGS_ASSERT_FIND_IN_MY_STASH \
5829 assert(pkgname)
255164ba 5830
c48640ec 5831STATIC char * S_tokenize_use(pTHX_ int is_use, char *s)
468aa647
RGS
5832 __attribute__warn_unused_result__
5833 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5834#define PERL_ARGS_ASSERT_TOKENIZE_USE \
5835 assert(s)
468aa647 5836
eb0d8d16 5837STATIC SV* S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, STRLEN keylen, SV *sv, SV *pv, const char *type, STRLEN typelen)
aec46f14 5838 __attribute__nonnull__(pTHX_3)
eb0d8d16 5839 __attribute__nonnull__(pTHX_5);
7918f24d
NC
5840#define PERL_ARGS_ASSERT_NEW_CONSTANT \
5841 assert(key); assert(sv)
aec46f14 5842
cea2e8a9 5843STATIC int S_ao(pTHX_ int toketype);
c39cd008
GS
5844# if defined(PERL_CR_FILTER)
5845STATIC I32 S_cr_textfilter(pTHX_ int idx, SV *sv, int maxlen);
0bd48802
AL
5846STATIC void S_strip_return(pTHX_ SV *sv)
5847 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5848#define PERL_ARGS_ASSERT_STRIP_RETURN \
5849 assert(sv)
0bd48802 5850
cea2e8a9 5851# endif
c445ea15 5852# if defined(DEBUGGING)
704d4215
GG
5853STATIC int S_tokereport(pTHX_ I32 rv, const YYSTYPE* lvalp)
5854 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5855#define PERL_ARGS_ASSERT_TOKEREPORT \
5856 assert(lvalp)
704d4215 5857
83f99444 5858STATIC void S_printbuf(pTHX_ const char *const fmt, const char *const s)
931e0695
AL
5859 __attribute__nonnull__(pTHX_1)
5860 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5861#define PERL_ARGS_ASSERT_PRINTBUF \
5862 assert(fmt); assert(s)
931e0695 5863
c445ea15 5864# endif
864dbfa3 5865#endif
1d7c1841 5866
0cb96387 5867#if defined(PERL_IN_UNIVERSAL_C) || defined(PERL_DECL_PROT)
515a4f72 5868STATIC bool S_isa_lookup(pTHX_ HV *stash, const char * const name)
d43aa7f9 5869 __attribute__nonnull__(pTHX_1)
46c461b5 5870 __attribute__nonnull__(pTHX_2);
7918f24d 5871#define PERL_ARGS_ASSERT_ISA_LOOKUP \
d43aa7f9 5872 assert(stash); assert(name)
46c461b5 5873
864dbfa3 5874#endif
1d7c1841 5875
2d31dd6a 5876#if defined(PERL_IN_LOCALE_C) || defined(PERL_DECL_PROT)
27da23d5 5877#if defined(USE_LOCALE_NUMERIC) || defined(USE_LOCALE_COLLATE)
8772537c
AL
5878STATIC char* S_stdize_locale(pTHX_ char* locs)
5879 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5880#define PERL_ARGS_ASSERT_STDIZE_LOCALE \
5881 assert(locs)
8772537c 5882
2d31dd6a 5883#endif
27da23d5 5884#endif
2d31dd6a
NIS
5885
5886#if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT)
44af46ee 5887STATIC const COP* S_closest_cop(pTHX_ const COP *cop, const OP *o)
8772537c 5888 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5889#define PERL_ARGS_ASSERT_CLOSEST_COP \
5890 assert(cop)
8772537c 5891
cea2e8a9 5892STATIC SV* S_mess_alloc(pTHX);
255164ba 5893STATIC const char * S_vdie_croak_common(pTHX_ const char *pat, va_list *args, STRLEN *msglen, I32* utf8);
46d9c920 5894STATIC bool S_vdie_common(pTHX_ const char *message, STRLEN msglen, I32 utf8, bool warn);
0bd48802
AL
5895STATIC char * S_write_no_mem(pTHX)
5896 __attribute__noreturn__;
5897
56b5603e 5898#if defined(PERL_MEM_LOG) && defined(PERL_MEM_LOG_STDERR)
bef8a128 5899STATIC 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)
56b5603e
MHM
5900 __attribute__nonnull__(4)
5901 __attribute__nonnull__(8)
5902 __attribute__nonnull__(10);
5903#define PERL_ARGS_ASSERT_MEM_LOG_COMMON \
bef8a128 5904 assert(type_name); assert(filename); assert(funcname)
56b5603e
MHM
5905
5906#endif
864dbfa3 5907#endif
1d7c1841 5908
4801ca72
JH
5909#if defined(PERL_IN_NUMERIC_C) || defined(PERL_DECL_PROT)
5910STATIC NV S_mulexp10(NV value, I32 exponent);
5911#endif
5912
646ca15d 5913#if defined(PERL_IN_UTF8_C) || defined(PERL_DECL_PROT)
44af46ee
RGS
5914STATIC STRLEN S_is_utf8_char_slow(const U8 *s, const STRLEN len)
5915 __attribute__warn_unused_result__
5916 __attribute__nonnull__(1);
7918f24d
NC
5917#define PERL_ARGS_ASSERT_IS_UTF8_CHAR_SLOW \
5918 assert(s)
646ca15d 5919
7452cf6a
AL
5920STATIC bool S_is_utf8_common(pTHX_ const U8 *const p, SV **swash, const char * const swashname)
5921 __attribute__warn_unused_result__
5922 __attribute__nonnull__(pTHX_1)
5923 __attribute__nonnull__(pTHX_2)
5924 __attribute__nonnull__(pTHX_3);
7918f24d
NC
5925#define PERL_ARGS_ASSERT_IS_UTF8_COMMON \
5926 assert(p); assert(swash); assert(swashname)
7452cf6a 5927
979f2922
TS
5928STATIC SV* S_swash_get(pTHX_ SV* swash, UV start, UV span)
5929 __attribute__warn_unused_result__
5930 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5931#define PERL_ARGS_ASSERT_SWASH_GET \
5932 assert(swash)
979f2922 5933
646ca15d
JH
5934#endif
5935
902f5b58
JH
5936START_EXTERN_C
5937
7bc54cea 5938PERL_CALLCONV void Perl_sv_setsv_flags(pTHX_ SV *dstr, SV *sstr, const I32 flags)
abb2c242 5939 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5940#define PERL_ARGS_ASSERT_SV_SETSV_FLAGS \
5941 assert(dstr)
f54cb97a 5942
2e000ff2 5943PERL_CALLCONV void Perl_sv_catpvn_flags(pTHX_ SV *const dstr, const char *sstr, const STRLEN len, const I32 flags)
abb2c242
JH
5944 __attribute__nonnull__(pTHX_1)
5945 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5946#define PERL_ARGS_ASSERT_SV_CATPVN_FLAGS \
5947 assert(dstr); assert(sstr)
f54cb97a 5948
2e000ff2 5949PERL_CALLCONV void Perl_sv_catsv_flags(pTHX_ SV *const dsv, SV *const ssv, const I32 flags)
abb2c242 5950 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5951#define PERL_ARGS_ASSERT_SV_CATSV_FLAGS \
5952 assert(dsv)
f54cb97a 5953
7bc54cea 5954PERL_CALLCONV STRLEN Perl_sv_utf8_upgrade_flags(pTHX_ SV *const sv, const I32 flags)
abb2c242 5955 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5956#define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE_FLAGS \
5957 assert(sv)
f54cb97a 5958
12964ddd 5959PERL_CALLCONV char* Perl_sv_pvn_force_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags)
46c461b5 5960 __attribute__nonnull__(pTHX_1);
7918f24d
NC
5961#define PERL_ARGS_ASSERT_SV_PVN_FORCE_FLAGS \
5962 assert(sv)
46c461b5 5963
5de3775c 5964PERL_CALLCONV void Perl_sv_copypv(pTHX_ SV *const dsv, SV *const ssv)
abb2c242
JH
5965 __attribute__nonnull__(pTHX_1)
5966 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5967#define PERL_ARGS_ASSERT_SV_COPYPV \
5968 assert(dsv); assert(ssv)
f54cb97a 5969
4373e329 5970PERL_CALLCONV char* Perl_my_atof2(pTHX_ const char *s, NV* value)
abb2c242
JH
5971 __attribute__nonnull__(pTHX_1)
5972 __attribute__nonnull__(pTHX_2);
7918f24d
NC
5973#define PERL_ARGS_ASSERT_MY_ATOF2 \
5974 assert(s); assert(value)
f54cb97a 5975
706e3e0f 5976PERL_CALLCONV int Perl_my_socketpair(int family, int type, int protocol, int fd[2]);
08ea85eb 5977PERL_CALLCONV int Perl_my_dirfd(pTHX_ DIR* dir);
f8c7b90f 5978#ifdef PERL_OLD_COPY_ON_WRITE
bcfe2509 5979PERL_CALLCONV SV* Perl_sv_setsv_cow(pTHX_ SV* dstr, SV* sstr)
46c461b5
AL
5980 __attribute__nonnull__(pTHX_1)
5981 __attribute__nonnull__(pTHX_2);
7918f24d 5982#define PERL_ARGS_ASSERT_SV_SETSV_COW \
bcfe2509 5983 assert(dstr); assert(sstr)
46c461b5 5984
ed252734 5985#endif
902f5b58 5986
11bcd5da
NC
5987PERL_CALLCONV const char * Perl_PerlIO_context_layers(pTHX_ const char *mode);
5988
e87a358a 5989#if defined(USE_PERLIO) && !defined(USE_SFIO)
66a1b24b
AL
5990PERL_CALLCONV int Perl_PerlIO_close(pTHX_ PerlIO *f);
5991PERL_CALLCONV int Perl_PerlIO_fill(pTHX_ PerlIO *f);
5992PERL_CALLCONV int Perl_PerlIO_fileno(pTHX_ PerlIO *f);
5993PERL_CALLCONV int Perl_PerlIO_eof(pTHX_ PerlIO *f);
5994PERL_CALLCONV int Perl_PerlIO_error(pTHX_ PerlIO *f);
5995PERL_CALLCONV int Perl_PerlIO_flush(pTHX_ PerlIO *f);
5996PERL_CALLCONV void Perl_PerlIO_clearerr(pTHX_ PerlIO *f);
5997PERL_CALLCONV void Perl_PerlIO_set_cnt(pTHX_ PerlIO *f, int cnt);
3d4dd4c7 5998PERL_CALLCONV void Perl_PerlIO_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR *ptr, int cnt);
66a1b24b 5999PERL_CALLCONV void Perl_PerlIO_setlinebuf(pTHX_ PerlIO *f);
4048f010 6000PERL_CALLCONV SSize_t Perl_PerlIO_read(pTHX_ PerlIO *f, void *vbuf, Size_t count)
66a1b24b 6001 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6002#define PERL_ARGS_ASSERT_PERLIO_READ \
6003 assert(vbuf)
66a1b24b 6004
4048f010 6005PERL_CALLCONV SSize_t Perl_PerlIO_write(pTHX_ PerlIO *f, const void *vbuf, Size_t count)
66a1b24b 6006 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6007#define PERL_ARGS_ASSERT_PERLIO_WRITE \
6008 assert(vbuf)
66a1b24b 6009
4048f010 6010PERL_CALLCONV SSize_t Perl_PerlIO_unread(pTHX_ PerlIO *f, const void *vbuf, Size_t count)
66a1b24b 6011 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6012#define PERL_ARGS_ASSERT_PERLIO_UNREAD \
6013 assert(vbuf)
66a1b24b
AL
6014
6015PERL_CALLCONV Off_t Perl_PerlIO_tell(pTHX_ PerlIO *f);
6016PERL_CALLCONV int Perl_PerlIO_seek(pTHX_ PerlIO *f, Off_t offset, int whence);
6017
6018PERL_CALLCONV STDCHAR * Perl_PerlIO_get_base(pTHX_ PerlIO *f);
6019PERL_CALLCONV STDCHAR * Perl_PerlIO_get_ptr(pTHX_ PerlIO *f);
255164ba
DM
6020PERL_CALLCONV int Perl_PerlIO_get_bufsiz(pTHX_ PerlIO *f)
6021 __attribute__warn_unused_result__;
6022
6023PERL_CALLCONV int Perl_PerlIO_get_cnt(pTHX_ PerlIO *f)
6024 __attribute__warn_unused_result__;
6025
e87a358a 6026
46c461b5
AL
6027PERL_CALLCONV PerlIO * Perl_PerlIO_stdin(pTHX)
6028 __attribute__warn_unused_result__;
6029
6030PERL_CALLCONV PerlIO * Perl_PerlIO_stdout(pTHX)
6031 __attribute__warn_unused_result__;
6032
6033PERL_CALLCONV PerlIO * Perl_PerlIO_stderr(pTHX)
6034 __attribute__warn_unused_result__;
6035
e87a358a 6036#endif /* PERLIO_LAYERS */
582ed04c 6037
d6721266
DM
6038PERL_CALLCONV void Perl_deb_stack_all(pTHX);
6039#ifdef PERL_IN_DEB_C
f75877b5
SH
6040STATIC void S_deb_stack_n(pTHX_ SV** stack_base, I32 stack_min, I32 stack_max, I32 mark_min, I32 mark_max)
6041 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6042#define PERL_ARGS_ASSERT_DEB_STACK_N \
6043 assert(stack_base)
f75877b5 6044
d6721266
DM
6045#endif
6046
66a1b24b
AL
6047PERL_CALLCONV PADLIST* Perl_pad_new(pTHX_ int flags)
6048 __attribute__malloc__
6049 __attribute__warn_unused_result__;
6050
f75877b5
SH
6051PERL_CALLCONV void Perl_pad_undef(pTHX_ CV* cv)
6052 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6053#define PERL_ARGS_ASSERT_PAD_UNDEF \
6054 assert(cv)
f75877b5 6055
952306ac 6056PERL_CALLCONV PADOFFSET Perl_pad_add_name(pTHX_ const char *name, HV* typestash, HV* ourstash, bool clone, bool state)
abb2c242 6057 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6058#define PERL_ARGS_ASSERT_PAD_ADD_NAME \
6059 assert(name)
f54cb97a 6060
f75877b5
SH
6061PERL_CALLCONV PADOFFSET Perl_pad_add_anon(pTHX_ SV* sv, OPCODE op_type)
6062 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6063#define PERL_ARGS_ASSERT_PAD_ADD_ANON \
6064 assert(sv)
f75877b5 6065
66a1b24b
AL
6066PERL_CALLCONV void Perl_pad_check_dup(pTHX_ const char* name, bool is_our, const HV* ourstash)
6067 __attribute__nonnull__(pTHX_1)
6068 __attribute__nonnull__(pTHX_3);
7918f24d
NC
6069#define PERL_ARGS_ASSERT_PAD_CHECK_DUP \
6070 assert(name); assert(ourstash)
66a1b24b 6071
dd2155a4 6072#ifdef DEBUGGING
66a1b24b
AL
6073PERL_CALLCONV void Perl_pad_setsv(pTHX_ PADOFFSET po, SV* sv)
6074 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6075#define PERL_ARGS_ASSERT_PAD_SETSV \
6076 assert(sv)
66a1b24b 6077
dd2155a4
DM
6078#endif
6079PERL_CALLCONV void Perl_pad_block_start(pTHX_ int full);
6080PERL_CALLCONV void Perl_pad_tidy(pTHX_ padtidy_type type);
66a1b24b
AL
6081PERL_CALLCONV void Perl_do_dump_pad(pTHX_ I32 level, PerlIO *file, PADLIST *padlist, int full)
6082 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6083#define PERL_ARGS_ASSERT_DO_DUMP_PAD \
6084 assert(file)
66a1b24b
AL
6085
6086PERL_CALLCONV void Perl_pad_fixup_inner_anons(pTHX_ PADLIST *padlist, CV *old_cv, CV *new_cv)
46c461b5
AL
6087 __attribute__nonnull__(pTHX_1)
6088 __attribute__nonnull__(pTHX_2)
6089 __attribute__nonnull__(pTHX_3);
7918f24d
NC
6090#define PERL_ARGS_ASSERT_PAD_FIXUP_INNER_ANONS \
6091 assert(padlist); assert(old_cv); assert(new_cv)
66a1b24b
AL
6092
6093
6094PERL_CALLCONV void Perl_pad_push(pTHX_ PADLIST *padlist, int depth)
6095 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6096#define PERL_ARGS_ASSERT_PAD_PUSH \
6097 assert(padlist)
dd2155a4 6098
901017d6
AL
6099PERL_CALLCONV HV* Perl_pad_compname_type(pTHX_ const PADOFFSET po)
6100 __attribute__warn_unused_result__;
6101
dd2155a4
DM
6102
6103#if defined(PERL_IN_PAD_C) || defined(PERL_DECL_PROT)
f75877b5
SH
6104STATIC PADOFFSET S_pad_findlex(pTHX_ const char *name, const CV* cv, U32 seq, int warn, SV** out_capture, SV** out_name_sv, int *out_flags)
6105 __attribute__nonnull__(pTHX_1)
6106 __attribute__nonnull__(pTHX_2)
6107 __attribute__nonnull__(pTHX_6)
6108 __attribute__nonnull__(pTHX_7);
7918f24d
NC
6109#define PERL_ARGS_ASSERT_PAD_FINDLEX \
6110 assert(name); assert(cv); assert(out_name_sv); assert(out_flags)
f75877b5 6111
dd2155a4 6112# if defined(DEBUGGING)
66a1b24b
AL
6113STATIC void S_cv_dump(pTHX_ const CV *cv, const char *title)
6114 __attribute__nonnull__(pTHX_1)
6115 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6116#define PERL_ARGS_ASSERT_CV_DUMP \
6117 assert(cv); assert(title)
66a1b24b 6118
dd2155a4 6119# endif
dd2155a4 6120#endif
a3b680e6 6121PERL_CALLCONV CV* Perl_find_runcv(pTHX_ U32 *db_seqp)
abb2c242 6122 __attribute__warn_unused_result__;
a3b680e6 6123
dd28f7bb 6124PERL_CALLCONV void Perl_free_tied_hv_pool(pTHX);
b4ab917c 6125#if defined(DEBUGGING)
255164ba 6126PERL_CALLCONV int Perl_get_debug_opts(pTHX_ const char **s, bool givehelp)
46c461b5
AL
6127 __attribute__warn_unused_result__
6128 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6129#define PERL_ARGS_ASSERT_GET_DEBUG_OPTS \
6130 assert(s)
255164ba 6131
b4ab917c 6132#endif
4048f010 6133PERL_CALLCONV void Perl_save_set_svflags(pTHX_ SV *sv, U32 mask, U32 val)
cf684db6 6134 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6135#define PERL_ARGS_ASSERT_SAVE_SET_SVFLAGS \
6136 assert(sv)
cf684db6 6137
4048f010 6138PERL_CALLCONV void Perl_hv_assert(pTHX_ HV *hv)
66a1b24b 6139 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6140#define PERL_ARGS_ASSERT_HV_ASSERT \
6141 assert(hv)
66a1b24b 6142
d6721266 6143
4048f010 6144PERL_CALLCONV SV* Perl_hv_scalar(pTHX_ HV *hv)
b464bac0
AL
6145 __attribute__warn_unused_result__
6146 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6147#define PERL_ARGS_ASSERT_HV_SCALAR \
6148 assert(hv)
b464bac0 6149
4048f010 6150PERL_CALLCONV I32* Perl_hv_riter_p(pTHX_ HV *hv)
b464bac0
AL
6151 __attribute__warn_unused_result__
6152 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6153#define PERL_ARGS_ASSERT_HV_RITER_P \
6154 assert(hv)
b464bac0 6155
4048f010 6156PERL_CALLCONV HE** Perl_hv_eiter_p(pTHX_ HV *hv)
b464bac0
AL
6157 __attribute__warn_unused_result__
6158 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6159#define PERL_ARGS_ASSERT_HV_EITER_P \
6160 assert(hv)
b464bac0 6161
4048f010 6162PERL_CALLCONV void Perl_hv_riter_set(pTHX_ HV *hv, I32 riter)
b464bac0 6163 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6164#define PERL_ARGS_ASSERT_HV_RITER_SET \
6165 assert(hv)
b464bac0 6166
4048f010 6167PERL_CALLCONV void Perl_hv_eiter_set(pTHX_ HV *hv, HE *eiter)
66a1b24b 6168 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6169#define PERL_ARGS_ASSERT_HV_EITER_SET \
6170 assert(hv)
b464bac0 6171
4048f010 6172PERL_CALLCONV void Perl_hv_name_set(pTHX_ HV *hv, const char *name, U32 len, U32 flags)
b464bac0 6173 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6174#define PERL_ARGS_ASSERT_HV_NAME_SET \
6175 assert(hv)
b464bac0 6176
4048f010 6177PERL_CALLCONV AV** Perl_hv_backreferences_p(pTHX_ HV *hv)
86f55936 6178 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6179#define PERL_ARGS_ASSERT_HV_BACKREFERENCES_P \
6180 assert(hv)
86f55936
NC
6181
6182#if defined(PERL_IN_DUMP_C) || defined(PERL_IN_HV_C) || defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
4048f010 6183PERL_CALLCONV void Perl_hv_kill_backrefs(pTHX_ HV *hv)
86f55936 6184 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6185#define PERL_ARGS_ASSERT_HV_KILL_BACKREFS \
6186 assert(hv)
86f55936
NC
6187
6188#endif
4048f010 6189PERL_CALLCONV void Perl_hv_clear_placeholders(pTHX_ HV *hv)
b464bac0 6190 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6191#define PERL_ARGS_ASSERT_HV_CLEAR_PLACEHOLDERS \
6192 assert(hv)
b464bac0 6193
4048f010 6194PERL_CALLCONV I32* Perl_hv_placeholders_p(pTHX_ HV *hv)
b464bac0
AL
6195 __attribute__warn_unused_result__
6196 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6197#define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_P \
6198 assert(hv)
b464bac0 6199
0c289d13 6200PERL_CALLCONV I32 Perl_hv_placeholders_get(pTHX_ const HV *hv)
b464bac0
AL
6201 __attribute__warn_unused_result__
6202 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6203#define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_GET \
6204 assert(hv)
b464bac0 6205
4048f010 6206PERL_CALLCONV void Perl_hv_placeholders_set(pTHX_ HV *hv, I32 ph)
b464bac0 6207 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6208#define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_SET \
6209 assert(hv)
b464bac0 6210
ca732855 6211
4048f010 6212PERL_CALLCONV SV* Perl_magic_scalarpack(pTHX_ HV *hv, MAGIC *mg)
66a1b24b
AL
6213 __attribute__nonnull__(pTHX_1)
6214 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6215#define PERL_ARGS_ASSERT_MAGIC_SCALARPACK \
6216 assert(hv); assert(mg)
66a1b24b 6217
10edeb5d
JH
6218
6219#if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
6c1b357c 6220STATIC SV * S_find_hash_subscript(pTHX_ const HV *const hv, const SV *const val)
10edeb5d 6221 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6222#define PERL_ARGS_ASSERT_FIND_HASH_SUBSCRIPT \
6223 assert(val)
10edeb5d 6224
6c1b357c 6225STATIC I32 S_find_array_subscript(pTHX_ const AV *const av, const SV *const val)
10edeb5d 6226 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6227#define PERL_ARGS_ASSERT_FIND_ARRAY_SUBSCRIPT \
6228 assert(val)
10edeb5d 6229
6c1b357c 6230STATIC SV* S_find_uninit_var(pTHX_ const OP *const obase, const SV *const uninit_sv, bool top);
29489e7c 6231#endif
96adfaa1 6232
1109a392
MHM
6233#ifdef PERL_NEED_MY_HTOLE16
6234PERL_CALLCONV U16 Perl_my_htole16(U16 n);
6235#endif
6236#ifdef PERL_NEED_MY_LETOH16
6237PERL_CALLCONV U16 Perl_my_letoh16(U16 n);
6238#endif
6239#ifdef PERL_NEED_MY_HTOBE16
6240PERL_CALLCONV U16 Perl_my_htobe16(U16 n);
6241#endif
6242#ifdef PERL_NEED_MY_BETOH16
6243PERL_CALLCONV U16 Perl_my_betoh16(U16 n);
6244#endif
6245#ifdef PERL_NEED_MY_HTOLE32
6246PERL_CALLCONV U32 Perl_my_htole32(U32 n);
6247#endif
6248#ifdef PERL_NEED_MY_LETOH32
6249PERL_CALLCONV U32 Perl_my_letoh32(U32 n);
6250#endif
6251#ifdef PERL_NEED_MY_HTOBE32
6252PERL_CALLCONV U32 Perl_my_htobe32(U32 n);
6253#endif
6254#ifdef PERL_NEED_MY_BETOH32
6255PERL_CALLCONV U32 Perl_my_betoh32(U32 n);
6256#endif
6257#ifdef PERL_NEED_MY_HTOLE64
6258PERL_CALLCONV U64 Perl_my_htole64(U64 n);
6259#endif
6260#ifdef PERL_NEED_MY_LETOH64
6261PERL_CALLCONV U64 Perl_my_letoh64(U64 n);
6262#endif
6263#ifdef PERL_NEED_MY_HTOBE64
6264PERL_CALLCONV U64 Perl_my_htobe64(U64 n);
6265#endif
6266#ifdef PERL_NEED_MY_BETOH64
6267PERL_CALLCONV U64 Perl_my_betoh64(U64 n);
6268#endif
6269
6270#ifdef PERL_NEED_MY_HTOLES
6271PERL_CALLCONV short Perl_my_htoles(short n);
6272#endif
6273#ifdef PERL_NEED_MY_LETOHS
6274PERL_CALLCONV short Perl_my_letohs(short n);
6275#endif
6276#ifdef PERL_NEED_MY_HTOBES
6277PERL_CALLCONV short Perl_my_htobes(short n);
6278#endif
6279#ifdef PERL_NEED_MY_BETOHS
6280PERL_CALLCONV short Perl_my_betohs(short n);
6281#endif
6282#ifdef PERL_NEED_MY_HTOLEI
6283PERL_CALLCONV int Perl_my_htolei(int n);
6284#endif
6285#ifdef PERL_NEED_MY_LETOHI
6286PERL_CALLCONV int Perl_my_letohi(int n);
6287#endif
6288#ifdef PERL_NEED_MY_HTOBEI
6289PERL_CALLCONV int Perl_my_htobei(int n);
6290#endif
6291#ifdef PERL_NEED_MY_BETOHI
6292PERL_CALLCONV int Perl_my_betohi(int n);
6293#endif
6294#ifdef PERL_NEED_MY_HTOLEL
6295PERL_CALLCONV long Perl_my_htolel(long n);
6296#endif
6297#ifdef PERL_NEED_MY_LETOHL
6298PERL_CALLCONV long Perl_my_letohl(long n);
6299#endif
6300#ifdef PERL_NEED_MY_HTOBEL
6301PERL_CALLCONV long Perl_my_htobel(long n);
6302#endif
6303#ifdef PERL_NEED_MY_BETOHL
6304PERL_CALLCONV long Perl_my_betohl(long n);
6305#endif
6306
f75877b5
SH
6307PERL_CALLCONV void Perl_my_swabn(void* ptr, int n)
6308 __attribute__nonnull__(1);
7918f24d
NC
6309#define PERL_ARGS_ASSERT_MY_SWABN \
6310 assert(ptr)
f75877b5
SH
6311
6312
fe9845cc 6313PERL_CALLCONV GV* Perl_gv_fetchpvn_flags(pTHX_ const char* name, STRLEN len, I32 flags, const svtype sv_type)
f75877b5 6314 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6315#define PERL_ARGS_ASSERT_GV_FETCHPVN_FLAGS \
6316 assert(name)
f75877b5 6317
fe9845cc 6318PERL_CALLCONV GV* Perl_gv_fetchsv(pTHX_ SV *name, I32 flags, const svtype sv_type)
f75877b5 6319 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6320#define PERL_ARGS_ASSERT_GV_FETCHSV \
6321 assert(name)
1109a392 6322
1df70142 6323PERL_CALLCONV bool Perl_is_gv_magical_sv(pTHX_ SV *name, U32 flags)
9d4ba2ae
AL
6324 __attribute__warn_unused_result__
6325 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6326#define PERL_ARGS_ASSERT_IS_GV_MAGICAL_SV \
6327 assert(name)
1df70142 6328
7a5fd60d 6329
9f6cc744 6330PERL_CALLCONV bool Perl_stashpv_hvname_match(pTHX_ const COP *c, const HV *hv)
ed221c57
AL
6331 __attribute__warn_unused_result__
6332 __attribute__nonnull__(pTHX_1)
6333 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6334#define PERL_ARGS_ASSERT_STASHPV_HVNAME_MATCH \
6335 assert(c); assert(hv)
ed221c57 6336
2e0de35c 6337
41e4abd8 6338#ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP
46c461b5
AL
6339PERL_CALLCONV void Perl_dump_sv_child(pTHX_ SV *sv)
6340 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6341#define PERL_ARGS_ASSERT_DUMP_SV_CHILD \
6342 assert(sv)
46c461b5 6343
41e4abd8
NC
6344#endif
6345
c69033f2
NC
6346#ifdef PERL_DONT_CREATE_GVSV
6347PERL_CALLCONV GV* Perl_gv_SVadd(pTHX_ GV* gv)
6348 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6349#define PERL_ARGS_ASSERT_GV_SVADD \
6350 assert(gv)
c69033f2
NC
6351
6352#endif
f54ba1c2
DM
6353PERL_CALLCONV bool Perl_ckwarn(pTHX_ U32 w);
6354PERL_CALLCONV bool Perl_ckwarn_d(pTHX_ U32 w);
8ee4cf24 6355PERL_CALLCONV STRLEN * Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, STRLEN size)
72dc9ed5
NC
6356 __attribute__malloc__
6357 __attribute__warn_unused_result__
8ee4cf24 6358 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6359#define PERL_ARGS_ASSERT_NEW_WARNINGS_BITFIELD \
6360 assert(bits)
72dc9ed5 6361
c69033f2 6362
de37a194 6363PERL_CALLCONV void Perl_offer_nice_chunk(pTHX_ void *const chunk, const U32 chunk_size)
77354fb4 6364 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6365#define PERL_ARGS_ASSERT_OFFER_NICE_CHUNK \
6366 assert(chunk)
77354fb4
NC
6367
6368
ce582cee
NC
6369#ifndef SPRINTF_RETURNS_STRLEN
6370PERL_CALLCONV int Perl_my_sprintf(char *buffer, const char *pat, ...)
6371 __attribute__nonnull__(1)
6372 __attribute__nonnull__(2);
7918f24d
NC
6373#define PERL_ARGS_ASSERT_MY_SPRINTF \
6374 assert(buffer); assert(pat)
ce582cee
NC
6375
6376#endif
6377
d9fad198 6378PERL_CALLCONV int Perl_my_snprintf(char *buffer, const Size_t len, const char *format, ...)
f8f4df2c 6379 __attribute__format__(__printf__,3,4)
d9fad198
JH
6380 __attribute__nonnull__(1)
6381 __attribute__nonnull__(3);
7918f24d
NC
6382#define PERL_ARGS_ASSERT_MY_SNPRINTF \
6383 assert(buffer); assert(format)
d9fad198
JH
6384
6385PERL_CALLCONV int Perl_my_vsnprintf(char *buffer, const Size_t len, const char *format, va_list ap)
6386 __attribute__nonnull__(1)
6387 __attribute__nonnull__(3);
7918f24d
NC
6388#define PERL_ARGS_ASSERT_MY_VSNPRINTF \
6389 assert(buffer); assert(format)
d9fad198
JH
6390
6391
b0269e46
AB
6392PERL_CALLCONV void Perl_my_clearenv(pTHX);
6393
f16dd614 6394#ifdef PERL_IMPLICIT_CONTEXT
53d44271
JH
6395#ifdef PERL_GLOBAL_STRUCT_PRIVATE
6396PERL_CALLCONV void* Perl_my_cxt_init(pTHX_ const char *my_cxt_key, size_t size)
6397 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6398#define PERL_ARGS_ASSERT_MY_CXT_INIT \
6399 assert(my_cxt_key)
53d44271
JH
6400
6401PERL_CALLCONV int Perl_my_cxt_index(pTHX_ const char *my_cxt_key)
6402 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6403#define PERL_ARGS_ASSERT_MY_CXT_INDEX \
6404 assert(my_cxt_key)
53d44271
JH
6405
6406#else
f16dd614
DM
6407PERL_CALLCONV void* Perl_my_cxt_init(pTHX_ int *index, size_t size)
6408 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6409#define PERL_ARGS_ASSERT_MY_CXT_INIT \
6410 assert(index)
f16dd614
DM
6411
6412#endif
53d44271 6413#endif
f16dd614 6414
a6cc4119
SP
6415#ifndef HAS_STRLCAT
6416PERL_CALLCONV Size_t Perl_my_strlcat(char *dst, const char *src, Size_t size);
6417#endif
6418
6419#ifndef HAS_STRLCPY
6420PERL_CALLCONV Size_t Perl_my_strlcpy(char *dst, const char *src, Size_t size);
6421#endif
6422
1dba731d
NC
6423#ifdef PERL_MAD
6424PERL_CALLCONV void Perl_pad_peg(const char* s)
6425 __attribute__nonnull__(1);
7918f24d
NC
6426#define PERL_ARGS_ASSERT_PAD_PEG \
6427 assert(s)
1dba731d 6428
3b721df9
NC
6429#if defined(PERL_IN_DUMP_C) || defined(PERL_DECL_PROT)
6430STATIC void S_xmldump_attr(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
6431 __attribute__format__(__printf__,pTHX_3,pTHX_4)
6432 __attribute__nonnull__(pTHX_2)
6433 __attribute__nonnull__(pTHX_3);
7918f24d
NC
6434#define PERL_ARGS_ASSERT_XMLDUMP_ATTR \
6435 assert(file); assert(pat)
3b721df9
NC
6436
6437#endif
6438PERL_CALLCONV void Perl_xmldump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
6439 __attribute__format__(__printf__,pTHX_3,pTHX_4)
6440 __attribute__nonnull__(pTHX_2)
6441 __attribute__nonnull__(pTHX_3);
7918f24d
NC
6442#define PERL_ARGS_ASSERT_XMLDUMP_INDENT \
6443 assert(file); assert(pat)
3b721df9
NC
6444
6445PERL_CALLCONV void Perl_xmldump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args)
6446 __attribute__nonnull__(pTHX_2)
6447 __attribute__nonnull__(pTHX_3);
7918f24d
NC
6448#define PERL_ARGS_ASSERT_XMLDUMP_VINDENT \
6449 assert(file); assert(pat)
3b721df9
NC
6450
6451PERL_CALLCONV void Perl_xmldump_all(pTHX);
6452PERL_CALLCONV void Perl_xmldump_packsubs(pTHX_ const HV* stash)
6453 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6454#define PERL_ARGS_ASSERT_XMLDUMP_PACKSUBS \
6455 assert(stash)
3b721df9
NC
6456
6457PERL_CALLCONV void Perl_xmldump_sub(pTHX_ const GV* gv)
6458 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6459#define PERL_ARGS_ASSERT_XMLDUMP_SUB \
6460 assert(gv)
3b721df9
NC
6461
6462PERL_CALLCONV void Perl_xmldump_form(pTHX_ const GV* gv)
6463 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6464#define PERL_ARGS_ASSERT_XMLDUMP_FORM \
6465 assert(gv)
3b721df9
NC
6466
6467PERL_CALLCONV void Perl_xmldump_eval(pTHX);
6468PERL_CALLCONV char* Perl_sv_catxmlsv(pTHX_ SV *dsv, SV *ssv)
6469 __attribute__nonnull__(pTHX_1)
6470 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6471#define PERL_ARGS_ASSERT_SV_CATXMLSV \
6472 assert(dsv); assert(ssv)
3b721df9 6473
20f84293 6474PERL_CALLCONV char* Perl_sv_catxmlpvn(pTHX_ SV *dsv, const char *pv, STRLEN len, int utf8)
3b721df9
NC
6475 __attribute__nonnull__(pTHX_1)
6476 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6477#define PERL_ARGS_ASSERT_SV_CATXMLPVN \
6478 assert(dsv); assert(pv)
3b721df9
NC
6479
6480PERL_CALLCONV char* Perl_sv_xmlpeek(pTHX_ SV* sv)
6481 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6482#define PERL_ARGS_ASSERT_SV_XMLPEEK \
6483 assert(sv)
3b721df9
NC
6484
6485PERL_CALLCONV void Perl_do_pmop_xmldump(pTHX_ I32 level, PerlIO *file, const PMOP *pm)
6486 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6487#define PERL_ARGS_ASSERT_DO_PMOP_XMLDUMP \
6488 assert(file)
3b721df9
NC
6489
6490PERL_CALLCONV void Perl_pmop_xmldump(pTHX_ const PMOP* pm);
6491PERL_CALLCONV void Perl_do_op_xmldump(pTHX_ I32 level, PerlIO *file, const OP *o)
6492 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6493#define PERL_ARGS_ASSERT_DO_OP_XMLDUMP \
6494 assert(file)
3b721df9 6495
9f10164a 6496PERL_CALLCONV void Perl_op_xmldump(pTHX_ const OP *o)
3b721df9 6497 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6498#define PERL_ARGS_ASSERT_OP_XMLDUMP \
6499 assert(o)
3b721df9 6500
eb8433b7
NC
6501
6502PERL_CALLCONV TOKEN* Perl_newTOKEN(pTHX_ I32 optype, YYSTYPE lval, MADPROP* madprop);
4048f010 6503PERL_CALLCONV void Perl_token_free(pTHX_ TOKEN *tk)
ca7a6974 6504 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6505#define PERL_ARGS_ASSERT_TOKEN_FREE \
6506 assert(tk)
ca7a6974 6507
4048f010 6508PERL_CALLCONV void Perl_token_getmad(pTHX_ TOKEN *tk, OP *o, char slot)
ca7a6974 6509 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6510#define PERL_ARGS_ASSERT_TOKEN_GETMAD \
6511 assert(tk)
ca7a6974 6512
eb8433b7
NC
6513PERL_CALLCONV void Perl_op_getmad_weak(pTHX_ OP* from, OP* o, char slot);
6514PERL_CALLCONV void Perl_op_getmad(pTHX_ OP* from, OP* o, char slot);
6515PERL_CALLCONV void Perl_prepend_madprops(pTHX_ MADPROP* mp, OP* o, char slot);
6516PERL_CALLCONV void Perl_append_madprops(pTHX_ MADPROP* tm, OP* o, char slot);
6517PERL_CALLCONV void Perl_addmad(pTHX_ MADPROP* tm, MADPROP** root, char slot);
ca7a6974
NC
6518PERL_CALLCONV MADPROP* Perl_newMADsv(pTHX_ char key, SV* sv)
6519 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6520#define PERL_ARGS_ASSERT_NEWMADSV \
6521 assert(sv)
ca7a6974 6522
594c10dc 6523PERL_CALLCONV MADPROP* Perl_newMADPROP(pTHX_ char key, char type, const void* val, I32 vlen);
eb8433b7 6524PERL_CALLCONV void Perl_mad_free(pTHX_ MADPROP* mp);
29595ff2
NC
6525
6526# if defined(PERL_IN_TOKE_C) || defined(PERL_DECL_PROT)
6527STATIC char* S_skipspace0(pTHX_ char *s)
6528 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6529#define PERL_ARGS_ASSERT_SKIPSPACE0 \
6530 assert(s)
29595ff2
NC
6531
6532STATIC char* S_skipspace1(pTHX_ char *s)
6533 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6534#define PERL_ARGS_ASSERT_SKIPSPACE1 \
6535 assert(s)
29595ff2
NC
6536
6537STATIC char* S_skipspace2(pTHX_ char *s, SV **sv)
6538 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6539#define PERL_ARGS_ASSERT_SKIPSPACE2 \
6540 assert(s)
29595ff2 6541
af5683d1
NC
6542STATIC void S_start_force(pTHX_ int where);
6543STATIC void S_curmad(pTHX_ char slot, SV *sv);
29595ff2 6544# endif
af5683d1 6545PERL_CALLCONV int Perl_madlex(pTHX);
00e74f14 6546PERL_CALLCONV int Perl_madparse(pTHX);
1dba731d 6547#endif
ed140128
AD
6548#if !defined(HAS_SIGNBIT)
6549PERL_CALLCONV int Perl_signbit(NV f)
6550 __attribute__pure__;
6551
6552#endif
f16dd614 6553
8b850bd5
NC
6554PERL_CALLCONV void Perl_emulate_cop_io(pTHX_ const COP *const c, SV *const sv)
6555 __attribute__nonnull__(pTHX_1)
6556 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6557#define PERL_ARGS_ASSERT_EMULATE_COP_IO \
6558 assert(c); assert(sv)
8b850bd5 6559
f7e71195 6560PERL_CALLCONV REGEXP * Perl_get_re_arg(pTHX_ SV *sv);
8b850bd5 6561
47c9dd14
BB
6562PERL_CALLCONV struct mro_meta* Perl_mro_meta_init(pTHX_ HV* stash)
6563 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6564#define PERL_ARGS_ASSERT_MRO_META_INIT \
6565 assert(stash)
47c9dd14
BB
6566
6567#if defined(USE_ITHREADS)
6568PERL_CALLCONV struct mro_meta* Perl_mro_meta_dup(pTHX_ struct mro_meta* smeta, CLONE_PARAMS* param)
6569 __attribute__nonnull__(pTHX_1)
6570 __attribute__nonnull__(pTHX_2);
7918f24d
NC
6571#define PERL_ARGS_ASSERT_MRO_META_DUP \
6572 assert(smeta); assert(param)
47c9dd14
BB
6573
6574#endif
6575PERL_CALLCONV AV* Perl_mro_get_linear_isa(pTHX_ HV* stash)
6576 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6577#define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA \
6578 assert(stash)
47c9dd14 6579
4befac30
NC
6580#if defined(PERL_IN_MRO_C) || defined(PERL_DECL_PROT)
6581STATIC AV* S_mro_get_linear_isa_c3(pTHX_ HV* stash, I32 level)
47c9dd14 6582 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6583#define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA_C3 \
6584 assert(stash)
47c9dd14 6585
4befac30 6586STATIC AV* S_mro_get_linear_isa_dfs(pTHX_ HV* stash, I32 level)
47c9dd14 6587 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6588#define PERL_ARGS_ASSERT_MRO_GET_LINEAR_ISA_DFS \
6589 assert(stash)
47c9dd14 6590
4befac30 6591#endif
47c9dd14
BB
6592PERL_CALLCONV void Perl_mro_isa_changed_in(pTHX_ HV* stash)
6593 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6594#define PERL_ARGS_ASSERT_MRO_ISA_CHANGED_IN \
6595 assert(stash)
47c9dd14
BB
6596
6597PERL_CALLCONV void Perl_mro_method_changed_in(pTHX_ HV* stash)
6598 __attribute__nonnull__(pTHX_1);
7918f24d
NC
6599#define PERL_ARGS_ASSERT_MRO_METHOD_CHANGED_IN \
6600 assert(stash)
47c9dd14
BB
6601
6602PERL_CALLCONV void Perl_boot_core_mro(pTHX);
cbec8ebe
DM
6603PERL_CALLCONV void Perl_sys_init(int* argc, char*** argv)
6604 __attribute__nonnull__(1)
6605 __attribute__nonnull__(2);
7918f24d
NC
6606#define PERL_ARGS_ASSERT_SYS_INIT \
6607 assert(argc); assert(argv)
cbec8ebe
DM
6608
6609PERL_CALLCONV void Perl_sys_init3(int* argc, char*** argv, char*** env)
6610 __attribute__nonnull__(1)
6611 __attribute__nonnull__(2)
6612 __attribute__nonnull__(3);
7918f24d
NC
6613#define PERL_ARGS_ASSERT_SYS_INIT3 \
6614 assert(argc); assert(argv); assert(env)
cbec8ebe 6615
d0820ef1 6616PERL_CALLCONV void Perl_sys_term(void);
dca6062a 6617PERL_CALLCONV const char * Perl_fetch_cop_label(pTHX_ struct refcounted_he *const chain, STRLEN *len, U32 *flags);
012da8e5
NC
6618PERL_CALLCONV struct refcounted_he * Perl_store_cop_label(pTHX_ struct refcounted_he *const chain, const char *label)
6619 __attribute__nonnull__(pTHX_2);
6620#define PERL_ARGS_ASSERT_STORE_COP_LABEL \
6621 assert(label)
6622
a49ba3fc
NC
6623PERL_CALLCONV HV * Perl_get_isa_hash(pTHX_ HV *const stash)
6624 __attribute__nonnull__(pTHX_1);
6625#define PERL_ARGS_ASSERT_GET_ISA_HASH \
6626 assert(stash)
6627
47c9dd14 6628
3540d4ce 6629END_EXTERN_C
1df70142
AL
6630/*
6631 * ex: set ts=8 sts=4 sw=4 noet:
6632 */
37442d52 6633/* ex: set ro: */