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