This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Perl_malloc_good_size to malloc.c. (A routine that rounds up the
[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,
7272f7c1 6 * 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 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
4048f010 195PERL_CALLCONV I32 Perl_av_len(pTHX_ const 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
cea2e8a9 330#if defined(PERL_IMPLICIT_CONTEXT)
f54cb97a 331PERL_CALLCONV void Perl_croak_nocontext(const char* pat, ...)
abb2c242 332 __attribute__noreturn__
fb9bf107
NC
333 __attribute__format__(__printf__,1,2)
334 __attribute__nonnull__(1);
7918f24d
NC
335#define PERL_ARGS_ASSERT_CROAK_NOCONTEXT \
336 assert(pat)
f54cb97a 337
894356b3 338PERL_CALLCONV OP* Perl_die_nocontext(const char* pat, ...)
255164ba
DM
339 __attribute__format__(__printf__,1,2)
340 __attribute__nonnull__(1);
7918f24d
NC
341#define PERL_ARGS_ASSERT_DIE_NOCONTEXT \
342 assert(pat)
f54cb97a 343
894356b3 344PERL_CALLCONV void Perl_deb_nocontext(const char* pat, ...)
255164ba
DM
345 __attribute__format__(__printf__,1,2)
346 __attribute__nonnull__(1);
7918f24d
NC
347#define PERL_ARGS_ASSERT_DEB_NOCONTEXT \
348 assert(pat)
f54cb97a 349
894356b3 350PERL_CALLCONV char* Perl_form_nocontext(const char* pat, ...)
255164ba
DM
351 __attribute__format__(__printf__,1,2)
352 __attribute__nonnull__(1);
7918f24d
NC
353#define PERL_ARGS_ASSERT_FORM_NOCONTEXT \
354 assert(pat)
255164ba
DM
355
356PERL_CALLCONV void Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...)
3d4dd4c7 357 __attribute__nonnull__(2);
7918f24d
NC
358#define PERL_ARGS_ASSERT_LOAD_MODULE_NOCONTEXT \
359 assert(name)
f54cb97a 360
894356b3 361PERL_CALLCONV SV* Perl_mess_nocontext(const char* pat, ...)
255164ba
DM
362 __attribute__format__(__printf__,1,2)
363 __attribute__nonnull__(1);
7918f24d
NC
364#define PERL_ARGS_ASSERT_MESS_NOCONTEXT \
365 assert(pat)
f54cb97a 366
894356b3 367PERL_CALLCONV void Perl_warn_nocontext(const char* pat, ...)
255164ba
DM
368 __attribute__format__(__printf__,1,2)
369 __attribute__nonnull__(1);
7918f24d
NC
370#define PERL_ARGS_ASSERT_WARN_NOCONTEXT \
371 assert(pat)
f54cb97a 372
894356b3 373PERL_CALLCONV void Perl_warner_nocontext(U32 err, const char* pat, ...)
255164ba
DM
374 __attribute__format__(__printf__,2,3)
375 __attribute__nonnull__(2);
7918f24d
NC
376#define PERL_ARGS_ASSERT_WARNER_NOCONTEXT \
377 assert(pat)
f54cb97a 378
894356b3 379PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char* pat, ...)
255164ba
DM
380 __attribute__format__(__printf__,1,2)
381 __attribute__nonnull__(1);
7918f24d
NC
382#define PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT \
383 assert(pat)
f54cb97a 384
894356b3 385PERL_CALLCONV void Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...)
255164ba 386 __attribute__format__(__printf__,2,3)
fb9bf107
NC
387 __attribute__nonnull__(1)
388 __attribute__nonnull__(2);
7918f24d
NC
389#define PERL_ARGS_ASSERT_SV_CATPVF_NOCONTEXT \
390 assert(sv); assert(pat)
f54cb97a 391
894356b3 392PERL_CALLCONV void Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...)
255164ba 393 __attribute__format__(__printf__,2,3)
fb9bf107
NC
394 __attribute__nonnull__(1)
395 __attribute__nonnull__(2);
7918f24d
NC
396#define PERL_ARGS_ASSERT_SV_SETPVF_NOCONTEXT \
397 assert(sv); assert(pat)
f54cb97a 398
894356b3 399PERL_CALLCONV void Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...)
255164ba 400 __attribute__format__(__printf__,2,3)
fb9bf107
NC
401 __attribute__nonnull__(1)
402 __attribute__nonnull__(2);
7918f24d
NC
403#define PERL_ARGS_ASSERT_SV_CATPVF_MG_NOCONTEXT \
404 assert(sv); assert(pat)
f54cb97a 405
894356b3 406PERL_CALLCONV void Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...)
255164ba 407 __attribute__format__(__printf__,2,3)
fb9bf107
NC
408 __attribute__nonnull__(1)
409 __attribute__nonnull__(2);
7918f24d
NC
410#define PERL_ARGS_ASSERT_SV_SETPVF_MG_NOCONTEXT \
411 assert(sv); assert(pat)
f54cb97a 412
4048f010 413PERL_CALLCONV int Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
255164ba
DM
414 __attribute__format__(__printf__,2,3)
415 __attribute__nonnull__(1)
416 __attribute__nonnull__(2);
7918f24d
NC
417#define PERL_ARGS_ASSERT_FPRINTF_NOCONTEXT \
418 assert(stream); assert(format)
f54cb97a 419
4048f010 420PERL_CALLCONV int Perl_printf_nocontext(const char *format, ...)
255164ba
DM
421 __attribute__format__(__printf__,1,2)
422 __attribute__nonnull__(1);
7918f24d
NC
423#define PERL_ARGS_ASSERT_PRINTF_NOCONTEXT \
424 assert(format)
f54cb97a 425
0cb96387 426#endif
a3b680e6 427PERL_CALLCONV void Perl_cv_ckproto(pTHX_ const CV* cv, const GV* gv, const char* p)
abb2c242 428 __attribute__nonnull__(pTHX_1);
7918f24d
NC
429#define PERL_ARGS_ASSERT_CV_CKPROTO \
430 assert(cv)
a3b680e6 431
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
255164ba
DM
448PERL_CALLCONV SV* Perl_cv_const_sv(pTHX_ CV* cv)
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
1d7c1841 541PERL_CALLCONV OP* Perl_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
2d03de9c 801PERL_CALLCONV OP* Perl_force_list(pTHX_ OP* arg);
4048f010 802PERL_CALLCONV OP* Perl_fold_constants(pTHX_ OP *o)
abb2c242 803 __attribute__nonnull__(pTHX_1);
7918f24d
NC
804#define PERL_ARGS_ASSERT_FOLD_CONSTANTS \
805 assert(o)
f54cb97a 806
894356b3 807PERL_CALLCONV char* Perl_form(pTHX_ const char* pat, ...)
aec46f14
AL
808 __attribute__format__(__printf__,pTHX_1,pTHX_2)
809 __attribute__nonnull__(pTHX_1);
7918f24d
NC
810#define PERL_ARGS_ASSERT_FORM \
811 assert(pat)
aec46f14
AL
812
813PERL_CALLCONV char* Perl_vform(pTHX_ const char* pat, va_list* args)
814 __attribute__nonnull__(pTHX_1);
7918f24d
NC
815#define PERL_ARGS_ASSERT_VFORM \
816 assert(pat)
f54cb97a 817
1d7c1841
GS
818PERL_CALLCONV void Perl_free_tmps(pTHX);
819PERL_CALLCONV OP* Perl_gen_constant_list(pTHX_ OP* o);
864dbfa3 820#if !defined(HAS_GETENV_LEN)
9f6cc744 821PERL_CALLCONV char* Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len)
8772537c
AL
822 __attribute__nonnull__(pTHX_1)
823 __attribute__nonnull__(pTHX_2);
7918f24d
NC
824#define PERL_ARGS_ASSERT_GETENV_LEN \
825 assert(env_elem); assert(len)
8772537c 826
0cb96387 827#endif
005a8a35
NC
828PERL_CALLCONV void Perl_get_db_sub(pTHX_ SV **svp, CV *cv)
829 __attribute__nonnull__(pTHX_2);
7918f24d
NC
830#define PERL_ARGS_ASSERT_GET_DB_SUB \
831 assert(cv)
005a8a35 832
1d7c1841
GS
833PERL_CALLCONV void Perl_gp_free(pTHX_ GV* gv);
834PERL_CALLCONV GP* Perl_gp_ref(pTHX_ GP* gp);
53c1dcc0
AL
835PERL_CALLCONV GV* Perl_gv_AVadd(pTHX_ GV* gv)
836 __attribute__nonnull__(pTHX_1);
7918f24d
NC
837#define PERL_ARGS_ASSERT_GV_AVADD \
838 assert(gv)
53c1dcc0
AL
839
840PERL_CALLCONV GV* Perl_gv_HVadd(pTHX_ GV* gv)
841 __attribute__nonnull__(pTHX_1);
7918f24d
NC
842#define PERL_ARGS_ASSERT_GV_HVADD \
843 assert(gv)
53c1dcc0
AL
844
845PERL_CALLCONV GV* Perl_gv_IOadd(pTHX_ GV* gv)
846 __attribute__nonnull__(pTHX_1);
7918f24d
NC
847#define PERL_ARGS_ASSERT_GV_IOADD \
848 assert(gv)
53c1dcc0 849
a28509cc
AL
850PERL_CALLCONV GV* Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method)
851 __attribute__warn_unused_result__
852 __attribute__nonnull__(pTHX_2);
7918f24d
NC
853#define PERL_ARGS_ASSERT_GV_AUTOLOAD4 \
854 assert(name)
a28509cc 855
1146e912 856PERL_CALLCONV void Perl_gv_check(pTHX_ const HV* stash)
46c461b5 857 __attribute__nonnull__(pTHX_1);
7918f24d
NC
858#define PERL_ARGS_ASSERT_GV_CHECK \
859 assert(stash)
46c461b5
AL
860
861PERL_CALLCONV void Perl_gv_efullname(pTHX_ SV* sv, const GV* gv)
862 __attribute__nonnull__(pTHX_1)
863 __attribute__nonnull__(pTHX_2);
7918f24d
NC
864#define PERL_ARGS_ASSERT_GV_EFULLNAME \
865 assert(sv); assert(gv)
46c461b5
AL
866
867/* PERL_CALLCONV void Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
868 __attribute__nonnull__(pTHX_1)
869 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
870#define PERL_ARGS_ASSERT_GV_EFULLNAME3 \
871 assert(sv); assert(gv)
46c461b5
AL
872
873PERL_CALLCONV void Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
874 __attribute__nonnull__(pTHX_1)
875 __attribute__nonnull__(pTHX_2);
7918f24d
NC
876#define PERL_ARGS_ASSERT_GV_EFULLNAME4 \
877 assert(sv); assert(gv)
46c461b5 878
53c1dcc0
AL
879PERL_CALLCONV GV* Perl_gv_fetchfile(pTHX_ const char* name)
880 __attribute__nonnull__(pTHX_1);
7918f24d
NC
881#define PERL_ARGS_ASSERT_GV_FETCHFILE \
882 assert(name)
53c1dcc0 883
d9095cec
NC
884PERL_CALLCONV GV* Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN len, const U32 flags)
885 __attribute__nonnull__(pTHX_1);
7918f24d
NC
886#define PERL_ARGS_ASSERT_GV_FETCHFILE_FLAGS \
887 assert(name)
d9095cec 888
fb9bf107
NC
889PERL_CALLCONV GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
890 __attribute__nonnull__(pTHX_2);
7918f24d
NC
891#define PERL_ARGS_ASSERT_GV_FETCHMETH \
892 assert(name)
fb9bf107
NC
893
894PERL_CALLCONV GV* Perl_gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
895 __attribute__nonnull__(pTHX_2);
7918f24d
NC
896#define PERL_ARGS_ASSERT_GV_FETCHMETH_AUTOLOAD \
897 assert(name)
fb9bf107 898
887986eb
NC
899/* PERL_CALLCONV GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name)
900 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
901#define PERL_ARGS_ASSERT_GV_FETCHMETHOD \
902 assert(name)
fb9bf107
NC
903
904PERL_CALLCONV GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload)
905 __attribute__nonnull__(pTHX_2);
7918f24d
NC
906#define PERL_ARGS_ASSERT_GV_FETCHMETHOD_AUTOLOAD \
907 assert(name)
fb9bf107 908
fe9845cc 909PERL_CALLCONV GV* Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, const svtype sv_type)
9a957fbc 910 __attribute__nonnull__(pTHX_1);
7918f24d
NC
911#define PERL_ARGS_ASSERT_GV_FETCHPV \
912 assert(nambeg)
9a957fbc
AL
913
914PERL_CALLCONV void Perl_gv_fullname(pTHX_ SV* sv, const GV* gv)
915 __attribute__nonnull__(pTHX_1)
916 __attribute__nonnull__(pTHX_2);
7918f24d
NC
917#define PERL_ARGS_ASSERT_GV_FULLNAME \
918 assert(sv); assert(gv)
9a957fbc
AL
919
920/* PERL_CALLCONV void Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
921 __attribute__nonnull__(pTHX_1)
922 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
923#define PERL_ARGS_ASSERT_GV_FULLNAME3 \
924 assert(sv); assert(gv)
9a957fbc
AL
925
926PERL_CALLCONV void Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
927 __attribute__nonnull__(pTHX_1)
928 __attribute__nonnull__(pTHX_2);
7918f24d
NC
929#define PERL_ARGS_ASSERT_GV_FULLNAME4 \
930 assert(sv); assert(gv)
9a957fbc 931
12816592
NC
932PERL_CALLCONV GP * Perl_newGP(pTHX_ GV *const gv)
933 __attribute__nonnull__(pTHX_1);
7918f24d
NC
934#define PERL_ARGS_ASSERT_NEWGP \
935 assert(gv)
12816592 936
53c1dcc0
AL
937PERL_CALLCONV void Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi)
938 __attribute__nonnull__(pTHX_1)
53c1dcc0 939 __attribute__nonnull__(pTHX_3);
7918f24d
NC
940#define PERL_ARGS_ASSERT_GV_INIT \
941 assert(gv); assert(name)
53c1dcc0 942
f5c1e807 943PERL_CALLCONV void Perl_gv_name_set(pTHX_ GV* gv, const char *name, U32 len, U32 flags)
9f616d01
MHM
944 __attribute__nonnull__(pTHX_1)
945 __attribute__nonnull__(pTHX_2);
7918f24d
NC
946#define PERL_ARGS_ASSERT_GV_NAME_SET \
947 assert(gv); assert(name)
f5c1e807 948
da51bb9b 949PERL_CALLCONV HV* Perl_gv_stashpv(pTHX_ const char* name, I32 flags)
aa924a5a 950 __attribute__nonnull__(pTHX_1);
7918f24d
NC
951#define PERL_ARGS_ASSERT_GV_STASHPV \
952 assert(name)
aa924a5a 953
da51bb9b 954PERL_CALLCONV HV* Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 flags)
aa924a5a 955 __attribute__nonnull__(pTHX_1);
7918f24d
NC
956#define PERL_ARGS_ASSERT_GV_STASHPVN \
957 assert(name)
aa924a5a 958
8798655d
NC
959PERL_CALLCONV HV* Perl_gv_stashsv(pTHX_ SV* sv, I32 flags)
960 __attribute__nonnull__(pTHX_1);
7918f24d
NC
961#define PERL_ARGS_ASSERT_GV_STASHSV \
962 assert(sv)
8798655d 963
4048f010 964PERL_CALLCONV void Perl_hv_clear(pTHX_ HV *hv);
3d4dd4c7 965PERL_CALLCONV HV * Perl_hv_copy_hints_hv(pTHX_ HV *const ohv);
4048f010 966PERL_CALLCONV void Perl_hv_delayfree_ent(pTHX_ HV *hv, HE *entry)
aa924a5a 967 __attribute__nonnull__(pTHX_1);
7918f24d
NC
968#define PERL_ARGS_ASSERT_HV_DELAYFREE_ENT \
969 assert(hv)
aa924a5a 970
4048f010 971/* PERL_CALLCONV SV* Perl_hv_delete(pTHX_ HV *hv, const char *key, I32 klen, I32 flags)
a038e571 972 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
973#define PERL_ARGS_ASSERT_HV_DELETE \
974 assert(key)
aa924a5a 975
4048f010 976/* PERL_CALLCONV SV* Perl_hv_delete_ent(pTHX_ HV *hv, SV *keysv, I32 flags, U32 hash)
4c2df08c 977 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
978#define PERL_ARGS_ASSERT_HV_DELETE_ENT \
979 assert(keysv)
aa924a5a 980
4048f010 981/* PERL_CALLCONV bool Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen)
aa924a5a 982 __attribute__warn_unused_result__
a038e571 983 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
984#define PERL_ARGS_ASSERT_HV_EXISTS \
985 assert(key)
901017d6 986
4048f010 987/* PERL_CALLCONV bool Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
aa924a5a 988 __attribute__warn_unused_result__
4c2df08c 989 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
990#define PERL_ARGS_ASSERT_HV_EXISTS_ENT \
991 assert(keysv)
aa924a5a 992
4048f010 993/* PERL_CALLCONV SV** Perl_hv_fetch(pTHX_ HV *hv, const char *key, I32 klen, I32 lval)
a038e571 994 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
995#define PERL_ARGS_ASSERT_HV_FETCH \
996 assert(key)
901017d6 997
4048f010 998/* PERL_CALLCONV HE* Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, U32 hash)
4c2df08c 999 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
1000#define PERL_ARGS_ASSERT_HV_FETCH_ENT \
1001 assert(keysv)
aa924a5a 1002
4048f010 1003PERL_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
1004PERL_CALLCONV void* Perl_hv_common_key_len(pTHX_ HV *hv, const char *key, I32 klen_i32, const int action, SV *val, const U32 hash)
1005 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1006#define PERL_ARGS_ASSERT_HV_COMMON_KEY_LEN \
1007 assert(key)
a038e571 1008
4048f010 1009PERL_CALLCONV void Perl_hv_free_ent(pTHX_ HV *hv, HE *entryK)
abb2c242 1010 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1011#define PERL_ARGS_ASSERT_HV_FREE_ENT \
1012 assert(hv)
a3b680e6 1013
4048f010 1014PERL_CALLCONV I32 Perl_hv_iterinit(pTHX_ HV *hv)
abb2c242 1015 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1016#define PERL_ARGS_ASSERT_HV_ITERINIT \
1017 assert(hv)
a3b680e6
AL
1018
1019PERL_CALLCONV char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
abb2c242
JH
1020 __attribute__warn_unused_result__
1021 __attribute__nonnull__(pTHX_1)
1022 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1023#define PERL_ARGS_ASSERT_HV_ITERKEY \
1024 assert(entry); assert(retlen)
a3b680e6
AL
1025
1026PERL_CALLCONV SV* Perl_hv_iterkeysv(pTHX_ HE* entry)
abb2c242
JH
1027 __attribute__warn_unused_result__
1028 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1029#define PERL_ARGS_ASSERT_HV_ITERKEYSV \
1030 assert(entry)
a3b680e6 1031
4048f010 1032/* PERL_CALLCONV HE* Perl_hv_iternext(pTHX_ HV *hv)
abb2c242 1033 __attribute__warn_unused_result__
7a7b9979 1034 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1035#define PERL_ARGS_ASSERT_HV_ITERNEXT \
1036 assert(hv)
a3b680e6 1037
4048f010 1038PERL_CALLCONV SV* Perl_hv_iternextsv(pTHX_ HV *hv, char **key, I32 *retlen)
abb2c242
JH
1039 __attribute__warn_unused_result__
1040 __attribute__nonnull__(pTHX_1)
1041 __attribute__nonnull__(pTHX_2)
1042 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1043#define PERL_ARGS_ASSERT_HV_ITERNEXTSV \
1044 assert(hv); assert(key); assert(retlen)
a3b680e6 1045
4048f010 1046PERL_CALLCONV HE* Perl_hv_iternext_flags(pTHX_ HV *hv, I32 flags)
abb2c242
JH
1047 __attribute__warn_unused_result__
1048 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1049#define PERL_ARGS_ASSERT_HV_ITERNEXT_FLAGS \
1050 assert(hv)
a3b680e6 1051
4048f010 1052PERL_CALLCONV SV* Perl_hv_iterval(pTHX_ HV *hv, HE *entry)
abb2c242
JH
1053 __attribute__warn_unused_result__
1054 __attribute__nonnull__(pTHX_1)
1055 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1056#define PERL_ARGS_ASSERT_HV_ITERVAL \
1057 assert(hv); assert(entry)
a3b680e6 1058
4048f010 1059PERL_CALLCONV void Perl_hv_ksplit(pTHX_ HV *hv, IV newmax)
abb2c242 1060 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1061#define PERL_ARGS_ASSERT_HV_KSPLIT \
1062 assert(hv)
a3b680e6 1063
4048f010 1064/* PERL_CALLCONV void Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how)
bc5cdc23 1065 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1066#define PERL_ARGS_ASSERT_HV_MAGIC \
1067 assert(hv)
fb9bf107 1068
b3ca2e83 1069PERL_CALLCONV HV * Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c);
18759386 1070PERL_CALLCONV SV * Perl_refcounted_he_fetch(pTHX_ const struct refcounted_he *chain, SV *keysv, const char *key, STRLEN klen, int flags, U32 hash);
b3ca2e83 1071PERL_CALLCONV void Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
b46c265e 1072PERL_CALLCONV struct refcounted_he * Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, SV *const key, SV *const value);
4048f010
NC
1073/* PERL_CALLCONV SV** Perl_hv_store(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash); */
1074/* PERL_CALLCONV HE* Perl_hv_store_ent(pTHX_ HV *hv, SV *key, SV *val, U32 hash); */
1075/* PERL_CALLCONV SV** Perl_hv_store_flags(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash, int flags); */
1076PERL_CALLCONV void Perl_hv_undef(pTHX_ HV *hv);
4373e329 1077PERL_CALLCONV I32 Perl_ibcmp(pTHX_ const char* a, const char* b, I32 len)
abb2c242
JH
1078 __attribute__pure__
1079 __attribute__nonnull__(pTHX_1)
1080 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1081#define PERL_ARGS_ASSERT_IBCMP \
1082 assert(a); assert(b)
f54cb97a 1083
4373e329 1084PERL_CALLCONV I32 Perl_ibcmp_locale(pTHX_ const char* a, const char* b, I32 len)
abb2c242
JH
1085 __attribute__pure__
1086 __attribute__nonnull__(pTHX_1)
1087 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1088#define PERL_ARGS_ASSERT_IBCMP_LOCALE \
1089 assert(a); assert(b)
f54cb97a 1090
4048f010 1091PERL_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
1092 __attribute__nonnull__(pTHX_1)
1093 __attribute__nonnull__(pTHX_5);
7918f24d
NC
1094#define PERL_ARGS_ASSERT_IBCMP_UTF8 \
1095 assert(s1); assert(s2)
f54cb97a 1096
ae1951c1 1097PERL_CALLCONV bool Perl_ingroup(pTHX_ Gid_t testgid, bool effective)
abb2c242 1098 __attribute__warn_unused_result__;
f54cb97a 1099
4373e329 1100PERL_CALLCONV void Perl_init_argv_symbols(pTHX_ int argc, char **argv)
abb2c242 1101 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1102#define PERL_ARGS_ASSERT_INIT_ARGV_SYMBOLS \
1103 assert(argv)
f54cb97a 1104
1d7c1841
GS
1105PERL_CALLCONV void Perl_init_debugger(pTHX);
1106PERL_CALLCONV void Perl_init_stacks(pTHX);
bfce84ec
AL
1107PERL_CALLCONV void Perl_init_tm(pTHX_ struct tm *ptm)
1108 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1109#define PERL_ARGS_ASSERT_INIT_TM \
1110 assert(ptm)
bfce84ec 1111
1d7c1841 1112PERL_CALLCONV U32 Perl_intro_my(pTHX);
4373e329 1113PERL_CALLCONV char* Perl_instr(pTHX_ const char* big, const char* little)
b464bac0 1114 __attribute__warn_unused_result__
abb2c242
JH
1115 __attribute__pure__
1116 __attribute__nonnull__(pTHX_1)
1117 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1118#define PERL_ARGS_ASSERT_INSTR \
1119 assert(big); assert(little)
f54cb97a 1120
b464bac0 1121PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit)
b464bac0 1122 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1123#define PERL_ARGS_ASSERT_IO_CLOSE \
1124 assert(io)
b464bac0
AL
1125
1126PERL_CALLCONV OP* Perl_invert(pTHX_ OP* cmd)
1127 __attribute__warn_unused_result__;
1128
f54cb97a 1129PERL_CALLCONV bool Perl_is_gv_magical(pTHX_ const char *name, STRLEN len, U32 flags)
9d4ba2ae
AL
1130 __attribute__warn_unused_result__
1131 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1132#define PERL_ARGS_ASSERT_IS_GV_MAGICAL \
1133 assert(name)
f54cb97a
AL
1134
1135PERL_CALLCONV I32 Perl_is_lvalue_sub(pTHX)
abb2c242 1136 __attribute__warn_unused_result__;
f54cb97a
AL
1137
1138PERL_CALLCONV U32 Perl_to_uni_upper_lc(pTHX_ U32 c)
abb2c242
JH
1139 __attribute__warn_unused_result__
1140 __attribute__pure__;
f54cb97a
AL
1141
1142PERL_CALLCONV U32 Perl_to_uni_title_lc(pTHX_ U32 c)
abb2c242
JH
1143 __attribute__warn_unused_result__
1144 __attribute__pure__;
f54cb97a
AL
1145
1146PERL_CALLCONV U32 Perl_to_uni_lower_lc(pTHX_ U32 c)
abb2c242
JH
1147 __attribute__warn_unused_result__
1148 __attribute__pure__;
f54cb97a
AL
1149
1150PERL_CALLCONV bool Perl_is_uni_alnum(pTHX_ UV c)
abb2c242
JH
1151 __attribute__warn_unused_result__
1152 __attribute__pure__;
f54cb97a
AL
1153
1154PERL_CALLCONV bool Perl_is_uni_alnumc(pTHX_ UV c)
abb2c242
JH
1155 __attribute__warn_unused_result__
1156 __attribute__pure__;
f54cb97a
AL
1157
1158PERL_CALLCONV bool Perl_is_uni_idfirst(pTHX_ UV c)
abb2c242
JH
1159 __attribute__warn_unused_result__
1160 __attribute__pure__;
f54cb97a
AL
1161
1162PERL_CALLCONV bool Perl_is_uni_alpha(pTHX_ UV c)
abb2c242
JH
1163 __attribute__warn_unused_result__
1164 __attribute__pure__;
f54cb97a
AL
1165
1166PERL_CALLCONV bool Perl_is_uni_ascii(pTHX_ UV c)
abb2c242
JH
1167 __attribute__warn_unused_result__
1168 __attribute__pure__;
f54cb97a
AL
1169
1170PERL_CALLCONV bool Perl_is_uni_space(pTHX_ UV c)
abb2c242
JH
1171 __attribute__warn_unused_result__
1172 __attribute__pure__;
f54cb97a
AL
1173
1174PERL_CALLCONV bool Perl_is_uni_cntrl(pTHX_ UV c)
abb2c242
JH
1175 __attribute__warn_unused_result__
1176 __attribute__pure__;
f54cb97a
AL
1177
1178PERL_CALLCONV bool Perl_is_uni_graph(pTHX_ UV c)
abb2c242
JH
1179 __attribute__warn_unused_result__
1180 __attribute__pure__;
f54cb97a
AL
1181
1182PERL_CALLCONV bool Perl_is_uni_digit(pTHX_ UV c)
abb2c242
JH
1183 __attribute__warn_unused_result__
1184 __attribute__pure__;
f54cb97a
AL
1185
1186PERL_CALLCONV bool Perl_is_uni_upper(pTHX_ UV c)
abb2c242
JH
1187 __attribute__warn_unused_result__
1188 __attribute__pure__;
f54cb97a
AL
1189
1190PERL_CALLCONV bool Perl_is_uni_lower(pTHX_ UV c)
abb2c242
JH
1191 __attribute__warn_unused_result__
1192 __attribute__pure__;
f54cb97a
AL
1193
1194PERL_CALLCONV bool Perl_is_uni_print(pTHX_ UV c)
abb2c242
JH
1195 __attribute__warn_unused_result__
1196 __attribute__pure__;
f54cb97a
AL
1197
1198PERL_CALLCONV bool Perl_is_uni_punct(pTHX_ UV c)
abb2c242
JH
1199 __attribute__warn_unused_result__
1200 __attribute__pure__;
f54cb97a
AL
1201
1202PERL_CALLCONV bool Perl_is_uni_xdigit(pTHX_ UV c)
abb2c242
JH
1203 __attribute__warn_unused_result__
1204 __attribute__pure__;
f54cb97a 1205
4373e329 1206PERL_CALLCONV UV Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1207 __attribute__nonnull__(pTHX_2)
1208 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1209#define PERL_ARGS_ASSERT_TO_UNI_UPPER \
1210 assert(p); assert(lenp)
f54cb97a 1211
4373e329 1212PERL_CALLCONV UV Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1213 __attribute__nonnull__(pTHX_2)
1214 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1215#define PERL_ARGS_ASSERT_TO_UNI_TITLE \
1216 assert(p); assert(lenp)
f54cb97a 1217
4373e329 1218PERL_CALLCONV UV Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1219 __attribute__nonnull__(pTHX_2)
1220 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1221#define PERL_ARGS_ASSERT_TO_UNI_LOWER \
1222 assert(p); assert(lenp)
f54cb97a 1223
4373e329 1224PERL_CALLCONV UV Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1225 __attribute__nonnull__(pTHX_2)
1226 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1227#define PERL_ARGS_ASSERT_TO_UNI_FOLD \
1228 assert(p); assert(lenp)
f54cb97a
AL
1229
1230PERL_CALLCONV bool Perl_is_uni_alnum_lc(pTHX_ UV c)
abb2c242
JH
1231 __attribute__warn_unused_result__
1232 __attribute__pure__;
f54cb97a
AL
1233
1234PERL_CALLCONV bool Perl_is_uni_alnumc_lc(pTHX_ UV c)
abb2c242
JH
1235 __attribute__warn_unused_result__
1236 __attribute__pure__;
f54cb97a
AL
1237
1238PERL_CALLCONV bool Perl_is_uni_idfirst_lc(pTHX_ UV c)
abb2c242
JH
1239 __attribute__warn_unused_result__
1240 __attribute__pure__;
f54cb97a
AL
1241
1242PERL_CALLCONV bool Perl_is_uni_alpha_lc(pTHX_ UV c)
abb2c242
JH
1243 __attribute__warn_unused_result__
1244 __attribute__pure__;
f54cb97a
AL
1245
1246PERL_CALLCONV bool Perl_is_uni_ascii_lc(pTHX_ UV c)
abb2c242
JH
1247 __attribute__warn_unused_result__
1248 __attribute__pure__;
f54cb97a
AL
1249
1250PERL_CALLCONV bool Perl_is_uni_space_lc(pTHX_ UV c)
abb2c242
JH
1251 __attribute__warn_unused_result__
1252 __attribute__pure__;
f54cb97a
AL
1253
1254PERL_CALLCONV bool Perl_is_uni_cntrl_lc(pTHX_ UV c)
abb2c242
JH
1255 __attribute__warn_unused_result__
1256 __attribute__pure__;
f54cb97a
AL
1257
1258PERL_CALLCONV bool Perl_is_uni_graph_lc(pTHX_ UV c)
abb2c242
JH
1259 __attribute__warn_unused_result__
1260 __attribute__pure__;
f54cb97a
AL
1261
1262PERL_CALLCONV bool Perl_is_uni_digit_lc(pTHX_ UV c)
abb2c242
JH
1263 __attribute__warn_unused_result__
1264 __attribute__pure__;
f54cb97a
AL
1265
1266PERL_CALLCONV bool Perl_is_uni_upper_lc(pTHX_ UV c)
abb2c242
JH
1267 __attribute__warn_unused_result__
1268 __attribute__pure__;
f54cb97a
AL
1269
1270PERL_CALLCONV bool Perl_is_uni_lower_lc(pTHX_ UV c)
abb2c242
JH
1271 __attribute__warn_unused_result__
1272 __attribute__pure__;
f54cb97a
AL
1273
1274PERL_CALLCONV bool Perl_is_uni_print_lc(pTHX_ UV c)
abb2c242
JH
1275 __attribute__warn_unused_result__
1276 __attribute__pure__;
f54cb97a
AL
1277
1278PERL_CALLCONV bool Perl_is_uni_punct_lc(pTHX_ UV c)
abb2c242
JH
1279 __attribute__warn_unused_result__
1280 __attribute__pure__;
f54cb97a
AL
1281
1282PERL_CALLCONV bool Perl_is_uni_xdigit_lc(pTHX_ UV c)
abb2c242
JH
1283 __attribute__warn_unused_result__
1284 __attribute__pure__;
f54cb97a 1285
4048f010 1286PERL_CALLCONV STRLEN Perl_is_utf8_char(pTHX_ const U8 *s)
abb2c242 1287 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1288#define PERL_ARGS_ASSERT_IS_UTF8_CHAR \
1289 assert(s)
f54cb97a 1290
4373e329 1291PERL_CALLCONV bool Perl_is_utf8_string(pTHX_ const U8 *s, STRLEN len)
abb2c242 1292 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1293#define PERL_ARGS_ASSERT_IS_UTF8_STRING \
1294 assert(s)
f54cb97a 1295
814fafa7
NC
1296/* PERL_CALLCONV bool Perl_is_utf8_string_loc(pTHX_ const U8 *s, STRLEN len, const U8 **p)
1297 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1298#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC \
1299 assert(s)
768c67ee
JH
1300
1301PERL_CALLCONV bool Perl_is_utf8_string_loclen(pTHX_ const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)
1302 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1303#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN \
1304 assert(s)
f54cb97a 1305
4373e329 1306PERL_CALLCONV bool Perl_is_utf8_alnum(pTHX_ const U8 *p)
1df70142 1307 __attribute__warn_unused_result__
abb2c242 1308 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1309#define PERL_ARGS_ASSERT_IS_UTF8_ALNUM \
1310 assert(p)
f54cb97a 1311
4373e329 1312PERL_CALLCONV bool Perl_is_utf8_alnumc(pTHX_ const U8 *p)
1df70142 1313 __attribute__warn_unused_result__
abb2c242 1314 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1315#define PERL_ARGS_ASSERT_IS_UTF8_ALNUMC \
1316 assert(p)
f54cb97a 1317
4373e329 1318PERL_CALLCONV bool Perl_is_utf8_idfirst(pTHX_ const U8 *p)
1df70142 1319 __attribute__warn_unused_result__
abb2c242 1320 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1321#define PERL_ARGS_ASSERT_IS_UTF8_IDFIRST \
1322 assert(p)
f54cb97a 1323
4373e329 1324PERL_CALLCONV bool Perl_is_utf8_idcont(pTHX_ const U8 *p)
1df70142 1325 __attribute__warn_unused_result__
abb2c242 1326 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1327#define PERL_ARGS_ASSERT_IS_UTF8_IDCONT \
1328 assert(p)
f54cb97a 1329
4373e329 1330PERL_CALLCONV bool Perl_is_utf8_alpha(pTHX_ const U8 *p)
1df70142 1331 __attribute__warn_unused_result__
abb2c242 1332 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1333#define PERL_ARGS_ASSERT_IS_UTF8_ALPHA \
1334 assert(p)
f54cb97a 1335
4373e329 1336PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ const U8 *p)
1df70142 1337 __attribute__warn_unused_result__
abb2c242 1338 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1339#define PERL_ARGS_ASSERT_IS_UTF8_ASCII \
1340 assert(p)
f54cb97a 1341
4373e329 1342PERL_CALLCONV bool Perl_is_utf8_space(pTHX_ const U8 *p)
1df70142 1343 __attribute__warn_unused_result__
abb2c242 1344 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1345#define PERL_ARGS_ASSERT_IS_UTF8_SPACE \
1346 assert(p)
f54cb97a 1347
4373e329 1348PERL_CALLCONV bool Perl_is_utf8_cntrl(pTHX_ const U8 *p)
1df70142 1349 __attribute__warn_unused_result__
abb2c242 1350 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1351#define PERL_ARGS_ASSERT_IS_UTF8_CNTRL \
1352 assert(p)
f54cb97a 1353
4373e329 1354PERL_CALLCONV bool Perl_is_utf8_digit(pTHX_ const U8 *p)
1df70142 1355 __attribute__warn_unused_result__
abb2c242 1356 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1357#define PERL_ARGS_ASSERT_IS_UTF8_DIGIT \
1358 assert(p)
f54cb97a 1359
4373e329 1360PERL_CALLCONV bool Perl_is_utf8_graph(pTHX_ const U8 *p)
1df70142 1361 __attribute__warn_unused_result__
abb2c242 1362 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1363#define PERL_ARGS_ASSERT_IS_UTF8_GRAPH \
1364 assert(p)
f54cb97a 1365
4373e329 1366PERL_CALLCONV bool Perl_is_utf8_upper(pTHX_ const U8 *p)
1df70142 1367 __attribute__warn_unused_result__
abb2c242 1368 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1369#define PERL_ARGS_ASSERT_IS_UTF8_UPPER \
1370 assert(p)
f54cb97a 1371
4373e329 1372PERL_CALLCONV bool Perl_is_utf8_lower(pTHX_ const U8 *p)
1df70142 1373 __attribute__warn_unused_result__
abb2c242 1374 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1375#define PERL_ARGS_ASSERT_IS_UTF8_LOWER \
1376 assert(p)
f54cb97a 1377
4373e329 1378PERL_CALLCONV bool Perl_is_utf8_print(pTHX_ const U8 *p)
1df70142 1379 __attribute__warn_unused_result__
abb2c242 1380 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1381#define PERL_ARGS_ASSERT_IS_UTF8_PRINT \
1382 assert(p)
f54cb97a 1383
4373e329 1384PERL_CALLCONV bool Perl_is_utf8_punct(pTHX_ const U8 *p)
1df70142 1385 __attribute__warn_unused_result__
abb2c242 1386 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1387#define PERL_ARGS_ASSERT_IS_UTF8_PUNCT \
1388 assert(p)
f54cb97a 1389
4373e329 1390PERL_CALLCONV bool Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1df70142 1391 __attribute__warn_unused_result__
abb2c242 1392 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1393#define PERL_ARGS_ASSERT_IS_UTF8_XDIGIT \
1394 assert(p)
f54cb97a 1395
4373e329 1396PERL_CALLCONV bool Perl_is_utf8_mark(pTHX_ const U8 *p)
1df70142 1397 __attribute__warn_unused_result__
abb2c242 1398 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1399#define PERL_ARGS_ASSERT_IS_UTF8_MARK \
1400 assert(p)
f54cb97a 1401
4048f010 1402PERL_CALLCONV OP* Perl_jmaybe(pTHX_ OP *o)
abb2c242 1403 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1404#define PERL_ARGS_ASSERT_JMAYBE \
1405 assert(o)
f54cb97a 1406
4048f010 1407PERL_CALLCONV I32 Perl_keyword(pTHX_ const char *name, I32 len, bool all_keywords)
abb2c242
JH
1408 __attribute__pure__
1409 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1410#define PERL_ARGS_ASSERT_KEYWORD \
1411 assert(name)
f54cb97a 1412
1d7c1841
GS
1413PERL_CALLCONV void Perl_leave_scope(pTHX_ I32 base);
1414PERL_CALLCONV void Perl_lex_end(pTHX);
5486870f 1415PERL_CALLCONV void Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, bool new_filter);
aec46f14
AL
1416PERL_CALLCONV void Perl_op_null(pTHX_ OP* o)
1417 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1418#define PERL_ARGS_ASSERT_OP_NULL \
1419 assert(o)
aec46f14
AL
1420
1421PERL_CALLCONV void Perl_op_clear(pTHX_ OP* o)
1422 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1423#define PERL_ARGS_ASSERT_OP_CLEAR \
1424 assert(o)
aec46f14 1425
4026c95a
SH
1426PERL_CALLCONV void Perl_op_refcnt_lock(pTHX);
1427PERL_CALLCONV void Perl_op_refcnt_unlock(pTHX);
aec46f14
AL
1428PERL_CALLCONV OP* Perl_linklist(pTHX_ OP* o)
1429 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1430#define PERL_ARGS_ASSERT_LINKLIST \
1431 assert(o)
aec46f14 1432
1d7c1841
GS
1433PERL_CALLCONV OP* Perl_list(pTHX_ OP* o);
1434PERL_CALLCONV OP* Perl_listkids(pTHX_ OP* o);
aec46f14
AL
1435PERL_CALLCONV void Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...)
1436 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1437#define PERL_ARGS_ASSERT_LOAD_MODULE \
1438 assert(name)
aec46f14
AL
1439
1440PERL_CALLCONV void Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args)
1441 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1442#define PERL_ARGS_ASSERT_VLOAD_MODULE \
1443 assert(name)
aec46f14 1444
4048f010 1445PERL_CALLCONV OP* Perl_localize(pTHX_ OP *o, I32 lex)
bfce84ec 1446 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1447#define PERL_ARGS_ASSERT_LOCALIZE \
1448 assert(o)
bfce84ec 1449
aad570aa 1450PERL_CALLCONV I32 Perl_looks_like_number(pTHX_ SV *const sv)
abb2c242
JH
1451 __attribute__warn_unused_result__
1452 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1453#define PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER \
1454 assert(sv)
f54cb97a 1455
a3b680e6 1456PERL_CALLCONV UV Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1457 __attribute__nonnull__(pTHX_1)
1458 __attribute__nonnull__(pTHX_2)
1459 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1460#define PERL_ARGS_ASSERT_GROK_BIN \
1461 assert(start); assert(len_p); assert(flags)
f54cb97a 1462
a3b680e6 1463PERL_CALLCONV UV Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1464 __attribute__nonnull__(pTHX_1)
1465 __attribute__nonnull__(pTHX_2)
1466 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1467#define PERL_ARGS_ASSERT_GROK_HEX \
1468 assert(start); assert(len_p); assert(flags)
f54cb97a
AL
1469
1470PERL_CALLCONV int Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
abb2c242 1471 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1472#define PERL_ARGS_ASSERT_GROK_NUMBER \
1473 assert(pv)
f54cb97a 1474
901017d6 1475PERL_CALLCONV bool Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
bfce84ec
AL
1476 __attribute__warn_unused_result__
1477 __attribute__nonnull__(pTHX_1)
1478 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1479#define PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX \
1480 assert(sp); assert(send)
bfce84ec
AL
1481
1482PERL_CALLCONV UV Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
fb9bf107
NC
1483 __attribute__nonnull__(pTHX_1)
1484 __attribute__nonnull__(pTHX_2)
1485 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1486#define PERL_ARGS_ASSERT_GROK_OCT \
1487 assert(start); assert(len_p); assert(flags)
bfce84ec
AL
1488
1489PERL_CALLCONV int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg)
1490 __attribute__nonnull__(pTHX_1)
1491 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1492#define PERL_ARGS_ASSERT_MAGIC_CLEARENV \
1493 assert(sv); assert(mg)
bfce84ec
AL
1494
1495PERL_CALLCONV int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg)
1496 __attribute__nonnull__(pTHX_1)
1497 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1498#define PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV \
1499 assert(sv); assert(mg)
bfce84ec 1500
b3ca2e83
NC
1501PERL_CALLCONV int Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg)
1502 __attribute__nonnull__(pTHX_1)
1503 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1504#define PERL_ARGS_ASSERT_MAGIC_CLEARHINT \
1505 assert(sv); assert(mg)
b3ca2e83 1506
52b45067
RD
1507PERL_CALLCONV int Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg)
1508 __attribute__nonnull__(pTHX_1)
1509 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1510#define PERL_ARGS_ASSERT_MAGIC_CLEARISA \
1511 assert(sv); assert(mg)
52b45067 1512
bfce84ec
AL
1513PERL_CALLCONV int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg)
1514 __attribute__nonnull__(pTHX_1)
1515 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1516#define PERL_ARGS_ASSERT_MAGIC_CLEARPACK \
1517 assert(sv); assert(mg)
bfce84ec
AL
1518
1519PERL_CALLCONV int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg)
1520 __attribute__nonnull__(pTHX_1)
1521 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1522#define PERL_ARGS_ASSERT_MAGIC_CLEARSIG \
1523 assert(sv); assert(mg)
bfce84ec 1524
1146e912 1525PERL_CALLCONV int Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg)
bfce84ec
AL
1526 __attribute__nonnull__(pTHX_1)
1527 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1528#define PERL_ARGS_ASSERT_MAGIC_EXISTSPACK \
1529 assert(sv); assert(mg)
bfce84ec 1530
bfce84ec
AL
1531PERL_CALLCONV int Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg)
1532 __attribute__nonnull__(pTHX_1)
1533 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1534#define PERL_ARGS_ASSERT_MAGIC_FREEOVRLD \
1535 assert(sv); assert(mg)
bfce84ec
AL
1536
1537PERL_CALLCONV int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg)
1538 __attribute__nonnull__(pTHX_1)
1539 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1540#define PERL_ARGS_ASSERT_MAGIC_GET \
1541 assert(sv); assert(mg)
901017d6 1542
8772537c
AL
1543PERL_CALLCONV int Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg)
1544 __attribute__nonnull__(pTHX_1)
1545 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1546#define PERL_ARGS_ASSERT_MAGIC_GETARYLEN \
1547 assert(sv); assert(mg)
8772537c 1548
bfce84ec
AL
1549PERL_CALLCONV int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg)
1550 __attribute__nonnull__(pTHX_1)
1551 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1552#define PERL_ARGS_ASSERT_MAGIC_GETDEFELEM \
1553 assert(sv); assert(mg)
bfce84ec 1554
bfce84ec
AL
1555PERL_CALLCONV int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg)
1556 __attribute__nonnull__(pTHX_1)
1557 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1558#define PERL_ARGS_ASSERT_MAGIC_GETNKEYS \
1559 assert(sv); assert(mg)
bfce84ec
AL
1560
1561PERL_CALLCONV int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg)
1562 __attribute__nonnull__(pTHX_1)
1563 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1564#define PERL_ARGS_ASSERT_MAGIC_GETPACK \
1565 assert(sv); assert(mg)
bfce84ec
AL
1566
1567PERL_CALLCONV int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg)
1568 __attribute__nonnull__(pTHX_1)
1569 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1570#define PERL_ARGS_ASSERT_MAGIC_GETPOS \
1571 assert(sv); assert(mg)
bfce84ec
AL
1572
1573PERL_CALLCONV int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg)
1574 __attribute__nonnull__(pTHX_1)
1575 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1576#define PERL_ARGS_ASSERT_MAGIC_GETSIG \
1577 assert(sv); assert(mg)
bfce84ec
AL
1578
1579PERL_CALLCONV int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg)
1580 __attribute__nonnull__(pTHX_1)
1581 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1582#define PERL_ARGS_ASSERT_MAGIC_GETSUBSTR \
1583 assert(sv); assert(mg)
bfce84ec
AL
1584
1585PERL_CALLCONV int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg)
1586 __attribute__nonnull__(pTHX_1)
1587 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1588#define PERL_ARGS_ASSERT_MAGIC_GETTAINT \
1589 assert(sv); assert(mg)
bfce84ec
AL
1590
1591PERL_CALLCONV int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg)
1592 __attribute__nonnull__(pTHX_1)
1593 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1594#define PERL_ARGS_ASSERT_MAGIC_GETUVAR \
1595 assert(sv); assert(mg)
bfce84ec
AL
1596
1597PERL_CALLCONV int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg)
1598 __attribute__nonnull__(pTHX_1)
1599 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1600#define PERL_ARGS_ASSERT_MAGIC_GETVEC \
1601 assert(sv); assert(mg)
bfce84ec
AL
1602
1603PERL_CALLCONV U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg)
1604 __attribute__nonnull__(pTHX_1)
1605 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1606#define PERL_ARGS_ASSERT_MAGIC_LEN \
1607 assert(sv); assert(mg)
bfce84ec 1608
4048f010 1609PERL_CALLCONV int Perl_magic_nextpack(pTHX_ SV *sv, MAGIC *mg, SV *key)
bfce84ec
AL
1610 __attribute__nonnull__(pTHX_1)
1611 __attribute__nonnull__(pTHX_2)
1612 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1613#define PERL_ARGS_ASSERT_MAGIC_NEXTPACK \
1614 assert(sv); assert(mg); assert(key)
bfce84ec
AL
1615
1616PERL_CALLCONV U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg)
1617 __attribute__nonnull__(pTHX_1)
1618 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1619#define PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT \
1620 assert(sv); assert(mg)
bfce84ec
AL
1621
1622PERL_CALLCONV int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg)
1623 __attribute__nonnull__(pTHX_1)
1624 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1625#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET \
1626 assert(sv); assert(mg)
bfce84ec 1627
f54cb97a 1628PERL_CALLCONV int Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1629 __attribute__noreturn__
1630 __attribute__nonnull__(pTHX_1)
1631 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1632#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET \
1633 assert(sv); assert(mg)
bfce84ec
AL
1634
1635PERL_CALLCONV int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg)
1636 __attribute__nonnull__(pTHX_1)
1637 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1638#define PERL_ARGS_ASSERT_MAGIC_SET \
1639 assert(sv); assert(mg)
bfce84ec
AL
1640
1641PERL_CALLCONV int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg)
1642 __attribute__nonnull__(pTHX_1)
1643 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1644#define PERL_ARGS_ASSERT_MAGIC_SETAMAGIC \
1645 assert(sv); assert(mg)
bfce84ec
AL
1646
1647PERL_CALLCONV int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg)
1648 __attribute__nonnull__(pTHX_1)
1649 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1650#define PERL_ARGS_ASSERT_MAGIC_SETARYLEN \
1651 assert(sv); assert(mg)
bfce84ec
AL
1652
1653PERL_CALLCONV int Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg)
1654 __attribute__nonnull__(pTHX_1)
1655 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1656#define PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P \
1657 assert(sv); assert(mg)
bfce84ec 1658
488344d2 1659PERL_CALLCONV int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1660 __attribute__nonnull__(pTHX_1)
1661 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1662#define PERL_ARGS_ASSERT_MAGIC_SETDBLINE \
1663 assert(sv); assert(mg)
bfce84ec 1664
488344d2 1665PERL_CALLCONV int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1666 __attribute__nonnull__(pTHX_1)
1667 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1668#define PERL_ARGS_ASSERT_MAGIC_SETDEFELEM \
1669 assert(sv); assert(mg)
bfce84ec 1670
488344d2 1671PERL_CALLCONV int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1672 __attribute__nonnull__(pTHX_1)
1673 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1674#define PERL_ARGS_ASSERT_MAGIC_SETENV \
1675 assert(sv); assert(mg)
bfce84ec 1676
b3ca2e83
NC
1677PERL_CALLCONV int Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg)
1678 __attribute__nonnull__(pTHX_1)
1679 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1680#define PERL_ARGS_ASSERT_MAGIC_SETHINT \
1681 assert(sv); assert(mg)
b3ca2e83 1682
bfce84ec
AL
1683PERL_CALLCONV int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg)
1684 __attribute__nonnull__(pTHX_1)
1685 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1686#define PERL_ARGS_ASSERT_MAGIC_SETISA \
1687 assert(sv); assert(mg)
bfce84ec 1688
bfce84ec
AL
1689PERL_CALLCONV int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg)
1690 __attribute__nonnull__(pTHX_1)
1691 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1692#define PERL_ARGS_ASSERT_MAGIC_SETMGLOB \
1693 assert(sv); assert(mg)
bfce84ec
AL
1694
1695PERL_CALLCONV int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg)
1696 __attribute__nonnull__(pTHX_1)
1697 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1698#define PERL_ARGS_ASSERT_MAGIC_SETNKEYS \
1699 assert(sv); assert(mg)
bfce84ec
AL
1700
1701PERL_CALLCONV int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg)
1702 __attribute__nonnull__(pTHX_1)
1703 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1704#define PERL_ARGS_ASSERT_MAGIC_SETPACK \
1705 assert(sv); assert(mg)
bfce84ec
AL
1706
1707PERL_CALLCONV int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg)
1708 __attribute__nonnull__(pTHX_1)
1709 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1710#define PERL_ARGS_ASSERT_MAGIC_SETPOS \
1711 assert(sv); assert(mg)
bfce84ec
AL
1712
1713PERL_CALLCONV int Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg)
1714 __attribute__nonnull__(pTHX_1)
1715 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1716#define PERL_ARGS_ASSERT_MAGIC_SETREGEXP \
1717 assert(sv); assert(mg)
bfce84ec
AL
1718
1719PERL_CALLCONV int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg)
1720 __attribute__nonnull__(pTHX_1)
1721 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1722#define PERL_ARGS_ASSERT_MAGIC_SETSIG \
1723 assert(sv); assert(mg)
bfce84ec
AL
1724
1725PERL_CALLCONV int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg)
1726 __attribute__nonnull__(pTHX_1)
1727 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1728#define PERL_ARGS_ASSERT_MAGIC_SETSUBSTR \
1729 assert(sv); assert(mg)
bfce84ec
AL
1730
1731PERL_CALLCONV int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg)
1732 __attribute__nonnull__(pTHX_1)
1733 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1734#define PERL_ARGS_ASSERT_MAGIC_SETTAINT \
1735 assert(sv); assert(mg)
bfce84ec
AL
1736
1737PERL_CALLCONV int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg)
1738 __attribute__nonnull__(pTHX_1)
1739 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1740#define PERL_ARGS_ASSERT_MAGIC_SETUVAR \
1741 assert(sv); assert(mg)
bfce84ec
AL
1742
1743PERL_CALLCONV int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg)
1744 __attribute__nonnull__(pTHX_1)
1745 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1746#define PERL_ARGS_ASSERT_MAGIC_SETVEC \
1747 assert(sv); assert(mg)
bfce84ec
AL
1748
1749PERL_CALLCONV int Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg)
1750 __attribute__nonnull__(pTHX_1)
1751 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1752#define PERL_ARGS_ASSERT_MAGIC_SETUTF8 \
1753 assert(sv); assert(mg)
bfce84ec
AL
1754
1755PERL_CALLCONV int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg)
1756 __attribute__nonnull__(pTHX_1)
1757 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1758#define PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV \
1759 assert(sv); assert(mg)
bfce84ec
AL
1760
1761PERL_CALLCONV U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg)
1762 __attribute__nonnull__(pTHX_1)
1763 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1764#define PERL_ARGS_ASSERT_MAGIC_SIZEPACK \
1765 assert(sv); assert(mg)
bfce84ec
AL
1766
1767PERL_CALLCONV int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg)
1768 __attribute__nonnull__(pTHX_1)
1769 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1770#define PERL_ARGS_ASSERT_MAGIC_WIPEPACK \
1771 assert(sv); assert(mg)
bfce84ec
AL
1772
1773PERL_CALLCONV void Perl_magicname(pTHX_ const char* sym, const char* name, I32 namlen)
1774 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1775#define PERL_ARGS_ASSERT_MAGICNAME \
1776 assert(sym)
f54cb97a 1777
1d7c1841 1778PERL_CALLCONV void Perl_markstack_grow(pTHX);
864dbfa3 1779#if defined(USE_LOCALE_COLLATE)
aa924a5a
SH
1780PERL_CALLCONV int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg)
1781 __attribute__nonnull__(pTHX_1)
1782 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1783#define PERL_ARGS_ASSERT_MAGIC_SETCOLLXFRM \
1784 assert(sv); assert(mg)
aa924a5a
SH
1785
1786PERL_CALLCONV char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen)
1787 __attribute__nonnull__(pTHX_1)
1788 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1789#define PERL_ARGS_ASSERT_MEM_COLLXFRM \
1790 assert(s); assert(xlen)
aa924a5a 1791
0cb96387 1792#endif
894356b3 1793PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...)
aec46f14
AL
1794 __attribute__format__(__printf__,pTHX_1,pTHX_2)
1795 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1796#define PERL_ARGS_ASSERT_MESS \
1797 assert(pat)
aec46f14
AL
1798
1799PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args)
1800 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1801#define PERL_ARGS_ASSERT_VMESS \
1802 assert(pat)
f54cb97a 1803
aa924a5a
SH
1804PERL_CALLCONV void Perl_qerror(pTHX_ SV* err)
1805 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1806#define PERL_ARGS_ASSERT_QERROR \
1807 assert(err)
aa924a5a
SH
1808
1809PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp)
52657f30 1810 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1811#define PERL_ARGS_ASSERT_SORTSV \
1812 assert(cmp)
aa924a5a 1813
7b9ef140 1814PERL_CALLCONV void Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags)
52657f30 1815 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1816#define PERL_ARGS_ASSERT_SORTSV_FLAGS \
1817 assert(cmp)
7b9ef140 1818
9a957fbc
AL
1819PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv)
1820 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1821#define PERL_ARGS_ASSERT_MG_CLEAR \
1822 assert(sv)
9a957fbc 1823
4048f010 1824PERL_CALLCONV int Perl_mg_copy(pTHX_ SV *sv, SV *nsv, const char *key, I32 klen)
9a957fbc
AL
1825 __attribute__nonnull__(pTHX_1)
1826 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1827#define PERL_ARGS_ASSERT_MG_COPY \
1828 assert(sv); assert(nsv)
9a957fbc
AL
1829
1830PERL_CALLCONV void Perl_mg_localize(pTHX_ SV* sv, SV* nsv)
1831 __attribute__nonnull__(pTHX_1)
1832 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1833#define PERL_ARGS_ASSERT_MG_LOCALIZE \
1834 assert(sv); assert(nsv)
9a957fbc 1835
255164ba
DM
1836PERL_CALLCONV MAGIC* Perl_mg_find(pTHX_ const SV* sv, int type)
1837 __attribute__warn_unused_result__;
1838
9a957fbc
AL
1839PERL_CALLCONV int Perl_mg_free(pTHX_ SV* sv)
1840 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1841#define PERL_ARGS_ASSERT_MG_FREE \
1842 assert(sv)
9a957fbc
AL
1843
1844PERL_CALLCONV int Perl_mg_get(pTHX_ SV* sv)
1845 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1846#define PERL_ARGS_ASSERT_MG_GET \
1847 assert(sv)
9a957fbc
AL
1848
1849PERL_CALLCONV U32 Perl_mg_length(pTHX_ SV* sv)
1850 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1851#define PERL_ARGS_ASSERT_MG_LENGTH \
1852 assert(sv)
9a957fbc
AL
1853
1854PERL_CALLCONV void Perl_mg_magical(pTHX_ SV* sv)
1855 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1856#define PERL_ARGS_ASSERT_MG_MAGICAL \
1857 assert(sv)
9a957fbc
AL
1858
1859PERL_CALLCONV int Perl_mg_set(pTHX_ SV* sv)
1860 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1861#define PERL_ARGS_ASSERT_MG_SET \
1862 assert(sv)
9a957fbc
AL
1863
1864PERL_CALLCONV I32 Perl_mg_size(pTHX_ SV* sv)
1865 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1866#define PERL_ARGS_ASSERT_MG_SIZE \
1867 assert(sv)
9a957fbc 1868
9f6cc744 1869PERL_CALLCONV void Perl_mini_mktime(pTHX_ struct tm *ptm)
9a957fbc 1870 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1871#define PERL_ARGS_ASSERT_MINI_MKTIME \
1872 assert(ptm)
9a957fbc 1873
1d7c1841 1874PERL_CALLCONV OP* Perl_mod(pTHX_ OP* o, I32 type);
16fe6d59 1875PERL_CALLCONV int Perl_mode_from_discipline(pTHX_ SV* discp);
c7030b81 1876PERL_CALLCONV const char* Perl_moreswitches(pTHX_ const char* s)
bfce84ec 1877 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1878#define PERL_ARGS_ASSERT_MORESWITCHES \
1879 assert(s)
bfce84ec 1880
4373e329 1881PERL_CALLCONV OP* Perl_my(pTHX_ OP* o)
abb2c242 1882 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1883#define PERL_ARGS_ASSERT_MY \
1884 assert(o)
f54cb97a 1885
4373e329 1886PERL_CALLCONV NV Perl_my_atof(pTHX_ const char *s)
abb2c242 1887 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1888#define PERL_ARGS_ASSERT_MY_ATOF \
1889 assert(s)
f54cb97a 1890
2253333f 1891#if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
4373e329 1892PERL_CALLCONV char* Perl_my_bcopy(const char* from, char* to, I32 len)
abb2c242
JH
1893 __attribute__nonnull__(1)
1894 __attribute__nonnull__(2);
7918f24d
NC
1895#define PERL_ARGS_ASSERT_MY_BCOPY \
1896 assert(from); assert(to)
f54cb97a 1897
5f05dabc 1898#endif
a0d0e21e 1899#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
4373e329 1900PERL_CALLCONV char* Perl_my_bzero(char* loc, I32 len)
abb2c242 1901 __attribute__nonnull__(1);
7918f24d
NC
1902#define PERL_ARGS_ASSERT_MY_BZERO \
1903 assert(loc)
f54cb97a 1904
864dbfa3 1905#endif
f54cb97a 1906PERL_CALLCONV void Perl_my_exit(pTHX_ U32 status)
abb2c242 1907 __attribute__noreturn__;
f54cb97a
AL
1908
1909PERL_CALLCONV void Perl_my_failure_exit(pTHX)
abb2c242 1910 __attribute__noreturn__;
f54cb97a 1911
1d7c1841 1912PERL_CALLCONV I32 Perl_my_fflush_all(pTHX);
52e18b1f
GS
1913PERL_CALLCONV Pid_t Perl_my_fork(void);
1914PERL_CALLCONV void Perl_atfork_lock(void);
1915PERL_CALLCONV void Perl_atfork_unlock(void);
1d7c1841 1916PERL_CALLCONV I32 Perl_my_lstat(pTHX);
5f05dabc 1917#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
4373e329 1918PERL_CALLCONV I32 Perl_my_memcmp(const char* s1, const char* s2, I32 len)
abb2c242
JH
1919 __attribute__pure__
1920 __attribute__nonnull__(1)
1921 __attribute__nonnull__(2);
7918f24d
NC
1922#define PERL_ARGS_ASSERT_MY_MEMCMP \
1923 assert(s1); assert(s2)
f54cb97a 1924
a0d0e21e 1925#endif
fc36a67e 1926#if !defined(HAS_MEMSET)
4373e329 1927PERL_CALLCONV void* Perl_my_memset(char* loc, I32 ch, I32 len)
abb2c242 1928 __attribute__nonnull__(1);
7918f24d
NC
1929#define PERL_ARGS_ASSERT_MY_MEMSET \
1930 assert(loc)
f54cb97a 1931
864dbfa3 1932#endif
1d7c1841 1933PERL_CALLCONV I32 Perl_my_pclose(pTHX_ PerlIO* ptr);
bfce84ec
AL
1934PERL_CALLCONV PerlIO* Perl_my_popen(pTHX_ const char* cmd, const char* mode)
1935 __attribute__nonnull__(pTHX_1)
1936 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1937#define PERL_ARGS_ASSERT_MY_POPEN \
1938 assert(cmd); assert(mode)
bfce84ec 1939
c9289b7b 1940PERL_CALLCONV PerlIO* Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args)
bfce84ec
AL
1941 __attribute__nonnull__(pTHX_1)
1942 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1943#define PERL_ARGS_ASSERT_MY_POPEN_LIST \
1944 assert(mode); assert(args)
bfce84ec 1945
e1ec3a88 1946PERL_CALLCONV void Perl_my_setenv(pTHX_ const char* nam, const char* val);
1d7c1841 1947PERL_CALLCONV I32 Perl_my_stat(pTHX);
bfce84ec
AL
1948PERL_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)
1949 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1950#define PERL_ARGS_ASSERT_MY_STRFTIME \
1951 assert(fmt)
bfce84ec 1952
864dbfa3 1953#if defined(MYSWAP)
4373e329 1954PERL_CALLCONV short Perl_my_swap(pTHX_ short s)
abb2c242
JH
1955 __attribute__malloc__
1956 __attribute__warn_unused_result__
1957 __attribute__pure__;
f54cb97a 1958
4373e329 1959PERL_CALLCONV long Perl_my_htonl(pTHX_ long l)
abb2c242
JH
1960 __attribute__malloc__
1961 __attribute__warn_unused_result__
1962 __attribute__pure__;
f54cb97a 1963
4373e329 1964PERL_CALLCONV long Perl_my_ntohl(pTHX_ long l)
abb2c242
JH
1965 __attribute__malloc__
1966 __attribute__warn_unused_result__
1967 __attribute__pure__;
f54cb97a 1968
0cb96387 1969#endif
1d7c1841 1970PERL_CALLCONV void Perl_my_unexec(pTHX);
f54cb97a 1971PERL_CALLCONV OP* Perl_newANONLIST(pTHX_ OP* o)
abb2c242
JH
1972 __attribute__malloc__
1973 __attribute__warn_unused_result__;
f54cb97a
AL
1974
1975PERL_CALLCONV OP* Perl_newANONHASH(pTHX_ OP* o)
abb2c242
JH
1976 __attribute__malloc__
1977 __attribute__warn_unused_result__;
f54cb97a 1978
1d7c1841 1979PERL_CALLCONV OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
f54cb97a 1980PERL_CALLCONV OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
abb2c242
JH
1981 __attribute__malloc__
1982 __attribute__warn_unused_result__;
f54cb97a 1983
aec46f14 1984PERL_CALLCONV OP* Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
abb2c242 1985 __attribute__malloc__
aec46f14
AL
1986 __attribute__warn_unused_result__
1987 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1988#define PERL_ARGS_ASSERT_NEWCONDOP \
1989 assert(first)
aec46f14 1990
9a957fbc 1991PERL_CALLCONV CV* Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
eb8433b7
NC
1992#ifdef PERL_MAD
1993PERL_CALLCONV OP* Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
1994#else
1d7c1841 1995PERL_CALLCONV void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
eb8433b7 1996#endif
aa924a5a 1997PERL_CALLCONV OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sv, OP* expr, OP* block, OP* cont)
abb2c242 1998 __attribute__malloc__
aa924a5a
SH
1999 __attribute__warn_unused_result__
2000 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2001#define PERL_ARGS_ASSERT_NEWFOROP \
2002 assert(expr)
f54cb97a 2003
0d863452
RH
2004PERL_CALLCONV OP* Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
2005 __attribute__malloc__
2006 __attribute__warn_unused_result__
2007 __attribute__nonnull__(pTHX_1)
2008 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2009#define PERL_ARGS_ASSERT_NEWGIVENOP \
2010 assert(cond); assert(block)
0d863452 2011
4048f010 2012PERL_CALLCONV OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP *first, OP *other)
abb2c242 2013 __attribute__malloc__
aa924a5a
SH
2014 __attribute__warn_unused_result__
2015 __attribute__nonnull__(pTHX_3)
2016 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2017#define PERL_ARGS_ASSERT_NEWLOGOP \
2018 assert(first); assert(other)
f54cb97a
AL
2019
2020PERL_CALLCONV OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label)
abb2c242 2021 __attribute__malloc__
aa924a5a
SH
2022 __attribute__warn_unused_result__
2023 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2024#define PERL_ARGS_ASSERT_NEWLOOPEX \
2025 assert(label)
f54cb97a
AL
2026
2027PERL_CALLCONV OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
abb2c242
JH
2028 __attribute__malloc__
2029 __attribute__warn_unused_result__;
f54cb97a 2030
4373e329 2031PERL_CALLCONV OP* Perl_newNULLLIST(pTHX)
abb2c242
JH
2032 __attribute__malloc__
2033 __attribute__warn_unused_result__;
f54cb97a
AL
2034
2035PERL_CALLCONV OP* Perl_newOP(pTHX_ I32 optype, I32 flags)
abb2c242
JH
2036 __attribute__malloc__
2037 __attribute__warn_unused_result__;
f54cb97a
AL
2038
2039PERL_CALLCONV void Perl_newPROG(pTHX_ OP* o)
abb2c242 2040 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2041#define PERL_ARGS_ASSERT_NEWPROG \
2042 assert(o)
f54cb97a
AL
2043
2044PERL_CALLCONV OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
abb2c242 2045 __attribute__malloc__
aa924a5a
SH
2046 __attribute__warn_unused_result__
2047 __attribute__nonnull__(pTHX_2)
2048 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2049#define PERL_ARGS_ASSERT_NEWRANGE \
2050 assert(left); assert(right)
f54cb97a
AL
2051
2052PERL_CALLCONV OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
abb2c242
JH
2053 __attribute__malloc__
2054 __attribute__warn_unused_result__;
f54cb97a
AL
2055
2056PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
abb2c242
JH
2057 __attribute__malloc__
2058 __attribute__warn_unused_result__;
f54cb97a 2059
1d7c1841 2060PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
77004dee
NC
2061PERL_CALLCONV CV * Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags)
2062 __attribute__nonnull__(pTHX_2)
2063 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2064#define PERL_ARGS_ASSERT_NEWXS_FLAGS \
2065 assert(subaddr); assert(filename)
77004dee 2066
4048f010 2067PERL_CALLCONV CV* Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename)
9a957fbc 2068 __attribute__nonnull__(pTHX_2)
abb2c242 2069 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2070#define PERL_ARGS_ASSERT_NEWXS \
2071 assert(subaddr); assert(filename)
f54cb97a 2072
ac572bf4 2073/* PERL_CALLCONV AV* Perl_newAV(pTHX)
ac572bf4 2074 __attribute__warn_unused_result__; */
f54cb97a 2075
4373e329 2076PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o)
abb2c242
JH
2077 __attribute__malloc__
2078 __attribute__warn_unused_result__
2079 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2080#define PERL_ARGS_ASSERT_NEWAVREF \
2081 assert(o)
f54cb97a
AL
2082
2083PERL_CALLCONV OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2084 __attribute__malloc__
2085 __attribute__warn_unused_result__;
f54cb97a
AL
2086
2087PERL_CALLCONV OP* Perl_newCVREF(pTHX_ I32 flags, OP* o)
abb2c242
JH
2088 __attribute__malloc__
2089 __attribute__warn_unused_result__;
f54cb97a
AL
2090
2091PERL_CALLCONV OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
abb2c242 2092 __attribute__malloc__
2d03de9c
AL
2093 __attribute__warn_unused_result__
2094 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2095#define PERL_ARGS_ASSERT_NEWGVOP \
2096 assert(gv)
f54cb97a
AL
2097
2098PERL_CALLCONV GV* Perl_newGVgen(pTHX_ const char* pack)
abb2c242 2099 __attribute__malloc__
aa924a5a
SH
2100 __attribute__warn_unused_result__
2101 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2102#define PERL_ARGS_ASSERT_NEWGVGEN \
2103 assert(pack)
f54cb97a
AL
2104
2105PERL_CALLCONV OP* Perl_newGVREF(pTHX_ I32 type, OP* o)
abb2c242
JH
2106 __attribute__malloc__
2107 __attribute__warn_unused_result__;
f54cb97a 2108
4373e329 2109PERL_CALLCONV OP* Perl_newHVREF(pTHX_ OP* o)
abb2c242
JH
2110 __attribute__malloc__
2111 __attribute__warn_unused_result__
2112 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2113#define PERL_ARGS_ASSERT_NEWHVREF \
2114 assert(o)
f54cb97a 2115
78ac7dd9 2116/* PERL_CALLCONV HV* Perl_newHV(pTHX)
78ac7dd9 2117 __attribute__warn_unused_result__; */
f54cb97a 2118
4048f010 2119PERL_CALLCONV HV* Perl_newHVhv(pTHX_ HV *hv)
abb2c242
JH
2120 __attribute__malloc__
2121 __attribute__warn_unused_result__;
f54cb97a
AL
2122
2123PERL_CALLCONV IO* Perl_newIO(pTHX)
abb2c242
JH
2124 __attribute__malloc__
2125 __attribute__warn_unused_result__;
f54cb97a
AL
2126
2127PERL_CALLCONV OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2128 __attribute__malloc__
2129 __attribute__warn_unused_result__;
f54cb97a 2130
392d04bb 2131#ifdef USE_ITHREADS
f54cb97a 2132PERL_CALLCONV OP* Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242 2133 __attribute__malloc__
58182927
NC
2134 __attribute__warn_unused_result__
2135 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2136#define PERL_ARGS_ASSERT_NEWPADOP \
2137 assert(sv)
f54cb97a 2138
392d04bb 2139#endif
f54cb97a 2140PERL_CALLCONV OP* Perl_newPMOP(pTHX_ I32 type, I32 flags)
abb2c242
JH
2141 __attribute__malloc__
2142 __attribute__warn_unused_result__;
f54cb97a
AL
2143
2144PERL_CALLCONV OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
abb2c242
JH
2145 __attribute__malloc__
2146 __attribute__warn_unused_result__;
f54cb97a 2147
7f466ec7 2148PERL_CALLCONV SV* Perl_newRV(pTHX_ SV* sv)
abb2c242 2149 __attribute__malloc__
66a1b24b
AL
2150 __attribute__warn_unused_result__
2151 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2152#define PERL_ARGS_ASSERT_NEWRV \
2153 assert(sv)
f54cb97a 2154
7f466ec7 2155PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV* sv)
abb2c242
JH
2156 __attribute__malloc__
2157 __attribute__warn_unused_result__
2158 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2159#define PERL_ARGS_ASSERT_NEWRV_NOINC \
2160 assert(sv)
f54cb97a
AL
2161
2162PERL_CALLCONV SV* Perl_newSV(pTHX_ STRLEN len)
abb2c242
JH
2163 __attribute__malloc__
2164 __attribute__warn_unused_result__;
f54cb97a 2165
4373e329 2166PERL_CALLCONV OP* Perl_newSVREF(pTHX_ OP* o)
abb2c242
JH
2167 __attribute__malloc__
2168 __attribute__warn_unused_result__
2169 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2170#define PERL_ARGS_ASSERT_NEWSVREF \
2171 assert(o)
f54cb97a 2172
4373e329 2173PERL_CALLCONV OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242
JH
2174 __attribute__malloc__
2175 __attribute__warn_unused_result__
2176 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2177#define PERL_ARGS_ASSERT_NEWSVOP \
2178 assert(sv)
f54cb97a
AL
2179
2180PERL_CALLCONV SV* Perl_newSViv(pTHX_ IV i)
abb2c242
JH
2181 __attribute__malloc__
2182 __attribute__warn_unused_result__;
f54cb97a
AL
2183
2184PERL_CALLCONV SV* Perl_newSVuv(pTHX_ UV u)
abb2c242
JH
2185 __attribute__malloc__
2186 __attribute__warn_unused_result__;
f54cb97a
AL
2187
2188PERL_CALLCONV SV* Perl_newSVnv(pTHX_ NV n)
abb2c242
JH
2189 __attribute__malloc__
2190 __attribute__warn_unused_result__;
f54cb97a
AL
2191
2192PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char* s, STRLEN len)
abb2c242
JH
2193 __attribute__malloc__
2194 __attribute__warn_unused_result__;
f54cb97a
AL
2195
2196PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char* s, STRLEN len)
abb2c242
JH
2197 __attribute__malloc__
2198 __attribute__warn_unused_result__;
f54cb97a 2199
740cce10
NC
2200PERL_CALLCONV SV* Perl_newSVpvn_flags(pTHX_ const char* s, STRLEN len, U32 flags)
2201 __attribute__malloc__
2202 __attribute__warn_unused_result__;
2203
c1b02ed8
NC
2204PERL_CALLCONV SV* Perl_newSVhek(pTHX_ const HEK *hek)
2205 __attribute__malloc__
2206 __attribute__warn_unused_result__;
2207
f54cb97a 2208PERL_CALLCONV SV* Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
abb2c242
JH
2209 __attribute__malloc__
2210 __attribute__warn_unused_result__;
f54cb97a 2211
894356b3 2212PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char* pat, ...)
abb2c242
JH
2213 __attribute__malloc__
2214 __attribute__warn_unused_result__
aec46f14
AL
2215 __attribute__format__(__printf__,pTHX_1,pTHX_2)
2216 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2217#define PERL_ARGS_ASSERT_NEWSVPVF \
2218 assert(pat)
aec46f14
AL
2219
2220PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args)
2221 __attribute__malloc__
2222 __attribute__warn_unused_result__
2223 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2224#define PERL_ARGS_ASSERT_VNEWSVPVF \
2225 assert(pat)
f54cb97a 2226
f54cb97a 2227PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV* rv, const char* classname)
1b6737cc 2228 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2229#define PERL_ARGS_ASSERT_NEWSVRV \
2230 assert(rv)
f54cb97a
AL
2231
2232PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV* old)
abb2c242
JH
2233 __attribute__malloc__
2234 __attribute__warn_unused_result__;
f54cb97a 2235
fe9845cc 2236PERL_CALLCONV SV* Perl_newSV_type(pTHX_ const svtype type)
b9f83d2f
NC
2237 __attribute__malloc__
2238 __attribute__warn_unused_result__;
2239
f54cb97a 2240PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
abb2c242
JH
2241 __attribute__malloc__
2242 __attribute__warn_unused_result__;
f54cb97a 2243
0d863452
RH
2244PERL_CALLCONV OP* Perl_newWHENOP(pTHX_ OP* cond, OP* block)
2245 __attribute__malloc__
2246 __attribute__warn_unused_result__
2247 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2248#define PERL_ARGS_ASSERT_NEWWHENOP \
2249 assert(block)
0d863452 2250
f54cb97a 2251PERL_CALLCONV OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my)
abb2c242
JH
2252 __attribute__malloc__
2253 __attribute__warn_unused_result__;
f54cb97a
AL
2254
2255PERL_CALLCONV PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
abb2c242
JH
2256 __attribute__malloc__
2257 __attribute__warn_unused_result__;
f54cb97a 2258
4048f010 2259PERL_CALLCONV char* Perl_scan_vstring(pTHX_ const char *s, const char *const e, SV *sv)
abb2c242 2260 __attribute__nonnull__(pTHX_1)
65b06e02
DM
2261 __attribute__nonnull__(pTHX_2)
2262 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2263#define PERL_ARGS_ASSERT_SCAN_VSTRING \
2264 assert(s); assert(e); assert(sv)
f54cb97a 2265
9f6cc744 2266PERL_CALLCONV const char* Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv)
abb2c242
JH
2267 __attribute__nonnull__(pTHX_1)
2268 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2269#define PERL_ARGS_ASSERT_SCAN_VERSION \
2270 assert(s); assert(rv)
f54cb97a 2271
2d03de9c
AL
2272PERL_CALLCONV SV* Perl_new_version(pTHX_ SV *ver)
2273 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2274#define PERL_ARGS_ASSERT_NEW_VERSION \
2275 assert(ver)
2d03de9c 2276
ac0e6a2f 2277PERL_CALLCONV SV* Perl_upg_version(pTHX_ SV *ver, bool qv)
2d03de9c 2278 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2279#define PERL_ARGS_ASSERT_UPG_VERSION \
2280 assert(ver)
2d03de9c 2281
e0218a61
JP
2282PERL_CALLCONV bool Perl_vverify(pTHX_ SV *vs)
2283 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2284#define PERL_ARGS_ASSERT_VVERIFY \
2285 assert(vs)
e0218a61 2286
2d03de9c
AL
2287PERL_CALLCONV SV* Perl_vnumify(pTHX_ SV *vs)
2288 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2289#define PERL_ARGS_ASSERT_VNUMIFY \
2290 assert(vs)
2d03de9c
AL
2291
2292PERL_CALLCONV SV* Perl_vnormal(pTHX_ SV *vs)
2293 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2294#define PERL_ARGS_ASSERT_VNORMAL \
2295 assert(vs)
2d03de9c
AL
2296
2297PERL_CALLCONV SV* Perl_vstringify(pTHX_ SV *vs)
2298 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2299#define PERL_ARGS_ASSERT_VSTRINGIFY \
2300 assert(vs)
2d03de9c 2301
9f6cc744 2302PERL_CALLCONV int Perl_vcmp(pTHX_ SV *lhv, SV *rhv)
abb2c242
JH
2303 __attribute__nonnull__(pTHX_1)
2304 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2305#define PERL_ARGS_ASSERT_VCMP \
2306 assert(lhv); assert(rhv)
f54cb97a 2307
2d03de9c
AL
2308PERL_CALLCONV PerlIO* Perl_nextargv(pTHX_ GV* gv)
2309 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2310#define PERL_ARGS_ASSERT_NEXTARGV \
2311 assert(gv)
2d03de9c 2312
4373e329 2313PERL_CALLCONV char* Perl_ninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
2d03de9c
AL
2314 __attribute__pure__
2315 __attribute__nonnull__(pTHX_1)
2316 __attribute__nonnull__(pTHX_2)
2317 __attribute__nonnull__(pTHX_3)
2318 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2319#define PERL_ARGS_ASSERT_NINSTR \
2320 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a
AL
2321
2322PERL_CALLCONV OP* Perl_oopsCV(pTHX_ OP* o)
2d03de9c
AL
2323 __attribute__noreturn__
2324 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2325#define PERL_ARGS_ASSERT_OOPSCV \
2326 assert(o)
2d03de9c 2327
6472dca1 2328PERL_CALLCONV void Perl_op_free(pTHX_ OP* arg);
eb8433b7
NC
2329#ifdef PERL_MAD
2330PERL_CALLCONV OP* Perl_package(pTHX_ OP* o)
2331 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2332#define PERL_ARGS_ASSERT_PACKAGE \
2333 assert(o)
eb8433b7
NC
2334
2335#else
2d03de9c
AL
2336PERL_CALLCONV void Perl_package(pTHX_ OP* o)
2337 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2338#define PERL_ARGS_ASSERT_PACKAGE \
2339 assert(o)
f54cb97a 2340
eb8433b7 2341#endif
1d7c1841 2342PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
262cbcdb 2343PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name)
abb2c242 2344 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2345#define PERL_ARGS_ASSERT_ALLOCMY \
2346 assert(name)
f54cb97a 2347
4373e329 2348PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name)
255164ba 2349 __attribute__warn_unused_result__
abb2c242 2350 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2351#define PERL_ARGS_ASSERT_PAD_FINDMY \
2352 assert(name)
f54cb97a 2353
e1f795dc 2354PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX);
4373e329 2355PERL_CALLCONV OP* Perl_oopsAV(pTHX_ OP* o)
1df70142 2356 __attribute__warn_unused_result__
abb2c242 2357 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2358#define PERL_ARGS_ASSERT_OOPSAV \
2359 assert(o)
f54cb97a 2360
4373e329 2361PERL_CALLCONV OP* Perl_oopsHV(pTHX_ OP* o)
1df70142 2362 __attribute__warn_unused_result__
abb2c242 2363 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2364#define PERL_ARGS_ASSERT_OOPSHV \
2365 assert(o)
f54cb97a 2366
dd2155a4 2367PERL_CALLCONV void Perl_pad_leavemy(pTHX);
1d7c1841
GS
2368PERL_CALLCONV SV* Perl_pad_sv(pTHX_ PADOFFSET po);
2369PERL_CALLCONV void Perl_pad_free(pTHX_ PADOFFSET po);
2370PERL_CALLCONV void Perl_pad_reset(pTHX);
dd2155a4 2371PERL_CALLCONV void Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
1d7c1841 2372PERL_CALLCONV void Perl_peep(pTHX_ OP* o);
4048f010 2373PERL_CALLCONV PerlIO* Perl_start_glob(pTHX_ SV *tmpglob, IO *io)
2d03de9c
AL
2374 __attribute__nonnull__(pTHX_1)
2375 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2376#define PERL_ARGS_ASSERT_START_GLOB \
2377 assert(tmpglob); assert(io)
2d03de9c 2378
59bd0823 2379#if defined(USE_REENTRANT_API)
10bc17b6 2380PERL_CALLCONV void Perl_reentrant_size(pTHX);
59bd0823 2381PERL_CALLCONV void Perl_reentrant_init(pTHX);
10bc17b6 2382PERL_CALLCONV void Perl_reentrant_free(pTHX);
4048f010 2383PERL_CALLCONV void* Perl_reentrant_retry(const char *f, ...)
fb9bf107 2384 __attribute__nonnull__(1);
7918f24d
NC
2385#define PERL_ARGS_ASSERT_REENTRANT_RETRY \
2386 assert(f)
fb9bf107 2387
59bd0823 2388#endif
1d7c1841 2389PERL_CALLCONV void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
4373e329 2390PERL_CALLCONV I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv)
abb2c242
JH
2391 __attribute__nonnull__(pTHX_1)
2392 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2393#define PERL_ARGS_ASSERT_CALL_ARGV \
2394 assert(sub_name); assert(argv)
f54cb97a 2395
4373e329 2396PERL_CALLCONV I32 Perl_call_method(pTHX_ const char* methname, I32 flags)
abb2c242 2397 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2398#define PERL_ARGS_ASSERT_CALL_METHOD \
2399 assert(methname)
f54cb97a 2400
4373e329 2401PERL_CALLCONV I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags)
abb2c242 2402 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2403#define PERL_ARGS_ASSERT_CALL_PV \
2404 assert(sub_name)
f54cb97a 2405
8c54174d 2406PERL_CALLCONV I32 Perl_call_sv(pTHX_ SV* sv, VOL I32 flags)
aec46f14 2407 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2408#define PERL_ARGS_ASSERT_CALL_SV \
2409 assert(sv)
aec46f14 2410
ce08f86c 2411PERL_CALLCONV void Perl_despatch_signals(pTHX);
e4c5ccf3
RH
2412PERL_CALLCONV OP * Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref)
2413 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2414#define PERL_ARGS_ASSERT_DOREF \
2415 assert(o)
e4c5ccf3 2416
4373e329 2417PERL_CALLCONV SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error)
abb2c242 2418 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2419#define PERL_ARGS_ASSERT_EVAL_PV \
2420 assert(p)
f54cb97a 2421
4373e329 2422PERL_CALLCONV I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags)
abb2c242 2423 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2424#define PERL_ARGS_ASSERT_EVAL_SV \
2425 assert(sv)
f54cb97a 2426
4373e329 2427PERL_CALLCONV SV* Perl_get_sv(pTHX_ const char* name, I32 create)
abb2c242 2428 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2429#define PERL_ARGS_ASSERT_GET_SV \
2430 assert(name)
f54cb97a 2431
4373e329 2432PERL_CALLCONV AV* Perl_get_av(pTHX_ const char* name, I32 create)
255164ba 2433 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2434#define PERL_ARGS_ASSERT_GET_AV \
2435 assert(name)
255164ba
DM
2436
2437PERL_CALLCONV HV* Perl_get_hv(pTHX_ const char* name, I32 create)
255164ba 2438 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2439#define PERL_ARGS_ASSERT_GET_HV \
2440 assert(name)
255164ba 2441
780a5241
NC
2442PERL_CALLCONV CV* Perl_get_cv(pTHX_ const char* name, I32 flags)
2443 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2444#define PERL_ARGS_ASSERT_GET_CV \
2445 assert(name)
780a5241
NC
2446
2447PERL_CALLCONV CV* Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags)
abb2c242 2448 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2449#define PERL_ARGS_ASSERT_GET_CVN_FLAGS \
2450 assert(name)
f54cb97a 2451
1d7c1841
GS
2452PERL_CALLCONV int Perl_init_i18nl10n(pTHX_ int printwarn);
2453PERL_CALLCONV int Perl_init_i18nl14n(pTHX_ int printwarn);
8772537c
AL
2454PERL_CALLCONV void Perl_new_collate(pTHX_ const char* newcoll);
2455PERL_CALLCONV void Perl_new_ctype(pTHX_ const char* newctype)
abb2c242 2456 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2457#define PERL_ARGS_ASSERT_NEW_CTYPE \
2458 assert(newctype)
f54cb97a 2459
8772537c 2460PERL_CALLCONV void Perl_new_numeric(pTHX_ const char* newcoll);
1d7c1841
GS
2461PERL_CALLCONV void Perl_set_numeric_local(pTHX);
2462PERL_CALLCONV void Perl_set_numeric_radix(pTHX);
2463PERL_CALLCONV void Perl_set_numeric_standard(pTHX);
4373e329 2464PERL_CALLCONV void Perl_require_pv(pTHX_ const char* pv)
abb2c242 2465 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2466#define PERL_ARGS_ASSERT_REQUIRE_PV \
2467 assert(pv)
f54cb97a 2468
2d03de9c
AL
2469PERL_CALLCONV void Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags)
2470 __attribute__nonnull__(pTHX_1)
2471 __attribute__nonnull__(pTHX_2)
2472 __attribute__nonnull__(pTHX_3)
2473 __attribute__nonnull__(pTHX_4)
2474 __attribute__nonnull__(pTHX_5)
2475 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2476#define PERL_ARGS_ASSERT_PACK_CAT \
2477 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
2d03de9c
AL
2478
2479PERL_CALLCONV void Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist)
2480 __attribute__nonnull__(pTHX_1)
2481 __attribute__nonnull__(pTHX_2)
2482 __attribute__nonnull__(pTHX_3)
2483 __attribute__nonnull__(pTHX_4)
2484 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2485#define PERL_ARGS_ASSERT_PACKLIST \
2486 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist)
2d03de9c 2487
e3790a26 2488#ifdef PERL_USES_PL_PIDSTATUS
1d7c1841 2489PERL_CALLCONV void Perl_pidgone(pTHX_ Pid_t pid, int status);
e3790a26 2490#endif
4373e329 2491PERL_CALLCONV void Perl_pmflag(pTHX_ U32* pmfl, int ch)
abb2c242 2492 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2493#define PERL_ARGS_ASSERT_PMFLAG \
2494 assert(pmfl)
f54cb97a 2495
4048f010 2496PERL_CALLCONV OP* Perl_pmruntime(pTHX_ OP *o, OP *expr, bool isreg)
abb2c242
JH
2497 __attribute__nonnull__(pTHX_1)
2498 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2499#define PERL_ARGS_ASSERT_PMRUNTIME \
2500 assert(o); assert(expr)
f54cb97a 2501
4373e329 2502PERL_CALLCONV OP* Perl_pmtrans(pTHX_ OP* o, OP* expr, OP* repl)
abb2c242 2503 __attribute__nonnull__(pTHX_1)
2d03de9c
AL
2504 __attribute__nonnull__(pTHX_2)
2505 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2506#define PERL_ARGS_ASSERT_PMTRANS \
2507 assert(o); assert(expr); assert(repl)
f54cb97a 2508
1d7c1841
GS
2509PERL_CALLCONV void Perl_pop_scope(pTHX);
2510PERL_CALLCONV OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
1d7c1841 2511PERL_CALLCONV void Perl_push_scope(pTHX);
25b0f989 2512/* PERL_CALLCONV OP* Perl_ref(pTHX_ OP* o, I32 type); */
1d7c1841 2513PERL_CALLCONV OP* Perl_refkids(pTHX_ OP* o, I32 type);
097eb12c 2514PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
abb2c242 2515 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2516#define PERL_ARGS_ASSERT_REGDUMP \
2517 assert(r)
f54cb97a 2518
f7819f85
A
2519PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
2520 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2521#define PERL_ARGS_ASSERT_REGDUMP \
2522 assert(r)
f7819f85 2523
4048f010 2524PERL_CALLCONV SV* Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **altsvp)
32fc9b6a 2525 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2526#define PERL_ARGS_ASSERT_REGCLASS_SWASH \
2527 assert(node)
2d03de9c 2528
49d7dfbc 2529PERL_CALLCONV I32 Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave)
abb2c242
JH
2530 __attribute__nonnull__(pTHX_1)
2531 __attribute__nonnull__(pTHX_2)
2532 __attribute__nonnull__(pTHX_3)
2533 __attribute__nonnull__(pTHX_4)
2534 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2535#define PERL_ARGS_ASSERT_PREGEXEC \
2536 assert(prog); assert(stringarg); assert(strend); assert(strbeg); assert(screamer)
f54cb97a 2537
84679df5 2538PERL_CALLCONV void Perl_pregfree(pTHX_ REGEXP* r);
4048f010 2539PERL_CALLCONV void Perl_pregfree2(pTHX_ REGEXP *rx)
288b8c02 2540 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2541#define PERL_ARGS_ASSERT_PREGFREE2 \
2542 assert(rx)
288b8c02 2543
84679df5 2544PERL_CALLCONV REGEXP* Perl_reg_temp_copy(pTHX_ REGEXP* r)
28d8d7f4 2545 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2546#define PERL_ARGS_ASSERT_REG_TEMP_COPY \
2547 assert(r)
28d8d7f4 2548
4048f010 2549PERL_CALLCONV void Perl_regfree_internal(pTHX_ REGEXP *const rx)
8074533a 2550 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2551#define PERL_ARGS_ASSERT_REGFREE_INTERNAL \
2552 assert(rx)
8074533a 2553
a3c0e9ca 2554#if defined(USE_ITHREADS)
49d7dfbc 2555PERL_CALLCONV void* Perl_regdupe_internal(pTHX_ REGEXP * const r, CLONE_PARAMS* param)
84da74a7
YO
2556 __attribute__nonnull__(pTHX_1)
2557 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2558#define PERL_ARGS_ASSERT_REGDUPE_INTERNAL \
2559 assert(r); assert(param)
84da74a7 2560
a3c0e9ca 2561#endif
3ab4a224
AB
2562PERL_CALLCONV REGEXP* Perl_pregcomp(pTHX_ const SV * const pattern, const U32 flags)
2563 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2564#define PERL_ARGS_ASSERT_PREGCOMP \
2565 assert(pattern)
f54cb97a 2566
0a0b43fa 2567PERL_CALLCONV REGEXP* Perl_re_compile(pTHX_ const SV * const pattern, U32 flags)
3ab4a224 2568 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2569#define PERL_ARGS_ASSERT_RE_COMPILE \
2570 assert(pattern)
2a5d9b1d 2571
9f61653a 2572PERL_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
2573 __attribute__nonnull__(pTHX_1)
2574 __attribute__nonnull__(pTHX_3)
2575 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2576#define PERL_ARGS_ASSERT_RE_INTUIT_START \
2577 assert(rx); assert(strpos); assert(strend)
2d03de9c 2578
4048f010 2579PERL_CALLCONV SV* Perl_re_intuit_string(pTHX_ REGEXP *const r)
2d03de9c 2580 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2581#define PERL_ARGS_ASSERT_RE_INTUIT_STRING \
2582 assert(r)
2d03de9c 2583
4048f010 2584PERL_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
2585 __attribute__nonnull__(pTHX_1)
2586 __attribute__nonnull__(pTHX_2)
2587 __attribute__nonnull__(pTHX_3)
fb9bf107
NC
2588 __attribute__nonnull__(pTHX_4)
2589 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2590#define PERL_ARGS_ASSERT_REGEXEC_FLAGS \
2591 assert(rx); assert(stringarg); assert(strend); assert(strbeg); assert(sv)
a3b680e6 2592
1df70142 2593PERL_CALLCONV regnode* Perl_regnext(pTHX_ regnode* p)
8074533a 2594 __attribute__warn_unused_result__;
1df70142 2595
81714fb9 2596
192b9cd1
AB
2597PERL_CALLCONV SV* Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags)
2598 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2599#define PERL_ARGS_ASSERT_REG_NAMED_BUFF \
2600 assert(rx)
192b9cd1
AB
2601
2602PERL_CALLCONV SV* Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags)
2603 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2604#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER \
2605 assert(rx)
192b9cd1
AB
2606
2607PERL_CALLCONV SV* Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags)
93b32b6d 2608 __attribute__nonnull__(pTHX_1)
44a2ac75 2609 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2610#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH \
2611 assert(rx); assert(namesv)
44a2ac75 2612
192b9cd1
AB
2613PERL_CALLCONV bool Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags)
2614 __attribute__nonnull__(pTHX_1)
2615 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2616#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS \
2617 assert(rx); assert(key)
192b9cd1
AB
2618
2619PERL_CALLCONV SV* Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags)
2620 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2621#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY \
2622 assert(rx)
192b9cd1
AB
2623
2624PERL_CALLCONV SV* Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags)
2625 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2626#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY \
2627 assert(rx)
192b9cd1
AB
2628
2629PERL_CALLCONV SV* Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags)
2630 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2631#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR \
2632 assert(rx)
192b9cd1
AB
2633
2634PERL_CALLCONV SV* Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags)
2635 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2636#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL \
2637 assert(rx)
192b9cd1 2638
2fdbfb4d
AB
2639
2640PERL_CALLCONV void Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv)
2641 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2642#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH \
2643 assert(rx)
2fdbfb4d
AB
2644
2645PERL_CALLCONV void Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value)
93b32b6d 2646 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2647#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE \
2648 assert(rx)
93b32b6d 2649
2fdbfb4d
AB
2650PERL_CALLCONV I32 Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren)
2651 __attribute__nonnull__(pTHX_1)
2652 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2653#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH \
2654 assert(rx); assert(sv)
2fdbfb4d
AB
2655
2656
49d7dfbc 2657PERL_CALLCONV SV* Perl_reg_qr_package(pTHX_ REGEXP * const rx)
fe578d7f 2658 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2659#define PERL_ARGS_ASSERT_REG_QR_PACKAGE \
2660 assert(rx)
fe578d7f 2661
93b32b6d 2662
32fc9b6a
DM
2663PERL_CALLCONV void Perl_regprop(pTHX_ const regexp *prog, SV* sv, const regnode* o)
2664 __attribute__nonnull__(pTHX_2)
2665 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2666#define PERL_ARGS_ASSERT_REGPROP \
2667 assert(sv); assert(o)
2d03de9c 2668
4373e329 2669PERL_CALLCONV void Perl_repeatcpy(pTHX_ char* to, const char* from, I32 len, I32 count)
abb2c242
JH
2670 __attribute__nonnull__(pTHX_1)
2671 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2672#define PERL_ARGS_ASSERT_REPEATCPY \
2673 assert(to); assert(from)
f54cb97a 2674
4373e329 2675PERL_CALLCONV char* Perl_rninstr(pTHX_ const char* big, const char* bigend, const char* little, const char* lend)
abb2c242
JH
2676 __attribute__pure__
2677 __attribute__nonnull__(pTHX_1)
2678 __attribute__nonnull__(pTHX_2)
2679 __attribute__nonnull__(pTHX_3)
2680 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2681#define PERL_ARGS_ASSERT_RNINSTR \
2682 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a 2683
1d7c1841
GS
2684PERL_CALLCONV Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t);
2685PERL_CALLCONV int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
9f6cc744 2686PERL_CALLCONV int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save)
9a957fbc 2687 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2688#define PERL_ARGS_ASSERT_RSIGNAL_SAVE \
2689 assert(save)
9a957fbc 2690
1d7c1841 2691PERL_CALLCONV Sighandler_t Perl_rsignal_state(pTHX_ int i);
a3b680e6 2692PERL_CALLCONV void Perl_rxres_free(pTHX_ void** rsp)
abb2c242 2693 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2694#define PERL_ARGS_ASSERT_RXRES_FREE \
2695 assert(rsp)
a3b680e6 2696
4048f010 2697PERL_CALLCONV void Perl_rxres_restore(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2698 __attribute__nonnull__(pTHX_1)
2699 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2700#define PERL_ARGS_ASSERT_RXRES_RESTORE \
2701 assert(rsp); assert(rx)
a3b680e6 2702
4048f010 2703PERL_CALLCONV void Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2704 __attribute__nonnull__(pTHX_1)
2705 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2706#define PERL_ARGS_ASSERT_RXRES_SAVE \
2707 assert(rsp); assert(rx)
a3b680e6 2708
cea2e8a9 2709#if !defined(HAS_RENAME)
4373e329 2710PERL_CALLCONV I32 Perl_same_dirent(pTHX_ const char* a, const char* b)
abb2c242
JH
2711 __attribute__nonnull__(pTHX_1)
2712 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2713#define PERL_ARGS_ASSERT_SAME_DIRENT \
2714 assert(a); assert(b)
f54cb97a 2715
0cb96387 2716#endif
53c1dcc0
AL
2717PERL_CALLCONV char* Perl_savepv(pTHX_ const char* pv)
2718 __attribute__malloc__
639f6c3d 2719 __attribute__warn_unused_result__;
53c1dcc0
AL
2720
2721PERL_CALLCONV char* Perl_savepvn(pTHX_ const char* pv, I32 len)
2722 __attribute__malloc__
639f6c3d 2723 __attribute__warn_unused_result__;
53c1dcc0
AL
2724
2725PERL_CALLCONV char* Perl_savesharedpv(pTHX_ const char* pv)
2726 __attribute__malloc__
2727 __attribute__warn_unused_result__;
2728
d9095cec
NC
2729PERL_CALLCONV char* Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
2730 __attribute__malloc__
2731 __attribute__warn_unused_result__
2732 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2733#define PERL_ARGS_ASSERT_SAVESHAREDPVN \
2734 assert(pv)
d9095cec 2735
53c1dcc0
AL
2736PERL_CALLCONV char* Perl_savesvpv(pTHX_ SV* sv)
2737 __attribute__malloc__
2738 __attribute__warn_unused_result__
2739 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2740#define PERL_ARGS_ASSERT_SAVESVPV \
2741 assert(sv)
53c1dcc0 2742
1d7c1841 2743PERL_CALLCONV void Perl_savestack_grow(pTHX);
4b3c1a47 2744PERL_CALLCONV void Perl_savestack_grow_cnt(pTHX_ I32 need);
59413342 2745PERL_CALLCONV void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr)
9a957fbc
AL
2746 __attribute__nonnull__(pTHX_1)
2747 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2748#define PERL_ARGS_ASSERT_SAVE_AELEM \
2749 assert(av); assert(sptr)
9a957fbc 2750
1d7c1841 2751PERL_CALLCONV I32 Perl_save_alloc(pTHX_ I32 size, I32 pad);
9a957fbc
AL
2752PERL_CALLCONV void Perl_save_aptr(pTHX_ AV** aptr)
2753 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2754#define PERL_ARGS_ASSERT_SAVE_APTR \
2755 assert(aptr)
9a957fbc
AL
2756
2757PERL_CALLCONV AV* Perl_save_ary(pTHX_ GV* gv)
2758 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2759#define PERL_ARGS_ASSERT_SAVE_ARY \
2760 assert(gv)
9a957fbc
AL
2761
2762PERL_CALLCONV void Perl_save_bool(pTHX_ bool* boolp)
2763 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2764#define PERL_ARGS_ASSERT_SAVE_BOOL \
2765 assert(boolp)
9a957fbc
AL
2766
2767PERL_CALLCONV void Perl_save_clearsv(pTHX_ SV** svp)
2768 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2769#define PERL_ARGS_ASSERT_SAVE_CLEARSV \
2770 assert(svp)
9a957fbc 2771
4048f010 2772PERL_CALLCONV void Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen)
9a957fbc
AL
2773 __attribute__nonnull__(pTHX_1)
2774 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2775#define PERL_ARGS_ASSERT_SAVE_DELETE \
2776 assert(hv); assert(key)
9a957fbc 2777
fb9bf107
NC
2778PERL_CALLCONV void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p)
2779 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2780#define PERL_ARGS_ASSERT_SAVE_DESTRUCTOR \
2781 assert(p)
fb9bf107 2782
55968144 2783PERL_CALLCONV void Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
1d7c1841
GS
2784PERL_CALLCONV void Perl_save_freesv(pTHX_ SV* sv);
2785PERL_CALLCONV void Perl_save_freeop(pTHX_ OP* o);
2786PERL_CALLCONV void Perl_save_freepv(pTHX_ char* pv);
9a957fbc
AL
2787PERL_CALLCONV void Perl_save_generic_svref(pTHX_ SV** sptr)
2788 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2789#define PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF \
2790 assert(sptr)
9a957fbc
AL
2791
2792PERL_CALLCONV void Perl_save_generic_pvref(pTHX_ char** str)
2793 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2794#define PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF \
2795 assert(str)
9a957fbc
AL
2796
2797PERL_CALLCONV void Perl_save_shared_pvref(pTHX_ char** str)
2798 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2799#define PERL_ARGS_ASSERT_SAVE_SHARED_PVREF \
2800 assert(str)
9a957fbc 2801
aec46f14
AL
2802PERL_CALLCONV void Perl_save_gp(pTHX_ GV* gv, I32 empty)
2803 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2804#define PERL_ARGS_ASSERT_SAVE_GP \
2805 assert(gv)
aec46f14
AL
2806
2807PERL_CALLCONV HV* Perl_save_hash(pTHX_ GV* gv)
2808 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2809#define PERL_ARGS_ASSERT_SAVE_HASH \
2810 assert(gv)
aec46f14 2811
4048f010 2812PERL_CALLCONV void Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr)
9a957fbc
AL
2813 __attribute__nonnull__(pTHX_1)
2814 __attribute__nonnull__(pTHX_2)
2815 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2816#define PERL_ARGS_ASSERT_SAVE_HELEM \
2817 assert(hv); assert(key); assert(sptr)
9a957fbc 2818
aec46f14
AL
2819PERL_CALLCONV void Perl_save_hptr(pTHX_ HV** hptr)
2820 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2821#define PERL_ARGS_ASSERT_SAVE_HPTR \
2822 assert(hptr)
aec46f14
AL
2823
2824PERL_CALLCONV void Perl_save_I16(pTHX_ I16* intp)
2825 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2826#define PERL_ARGS_ASSERT_SAVE_I16 \
2827 assert(intp)
aec46f14
AL
2828
2829PERL_CALLCONV void Perl_save_I32(pTHX_ I32* intp)
2830 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2831#define PERL_ARGS_ASSERT_SAVE_I32 \
2832 assert(intp)
aec46f14
AL
2833
2834PERL_CALLCONV void Perl_save_I8(pTHX_ I8* bytep)
2835 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2836#define PERL_ARGS_ASSERT_SAVE_I8 \
2837 assert(bytep)
aec46f14
AL
2838
2839PERL_CALLCONV void Perl_save_int(pTHX_ int* intp)
2840 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2841#define PERL_ARGS_ASSERT_SAVE_INT \
2842 assert(intp)
aec46f14
AL
2843
2844PERL_CALLCONV void Perl_save_item(pTHX_ SV* item)
2845 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2846#define PERL_ARGS_ASSERT_SAVE_ITEM \
2847 assert(item)
aec46f14 2848
4048f010 2849PERL_CALLCONV void Perl_save_iv(pTHX_ IV *ivp)
aec46f14 2850 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2851#define PERL_ARGS_ASSERT_SAVE_IV \
2852 assert(ivp)
aec46f14
AL
2853
2854PERL_CALLCONV void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg)
2855 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2856#define PERL_ARGS_ASSERT_SAVE_LIST \
2857 assert(sarg)
aec46f14
AL
2858
2859PERL_CALLCONV void Perl_save_long(pTHX_ long* longp)
2860 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2861#define PERL_ARGS_ASSERT_SAVE_LONG \
2862 assert(longp)
aec46f14
AL
2863
2864PERL_CALLCONV void Perl_save_mortalizesv(pTHX_ SV* sv)
2865 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2866#define PERL_ARGS_ASSERT_SAVE_MORTALIZESV \
2867 assert(sv)
aec46f14 2868
3d4dd4c7
NC
2869PERL_CALLCONV void Perl_save_nogv(pTHX_ GV* gv)
2870 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2871#define PERL_ARGS_ASSERT_SAVE_NOGV \
2872 assert(gv)
3d4dd4c7 2873
1d7c1841 2874PERL_CALLCONV void Perl_save_op(pTHX);
aec46f14
AL
2875PERL_CALLCONV SV* Perl_save_scalar(pTHX_ GV* gv)
2876 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2877#define PERL_ARGS_ASSERT_SAVE_SCALAR \
2878 assert(gv)
aec46f14
AL
2879
2880PERL_CALLCONV void Perl_save_pptr(pTHX_ char** pptr)
2881 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2882#define PERL_ARGS_ASSERT_SAVE_PPTR \
2883 assert(pptr)
aec46f14 2884
4048f010 2885PERL_CALLCONV void Perl_save_vptr(pTHX_ void *ptr)
aec46f14 2886 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2887#define PERL_ARGS_ASSERT_SAVE_VPTR \
2888 assert(ptr)
aec46f14 2889
1d7c1841 2890PERL_CALLCONV void Perl_save_re_context(pTHX);
09edbca0 2891PERL_CALLCONV void Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
aec46f14
AL
2892PERL_CALLCONV void Perl_save_sptr(pTHX_ SV** sptr)
2893 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2894#define PERL_ARGS_ASSERT_SAVE_SPTR \
2895 assert(sptr)
aec46f14
AL
2896
2897PERL_CALLCONV SV* Perl_save_svref(pTHX_ SV** sptr)
2898 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2899#define PERL_ARGS_ASSERT_SAVE_SVREF \
2900 assert(sptr)
aec46f14 2901
1d7c1841
GS
2902PERL_CALLCONV OP* Perl_sawparens(pTHX_ OP* o);
2903PERL_CALLCONV OP* Perl_scalar(pTHX_ OP* o);
2904PERL_CALLCONV OP* Perl_scalarkids(pTHX_ OP* o);
2905PERL_CALLCONV OP* Perl_scalarseq(pTHX_ OP* o);
aec46f14
AL
2906PERL_CALLCONV OP* Perl_scalarvoid(pTHX_ OP* o)
2907 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2908#define PERL_ARGS_ASSERT_SCALARVOID \
2909 assert(o)
aec46f14
AL
2910
2911PERL_CALLCONV NV Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2912 __attribute__nonnull__(pTHX_1)
2913 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2914#define PERL_ARGS_ASSERT_SCAN_BIN \
2915 assert(start); assert(retlen)
aec46f14
AL
2916
2917PERL_CALLCONV NV Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2918 __attribute__nonnull__(pTHX_1)
2919 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2920#define PERL_ARGS_ASSERT_SCAN_HEX \
2921 assert(start); assert(retlen)
aec46f14
AL
2922
2923PERL_CALLCONV char* Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp)
2924 __attribute__nonnull__(pTHX_1)
2925 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2926#define PERL_ARGS_ASSERT_SCAN_NUM \
2927 assert(s); assert(lvalp)
aec46f14
AL
2928
2929PERL_CALLCONV NV Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2930 __attribute__nonnull__(pTHX_1)
2931 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2932#define PERL_ARGS_ASSERT_SCAN_OCT \
2933 assert(start); assert(retlen)
aec46f14 2934
1d7c1841 2935PERL_CALLCONV OP* Perl_scope(pTHX_ OP* o);
9f6cc744 2936PERL_CALLCONV char* Perl_screaminstr(pTHX_ SV *bigstr, SV *littlestr, I32 start_shift, I32 end_shift, I32 *old_posp, I32 last)
aec46f14
AL
2937 __attribute__nonnull__(pTHX_1)
2938 __attribute__nonnull__(pTHX_2)
2939 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2940#define PERL_ARGS_ASSERT_SCREAMINSTR \
2941 assert(bigstr); assert(littlestr); assert(old_posp)
aec46f14 2942
864dbfa3 2943#if !defined(VMS)
fb9bf107
NC
2944PERL_CALLCONV I32 Perl_setenv_getix(pTHX_ const char* nam)
2945 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2946#define PERL_ARGS_ASSERT_SETENV_GETIX \
2947 assert(nam)
fb9bf107 2948
0cb96387 2949#endif
1d7c1841 2950PERL_CALLCONV void Perl_setdefout(pTHX_ GV* gv);
aec46f14
AL
2951PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash)
2952 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2953#define PERL_ARGS_ASSERT_SHARE_HEK \
2954 assert(str)
aec46f14 2955
8aad04aa 2956#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
b6455c53
SR
2957PERL_CALLCONV Signal_t Perl_sighandler(int sig, siginfo_t *info, void *uap);
2958PERL_CALLCONV Signal_t Perl_csighandler(int sig, siginfo_t *info, void *uap);
8aad04aa 2959#else
1d7c1841 2960PERL_CALLCONV Signal_t Perl_sighandler(int sig);
d36b6582 2961PERL_CALLCONV Signal_t Perl_csighandler(int sig);
8aad04aa 2962#endif
c48640ec 2963PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV** p, int n)
abb2c242
JH
2964 __attribute__nonnull__(pTHX_1)
2965 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2966#define PERL_ARGS_ASSERT_STACK_GROW \
2967 assert(sp); assert(p)
f54cb97a 2968
0b1558d1 2969PERL_CALLCONV I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
aec46f14
AL
2970PERL_CALLCONV void Perl_sub_crush_depth(pTHX_ CV* cv)
2971 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2972#define PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH \
2973 assert(cv)
aec46f14 2974
4373e329 2975PERL_CALLCONV bool Perl_sv_2bool(pTHX_ SV* sv)
abb2c242 2976 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2977#define PERL_ARGS_ASSERT_SV_2BOOL \
2978 assert(sv)
f54cb97a
AL
2979
2980PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref)
aec46f14
AL
2981 __attribute__nonnull__(pTHX_2)
2982 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2983#define PERL_ARGS_ASSERT_SV_2CV \
2984 assert(st); assert(gvp)
f54cb97a
AL
2985
2986PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV* sv)
abb2c242 2987 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2988#define PERL_ARGS_ASSERT_SV_2IO \
2989 assert(sv)
f54cb97a 2990
180488f8 2991#ifdef PERL_IN_SV_C
19f6321d 2992STATIC bool S_glob_2number(pTHX_ GV* const gv)
180488f8 2993 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2994#define PERL_ARGS_ASSERT_GLOB_2NUMBER \
2995 assert(gv)
180488f8 2996
19f6321d 2997STATIC char* S_glob_2pv(pTHX_ GV* const gv, STRLEN * const len)
4789ae7c 2998 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2999#define PERL_ARGS_ASSERT_GLOB_2PV \
3000 assert(gv)
675c862f 3001
180488f8 3002#endif
53e85712
NC
3003/* PERL_CALLCONV IV Perl_sv_2iv(pTHX_ SV *sv); */
3004PERL_CALLCONV IV Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
6472dca1 3005PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV* sv);
53e85712 3006PERL_CALLCONV NV Perl_sv_2nv(pTHX_ SV *const sv);
5de3775c 3007PERL_CALLCONV SV* Perl_sv_2num(pTHX_ SV *const sv)
800401ee 3008 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3009#define PERL_ARGS_ASSERT_SV_2NUM \
3010 assert(sv)
800401ee 3011
53e85712
NC
3012/* PERL_CALLCONV char* Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp); */
3013PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
4373e329 3014PERL_CALLCONV char* Perl_sv_2pvutf8(pTHX_ SV* sv, STRLEN* lp)
f49ed1da 3015 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3016#define PERL_ARGS_ASSERT_SV_2PVUTF8 \
3017 assert(sv)
f54cb97a 3018
5de3775c 3019PERL_CALLCONV char* Perl_sv_2pvbyte(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3020 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3021#define PERL_ARGS_ASSERT_SV_2PVBYTE \
3022 assert(sv)
f54cb97a 3023
4373e329 3024PERL_CALLCONV char* Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp)
f49ed1da 3025 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3026#define PERL_ARGS_ASSERT_SV_PVN_NOMG \
3027 assert(sv)
f54cb97a 3028
53e85712
NC
3029/* PERL_CALLCONV UV Perl_sv_2uv(pTHX_ SV *sv); */
3030PERL_CALLCONV UV Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
4373e329 3031PERL_CALLCONV IV Perl_sv_iv(pTHX_ SV* sv)
abb2c242 3032 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3033#define PERL_ARGS_ASSERT_SV_IV \
3034 assert(sv)
f54cb97a 3035
4373e329 3036PERL_CALLCONV UV Perl_sv_uv(pTHX_ SV* sv)
abb2c242 3037 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3038#define PERL_ARGS_ASSERT_SV_UV \
3039 assert(sv)
f54cb97a 3040
4373e329 3041PERL_CALLCONV NV Perl_sv_nv(pTHX_ SV* sv)
abb2c242 3042 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3043#define PERL_ARGS_ASSERT_SV_NV \
3044 assert(sv)
f54cb97a 3045
4048f010 3046PERL_CALLCONV char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3047 __attribute__nonnull__(pTHX_1)
3048 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3049#define PERL_ARGS_ASSERT_SV_PVN \
3050 assert(sv); assert(lp)
f54cb97a 3051
4048f010 3052PERL_CALLCONV char* Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3053 __attribute__nonnull__(pTHX_1)
3054 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3055#define PERL_ARGS_ASSERT_SV_PVUTF8N \
3056 assert(sv); assert(lp)
f54cb97a 3057
4048f010 3058PERL_CALLCONV char* Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3059 __attribute__nonnull__(pTHX_1)
3060 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3061#define PERL_ARGS_ASSERT_SV_PVBYTEN \
3062 assert(sv); assert(lp)
f54cb97a 3063
aec46f14 3064PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *sv);
de37a194 3065PERL_CALLCONV void Perl_sv_add_arena(pTHX_ char *const ptr, const U32 size, const U32 flags)
abb2c242 3066 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3067#define PERL_ARGS_ASSERT_SV_ADD_ARENA \
3068 assert(ptr)
f54cb97a 3069
aad570aa 3070PERL_CALLCONV int Perl_sv_backoff(pTHX_ SV *const sv)
abb2c242 3071 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3072#define PERL_ARGS_ASSERT_SV_BACKOFF \
3073 assert(sv)
f54cb97a
AL
3074
3075PERL_CALLCONV SV* Perl_sv_bless(pTHX_ SV* sv, HV* stash)
abb2c242
JH
3076 __attribute__nonnull__(pTHX_1)
3077 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3078#define PERL_ARGS_ASSERT_SV_BLESS \
3079 assert(sv); assert(stash)
f54cb97a 3080
894356b3 3081PERL_CALLCONV void Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...)
f54cb97a 3082 __attribute__format__(__printf__,pTHX_2,pTHX_3)
aec46f14
AL
3083 __attribute__nonnull__(pTHX_1)
3084 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3085#define PERL_ARGS_ASSERT_SV_CATPVF \
3086 assert(sv); assert(pat)
f54cb97a
AL
3087
3088PERL_CALLCONV void Perl_sv_vcatpvf(pTHX_ SV* sv, const char* pat, va_list* args)
aec46f14
AL
3089 __attribute__nonnull__(pTHX_1)
3090 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3091#define PERL_ARGS_ASSERT_SV_VCATPVF \
3092 assert(sv); assert(pat)
f54cb97a
AL
3093
3094PERL_CALLCONV void Perl_sv_catpv(pTHX_ SV* sv, const char* ptr)
cf684db6 3095 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3096#define PERL_ARGS_ASSERT_SV_CATPV \
3097 assert(sv)
f54cb97a 3098
4048f010 3099/* PERL_CALLCONV void Perl_sv_catpvn(pTHX_ SV *dsv, const char *sstr, STRLEN len)
aec46f14
AL
3100 __attribute__nonnull__(pTHX_1)
3101 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
3102#define PERL_ARGS_ASSERT_SV_CATPVN \
3103 assert(dsv); assert(sstr)
f54cb97a 3104
4048f010 3105/* PERL_CALLCONV void Perl_sv_catsv(pTHX_ SV *dstr, SV *sstr)
abb2c242 3106 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3107#define PERL_ARGS_ASSERT_SV_CATSV \
3108 assert(dstr)
f54cb97a
AL
3109
3110PERL_CALLCONV void Perl_sv_chop(pTHX_ SV* sv, const char* ptr)
abb2c242 3111 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3112#define PERL_ARGS_ASSERT_SV_CHOP \
3113 assert(sv)
f54cb97a 3114
5226ed68 3115PERL_CALLCONV I32 Perl_sv_clean_all(pTHX);
1d7c1841 3116PERL_CALLCONV void Perl_sv_clean_objs(pTHX);
f54cb97a 3117PERL_CALLCONV void Perl_sv_clear(pTHX_ SV* sv)
abb2c242 3118 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3119#define PERL_ARGS_ASSERT_SV_CLEAR \
3120 assert(sv)
f54cb97a 3121
3d4dd4c7
NC
3122PERL_CALLCONV I32 Perl_sv_cmp(pTHX_ SV* sv1, SV* sv2);
3123PERL_CALLCONV I32 Perl_sv_cmp_locale(pTHX_ SV* sv1, SV* sv2);
864dbfa3 3124#if defined(USE_LOCALE_COLLATE)
f54cb97a 3125PERL_CALLCONV char* Perl_sv_collxfrm(pTHX_ SV* sv, STRLEN* nxp)
1df70142
AL
3126 __attribute__nonnull__(pTHX_1)
3127 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3128#define PERL_ARGS_ASSERT_SV_COLLXFRM \
3129 assert(sv); assert(nxp)
f54cb97a 3130
0cb96387 3131#endif
4048f010 3132PERL_CALLCONV OP* Perl_sv_compile_2op(pTHX_ SV *sv, OP **startop, const char *code, PAD **padp)
abb2c242
JH
3133 __attribute__nonnull__(pTHX_1)
3134 __attribute__nonnull__(pTHX_2)
3135 __attribute__nonnull__(pTHX_3)
3136 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3137#define PERL_ARGS_ASSERT_SV_COMPILE_2OP \
3138 assert(sv); assert(startop); assert(code); assert(padp)
f54cb97a 3139
4373e329 3140PERL_CALLCONV int Perl_getcwd_sv(pTHX_ SV* sv)
abb2c242 3141 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3142#define PERL_ARGS_ASSERT_GETCWD_SV \
3143 assert(sv)
f54cb97a 3144
cf684db6 3145PERL_CALLCONV void Perl_sv_dec(pTHX_ SV* sv);
f54cb97a 3146PERL_CALLCONV void Perl_sv_dump(pTHX_ SV* sv)
abb2c242 3147 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3148#define PERL_ARGS_ASSERT_SV_DUMP \
3149 assert(sv)
f54cb97a 3150
15f169a1 3151PERL_CALLCONV bool Perl_sv_derived_from(pTHX_ SV* sv, const char *const name)
abb2c242
JH
3152 __attribute__warn_unused_result__
3153 __attribute__nonnull__(pTHX_1)
3154 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3155#define PERL_ARGS_ASSERT_SV_DERIVED_FROM \
3156 assert(sv); assert(name)
f54cb97a 3157
15f169a1 3158PERL_CALLCONV bool Perl_sv_does(pTHX_ SV* sv, const char *const name)
cbc021f9 3159 __attribute__warn_unused_result__
3160 __attribute__nonnull__(pTHX_1)
3161 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3162#define PERL_ARGS_ASSERT_SV_DOES \
3163 assert(sv); assert(name)
cbc021f9 3164
551405c4 3165PERL_CALLCONV I32 Perl_sv_eq(pTHX_ SV* sv1, SV* sv2);
1d7c1841 3166PERL_CALLCONV void Perl_sv_free(pTHX_ SV* sv);
4373e329 3167PERL_CALLCONV void Perl_sv_free2(pTHX_ SV* sv)
abb2c242 3168 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3169#define PERL_ARGS_ASSERT_SV_FREE2 \
3170 assert(sv)
f54cb97a 3171
1d7c1841 3172PERL_CALLCONV void Perl_sv_free_arenas(pTHX);
4373e329 3173PERL_CALLCONV char* Perl_sv_gets(pTHX_ SV* sv, PerlIO* fp, I32 append)
abb2c242
JH
3174 __attribute__nonnull__(pTHX_1)
3175 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3176#define PERL_ARGS_ASSERT_SV_GETS \
3177 assert(sv); assert(fp)
f54cb97a 3178
aad570aa 3179PERL_CALLCONV char* Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen)
abb2c242 3180 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3181#define PERL_ARGS_ASSERT_SV_GROW \
3182 assert(sv)
f54cb97a 3183
cf684db6 3184PERL_CALLCONV void Perl_sv_inc(pTHX_ SV* sv);
4048f010 3185PERL_CALLCONV void Perl_sv_insert(pTHX_ SV *bigstr, STRLEN offset, STRLEN len, const char *little, STRLEN littlelen)
abb2c242
JH
3186 __attribute__nonnull__(pTHX_1)
3187 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3188#define PERL_ARGS_ASSERT_SV_INSERT \
3189 assert(bigstr); assert(little)
f54cb97a
AL
3190
3191PERL_CALLCONV int Perl_sv_isa(pTHX_ SV* sv, const char* name)
aec46f14 3192 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3193#define PERL_ARGS_ASSERT_SV_ISA \
3194 assert(name)
f54cb97a 3195
aec46f14 3196PERL_CALLCONV int Perl_sv_isobject(pTHX_ SV* sv);
9d4ba2ae
AL
3197PERL_CALLCONV STRLEN Perl_sv_len(pTHX_ SV* sv);
3198PERL_CALLCONV STRLEN Perl_sv_len_utf8(pTHX_ SV* sv);
f54cb97a 3199PERL_CALLCONV void Perl_sv_magic(pTHX_ SV* sv, SV* obj, int how, const char* name, I32 namlen)
abb2c242 3200 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3201#define PERL_ARGS_ASSERT_SV_MAGIC \
3202 assert(sv)
f54cb97a 3203
53d44271 3204PERL_CALLCONV MAGIC * Perl_sv_magicext(pTHX_ SV* sv, SV* obj, int how, const MGVTBL *vtbl, const char* name, I32 namlen)
abb2c242 3205 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3206#define PERL_ARGS_ASSERT_SV_MAGICEXT \
3207 assert(sv)
f54cb97a 3208
4373e329 3209PERL_CALLCONV SV* Perl_sv_mortalcopy(pTHX_ SV* oldsv)
1b6737cc
AL
3210 __attribute__malloc__
3211 __attribute__warn_unused_result__;
f54cb97a
AL
3212
3213PERL_CALLCONV SV* Perl_sv_newmortal(pTHX)
abb2c242 3214 __attribute__warn_unused_result__;
f54cb97a 3215
1d7c1841
GS
3216PERL_CALLCONV SV* Perl_sv_newref(pTHX_ SV* sv);
3217PERL_CALLCONV char* Perl_sv_peek(pTHX_ SV* sv);
b464bac0
AL
3218PERL_CALLCONV void Perl_sv_pos_u2b(pTHX_ SV* sv, I32* offsetp, I32* lenp)
3219 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3220#define PERL_ARGS_ASSERT_SV_POS_U2B \
3221 assert(offsetp)
b464bac0
AL
3222
3223PERL_CALLCONV void Perl_sv_pos_b2u(pTHX_ SV* sv, I32* offsetp)
3224 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3225#define PERL_ARGS_ASSERT_SV_POS_B2U \
3226 assert(offsetp)
b464bac0 3227
25b0f989 3228/* PERL_CALLCONV char* Perl_sv_pvn_force(pTHX_ SV* sv, STRLEN* lp)
aec46f14 3229 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3230#define PERL_ARGS_ASSERT_SV_PVN_FORCE \
3231 assert(sv)
aec46f14
AL
3232
3233PERL_CALLCONV char* Perl_sv_pvutf8n_force(pTHX_ SV* sv, STRLEN* lp)
3234 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3235#define PERL_ARGS_ASSERT_SV_PVUTF8N_FORCE \
3236 assert(sv)
aec46f14
AL
3237
3238PERL_CALLCONV char* Perl_sv_pvbyten_force(pTHX_ SV* sv, STRLEN* lp)
3239 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3240#define PERL_ARGS_ASSERT_SV_PVBYTEN_FORCE \
3241 assert(sv)