This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regen generated files changed by the previous patch - facility to plug in syntax...
[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,
83706693 6 * 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 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
c3a9a790 134PERL_CALLCONV int Perl_Gv_AMupdate(pTHX_ HV* stash, bool destructing)
255164ba 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 SV** Perl_av_fetch(pTHX_ AV *av, I32 key, I32 lval)
7a5b473e
AL
179 __attribute__warn_unused_result__
180 __attribute__nonnull__(pTHX_1);
7918f24d
NC
181#define PERL_ARGS_ASSERT_AV_FETCH \
182 assert(av)
a3b680e6 183
4048f010 184PERL_CALLCONV void Perl_av_fill(pTHX_ AV *av, I32 fill)
255164ba 185 __attribute__nonnull__(pTHX_1);
7918f24d
NC
186#define PERL_ARGS_ASSERT_AV_FILL \
187 assert(av)
255164ba 188
bb5dd93d 189PERL_CALLCONV I32 Perl_av_len(pTHX_ AV *av)
255164ba
DM
190 __attribute__warn_unused_result__
191 __attribute__nonnull__(pTHX_1);
7918f24d
NC
192#define PERL_ARGS_ASSERT_AV_LEN \
193 assert(av)
a3b680e6 194
4048f010 195PERL_CALLCONV AV* Perl_av_make(pTHX_ I32 size, SV **strp)
abb2c242
JH
196 __attribute__warn_unused_result__
197 __attribute__nonnull__(pTHX_2);
7918f24d
NC
198#define PERL_ARGS_ASSERT_AV_MAKE \
199 assert(strp)
a3b680e6 200
4048f010 201PERL_CALLCONV SV* Perl_av_pop(pTHX_ AV *av)
7a5b473e 202 __attribute__nonnull__(pTHX_1);
7918f24d
NC
203#define PERL_ARGS_ASSERT_AV_POP \
204 assert(av)
7a5b473e 205
29a861e7
NC
206PERL_CALLCONV void Perl_av_create_and_push(pTHX_ AV **const avp, SV *const val)
207 __attribute__nonnull__(pTHX_1)
208 __attribute__nonnull__(pTHX_2);
7918f24d
NC
209#define PERL_ARGS_ASSERT_AV_CREATE_AND_PUSH \
210 assert(avp); assert(val)
29a861e7 211
4048f010 212PERL_CALLCONV void Perl_av_push(pTHX_ AV *av, SV *val)
7a5b473e 213 __attribute__nonnull__(pTHX_1)
255164ba 214 __attribute__nonnull__(pTHX_2);
7918f24d
NC
215#define PERL_ARGS_ASSERT_AV_PUSH \
216 assert(av); assert(val)
255164ba 217
4048f010 218PERL_CALLCONV void Perl_av_reify(pTHX_ AV *av)
255164ba 219 __attribute__nonnull__(pTHX_1);
7918f24d
NC
220#define PERL_ARGS_ASSERT_AV_REIFY \
221 assert(av)
255164ba 222
4048f010 223PERL_CALLCONV SV* Perl_av_shift(pTHX_ AV *av)
7a5b473e
AL
224 __attribute__warn_unused_result__
225 __attribute__nonnull__(pTHX_1);
7918f24d
NC
226#define PERL_ARGS_ASSERT_AV_SHIFT \
227 assert(av)
7a5b473e 228
4048f010 229PERL_CALLCONV SV** Perl_av_store(pTHX_ AV *av, I32 key, SV *val)
7a5b473e 230 __attribute__nonnull__(pTHX_1);
7918f24d
NC
231#define PERL_ARGS_ASSERT_AV_STORE \
232 assert(av)
7a5b473e 233
4048f010 234PERL_CALLCONV void Perl_av_undef(pTHX_ AV *av)
7a5b473e 235 __attribute__nonnull__(pTHX_1);
7918f24d
NC
236#define PERL_ARGS_ASSERT_AV_UNDEF \
237 assert(av)
7a5b473e 238
29a861e7
NC
239PERL_CALLCONV SV** Perl_av_create_and_unshift_one(pTHX_ AV **const avp, SV *const val)
240 __attribute__nonnull__(pTHX_1)
241 __attribute__nonnull__(pTHX_2);
7918f24d
NC
242#define PERL_ARGS_ASSERT_AV_CREATE_AND_UNSHIFT_ONE \
243 assert(avp); assert(val)
29a861e7 244
4048f010 245PERL_CALLCONV void Perl_av_unshift(pTHX_ AV *av, I32 num)
7a5b473e 246 __attribute__nonnull__(pTHX_1);
7918f24d
NC
247#define PERL_ARGS_ASSERT_AV_UNSHIFT \
248 assert(av)
a3b680e6 249
4048f010 250PERL_CALLCONV SV** Perl_av_arylen_p(pTHX_ AV *av)
255164ba 251 __attribute__nonnull__(pTHX_1);
7918f24d
NC
252#define PERL_ARGS_ASSERT_AV_ARYLEN_P \
253 assert(av)
255164ba 254
4048f010 255PERL_CALLCONV IV* Perl_av_iter_p(pTHX_ AV *av)
878d132a 256 __attribute__nonnull__(pTHX_1);
7918f24d
NC
257#define PERL_ARGS_ASSERT_AV_ITER_P \
258 assert(av)
878d132a
NC
259
260#if defined(PERL_IN_AV_C) || defined(PERL_DECL_PROT)
261STATIC MAGIC* S_get_aux_mg(pTHX_ AV *av)
262 __attribute__nonnull__(pTHX_1);
7918f24d
NC
263#define PERL_ARGS_ASSERT_GET_AUX_MG \
264 assert(av)
878d132a
NC
265
266#endif
4048f010 267PERL_CALLCONV OP* Perl_bind_match(pTHX_ I32 type, OP *left, OP *right)
abb2c242
JH
268 __attribute__warn_unused_result__
269 __attribute__nonnull__(pTHX_2)
270 __attribute__nonnull__(pTHX_3);
7918f24d
NC
271#define PERL_ARGS_ASSERT_BIND_MATCH \
272 assert(left); assert(right)
a3b680e6
AL
273
274PERL_CALLCONV OP* Perl_block_end(pTHX_ I32 floor, OP* seq)
6472dca1 275 __attribute__warn_unused_result__;
a3b680e6
AL
276
277PERL_CALLCONV I32 Perl_block_gimme(pTHX)
abb2c242 278 __attribute__warn_unused_result__;
a3b680e6
AL
279
280PERL_CALLCONV int Perl_block_start(pTHX_ int full)
abb2c242 281 __attribute__warn_unused_result__;
a3b680e6 282
1d7c1841 283PERL_CALLCONV void Perl_boot_core_UNIVERSAL(pTHX);
36ed5425 284PERL_CALLCONV void Perl_boot_core_PerlIO(pTHX);
4048f010 285PERL_CALLCONV void Perl_call_list(pTHX_ I32 oldscope, AV *paramList)
abb2c242 286 __attribute__nonnull__(pTHX_2);
7918f24d
NC
287#define PERL_ARGS_ASSERT_CALL_LIST \
288 assert(paramList)
a3b680e6 289
ae1951c1 290PERL_CALLCONV bool Perl_cando(pTHX_ Mode_t mode, bool effective, const Stat_t* statbufp)
abb2c242
JH
291 __attribute__warn_unused_result__
292 __attribute__nonnull__(pTHX_3);
7918f24d
NC
293#define PERL_ARGS_ASSERT_CANDO \
294 assert(statbufp)
f54cb97a 295
53c1dcc0
AL
296PERL_CALLCONV U32 Perl_cast_ulong(pTHX_ NV f)
297 __attribute__warn_unused_result__;
298
299PERL_CALLCONV I32 Perl_cast_i32(pTHX_ NV f)
300 __attribute__warn_unused_result__;
301
302PERL_CALLCONV IV Perl_cast_iv(pTHX_ NV f)
303 __attribute__warn_unused_result__;
304
305PERL_CALLCONV UV Perl_cast_uv(pTHX_ NV f)
306 __attribute__warn_unused_result__;
307
cea2e8a9 308#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
53c1dcc0
AL
309PERL_CALLCONV I32 Perl_my_chsize(pTHX_ int fd, Off_t length)
310 __attribute__warn_unused_result__;
311
cea2e8a9 312#endif
53c1dcc0
AL
313PERL_CALLCONV OP* Perl_convert(pTHX_ I32 optype, I32 flags, OP* o)
314 __attribute__warn_unused_result__;
315
edb2152a 316PERL_CALLCONV PERL_CONTEXT* Perl_create_eval_scope(pTHX_ U32 flags);
f54cb97a 317PERL_CALLCONV void Perl_croak(pTHX_ const char* pat, ...)
cdfeb707
RB
318 __attribute__noreturn__
319 __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
f54cb97a
AL
320
321PERL_CALLCONV void Perl_vcroak(pTHX_ const char* pat, va_list* args)
f3dc127a 322 __attribute__noreturn__;
f54cb97a 323
afa74d42
NC
324PERL_CALLCONV void Perl_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
325 __attribute__noreturn__
326 __attribute__nonnull__(pTHX_1)
327 __attribute__nonnull__(pTHX_2);
328#define PERL_ARGS_ASSERT_CROAK_XS_USAGE \
329 assert(cv); assert(params)
330
331
cea2e8a9 332#if defined(PERL_IMPLICIT_CONTEXT)
f54cb97a 333PERL_CALLCONV void Perl_croak_nocontext(const char* pat, ...)
abb2c242 334 __attribute__noreturn__
52a5bfab 335 __attribute__format__null_ok__(__printf__,1,2);
f54cb97a 336
894356b3 337PERL_CALLCONV OP* Perl_die_nocontext(const char* pat, ...)
cf284a24 338 __attribute__format__null_ok__(__printf__,1,2);
f54cb97a 339
894356b3 340PERL_CALLCONV void Perl_deb_nocontext(const char* pat, ...)
255164ba
DM
341 __attribute__format__(__printf__,1,2)
342 __attribute__nonnull__(1);
7918f24d
NC
343#define PERL_ARGS_ASSERT_DEB_NOCONTEXT \
344 assert(pat)
f54cb97a 345
894356b3 346PERL_CALLCONV char* Perl_form_nocontext(const char* pat, ...)
255164ba
DM
347 __attribute__format__(__printf__,1,2)
348 __attribute__nonnull__(1);
7918f24d
NC
349#define PERL_ARGS_ASSERT_FORM_NOCONTEXT \
350 assert(pat)
255164ba
DM
351
352PERL_CALLCONV void Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...)
3d4dd4c7 353 __attribute__nonnull__(2);
7918f24d
NC
354#define PERL_ARGS_ASSERT_LOAD_MODULE_NOCONTEXT \
355 assert(name)
f54cb97a 356
894356b3 357PERL_CALLCONV SV* Perl_mess_nocontext(const char* pat, ...)
255164ba
DM
358 __attribute__format__(__printf__,1,2)
359 __attribute__nonnull__(1);
7918f24d
NC
360#define PERL_ARGS_ASSERT_MESS_NOCONTEXT \
361 assert(pat)
f54cb97a 362
894356b3 363PERL_CALLCONV void Perl_warn_nocontext(const char* pat, ...)
255164ba
DM
364 __attribute__format__(__printf__,1,2)
365 __attribute__nonnull__(1);
7918f24d
NC
366#define PERL_ARGS_ASSERT_WARN_NOCONTEXT \
367 assert(pat)
f54cb97a 368
894356b3 369PERL_CALLCONV void Perl_warner_nocontext(U32 err, const char* pat, ...)
255164ba
DM
370 __attribute__format__(__printf__,2,3)
371 __attribute__nonnull__(2);
7918f24d
NC
372#define PERL_ARGS_ASSERT_WARNER_NOCONTEXT \
373 assert(pat)
f54cb97a 374
23f13727 375PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char *const pat, ...)
255164ba
DM
376 __attribute__format__(__printf__,1,2)
377 __attribute__nonnull__(1);
7918f24d
NC
378#define PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT \
379 assert(pat)
f54cb97a 380
89e38212 381PERL_CALLCONV void Perl_sv_catpvf_nocontext(SV *const sv, const char *const pat, ...)
255164ba 382 __attribute__format__(__printf__,2,3)
fb9bf107
NC
383 __attribute__nonnull__(1)
384 __attribute__nonnull__(2);
7918f24d
NC
385#define PERL_ARGS_ASSERT_SV_CATPVF_NOCONTEXT \
386 assert(sv); assert(pat)
f54cb97a 387
89e38212 388PERL_CALLCONV void Perl_sv_setpvf_nocontext(SV *const sv, const char *const pat, ...)
255164ba 389 __attribute__format__(__printf__,2,3)
fb9bf107
NC
390 __attribute__nonnull__(1)
391 __attribute__nonnull__(2);
7918f24d
NC
392#define PERL_ARGS_ASSERT_SV_SETPVF_NOCONTEXT \
393 assert(sv); assert(pat)
f54cb97a 394
89e38212 395PERL_CALLCONV void Perl_sv_catpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
255164ba 396 __attribute__format__(__printf__,2,3)
fb9bf107
NC
397 __attribute__nonnull__(1)
398 __attribute__nonnull__(2);
7918f24d
NC
399#define PERL_ARGS_ASSERT_SV_CATPVF_MG_NOCONTEXT \
400 assert(sv); assert(pat)
f54cb97a 401
89e38212 402PERL_CALLCONV void Perl_sv_setpvf_mg_nocontext(SV *const sv, const char *const pat, ...)
255164ba 403 __attribute__format__(__printf__,2,3)
fb9bf107
NC
404 __attribute__nonnull__(1)
405 __attribute__nonnull__(2);
7918f24d
NC
406#define PERL_ARGS_ASSERT_SV_SETPVF_MG_NOCONTEXT \
407 assert(sv); assert(pat)
f54cb97a 408
4048f010 409PERL_CALLCONV int Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
255164ba
DM
410 __attribute__format__(__printf__,2,3)
411 __attribute__nonnull__(1)
412 __attribute__nonnull__(2);
7918f24d
NC
413#define PERL_ARGS_ASSERT_FPRINTF_NOCONTEXT \
414 assert(stream); assert(format)
f54cb97a 415
4048f010 416PERL_CALLCONV int Perl_printf_nocontext(const char *format, ...)
255164ba
DM
417 __attribute__format__(__printf__,1,2)
418 __attribute__nonnull__(1);
7918f24d
NC
419#define PERL_ARGS_ASSERT_PRINTF_NOCONTEXT \
420 assert(format)
f54cb97a 421
0cb96387 422#endif
cbf82dd0
NC
423PERL_CALLCONV void Perl_cv_ckproto_len(pTHX_ const CV* cv, const GV* gv, const char* p, const STRLEN len)
424 __attribute__nonnull__(pTHX_1);
7918f24d
NC
425#define PERL_ARGS_ASSERT_CV_CKPROTO_LEN \
426 assert(cv)
cbf82dd0 427
4373e329 428PERL_CALLCONV CV* Perl_cv_clone(pTHX_ CV* proto)
abb2c242 429 __attribute__nonnull__(pTHX_1);
7918f24d
NC
430#define PERL_ARGS_ASSERT_CV_CLONE \
431 assert(proto)
f54cb97a 432
62d55b22
NC
433PERL_CALLCONV SV* Perl_gv_const_sv(pTHX_ GV* gv)
434 __attribute__warn_unused_result__
435 __attribute__nonnull__(pTHX_1);
7918f24d
NC
436#define PERL_ARGS_ASSERT_GV_CONST_SV \
437 assert(gv)
62d55b22 438
d45f5b30 439PERL_CALLCONV SV* Perl_cv_const_sv(pTHX_ const CV *const cv)
255164ba
DM
440 __attribute__warn_unused_result__;
441
442PERL_CALLCONV SV* Perl_op_const_sv(pTHX_ const OP* o, CV* cv)
443 __attribute__warn_unused_result__;
444
445PERL_CALLCONV void Perl_cv_undef(pTHX_ CV* cv)
446 __attribute__nonnull__(pTHX_1);
7918f24d
NC
447#define PERL_ARGS_ASSERT_CV_UNDEF \
448 assert(cv)
255164ba
DM
449
450PERL_CALLCONV void Perl_cx_dump(pTHX_ PERL_CONTEXT* cx)
451 __attribute__nonnull__(pTHX_1);
7918f24d
NC
452#define PERL_ARGS_ASSERT_CX_DUMP \
453 assert(cx)
255164ba 454
1d7c1841 455PERL_CALLCONV SV* Perl_filter_add(pTHX_ filter_t funcp, SV* datasv);
255164ba
DM
456PERL_CALLCONV void Perl_filter_del(pTHX_ filter_t funcp)
457 __attribute__nonnull__(pTHX_1);
7918f24d
NC
458#define PERL_ARGS_ASSERT_FILTER_DEL \
459 assert(funcp)
255164ba 460
4048f010 461PERL_CALLCONV I32 Perl_filter_read(pTHX_ int idx, SV *buf_sv, int maxlen)
255164ba
DM
462 __attribute__warn_unused_result__
463 __attribute__nonnull__(pTHX_2);
7918f24d
NC
464#define PERL_ARGS_ASSERT_FILTER_READ \
465 assert(buf_sv)
255164ba 466
4373e329 467PERL_CALLCONV char** Perl_get_op_descs(pTHX)
abb2c242
JH
468 __attribute__warn_unused_result__
469 __attribute__pure__;
f54cb97a 470
4373e329 471PERL_CALLCONV char** Perl_get_op_names(pTHX)
abb2c242
JH
472 __attribute__warn_unused_result__
473 __attribute__pure__;
f54cb97a 474
4373e329 475PERL_CALLCONV const char* Perl_get_no_modify(pTHX)
abb2c242
JH
476 __attribute__warn_unused_result__
477 __attribute__pure__;
f54cb97a 478
4373e329 479PERL_CALLCONV U32* Perl_get_opargs(pTHX)
abb2c242
JH
480 __attribute__warn_unused_result__
481 __attribute__pure__;
f54cb97a 482
4373e329 483PERL_CALLCONV PPADDR_t* Perl_get_ppaddr(pTHX)
abb2c242
JH
484 __attribute__warn_unused_result__
485 __attribute__pure__;
f54cb97a 486
a3b680e6 487PERL_CALLCONV I32 Perl_cxinc(pTHX)
abb2c242 488 __attribute__warn_unused_result__;
a3b680e6 489
894356b3 490PERL_CALLCONV void Perl_deb(pTHX_ const char* pat, ...)
255164ba
DM
491 __attribute__format__(__printf__,pTHX_1,pTHX_2)
492 __attribute__nonnull__(pTHX_1);
7918f24d
NC
493#define PERL_ARGS_ASSERT_DEB \
494 assert(pat)
255164ba
DM
495
496PERL_CALLCONV void Perl_vdeb(pTHX_ const char* pat, va_list* args)
497 __attribute__nonnull__(pTHX_1);
7918f24d
NC
498#define PERL_ARGS_ASSERT_VDEB \
499 assert(pat)
f54cb97a 500
1d7c1841 501PERL_CALLCONV void Perl_debprofdump(pTHX);
4373e329 502PERL_CALLCONV I32 Perl_debop(pTHX_ const OP* o)
abb2c242 503 __attribute__nonnull__(pTHX_1);
7918f24d
NC
504#define PERL_ARGS_ASSERT_DEBOP \
505 assert(o)
f54cb97a 506
1d7c1841
GS
507PERL_CALLCONV I32 Perl_debstack(pTHX);
508PERL_CALLCONV I32 Perl_debstackptrs(pTHX);
04c9e624
VP
509PERL_CALLCONV char* Perl_delimcpy(char* to, const char* toend, const char* from, const char* fromend, int delim, I32* retlen)
510 __attribute__nonnull__(1)
511 __attribute__nonnull__(2)
512 __attribute__nonnull__(3)
513 __attribute__nonnull__(4)
514 __attribute__nonnull__(6);
7918f24d
NC
515#define PERL_ARGS_ASSERT_DELIMCPY \
516 assert(to); assert(toend); assert(from); assert(fromend); assert(retlen)
f54cb97a 517
edb2152a 518PERL_CALLCONV void Perl_delete_eval_scope(pTHX);
cdfeb707
RB
519PERL_CALLCONV OP* Perl_die(pTHX_ const char* pat, ...)
520 __attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
521
efd0b058 522#if defined(PERL_IN_UTIL_C) || defined(PERL_DECL_PROT)
e3cf49e2 523STATIC OP* S_vdie(pTHX_ const char* pat, va_list* args);
82af08ae 524#endif
7d0994e0 525PERL_CALLCONV OP* Perl_die_where(pTHX_ SV* msv);
1d7c1841 526PERL_CALLCONV void Perl_dounwind(pTHX_ I32 cxix);
a9f96b3f 527/* PERL_CALLCONV bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp)
255164ba 528 __attribute__nonnull__(pTHX_2)
a9f96b3f 529 __attribute__nonnull__(pTHX_3); */
7918f24d
NC
530#define PERL_ARGS_ASSERT_DO_AEXEC \
531 assert(mark); assert(sp)
255164ba 532
5b5cf8d2 533PERL_CALLCONV bool Perl_do_aexec5(pTHX_ SV* really, SV** mark, SV** sp, int fd, int do_report)
255164ba
DM
534 __attribute__nonnull__(pTHX_2)
535 __attribute__nonnull__(pTHX_3);
7918f24d
NC
536#define PERL_ARGS_ASSERT_DO_AEXEC5 \
537 assert(mark); assert(sp)
255164ba 538
4373e329 539PERL_CALLCONV int Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
abb2c242 540 __attribute__nonnull__(pTHX_1);
7918f24d
NC
541#define PERL_ARGS_ASSERT_DO_BINMODE \
542 assert(fp)
f54cb97a 543
4048f010 544PERL_CALLCONV void Perl_do_chop(pTHX_ SV *astr, SV *sv)
abb2c242
JH
545 __attribute__nonnull__(pTHX_1)
546 __attribute__nonnull__(pTHX_2);
7918f24d
NC
547#define PERL_ARGS_ASSERT_DO_CHOP \
548 assert(astr); assert(sv)
f54cb97a 549
063df69c 550PERL_CALLCONV bool Perl_do_close(pTHX_ GV* gv, bool not_implicit);
4373e329 551PERL_CALLCONV bool Perl_do_eof(pTHX_ GV* gv)
abb2c242 552 __attribute__nonnull__(pTHX_1);
7918f24d
NC
553#define PERL_ARGS_ASSERT_DO_EOF \
554 assert(gv)
f54cb97a 555
8c654ff2
NC
556
557#ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION
9555a685
NC
558/* PERL_CALLCONV bool Perl_do_exec(pTHX_ const char* cmd)
559 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
560#define PERL_ARGS_ASSERT_DO_EXEC \
561 assert(cmd)
f54cb97a 562
8c654ff2
NC
563#else
564PERL_CALLCONV bool Perl_do_exec(pTHX_ const char* cmd)
565 __attribute__nonnull__(pTHX_1);
7918f24d
NC
566#define PERL_ARGS_ASSERT_DO_EXEC \
567 assert(cmd)
8c654ff2
NC
568
569#endif
570
9ec7171b 571#if defined(WIN32) || defined(__SYMBIAN32__) || defined(VMS)
255164ba 572PERL_CALLCONV int Perl_do_aspawn(pTHX_ SV* really, SV** mark, SV** sp)
255164ba
DM
573 __attribute__nonnull__(pTHX_2)
574 __attribute__nonnull__(pTHX_3);
7918f24d 575#define PERL_ARGS_ASSERT_DO_ASPAWN \
a3e405b2 576 assert(mark); assert(sp)
255164ba
DM
577
578PERL_CALLCONV int Perl_do_spawn(pTHX_ char* cmd)
579 __attribute__nonnull__(pTHX_1);
7918f24d
NC
580#define PERL_ARGS_ASSERT_DO_SPAWN \
581 assert(cmd)
255164ba
DM
582
583PERL_CALLCONV int Perl_do_spawn_nowait(pTHX_ char* cmd)
584 __attribute__nonnull__(pTHX_1);
7918f24d
NC
585#define PERL_ARGS_ASSERT_DO_SPAWN_NOWAIT \
586 assert(cmd)
255164ba 587
54725af6 588#endif
864dbfa3 589#if !defined(WIN32)
4048f010 590PERL_CALLCONV bool Perl_do_exec3(pTHX_ const char *incmd, int fd, int do_report)
255164ba 591 __attribute__nonnull__(pTHX_1);
7918f24d
NC
592#define PERL_ARGS_ASSERT_DO_EXEC3 \
593 assert(incmd)
255164ba 594
864dbfa3 595#endif
1d7c1841 596PERL_CALLCONV void Perl_do_execfree(pTHX);
efd0b058 597#if defined(PERL_IN_DOIO_C) || defined(PERL_DECL_PROT)
b1366aaf
RGS
598STATIC void S_exec_failed(pTHX_ const char *cmd, int fd, int do_report)
599 __attribute__nonnull__(pTHX_1);
7918f24d
NC
600#define PERL_ARGS_ASSERT_EXEC_FAILED \
601 assert(cmd)
b1366aaf 602
a0f2c8ec 603#endif
864dbfa3 604#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
fb9bf107
NC
605PERL_CALLCONV I32 Perl_do_ipcctl(pTHX_ I32 optype, SV** mark, SV** sp)
606 __attribute__nonnull__(pTHX_2)
607 __attribute__nonnull__(pTHX_3);
7918f24d
NC
608#define PERL_ARGS_ASSERT_DO_IPCCTL \
609 assert(mark); assert(sp)
fb9bf107
NC
610
611PERL_CALLCONV I32 Perl_do_ipcget(pTHX_ I32 optype, SV** mark, SV** sp)
612 __attribute__nonnull__(pTHX_2)
613 __attribute__nonnull__(pTHX_3);
7918f24d
NC
614#define PERL_ARGS_ASSERT_DO_IPCGET \
615 assert(mark); assert(sp)
fb9bf107
NC
616
617PERL_CALLCONV I32 Perl_do_msgrcv(pTHX_ SV** mark, SV** sp)
618 __attribute__nonnull__(pTHX_1)
619 __attribute__nonnull__(pTHX_2);
7918f24d
NC
620#define PERL_ARGS_ASSERT_DO_MSGRCV \
621 assert(mark); assert(sp)
fb9bf107
NC
622
623PERL_CALLCONV I32 Perl_do_msgsnd(pTHX_ SV** mark, SV** sp)
624 __attribute__nonnull__(pTHX_1)
625 __attribute__nonnull__(pTHX_2);
7918f24d
NC
626#define PERL_ARGS_ASSERT_DO_MSGSND \
627 assert(mark); assert(sp)
fb9bf107
NC
628
629PERL_CALLCONV I32 Perl_do_semop(pTHX_ SV** mark, SV** sp)
630 __attribute__nonnull__(pTHX_1)
631 __attribute__nonnull__(pTHX_2);
7918f24d
NC
632#define PERL_ARGS_ASSERT_DO_SEMOP \
633 assert(mark); assert(sp)
fb9bf107
NC
634
635PERL_CALLCONV I32 Perl_do_shmio(pTHX_ I32 optype, SV** mark, SV** sp)
636 __attribute__nonnull__(pTHX_2)
637 __attribute__nonnull__(pTHX_3);
7918f24d
NC
638#define PERL_ARGS_ASSERT_DO_SHMIO \
639 assert(mark); assert(sp)
fb9bf107 640
0cb96387 641#endif
4048f010 642PERL_CALLCONV void Perl_do_join(pTHX_ SV *sv, SV *delim, SV **mark, SV **sp)
abb2c242
JH
643 __attribute__nonnull__(pTHX_1)
644 __attribute__nonnull__(pTHX_2)
645 __attribute__nonnull__(pTHX_3)
646 __attribute__nonnull__(pTHX_4);
7918f24d
NC
647#define PERL_ARGS_ASSERT_DO_JOIN \
648 assert(sv); assert(delim); assert(mark); assert(sp)
f54cb97a 649
1d7c1841 650PERL_CALLCONV OP* Perl_do_kv(pTHX);
e4dba786 651/* 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 652 __attribute__nonnull__(pTHX_1)
e4dba786 653 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
654#define PERL_ARGS_ASSERT_DO_OPEN \
655 assert(gv); assert(name)
255164ba 656
2fbb330f 657PERL_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
658 __attribute__nonnull__(pTHX_1)
659 __attribute__nonnull__(pTHX_2)
660 __attribute__nonnull__(pTHX_8);
7918f24d
NC
661#define PERL_ARGS_ASSERT_DO_OPEN9 \
662 assert(gv); assert(name); assert(svs)
255164ba 663
4048f010 664PERL_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
665 __attribute__nonnull__(pTHX_1)
666 __attribute__nonnull__(pTHX_2);
7918f24d
NC
667#define PERL_ARGS_ASSERT_DO_OPENN \
668 assert(gv); assert(oname)
255164ba 669
255164ba
DM
670PERL_CALLCONV bool Perl_do_print(pTHX_ SV* sv, PerlIO* fp)
671 __attribute__nonnull__(pTHX_2);
7918f24d
NC
672#define PERL_ARGS_ASSERT_DO_PRINT \
673 assert(fp)
255164ba
DM
674
675PERL_CALLCONV OP* Perl_do_readline(pTHX)
676 __attribute__warn_unused_result__;
677
678PERL_CALLCONV I32 Perl_do_chomp(pTHX_ SV* sv)
679 __attribute__nonnull__(pTHX_1);
7918f24d
NC
680#define PERL_ARGS_ASSERT_DO_CHOMP \
681 assert(sv)
255164ba 682
1d7c1841 683PERL_CALLCONV bool Perl_do_seek(pTHX_ GV* gv, Off_t pos, int whence);
255164ba
DM
684PERL_CALLCONV void Perl_do_sprintf(pTHX_ SV* sv, I32 len, SV** sarg)
685 __attribute__nonnull__(pTHX_1)
686 __attribute__nonnull__(pTHX_3);
7918f24d
NC
687#define PERL_ARGS_ASSERT_DO_SPRINTF \
688 assert(sv); assert(sarg)
255164ba
DM
689
690PERL_CALLCONV Off_t Perl_do_sysseek(pTHX_ GV* gv, Off_t pos, int whence)
691 __attribute__nonnull__(pTHX_1);
7918f24d
NC
692#define PERL_ARGS_ASSERT_DO_SYSSEEK \
693 assert(gv)
255164ba
DM
694
695PERL_CALLCONV Off_t Perl_do_tell(pTHX_ GV* gv)
696 __attribute__warn_unused_result__
697 __attribute__nonnull__(pTHX_1);
7918f24d
NC
698#define PERL_ARGS_ASSERT_DO_TELL \
699 assert(gv)
255164ba
DM
700
701PERL_CALLCONV I32 Perl_do_trans(pTHX_ SV* sv)
702 __attribute__nonnull__(pTHX_1);
7918f24d
NC
703#define PERL_ARGS_ASSERT_DO_TRANS \
704 assert(sv)
255164ba 705
4373e329 706PERL_CALLCONV UV Perl_do_vecget(pTHX_ SV* sv, I32 offset, I32 size)
abb2c242 707 __attribute__nonnull__(pTHX_1);
7918f24d
NC
708#define PERL_ARGS_ASSERT_DO_VECGET \
709 assert(sv)
f54cb97a 710
4373e329 711PERL_CALLCONV void Perl_do_vecset(pTHX_ SV* sv)
abb2c242 712 __attribute__nonnull__(pTHX_1);
7918f24d
NC
713#define PERL_ARGS_ASSERT_DO_VECSET \
714 assert(sv)
f54cb97a 715
255164ba
DM
716PERL_CALLCONV void Perl_do_vop(pTHX_ I32 optype, SV* sv, SV* left, SV* right)
717 __attribute__nonnull__(pTHX_2)
718 __attribute__nonnull__(pTHX_3)
719 __attribute__nonnull__(pTHX_4);
7918f24d
NC
720#define PERL_ARGS_ASSERT_DO_VOP \
721 assert(sv); assert(left); assert(right)
255164ba 722
850e8516 723PERL_CALLCONV OP* Perl_dofile(pTHX_ OP* term, I32 force_builtin)
255164ba 724 __attribute__nonnull__(pTHX_1);
7918f24d
NC
725#define PERL_ARGS_ASSERT_DOFILE \
726 assert(term)
255164ba
DM
727
728PERL_CALLCONV I32 Perl_dowantarray(pTHX)
729 __attribute__warn_unused_result__;
730
1d7c1841 731PERL_CALLCONV void Perl_dump_all(pTHX);
f0e3f042 732PERL_CALLCONV void Perl_dump_all_perl(pTHX_ bool justperl);
1d7c1841 733PERL_CALLCONV void Perl_dump_eval(pTHX);
864dbfa3 734#if defined(DUMP_FDS)
9a957fbc
AL
735PERL_CALLCONV void Perl_dump_fds(pTHX_ char* s)
736 __attribute__nonnull__(pTHX_1);
7918f24d
NC
737#define PERL_ARGS_ASSERT_DUMP_FDS \
738 assert(s)
9a957fbc 739
0cb96387 740#endif
9a957fbc
AL
741PERL_CALLCONV void Perl_dump_form(pTHX_ const GV* gv)
742 __attribute__nonnull__(pTHX_1);
7918f24d
NC
743#define PERL_ARGS_ASSERT_DUMP_FORM \
744 assert(gv)
9a957fbc 745
255164ba
DM
746PERL_CALLCONV void Perl_gv_dump(pTHX_ GV* gv)
747 __attribute__nonnull__(pTHX_1);
7918f24d
NC
748#define PERL_ARGS_ASSERT_GV_DUMP \
749 assert(gv)
255164ba 750
4048f010 751PERL_CALLCONV void Perl_op_dump(pTHX_ const OP *o)
255164ba 752 __attribute__nonnull__(pTHX_1);
7918f24d
NC
753#define PERL_ARGS_ASSERT_OP_DUMP \
754 assert(o)
255164ba 755
1d7c1841 756PERL_CALLCONV void Perl_pmop_dump(pTHX_ PMOP* pm);
9a957fbc
AL
757PERL_CALLCONV void Perl_dump_packsubs(pTHX_ const HV* stash)
758 __attribute__nonnull__(pTHX_1);
7918f24d
NC
759#define PERL_ARGS_ASSERT_DUMP_PACKSUBS \
760 assert(stash)
9a957fbc 761
f0e3f042
CS
762PERL_CALLCONV void Perl_dump_packsubs_perl(pTHX_ const HV* stash, bool justperl)
763 __attribute__nonnull__(pTHX_1);
764#define PERL_ARGS_ASSERT_DUMP_PACKSUBS_PERL \
765 assert(stash)
766
f54cb97a 767PERL_CALLCONV void Perl_dump_sub(pTHX_ const GV* gv)
abb2c242 768 __attribute__nonnull__(pTHX_1);
7918f24d
NC
769#define PERL_ARGS_ASSERT_DUMP_SUB \
770 assert(gv)
f54cb97a 771
f0e3f042
CS
772PERL_CALLCONV void Perl_dump_sub_perl(pTHX_ const GV* gv, bool justperl)
773 __attribute__nonnull__(pTHX_1);
774#define PERL_ARGS_ASSERT_DUMP_SUB_PERL \
775 assert(gv)
776
255164ba
DM
777PERL_CALLCONV void Perl_fbm_compile(pTHX_ SV* sv, U32 flags)
778 __attribute__nonnull__(pTHX_1);
7918f24d
NC
779#define PERL_ARGS_ASSERT_FBM_COMPILE \
780 assert(sv)
255164ba 781
9f6cc744 782PERL_CALLCONV char* Perl_fbm_instr(pTHX_ unsigned char* big, unsigned char* bigend, SV* littlestr, U32 flags)
255164ba
DM
783 __attribute__warn_unused_result__
784 __attribute__nonnull__(pTHX_1)
785 __attribute__nonnull__(pTHX_2)
786 __attribute__nonnull__(pTHX_3);
7918f24d
NC
787#define PERL_ARGS_ASSERT_FBM_INSTR \
788 assert(big); assert(bigend); assert(littlestr)
255164ba 789
fb9bf107
NC
790PERL_CALLCONV char* Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char *const *const search_ext, I32 flags)
791 __attribute__nonnull__(pTHX_1);
7918f24d
NC
792#define PERL_ARGS_ASSERT_FIND_SCRIPT \
793 assert(scriptname)
fb9bf107 794
efd0b058 795#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
b7783a12
NC
796STATIC OP* S_force_list(pTHX_ OP* arg);
797STATIC OP* S_fold_constants(pTHX_ OP *o)
abb2c242 798 __attribute__nonnull__(pTHX_1);
7918f24d
NC
799#define PERL_ARGS_ASSERT_FOLD_CONSTANTS \
800 assert(o)
f54cb97a 801
b7783a12 802#endif
894356b3 803PERL_CALLCONV char* Perl_form(pTHX_ const char* pat, ...)
aec46f14
AL
804 __attribute__format__(__printf__,pTHX_1,pTHX_2)
805 __attribute__nonnull__(pTHX_1);
7918f24d
NC
806#define PERL_ARGS_ASSERT_FORM \
807 assert(pat)
aec46f14
AL
808
809PERL_CALLCONV char* Perl_vform(pTHX_ const char* pat, va_list* args)
810 __attribute__nonnull__(pTHX_1);
7918f24d
NC
811#define PERL_ARGS_ASSERT_VFORM \
812 assert(pat)
f54cb97a 813
1d7c1841 814PERL_CALLCONV void Perl_free_tmps(pTHX);
efd0b058 815#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
b7783a12 816STATIC OP* S_gen_constant_list(pTHX_ OP* o);
0da8eb3a 817#endif
864dbfa3 818#if !defined(HAS_GETENV_LEN)
9f6cc744 819PERL_CALLCONV char* Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len)
8772537c
AL
820 __attribute__nonnull__(pTHX_1)
821 __attribute__nonnull__(pTHX_2);
7918f24d
NC
822#define PERL_ARGS_ASSERT_GETENV_LEN \
823 assert(env_elem); assert(len)
8772537c 824
0cb96387 825#endif
005a8a35
NC
826PERL_CALLCONV void Perl_get_db_sub(pTHX_ SV **svp, CV *cv)
827 __attribute__nonnull__(pTHX_2);
7918f24d
NC
828#define PERL_ARGS_ASSERT_GET_DB_SUB \
829 assert(cv)
005a8a35 830
1d7c1841
GS
831PERL_CALLCONV void Perl_gp_free(pTHX_ GV* gv);
832PERL_CALLCONV GP* Perl_gp_ref(pTHX_ GP* gp);
bb85b28a
NC
833PERL_CALLCONV GV* Perl_gv_add_by_type(pTHX_ GV *gv, svtype type);
834/* PERL_CALLCONV GV* Perl_gv_AVadd(pTHX_ GV *gv); */
835/* PERL_CALLCONV GV* Perl_gv_HVadd(pTHX_ GV *gv); */
836/* PERL_CALLCONV GV* Perl_gv_IOadd(pTHX_ GV* gv); */
a28509cc
AL
837PERL_CALLCONV GV* Perl_gv_autoload4(pTHX_ HV* stash, const char* name, STRLEN len, I32 method)
838 __attribute__warn_unused_result__
839 __attribute__nonnull__(pTHX_2);
7918f24d
NC
840#define PERL_ARGS_ASSERT_GV_AUTOLOAD4 \
841 assert(name)
a28509cc 842
1146e912 843PERL_CALLCONV void Perl_gv_check(pTHX_ const HV* stash)
46c461b5 844 __attribute__nonnull__(pTHX_1);
7918f24d
NC
845#define PERL_ARGS_ASSERT_GV_CHECK \
846 assert(stash)
46c461b5
AL
847
848PERL_CALLCONV void Perl_gv_efullname(pTHX_ SV* sv, const GV* gv)
849 __attribute__nonnull__(pTHX_1)
850 __attribute__nonnull__(pTHX_2);
7918f24d
NC
851#define PERL_ARGS_ASSERT_GV_EFULLNAME \
852 assert(sv); assert(gv)
46c461b5
AL
853
854/* PERL_CALLCONV void Perl_gv_efullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
855 __attribute__nonnull__(pTHX_1)
856 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
857#define PERL_ARGS_ASSERT_GV_EFULLNAME3 \
858 assert(sv); assert(gv)
46c461b5
AL
859
860PERL_CALLCONV void Perl_gv_efullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
861 __attribute__nonnull__(pTHX_1)
862 __attribute__nonnull__(pTHX_2);
7918f24d
NC
863#define PERL_ARGS_ASSERT_GV_EFULLNAME4 \
864 assert(sv); assert(gv)
46c461b5 865
53c1dcc0
AL
866PERL_CALLCONV GV* Perl_gv_fetchfile(pTHX_ const char* name)
867 __attribute__nonnull__(pTHX_1);
7918f24d
NC
868#define PERL_ARGS_ASSERT_GV_FETCHFILE \
869 assert(name)
53c1dcc0 870
d9095cec
NC
871PERL_CALLCONV GV* Perl_gv_fetchfile_flags(pTHX_ const char *const name, const STRLEN len, const U32 flags)
872 __attribute__nonnull__(pTHX_1);
7918f24d
NC
873#define PERL_ARGS_ASSERT_GV_FETCHFILE_FLAGS \
874 assert(name)
d9095cec 875
fb9bf107
NC
876PERL_CALLCONV GV* Perl_gv_fetchmeth(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
877 __attribute__nonnull__(pTHX_2);
7918f24d
NC
878#define PERL_ARGS_ASSERT_GV_FETCHMETH \
879 assert(name)
fb9bf107
NC
880
881PERL_CALLCONV GV* Perl_gv_fetchmeth_autoload(pTHX_ HV* stash, const char* name, STRLEN len, I32 level)
882 __attribute__nonnull__(pTHX_2);
7918f24d
NC
883#define PERL_ARGS_ASSERT_GV_FETCHMETH_AUTOLOAD \
884 assert(name)
fb9bf107 885
887986eb 886/* PERL_CALLCONV GV* Perl_gv_fetchmethod(pTHX_ HV* stash, const char* name)
eff494dd 887 __attribute__nonnull__(pTHX_1)
887986eb 888 __attribute__nonnull__(pTHX_2); */
7918f24d 889#define PERL_ARGS_ASSERT_GV_FETCHMETHOD \
eff494dd 890 assert(stash); assert(name)
fb9bf107
NC
891
892PERL_CALLCONV GV* Perl_gv_fetchmethod_autoload(pTHX_ HV* stash, const char* name, I32 autoload)
eff494dd 893 __attribute__nonnull__(pTHX_1)
fb9bf107 894 __attribute__nonnull__(pTHX_2);
7918f24d 895#define PERL_ARGS_ASSERT_GV_FETCHMETHOD_AUTOLOAD \
eff494dd 896 assert(stash); assert(name)
fb9bf107 897
256d1bb2 898PERL_CALLCONV GV* Perl_gv_fetchmethod_flags(pTHX_ HV* stash, const char* name, U32 flags)
eff494dd 899 __attribute__nonnull__(pTHX_1)
256d1bb2
NC
900 __attribute__nonnull__(pTHX_2);
901#define PERL_ARGS_ASSERT_GV_FETCHMETHOD_FLAGS \
eff494dd 902 assert(stash); assert(name)
256d1bb2 903
fe9845cc 904PERL_CALLCONV GV* Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, const svtype sv_type)
9a957fbc 905 __attribute__nonnull__(pTHX_1);
7918f24d
NC
906#define PERL_ARGS_ASSERT_GV_FETCHPV \
907 assert(nambeg)
9a957fbc
AL
908
909PERL_CALLCONV void Perl_gv_fullname(pTHX_ SV* sv, const GV* gv)
910 __attribute__nonnull__(pTHX_1)
911 __attribute__nonnull__(pTHX_2);
7918f24d
NC
912#define PERL_ARGS_ASSERT_GV_FULLNAME \
913 assert(sv); assert(gv)
9a957fbc
AL
914
915/* PERL_CALLCONV void Perl_gv_fullname3(pTHX_ SV* sv, const GV* gv, const char* prefix)
916 __attribute__nonnull__(pTHX_1)
917 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
918#define PERL_ARGS_ASSERT_GV_FULLNAME3 \
919 assert(sv); assert(gv)
9a957fbc
AL
920
921PERL_CALLCONV void Perl_gv_fullname4(pTHX_ SV* sv, const GV* gv, const char* prefix, bool keepmain)
922 __attribute__nonnull__(pTHX_1)
923 __attribute__nonnull__(pTHX_2);
7918f24d
NC
924#define PERL_ARGS_ASSERT_GV_FULLNAME4 \
925 assert(sv); assert(gv)
9a957fbc 926
12816592
NC
927PERL_CALLCONV GP * Perl_newGP(pTHX_ GV *const gv)
928 __attribute__nonnull__(pTHX_1);
7918f24d
NC
929#define PERL_ARGS_ASSERT_NEWGP \
930 assert(gv)
12816592 931
53c1dcc0
AL
932PERL_CALLCONV void Perl_gv_init(pTHX_ GV* gv, HV* stash, const char* name, STRLEN len, int multi)
933 __attribute__nonnull__(pTHX_1)
53c1dcc0 934 __attribute__nonnull__(pTHX_3);
7918f24d
NC
935#define PERL_ARGS_ASSERT_GV_INIT \
936 assert(gv); assert(name)
53c1dcc0 937
f5c1e807 938PERL_CALLCONV void Perl_gv_name_set(pTHX_ GV* gv, const char *name, U32 len, U32 flags)
9f616d01
MHM
939 __attribute__nonnull__(pTHX_1)
940 __attribute__nonnull__(pTHX_2);
7918f24d
NC
941#define PERL_ARGS_ASSERT_GV_NAME_SET \
942 assert(gv); assert(name)
f5c1e807 943
da51bb9b 944PERL_CALLCONV HV* Perl_gv_stashpv(pTHX_ const char* name, I32 flags)
aa924a5a 945 __attribute__nonnull__(pTHX_1);
7918f24d
NC
946#define PERL_ARGS_ASSERT_GV_STASHPV \
947 assert(name)
aa924a5a 948
da51bb9b 949PERL_CALLCONV HV* Perl_gv_stashpvn(pTHX_ const char* name, U32 namelen, I32 flags)
aa924a5a 950 __attribute__nonnull__(pTHX_1);
7918f24d
NC
951#define PERL_ARGS_ASSERT_GV_STASHPVN \
952 assert(name)
aa924a5a 953
8798655d
NC
954PERL_CALLCONV HV* Perl_gv_stashsv(pTHX_ SV* sv, I32 flags)
955 __attribute__nonnull__(pTHX_1);
7918f24d
NC
956#define PERL_ARGS_ASSERT_GV_STASHSV \
957 assert(sv)
8798655d 958
4048f010 959PERL_CALLCONV void Perl_hv_clear(pTHX_ HV *hv);
3d4dd4c7 960PERL_CALLCONV HV * Perl_hv_copy_hints_hv(pTHX_ HV *const ohv);
4048f010 961PERL_CALLCONV void Perl_hv_delayfree_ent(pTHX_ HV *hv, HE *entry)
aa924a5a 962 __attribute__nonnull__(pTHX_1);
7918f24d
NC
963#define PERL_ARGS_ASSERT_HV_DELAYFREE_ENT \
964 assert(hv)
aa924a5a 965
4048f010 966/* PERL_CALLCONV SV* Perl_hv_delete(pTHX_ HV *hv, const char *key, I32 klen, I32 flags)
a038e571 967 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
968#define PERL_ARGS_ASSERT_HV_DELETE \
969 assert(key)
aa924a5a 970
4048f010 971/* PERL_CALLCONV SV* Perl_hv_delete_ent(pTHX_ HV *hv, SV *keysv, I32 flags, U32 hash)
4c2df08c 972 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
973#define PERL_ARGS_ASSERT_HV_DELETE_ENT \
974 assert(keysv)
aa924a5a 975
4048f010 976/* PERL_CALLCONV bool Perl_hv_exists(pTHX_ HV *hv, const char *key, I32 klen)
aa924a5a 977 __attribute__warn_unused_result__
a038e571 978 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
979#define PERL_ARGS_ASSERT_HV_EXISTS \
980 assert(key)
901017d6 981
4048f010 982/* PERL_CALLCONV bool Perl_hv_exists_ent(pTHX_ HV *hv, SV *keysv, U32 hash)
aa924a5a 983 __attribute__warn_unused_result__
4c2df08c 984 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
985#define PERL_ARGS_ASSERT_HV_EXISTS_ENT \
986 assert(keysv)
aa924a5a 987
4048f010 988/* PERL_CALLCONV SV** Perl_hv_fetch(pTHX_ HV *hv, const char *key, I32 klen, I32 lval)
a038e571 989 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
990#define PERL_ARGS_ASSERT_HV_FETCH \
991 assert(key)
901017d6 992
4048f010 993/* PERL_CALLCONV HE* Perl_hv_fetch_ent(pTHX_ HV *hv, SV *keysv, I32 lval, U32 hash)
4c2df08c 994 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
995#define PERL_ARGS_ASSERT_HV_FETCH_ENT \
996 assert(keysv)
aa924a5a 997
4048f010 998PERL_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
999PERL_CALLCONV void* Perl_hv_common_key_len(pTHX_ HV *hv, const char *key, I32 klen_i32, const int action, SV *val, const U32 hash)
1000 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1001#define PERL_ARGS_ASSERT_HV_COMMON_KEY_LEN \
1002 assert(key)
a038e571 1003
4048f010 1004PERL_CALLCONV void Perl_hv_free_ent(pTHX_ HV *hv, HE *entryK)
abb2c242 1005 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1006#define PERL_ARGS_ASSERT_HV_FREE_ENT \
1007 assert(hv)
a3b680e6 1008
4048f010 1009PERL_CALLCONV I32 Perl_hv_iterinit(pTHX_ HV *hv)
abb2c242 1010 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1011#define PERL_ARGS_ASSERT_HV_ITERINIT \
1012 assert(hv)
a3b680e6
AL
1013
1014PERL_CALLCONV char* Perl_hv_iterkey(pTHX_ HE* entry, I32* retlen)
abb2c242
JH
1015 __attribute__warn_unused_result__
1016 __attribute__nonnull__(pTHX_1)
1017 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1018#define PERL_ARGS_ASSERT_HV_ITERKEY \
1019 assert(entry); assert(retlen)
a3b680e6
AL
1020
1021PERL_CALLCONV SV* Perl_hv_iterkeysv(pTHX_ HE* entry)
abb2c242
JH
1022 __attribute__warn_unused_result__
1023 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1024#define PERL_ARGS_ASSERT_HV_ITERKEYSV \
1025 assert(entry)
a3b680e6 1026
4048f010 1027/* PERL_CALLCONV HE* Perl_hv_iternext(pTHX_ HV *hv)
abb2c242 1028 __attribute__warn_unused_result__
7a7b9979 1029 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1030#define PERL_ARGS_ASSERT_HV_ITERNEXT \
1031 assert(hv)
a3b680e6 1032
4048f010 1033PERL_CALLCONV SV* Perl_hv_iternextsv(pTHX_ HV *hv, char **key, I32 *retlen)
abb2c242
JH
1034 __attribute__warn_unused_result__
1035 __attribute__nonnull__(pTHX_1)
1036 __attribute__nonnull__(pTHX_2)
1037 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1038#define PERL_ARGS_ASSERT_HV_ITERNEXTSV \
1039 assert(hv); assert(key); assert(retlen)
a3b680e6 1040
4048f010 1041PERL_CALLCONV HE* Perl_hv_iternext_flags(pTHX_ HV *hv, I32 flags)
abb2c242
JH
1042 __attribute__warn_unused_result__
1043 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1044#define PERL_ARGS_ASSERT_HV_ITERNEXT_FLAGS \
1045 assert(hv)
a3b680e6 1046
4048f010 1047PERL_CALLCONV SV* Perl_hv_iterval(pTHX_ HV *hv, HE *entry)
abb2c242
JH
1048 __attribute__warn_unused_result__
1049 __attribute__nonnull__(pTHX_1)
1050 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1051#define PERL_ARGS_ASSERT_HV_ITERVAL \
1052 assert(hv); assert(entry)
a3b680e6 1053
4048f010 1054PERL_CALLCONV void Perl_hv_ksplit(pTHX_ HV *hv, IV newmax)
abb2c242 1055 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1056#define PERL_ARGS_ASSERT_HV_KSPLIT \
1057 assert(hv)
a3b680e6 1058
4048f010 1059/* PERL_CALLCONV void Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how)
bc5cdc23 1060 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
1061#define PERL_ARGS_ASSERT_HV_MAGIC \
1062 assert(hv)
fb9bf107 1063
b3ca2e83 1064PERL_CALLCONV HV * Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c);
18759386 1065PERL_CALLCONV SV * Perl_refcounted_he_fetch(pTHX_ const struct refcounted_he *chain, SV *keysv, const char *key, STRLEN klen, int flags, U32 hash);
b3ca2e83 1066PERL_CALLCONV void Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
b46c265e 1067PERL_CALLCONV struct refcounted_he * Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, SV *const key, SV *const value);
012da8e5
NC
1068#if defined(PERL_IN_HV_C) || defined(PERL_DECL_PROT)
1069STATIC struct refcounted_he * S_refcounted_he_new_common(pTHX_ struct refcounted_he *const parent, const char *const key_p, const STRLEN key_len, const char flags, char value_type, const void *value, const STRLEN value_len)
1070 __attribute__nonnull__(pTHX_2)
1071 __attribute__nonnull__(pTHX_6);
1072#define PERL_ARGS_ASSERT_REFCOUNTED_HE_NEW_COMMON \
1073 assert(key_p); assert(value)
1074
1075#endif
4048f010
NC
1076/* PERL_CALLCONV SV** Perl_hv_store(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash); */
1077/* PERL_CALLCONV HE* Perl_hv_store_ent(pTHX_ HV *hv, SV *key, SV *val, U32 hash); */
1078/* PERL_CALLCONV SV** Perl_hv_store_flags(pTHX_ HV *hv, const char *key, I32 klen, SV *val, U32 hash, int flags); */
1079PERL_CALLCONV void Perl_hv_undef(pTHX_ HV *hv);
04c9e624 1080PERL_CALLCONV I32 Perl_ibcmp(const char* a, const char* b, I32 len)
abb2c242 1081 __attribute__pure__
04c9e624
VP
1082 __attribute__nonnull__(1)
1083 __attribute__nonnull__(2);
7918f24d
NC
1084#define PERL_ARGS_ASSERT_IBCMP \
1085 assert(a); assert(b)
f54cb97a 1086
04c9e624 1087PERL_CALLCONV I32 Perl_ibcmp_locale(const char* a, const char* b, I32 len)
abb2c242 1088 __attribute__pure__
04c9e624
VP
1089 __attribute__nonnull__(1)
1090 __attribute__nonnull__(2);
7918f24d
NC
1091#define PERL_ARGS_ASSERT_IBCMP_LOCALE \
1092 assert(a); assert(b)
f54cb97a 1093
4048f010 1094PERL_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
1095 __attribute__nonnull__(pTHX_1)
1096 __attribute__nonnull__(pTHX_5);
7918f24d
NC
1097#define PERL_ARGS_ASSERT_IBCMP_UTF8 \
1098 assert(s1); assert(s2)
f54cb97a 1099
efd0b058 1100#if defined(PERL_IN_DOIO_C) || defined(PERL_DECL_PROT)
0da8eb3a 1101STATIC bool S_ingroup(pTHX_ Gid_t testgid, bool effective)
abb2c242 1102 __attribute__warn_unused_result__;
f54cb97a 1103
0da8eb3a 1104#endif
4373e329 1105PERL_CALLCONV void Perl_init_argv_symbols(pTHX_ int argc, char **argv)
abb2c242 1106 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1107#define PERL_ARGS_ASSERT_INIT_ARGV_SYMBOLS \
1108 assert(argv)
f54cb97a 1109
1d7c1841
GS
1110PERL_CALLCONV void Perl_init_debugger(pTHX);
1111PERL_CALLCONV void Perl_init_stacks(pTHX);
bfce84ec
AL
1112PERL_CALLCONV void Perl_init_tm(pTHX_ struct tm *ptm)
1113 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1114#define PERL_ARGS_ASSERT_INIT_TM \
1115 assert(ptm)
bfce84ec 1116
1d7c1841 1117PERL_CALLCONV U32 Perl_intro_my(pTHX);
04c9e624 1118PERL_CALLCONV char* Perl_instr(const char* big, const char* little)
b464bac0 1119 __attribute__warn_unused_result__
abb2c242 1120 __attribute__pure__
04c9e624
VP
1121 __attribute__nonnull__(1)
1122 __attribute__nonnull__(2);
7918f24d
NC
1123#define PERL_ARGS_ASSERT_INSTR \
1124 assert(big); assert(little)
f54cb97a 1125
b464bac0 1126PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit)
b464bac0 1127 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1128#define PERL_ARGS_ASSERT_IO_CLOSE \
1129 assert(io)
b464bac0
AL
1130
1131PERL_CALLCONV OP* Perl_invert(pTHX_ OP* cmd)
1132 __attribute__warn_unused_result__;
1133
f54cb97a 1134PERL_CALLCONV I32 Perl_is_lvalue_sub(pTHX)
abb2c242 1135 __attribute__warn_unused_result__;
f54cb97a
AL
1136
1137PERL_CALLCONV U32 Perl_to_uni_upper_lc(pTHX_ U32 c)
abb2c242
JH
1138 __attribute__warn_unused_result__
1139 __attribute__pure__;
f54cb97a
AL
1140
1141PERL_CALLCONV U32 Perl_to_uni_title_lc(pTHX_ U32 c)
abb2c242
JH
1142 __attribute__warn_unused_result__
1143 __attribute__pure__;
f54cb97a
AL
1144
1145PERL_CALLCONV U32 Perl_to_uni_lower_lc(pTHX_ U32 c)
abb2c242
JH
1146 __attribute__warn_unused_result__
1147 __attribute__pure__;
f54cb97a
AL
1148
1149PERL_CALLCONV bool Perl_is_uni_alnum(pTHX_ UV c)
abb2c242
JH
1150 __attribute__warn_unused_result__
1151 __attribute__pure__;
f54cb97a 1152
f54cb97a 1153PERL_CALLCONV bool Perl_is_uni_idfirst(pTHX_ UV c)
abb2c242
JH
1154 __attribute__warn_unused_result__
1155 __attribute__pure__;
f54cb97a
AL
1156
1157PERL_CALLCONV bool Perl_is_uni_alpha(pTHX_ UV c)
abb2c242
JH
1158 __attribute__warn_unused_result__
1159 __attribute__pure__;
f54cb97a
AL
1160
1161PERL_CALLCONV bool Perl_is_uni_ascii(pTHX_ UV c)
abb2c242
JH
1162 __attribute__warn_unused_result__
1163 __attribute__pure__;
f54cb97a
AL
1164
1165PERL_CALLCONV bool Perl_is_uni_space(pTHX_ UV c)
abb2c242
JH
1166 __attribute__warn_unused_result__
1167 __attribute__pure__;
f54cb97a
AL
1168
1169PERL_CALLCONV bool Perl_is_uni_cntrl(pTHX_ UV c)
abb2c242
JH
1170 __attribute__warn_unused_result__
1171 __attribute__pure__;
f54cb97a
AL
1172
1173PERL_CALLCONV bool Perl_is_uni_graph(pTHX_ UV c)
abb2c242
JH
1174 __attribute__warn_unused_result__
1175 __attribute__pure__;
f54cb97a
AL
1176
1177PERL_CALLCONV bool Perl_is_uni_digit(pTHX_ UV c)
abb2c242
JH
1178 __attribute__warn_unused_result__
1179 __attribute__pure__;
f54cb97a
AL
1180
1181PERL_CALLCONV bool Perl_is_uni_upper(pTHX_ UV c)
abb2c242
JH
1182 __attribute__warn_unused_result__
1183 __attribute__pure__;
f54cb97a
AL
1184
1185PERL_CALLCONV bool Perl_is_uni_lower(pTHX_ UV c)
abb2c242
JH
1186 __attribute__warn_unused_result__
1187 __attribute__pure__;
f54cb97a
AL
1188
1189PERL_CALLCONV bool Perl_is_uni_print(pTHX_ UV c)
abb2c242
JH
1190 __attribute__warn_unused_result__
1191 __attribute__pure__;
f54cb97a
AL
1192
1193PERL_CALLCONV bool Perl_is_uni_punct(pTHX_ UV c)
abb2c242
JH
1194 __attribute__warn_unused_result__
1195 __attribute__pure__;
f54cb97a
AL
1196
1197PERL_CALLCONV bool Perl_is_uni_xdigit(pTHX_ UV c)
abb2c242
JH
1198 __attribute__warn_unused_result__
1199 __attribute__pure__;
f54cb97a 1200
4373e329 1201PERL_CALLCONV UV Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1202 __attribute__nonnull__(pTHX_2)
1203 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1204#define PERL_ARGS_ASSERT_TO_UNI_UPPER \
1205 assert(p); assert(lenp)
f54cb97a 1206
4373e329 1207PERL_CALLCONV UV Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1208 __attribute__nonnull__(pTHX_2)
1209 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1210#define PERL_ARGS_ASSERT_TO_UNI_TITLE \
1211 assert(p); assert(lenp)
f54cb97a 1212
4373e329 1213PERL_CALLCONV UV Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1214 __attribute__nonnull__(pTHX_2)
1215 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1216#define PERL_ARGS_ASSERT_TO_UNI_LOWER \
1217 assert(p); assert(lenp)
f54cb97a 1218
4373e329 1219PERL_CALLCONV UV Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1220 __attribute__nonnull__(pTHX_2)
1221 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1222#define PERL_ARGS_ASSERT_TO_UNI_FOLD \
1223 assert(p); assert(lenp)
f54cb97a
AL
1224
1225PERL_CALLCONV bool Perl_is_uni_alnum_lc(pTHX_ UV c)
abb2c242
JH
1226 __attribute__warn_unused_result__
1227 __attribute__pure__;
f54cb97a 1228
f54cb97a 1229PERL_CALLCONV bool Perl_is_uni_idfirst_lc(pTHX_ UV c)
abb2c242
JH
1230 __attribute__warn_unused_result__
1231 __attribute__pure__;
f54cb97a
AL
1232
1233PERL_CALLCONV bool Perl_is_uni_alpha_lc(pTHX_ UV c)
abb2c242
JH
1234 __attribute__warn_unused_result__
1235 __attribute__pure__;
f54cb97a
AL
1236
1237PERL_CALLCONV bool Perl_is_uni_ascii_lc(pTHX_ UV c)
abb2c242
JH
1238 __attribute__warn_unused_result__
1239 __attribute__pure__;
f54cb97a
AL
1240
1241PERL_CALLCONV bool Perl_is_uni_space_lc(pTHX_ UV c)
abb2c242
JH
1242 __attribute__warn_unused_result__
1243 __attribute__pure__;
f54cb97a
AL
1244
1245PERL_CALLCONV bool Perl_is_uni_cntrl_lc(pTHX_ UV c)
abb2c242
JH
1246 __attribute__warn_unused_result__
1247 __attribute__pure__;
f54cb97a
AL
1248
1249PERL_CALLCONV bool Perl_is_uni_graph_lc(pTHX_ UV c)
abb2c242
JH
1250 __attribute__warn_unused_result__
1251 __attribute__pure__;
f54cb97a
AL
1252
1253PERL_CALLCONV bool Perl_is_uni_digit_lc(pTHX_ UV c)
abb2c242
JH
1254 __attribute__warn_unused_result__
1255 __attribute__pure__;
f54cb97a
AL
1256
1257PERL_CALLCONV bool Perl_is_uni_upper_lc(pTHX_ UV c)
abb2c242
JH
1258 __attribute__warn_unused_result__
1259 __attribute__pure__;
f54cb97a
AL
1260
1261PERL_CALLCONV bool Perl_is_uni_lower_lc(pTHX_ UV c)
abb2c242
JH
1262 __attribute__warn_unused_result__
1263 __attribute__pure__;
f54cb97a
AL
1264
1265PERL_CALLCONV bool Perl_is_uni_print_lc(pTHX_ UV c)
abb2c242
JH
1266 __attribute__warn_unused_result__
1267 __attribute__pure__;
f54cb97a
AL
1268
1269PERL_CALLCONV bool Perl_is_uni_punct_lc(pTHX_ UV c)
abb2c242
JH
1270 __attribute__warn_unused_result__
1271 __attribute__pure__;
f54cb97a
AL
1272
1273PERL_CALLCONV bool Perl_is_uni_xdigit_lc(pTHX_ UV c)
abb2c242
JH
1274 __attribute__warn_unused_result__
1275 __attribute__pure__;
f54cb97a 1276
668b6d8d
VP
1277PERL_CALLCONV bool Perl_is_ascii_string(const U8 *s, STRLEN len)
1278 __attribute__nonnull__(1);
eaf7a4d2
CS
1279#define PERL_ARGS_ASSERT_IS_ASCII_STRING \
1280 assert(s)
1281
668b6d8d
VP
1282PERL_CALLCONV STRLEN Perl_is_utf8_char(const U8 *s)
1283 __attribute__nonnull__(1);
7918f24d
NC
1284#define PERL_ARGS_ASSERT_IS_UTF8_CHAR \
1285 assert(s)
f54cb97a 1286
668b6d8d
VP
1287PERL_CALLCONV bool Perl_is_utf8_string(const U8 *s, STRLEN len)
1288 __attribute__nonnull__(1);
7918f24d
NC
1289#define PERL_ARGS_ASSERT_IS_UTF8_STRING \
1290 assert(s)
f54cb97a 1291
668b6d8d
VP
1292/* PERL_CALLCONV bool Perl_is_utf8_string_loc(const U8 *s, STRLEN len, const U8 **p)
1293 __attribute__nonnull__(1); */
7918f24d
NC
1294#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC \
1295 assert(s)
768c67ee 1296
668b6d8d
VP
1297PERL_CALLCONV bool Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)
1298 __attribute__nonnull__(1);
7918f24d
NC
1299#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN \
1300 assert(s)
f54cb97a 1301
4373e329 1302PERL_CALLCONV bool Perl_is_utf8_alnum(pTHX_ const U8 *p)
1df70142 1303 __attribute__warn_unused_result__
abb2c242 1304 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1305#define PERL_ARGS_ASSERT_IS_UTF8_ALNUM \
1306 assert(p)
f54cb97a 1307
4373e329 1308PERL_CALLCONV bool Perl_is_utf8_idfirst(pTHX_ const U8 *p)
1df70142 1309 __attribute__warn_unused_result__
abb2c242 1310 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1311#define PERL_ARGS_ASSERT_IS_UTF8_IDFIRST \
1312 assert(p)
f54cb97a 1313
4373e329 1314PERL_CALLCONV bool Perl_is_utf8_idcont(pTHX_ const U8 *p)
1df70142 1315 __attribute__warn_unused_result__
abb2c242 1316 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1317#define PERL_ARGS_ASSERT_IS_UTF8_IDCONT \
1318 assert(p)
f54cb97a 1319
4373e329 1320PERL_CALLCONV bool Perl_is_utf8_alpha(pTHX_ const U8 *p)
1df70142 1321 __attribute__warn_unused_result__
abb2c242 1322 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1323#define PERL_ARGS_ASSERT_IS_UTF8_ALPHA \
1324 assert(p)
f54cb97a 1325
4373e329 1326PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ const U8 *p)
1df70142 1327 __attribute__warn_unused_result__
abb2c242 1328 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1329#define PERL_ARGS_ASSERT_IS_UTF8_ASCII \
1330 assert(p)
f54cb97a 1331
4373e329 1332PERL_CALLCONV bool Perl_is_utf8_space(pTHX_ const U8 *p)
1df70142 1333 __attribute__warn_unused_result__
abb2c242 1334 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1335#define PERL_ARGS_ASSERT_IS_UTF8_SPACE \
1336 assert(p)
f54cb97a 1337
d1eb3177
YO
1338PERL_CALLCONV bool Perl_is_utf8_perl_space(pTHX_ const U8 *p)
1339 __attribute__warn_unused_result__
1340 __attribute__nonnull__(pTHX_1);
1341#define PERL_ARGS_ASSERT_IS_UTF8_PERL_SPACE \
1342 assert(p)
1343
1344PERL_CALLCONV bool Perl_is_utf8_perl_word(pTHX_ const U8 *p)
1345 __attribute__warn_unused_result__
1346 __attribute__nonnull__(pTHX_1);
1347#define PERL_ARGS_ASSERT_IS_UTF8_PERL_WORD \
1348 assert(p)
1349
4373e329 1350PERL_CALLCONV bool Perl_is_utf8_cntrl(pTHX_ const U8 *p)
1df70142 1351 __attribute__warn_unused_result__
abb2c242 1352 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1353#define PERL_ARGS_ASSERT_IS_UTF8_CNTRL \
1354 assert(p)
f54cb97a 1355
4373e329 1356PERL_CALLCONV bool Perl_is_utf8_digit(pTHX_ const U8 *p)
1df70142 1357 __attribute__warn_unused_result__
abb2c242 1358 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1359#define PERL_ARGS_ASSERT_IS_UTF8_DIGIT \
1360 assert(p)
f54cb97a 1361
d1eb3177
YO
1362PERL_CALLCONV bool Perl_is_utf8_posix_digit(pTHX_ const U8 *p)
1363 __attribute__warn_unused_result__
1364 __attribute__nonnull__(pTHX_1);
1365#define PERL_ARGS_ASSERT_IS_UTF8_POSIX_DIGIT \
1366 assert(p)
1367
4373e329 1368PERL_CALLCONV bool Perl_is_utf8_graph(pTHX_ const U8 *p)
1df70142 1369 __attribute__warn_unused_result__
abb2c242 1370 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1371#define PERL_ARGS_ASSERT_IS_UTF8_GRAPH \
1372 assert(p)
f54cb97a 1373
4373e329 1374PERL_CALLCONV bool Perl_is_utf8_upper(pTHX_ const U8 *p)
1df70142 1375 __attribute__warn_unused_result__
abb2c242 1376 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1377#define PERL_ARGS_ASSERT_IS_UTF8_UPPER \
1378 assert(p)
f54cb97a 1379
4373e329 1380PERL_CALLCONV bool Perl_is_utf8_lower(pTHX_ const U8 *p)
1df70142 1381 __attribute__warn_unused_result__
abb2c242 1382 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1383#define PERL_ARGS_ASSERT_IS_UTF8_LOWER \
1384 assert(p)
f54cb97a 1385
4373e329 1386PERL_CALLCONV bool Perl_is_utf8_print(pTHX_ const U8 *p)
1df70142 1387 __attribute__warn_unused_result__
abb2c242 1388 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1389#define PERL_ARGS_ASSERT_IS_UTF8_PRINT \
1390 assert(p)
f54cb97a 1391
4373e329 1392PERL_CALLCONV bool Perl_is_utf8_punct(pTHX_ const U8 *p)
1df70142 1393 __attribute__warn_unused_result__
abb2c242 1394 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1395#define PERL_ARGS_ASSERT_IS_UTF8_PUNCT \
1396 assert(p)
f54cb97a 1397
4373e329 1398PERL_CALLCONV bool Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1df70142 1399 __attribute__warn_unused_result__
abb2c242 1400 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1401#define PERL_ARGS_ASSERT_IS_UTF8_XDIGIT \
1402 assert(p)
f54cb97a 1403
4373e329 1404PERL_CALLCONV bool Perl_is_utf8_mark(pTHX_ const U8 *p)
1df70142 1405 __attribute__warn_unused_result__
abb2c242 1406 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1407#define PERL_ARGS_ASSERT_IS_UTF8_MARK \
1408 assert(p)
f54cb97a 1409
4048f010 1410PERL_CALLCONV OP* Perl_jmaybe(pTHX_ OP *o)
abb2c242 1411 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1412#define PERL_ARGS_ASSERT_JMAYBE \
1413 assert(o)
f54cb97a 1414
4048f010 1415PERL_CALLCONV I32 Perl_keyword(pTHX_ const char *name, I32 len, bool all_keywords)
abb2c242
JH
1416 __attribute__pure__
1417 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1418#define PERL_ARGS_ASSERT_KEYWORD \
1419 assert(name)
f54cb97a 1420
867fa1e2
YO
1421#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
1422STATIC OP* S_opt_scalarhv(pTHX_ OP* rep_op)
1423 __attribute__nonnull__(pTHX_1);
1424#define PERL_ARGS_ASSERT_OPT_SCALARHV \
1425 assert(rep_op)
1426
1427#endif
1d7c1841
GS
1428PERL_CALLCONV void Perl_leave_scope(pTHX_ I32 base);
1429PERL_CALLCONV void Perl_lex_end(pTHX);
5486870f 1430PERL_CALLCONV void Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, bool new_filter);
aec46f14
AL
1431PERL_CALLCONV void Perl_op_null(pTHX_ OP* o)
1432 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1433#define PERL_ARGS_ASSERT_OP_NULL \
1434 assert(o)
aec46f14
AL
1435
1436PERL_CALLCONV void Perl_op_clear(pTHX_ OP* o)
1437 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1438#define PERL_ARGS_ASSERT_OP_CLEAR \
1439 assert(o)
aec46f14 1440
4026c95a
SH
1441PERL_CALLCONV void Perl_op_refcnt_lock(pTHX);
1442PERL_CALLCONV void Perl_op_refcnt_unlock(pTHX);
efd0b058 1443#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
12e93c28 1444STATIC OP* S_linklist(pTHX_ OP *o)
aec46f14 1445 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1446#define PERL_ARGS_ASSERT_LINKLIST \
1447 assert(o)
aec46f14 1448
412da003 1449STATIC OP* S_listkids(pTHX_ OP* o);
2dd5337b 1450#endif
1d7c1841 1451PERL_CALLCONV OP* Perl_list(pTHX_ OP* o);
aec46f14
AL
1452PERL_CALLCONV void Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...)
1453 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1454#define PERL_ARGS_ASSERT_LOAD_MODULE \
1455 assert(name)
aec46f14
AL
1456
1457PERL_CALLCONV void Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args)
1458 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1459#define PERL_ARGS_ASSERT_VLOAD_MODULE \
1460 assert(name)
aec46f14 1461
4048f010 1462PERL_CALLCONV OP* Perl_localize(pTHX_ OP *o, I32 lex)
bfce84ec 1463 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1464#define PERL_ARGS_ASSERT_LOCALIZE \
1465 assert(o)
bfce84ec 1466
aad570aa 1467PERL_CALLCONV I32 Perl_looks_like_number(pTHX_ SV *const sv)
abb2c242
JH
1468 __attribute__warn_unused_result__
1469 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1470#define PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER \
1471 assert(sv)
f54cb97a 1472
a3b680e6 1473PERL_CALLCONV UV Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1474 __attribute__nonnull__(pTHX_1)
1475 __attribute__nonnull__(pTHX_2)
1476 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1477#define PERL_ARGS_ASSERT_GROK_BIN \
1478 assert(start); assert(len_p); assert(flags)
f54cb97a 1479
a3b680e6 1480PERL_CALLCONV UV Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1481 __attribute__nonnull__(pTHX_1)
1482 __attribute__nonnull__(pTHX_2)
1483 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1484#define PERL_ARGS_ASSERT_GROK_HEX \
1485 assert(start); assert(len_p); assert(flags)
f54cb97a
AL
1486
1487PERL_CALLCONV int Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
abb2c242 1488 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1489#define PERL_ARGS_ASSERT_GROK_NUMBER \
1490 assert(pv)
f54cb97a 1491
901017d6 1492PERL_CALLCONV bool Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
bfce84ec
AL
1493 __attribute__warn_unused_result__
1494 __attribute__nonnull__(pTHX_1)
1495 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1496#define PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX \
1497 assert(sp); assert(send)
bfce84ec
AL
1498
1499PERL_CALLCONV UV Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
fb9bf107
NC
1500 __attribute__nonnull__(pTHX_1)
1501 __attribute__nonnull__(pTHX_2)
1502 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1503#define PERL_ARGS_ASSERT_GROK_OCT \
1504 assert(start); assert(len_p); assert(flags)
bfce84ec
AL
1505
1506PERL_CALLCONV int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg)
1507 __attribute__nonnull__(pTHX_1)
1508 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1509#define PERL_ARGS_ASSERT_MAGIC_CLEARENV \
1510 assert(sv); assert(mg)
bfce84ec
AL
1511
1512PERL_CALLCONV int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg)
1513 __attribute__nonnull__(pTHX_1)
1514 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1515#define PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV \
1516 assert(sv); assert(mg)
bfce84ec 1517
b3ca2e83
NC
1518PERL_CALLCONV int Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg)
1519 __attribute__nonnull__(pTHX_1)
1520 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1521#define PERL_ARGS_ASSERT_MAGIC_CLEARHINT \
1522 assert(sv); assert(mg)
b3ca2e83 1523
f747ebd6
Z
1524PERL_CALLCONV int Perl_magic_clearhints(pTHX_ SV* sv, MAGIC* mg)
1525 __attribute__nonnull__(pTHX_1)
1526 __attribute__nonnull__(pTHX_2);
1527#define PERL_ARGS_ASSERT_MAGIC_CLEARHINTS \
1528 assert(sv); assert(mg)
1529
52b45067 1530PERL_CALLCONV int Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg)
52b45067 1531 __attribute__nonnull__(pTHX_2);
7918f24d 1532#define PERL_ARGS_ASSERT_MAGIC_CLEARISA \
0e446081 1533 assert(mg)
52b45067 1534
bfce84ec
AL
1535PERL_CALLCONV int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg)
1536 __attribute__nonnull__(pTHX_1)
1537 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1538#define PERL_ARGS_ASSERT_MAGIC_CLEARPACK \
1539 assert(sv); assert(mg)
bfce84ec
AL
1540
1541PERL_CALLCONV int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg)
1542 __attribute__nonnull__(pTHX_1)
1543 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1544#define PERL_ARGS_ASSERT_MAGIC_CLEARSIG \
1545 assert(sv); assert(mg)
bfce84ec 1546
1146e912 1547PERL_CALLCONV int Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg)
bfce84ec
AL
1548 __attribute__nonnull__(pTHX_1)
1549 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1550#define PERL_ARGS_ASSERT_MAGIC_EXISTSPACK \
1551 assert(sv); assert(mg)
bfce84ec 1552
bfce84ec
AL
1553PERL_CALLCONV int Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg)
1554 __attribute__nonnull__(pTHX_1)
1555 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1556#define PERL_ARGS_ASSERT_MAGIC_FREEOVRLD \
1557 assert(sv); assert(mg)
bfce84ec
AL
1558
1559PERL_CALLCONV int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg)
1560 __attribute__nonnull__(pTHX_1)
1561 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1562#define PERL_ARGS_ASSERT_MAGIC_GET \
1563 assert(sv); assert(mg)
901017d6 1564
8772537c
AL
1565PERL_CALLCONV int Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg)
1566 __attribute__nonnull__(pTHX_1)
1567 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1568#define PERL_ARGS_ASSERT_MAGIC_GETARYLEN \
1569 assert(sv); assert(mg)
8772537c 1570
bfce84ec
AL
1571PERL_CALLCONV int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg)
1572 __attribute__nonnull__(pTHX_1)
1573 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1574#define PERL_ARGS_ASSERT_MAGIC_GETDEFELEM \
1575 assert(sv); assert(mg)
bfce84ec 1576
bfce84ec
AL
1577PERL_CALLCONV int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg)
1578 __attribute__nonnull__(pTHX_1)
1579 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1580#define PERL_ARGS_ASSERT_MAGIC_GETNKEYS \
1581 assert(sv); assert(mg)
bfce84ec
AL
1582
1583PERL_CALLCONV int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg)
1584 __attribute__nonnull__(pTHX_1)
1585 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1586#define PERL_ARGS_ASSERT_MAGIC_GETPACK \
1587 assert(sv); assert(mg)
bfce84ec
AL
1588
1589PERL_CALLCONV int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg)
1590 __attribute__nonnull__(pTHX_1)
1591 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1592#define PERL_ARGS_ASSERT_MAGIC_GETPOS \
1593 assert(sv); assert(mg)
bfce84ec
AL
1594
1595PERL_CALLCONV int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg)
1596 __attribute__nonnull__(pTHX_1)
1597 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1598#define PERL_ARGS_ASSERT_MAGIC_GETSIG \
1599 assert(sv); assert(mg)
bfce84ec
AL
1600
1601PERL_CALLCONV int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg)
1602 __attribute__nonnull__(pTHX_1)
1603 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1604#define PERL_ARGS_ASSERT_MAGIC_GETSUBSTR \
1605 assert(sv); assert(mg)
bfce84ec
AL
1606
1607PERL_CALLCONV int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg)
1608 __attribute__nonnull__(pTHX_1)
1609 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1610#define PERL_ARGS_ASSERT_MAGIC_GETTAINT \
1611 assert(sv); assert(mg)
bfce84ec
AL
1612
1613PERL_CALLCONV int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg)
1614 __attribute__nonnull__(pTHX_1)
1615 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1616#define PERL_ARGS_ASSERT_MAGIC_GETUVAR \
1617 assert(sv); assert(mg)
bfce84ec
AL
1618
1619PERL_CALLCONV int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg)
1620 __attribute__nonnull__(pTHX_1)
1621 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1622#define PERL_ARGS_ASSERT_MAGIC_GETVEC \
1623 assert(sv); assert(mg)
bfce84ec
AL
1624
1625PERL_CALLCONV U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg)
1626 __attribute__nonnull__(pTHX_1)
1627 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1628#define PERL_ARGS_ASSERT_MAGIC_LEN \
1629 assert(sv); assert(mg)
bfce84ec 1630
4048f010 1631PERL_CALLCONV int Perl_magic_nextpack(pTHX_ SV *sv, MAGIC *mg, SV *key)
bfce84ec
AL
1632 __attribute__nonnull__(pTHX_1)
1633 __attribute__nonnull__(pTHX_2)
1634 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1635#define PERL_ARGS_ASSERT_MAGIC_NEXTPACK \
1636 assert(sv); assert(mg); assert(key)
bfce84ec
AL
1637
1638PERL_CALLCONV U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg)
1639 __attribute__nonnull__(pTHX_1)
1640 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1641#define PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT \
1642 assert(sv); assert(mg)
bfce84ec
AL
1643
1644PERL_CALLCONV int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg)
1645 __attribute__nonnull__(pTHX_1)
1646 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1647#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET \
1648 assert(sv); assert(mg)
bfce84ec 1649
f54cb97a 1650PERL_CALLCONV int Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1651 __attribute__noreturn__
1652 __attribute__nonnull__(pTHX_1)
1653 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1654#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET \
1655 assert(sv); assert(mg)
bfce84ec
AL
1656
1657PERL_CALLCONV int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg)
1658 __attribute__nonnull__(pTHX_1)
1659 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1660#define PERL_ARGS_ASSERT_MAGIC_SET \
1661 assert(sv); assert(mg)
bfce84ec
AL
1662
1663PERL_CALLCONV int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg)
1664 __attribute__nonnull__(pTHX_1)
1665 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1666#define PERL_ARGS_ASSERT_MAGIC_SETAMAGIC \
1667 assert(sv); assert(mg)
bfce84ec
AL
1668
1669PERL_CALLCONV int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg)
1670 __attribute__nonnull__(pTHX_1)
1671 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1672#define PERL_ARGS_ASSERT_MAGIC_SETARYLEN \
1673 assert(sv); assert(mg)
bfce84ec
AL
1674
1675PERL_CALLCONV int Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg)
1676 __attribute__nonnull__(pTHX_1)
1677 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1678#define PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P \
1679 assert(sv); assert(mg)
bfce84ec 1680
488344d2 1681PERL_CALLCONV int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1682 __attribute__nonnull__(pTHX_1)
1683 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1684#define PERL_ARGS_ASSERT_MAGIC_SETDBLINE \
1685 assert(sv); assert(mg)
bfce84ec 1686
488344d2 1687PERL_CALLCONV int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1688 __attribute__nonnull__(pTHX_1)
1689 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1690#define PERL_ARGS_ASSERT_MAGIC_SETDEFELEM \
1691 assert(sv); assert(mg)
bfce84ec 1692
488344d2 1693PERL_CALLCONV int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1694 __attribute__nonnull__(pTHX_1)
1695 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1696#define PERL_ARGS_ASSERT_MAGIC_SETENV \
1697 assert(sv); assert(mg)
bfce84ec 1698
b3ca2e83
NC
1699PERL_CALLCONV int Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg)
1700 __attribute__nonnull__(pTHX_1)
1701 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1702#define PERL_ARGS_ASSERT_MAGIC_SETHINT \
1703 assert(sv); assert(mg)
b3ca2e83 1704
bfce84ec
AL
1705PERL_CALLCONV int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg)
1706 __attribute__nonnull__(pTHX_1)
1707 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1708#define PERL_ARGS_ASSERT_MAGIC_SETISA \
1709 assert(sv); assert(mg)
bfce84ec 1710
bfce84ec
AL
1711PERL_CALLCONV int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg)
1712 __attribute__nonnull__(pTHX_1)
1713 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1714#define PERL_ARGS_ASSERT_MAGIC_SETMGLOB \
1715 assert(sv); assert(mg)
bfce84ec
AL
1716
1717PERL_CALLCONV int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg)
1718 __attribute__nonnull__(pTHX_1)
1719 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1720#define PERL_ARGS_ASSERT_MAGIC_SETNKEYS \
1721 assert(sv); assert(mg)
bfce84ec
AL
1722
1723PERL_CALLCONV int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg)
1724 __attribute__nonnull__(pTHX_1)
1725 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1726#define PERL_ARGS_ASSERT_MAGIC_SETPACK \
1727 assert(sv); assert(mg)
bfce84ec
AL
1728
1729PERL_CALLCONV int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg)
1730 __attribute__nonnull__(pTHX_1)
1731 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1732#define PERL_ARGS_ASSERT_MAGIC_SETPOS \
1733 assert(sv); assert(mg)
bfce84ec
AL
1734
1735PERL_CALLCONV int Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg)
1736 __attribute__nonnull__(pTHX_1)
1737 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1738#define PERL_ARGS_ASSERT_MAGIC_SETREGEXP \
1739 assert(sv); assert(mg)
bfce84ec
AL
1740
1741PERL_CALLCONV int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg)
bfce84ec 1742 __attribute__nonnull__(pTHX_2);
7918f24d 1743#define PERL_ARGS_ASSERT_MAGIC_SETSIG \
38a124f0 1744 assert(mg)
bfce84ec
AL
1745
1746PERL_CALLCONV int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg)
1747 __attribute__nonnull__(pTHX_1)
1748 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1749#define PERL_ARGS_ASSERT_MAGIC_SETSUBSTR \
1750 assert(sv); assert(mg)
bfce84ec
AL
1751
1752PERL_CALLCONV int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg)
1753 __attribute__nonnull__(pTHX_1)
1754 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1755#define PERL_ARGS_ASSERT_MAGIC_SETTAINT \
1756 assert(sv); assert(mg)
bfce84ec
AL
1757
1758PERL_CALLCONV int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg)
1759 __attribute__nonnull__(pTHX_1)
1760 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1761#define PERL_ARGS_ASSERT_MAGIC_SETUVAR \
1762 assert(sv); assert(mg)
bfce84ec
AL
1763
1764PERL_CALLCONV int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg)
1765 __attribute__nonnull__(pTHX_1)
1766 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1767#define PERL_ARGS_ASSERT_MAGIC_SETVEC \
1768 assert(sv); assert(mg)
bfce84ec
AL
1769
1770PERL_CALLCONV int Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg)
1771 __attribute__nonnull__(pTHX_1)
1772 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1773#define PERL_ARGS_ASSERT_MAGIC_SETUTF8 \
1774 assert(sv); assert(mg)
bfce84ec
AL
1775
1776PERL_CALLCONV int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg)
1777 __attribute__nonnull__(pTHX_1)
1778 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1779#define PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV \
1780 assert(sv); assert(mg)
bfce84ec
AL
1781
1782PERL_CALLCONV U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg)
1783 __attribute__nonnull__(pTHX_1)
1784 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1785#define PERL_ARGS_ASSERT_MAGIC_SIZEPACK \
1786 assert(sv); assert(mg)
bfce84ec
AL
1787
1788PERL_CALLCONV int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg)
1789 __attribute__nonnull__(pTHX_1)
1790 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1791#define PERL_ARGS_ASSERT_MAGIC_WIPEPACK \
1792 assert(sv); assert(mg)
bfce84ec 1793
1d7c1841 1794PERL_CALLCONV void Perl_markstack_grow(pTHX);
864dbfa3 1795#if defined(USE_LOCALE_COLLATE)
aa924a5a
SH
1796PERL_CALLCONV int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg)
1797 __attribute__nonnull__(pTHX_1)
1798 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1799#define PERL_ARGS_ASSERT_MAGIC_SETCOLLXFRM \
1800 assert(sv); assert(mg)
aa924a5a
SH
1801
1802PERL_CALLCONV char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen)
1803 __attribute__nonnull__(pTHX_1)
1804 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1805#define PERL_ARGS_ASSERT_MEM_COLLXFRM \
1806 assert(s); assert(xlen)
aa924a5a 1807
0cb96387 1808#endif
894356b3 1809PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...)
aec46f14
AL
1810 __attribute__format__(__printf__,pTHX_1,pTHX_2)
1811 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1812#define PERL_ARGS_ASSERT_MESS \
1813 assert(pat)
aec46f14
AL
1814
1815PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args)
1816 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1817#define PERL_ARGS_ASSERT_VMESS \
1818 assert(pat)
f54cb97a 1819
aa924a5a
SH
1820PERL_CALLCONV void Perl_qerror(pTHX_ SV* err)
1821 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1822#define PERL_ARGS_ASSERT_QERROR \
1823 assert(err)
aa924a5a
SH
1824
1825PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp)
52657f30 1826 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1827#define PERL_ARGS_ASSERT_SORTSV \
1828 assert(cmp)
aa924a5a 1829
7b9ef140 1830PERL_CALLCONV void Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags)
52657f30 1831 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1832#define PERL_ARGS_ASSERT_SORTSV_FLAGS \
1833 assert(cmp)
7b9ef140 1834
9a957fbc
AL
1835PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv)
1836 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1837#define PERL_ARGS_ASSERT_MG_CLEAR \
1838 assert(sv)
9a957fbc 1839
4048f010 1840PERL_CALLCONV int Perl_mg_copy(pTHX_ SV *sv, SV *nsv, const char *key, I32 klen)
9a957fbc
AL
1841 __attribute__nonnull__(pTHX_1)
1842 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1843#define PERL_ARGS_ASSERT_MG_COPY \
1844 assert(sv); assert(nsv)
9a957fbc 1845
af7df257 1846PERL_CALLCONV void Perl_mg_localize(pTHX_ SV* sv, SV* nsv, bool setmagic)
9a957fbc
AL
1847 __attribute__nonnull__(pTHX_1)
1848 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1849#define PERL_ARGS_ASSERT_MG_LOCALIZE \
1850 assert(sv); assert(nsv)
9a957fbc 1851
255164ba
DM
1852PERL_CALLCONV MAGIC* Perl_mg_find(pTHX_ const SV* sv, int type)
1853 __attribute__warn_unused_result__;
1854
9a957fbc
AL
1855PERL_CALLCONV int Perl_mg_free(pTHX_ SV* sv)
1856 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1857#define PERL_ARGS_ASSERT_MG_FREE \
1858 assert(sv)
9a957fbc
AL
1859
1860PERL_CALLCONV int Perl_mg_get(pTHX_ SV* sv)
1861 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1862#define PERL_ARGS_ASSERT_MG_GET \
1863 assert(sv)
9a957fbc
AL
1864
1865PERL_CALLCONV U32 Perl_mg_length(pTHX_ SV* sv)
1866 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1867#define PERL_ARGS_ASSERT_MG_LENGTH \
1868 assert(sv)
9a957fbc
AL
1869
1870PERL_CALLCONV void Perl_mg_magical(pTHX_ SV* sv)
1871 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1872#define PERL_ARGS_ASSERT_MG_MAGICAL \
1873 assert(sv)
9a957fbc
AL
1874
1875PERL_CALLCONV int Perl_mg_set(pTHX_ SV* sv)
1876 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1877#define PERL_ARGS_ASSERT_MG_SET \
1878 assert(sv)
9a957fbc
AL
1879
1880PERL_CALLCONV I32 Perl_mg_size(pTHX_ SV* sv)
1881 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1882#define PERL_ARGS_ASSERT_MG_SIZE \
1883 assert(sv)
9a957fbc 1884
9f6cc744 1885PERL_CALLCONV void Perl_mini_mktime(pTHX_ struct tm *ptm)
9a957fbc 1886 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1887#define PERL_ARGS_ASSERT_MINI_MKTIME \
1888 assert(ptm)
9a957fbc 1889
1d7c1841 1890PERL_CALLCONV OP* Perl_mod(pTHX_ OP* o, I32 type);
a79b25b7 1891PERL_CALLCONV int Perl_mode_from_discipline(pTHX_ const char* s, STRLEN len);
c7030b81 1892PERL_CALLCONV const char* Perl_moreswitches(pTHX_ const char* s)
bfce84ec 1893 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1894#define PERL_ARGS_ASSERT_MORESWITCHES \
1895 assert(s)
bfce84ec 1896
4373e329 1897PERL_CALLCONV NV Perl_my_atof(pTHX_ const char *s)
abb2c242 1898 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1899#define PERL_ARGS_ASSERT_MY_ATOF \
1900 assert(s)
f54cb97a 1901
2253333f 1902#if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
4373e329 1903PERL_CALLCONV char* Perl_my_bcopy(const char* from, char* to, I32 len)
abb2c242
JH
1904 __attribute__nonnull__(1)
1905 __attribute__nonnull__(2);
7918f24d
NC
1906#define PERL_ARGS_ASSERT_MY_BCOPY \
1907 assert(from); assert(to)
f54cb97a 1908
5f05dabc 1909#endif
a0d0e21e 1910#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
4373e329 1911PERL_CALLCONV char* Perl_my_bzero(char* loc, I32 len)
abb2c242 1912 __attribute__nonnull__(1);
7918f24d
NC
1913#define PERL_ARGS_ASSERT_MY_BZERO \
1914 assert(loc)
f54cb97a 1915
864dbfa3 1916#endif
f54cb97a 1917PERL_CALLCONV void Perl_my_exit(pTHX_ U32 status)
abb2c242 1918 __attribute__noreturn__;
f54cb97a
AL
1919
1920PERL_CALLCONV void Perl_my_failure_exit(pTHX)
abb2c242 1921 __attribute__noreturn__;
f54cb97a 1922
1d7c1841 1923PERL_CALLCONV I32 Perl_my_fflush_all(pTHX);
52e18b1f
GS
1924PERL_CALLCONV Pid_t Perl_my_fork(void);
1925PERL_CALLCONV void Perl_atfork_lock(void);
1926PERL_CALLCONV void Perl_atfork_unlock(void);
1d7c1841 1927PERL_CALLCONV I32 Perl_my_lstat(pTHX);
5f05dabc 1928#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
4373e329 1929PERL_CALLCONV I32 Perl_my_memcmp(const char* s1, const char* s2, I32 len)
abb2c242
JH
1930 __attribute__pure__
1931 __attribute__nonnull__(1)
1932 __attribute__nonnull__(2);
7918f24d
NC
1933#define PERL_ARGS_ASSERT_MY_MEMCMP \
1934 assert(s1); assert(s2)
f54cb97a 1935
a0d0e21e 1936#endif
fc36a67e 1937#if !defined(HAS_MEMSET)
4373e329 1938PERL_CALLCONV void* Perl_my_memset(char* loc, I32 ch, I32 len)
abb2c242 1939 __attribute__nonnull__(1);
7918f24d
NC
1940#define PERL_ARGS_ASSERT_MY_MEMSET \
1941 assert(loc)
f54cb97a 1942
864dbfa3 1943#endif
1d7c1841 1944PERL_CALLCONV I32 Perl_my_pclose(pTHX_ PerlIO* ptr);
bfce84ec
AL
1945PERL_CALLCONV PerlIO* Perl_my_popen(pTHX_ const char* cmd, const char* mode)
1946 __attribute__nonnull__(pTHX_1)
1947 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1948#define PERL_ARGS_ASSERT_MY_POPEN \
1949 assert(cmd); assert(mode)
bfce84ec 1950
c9289b7b 1951PERL_CALLCONV PerlIO* Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args)
bfce84ec
AL
1952 __attribute__nonnull__(pTHX_1)
1953 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1954#define PERL_ARGS_ASSERT_MY_POPEN_LIST \
1955 assert(mode); assert(args)
bfce84ec 1956
e1ec3a88 1957PERL_CALLCONV void Perl_my_setenv(pTHX_ const char* nam, const char* val);
1d7c1841 1958PERL_CALLCONV I32 Perl_my_stat(pTHX);
bfce84ec
AL
1959PERL_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)
1960 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1961#define PERL_ARGS_ASSERT_MY_STRFTIME \
1962 assert(fmt)
bfce84ec 1963
864dbfa3 1964#if defined(MYSWAP)
4373e329 1965PERL_CALLCONV short Perl_my_swap(pTHX_ short s)
abb2c242
JH
1966 __attribute__malloc__
1967 __attribute__warn_unused_result__
1968 __attribute__pure__;
f54cb97a 1969
4373e329 1970PERL_CALLCONV long Perl_my_htonl(pTHX_ long l)
abb2c242
JH
1971 __attribute__malloc__
1972 __attribute__warn_unused_result__
1973 __attribute__pure__;
f54cb97a 1974
4373e329 1975PERL_CALLCONV long Perl_my_ntohl(pTHX_ long l)
abb2c242
JH
1976 __attribute__malloc__
1977 __attribute__warn_unused_result__
1978 __attribute__pure__;
f54cb97a 1979
0cb96387 1980#endif
1d7c1841 1981PERL_CALLCONV void Perl_my_unexec(pTHX);
f54cb97a 1982PERL_CALLCONV OP* Perl_newANONLIST(pTHX_ OP* o)
abb2c242
JH
1983 __attribute__malloc__
1984 __attribute__warn_unused_result__;
f54cb97a
AL
1985
1986PERL_CALLCONV OP* Perl_newANONHASH(pTHX_ OP* o)
abb2c242
JH
1987 __attribute__malloc__
1988 __attribute__warn_unused_result__;
f54cb97a 1989
1d7c1841 1990PERL_CALLCONV OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
f54cb97a 1991PERL_CALLCONV OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
abb2c242
JH
1992 __attribute__malloc__
1993 __attribute__warn_unused_result__;
f54cb97a 1994
aec46f14 1995PERL_CALLCONV OP* Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
abb2c242 1996 __attribute__malloc__
aec46f14
AL
1997 __attribute__warn_unused_result__
1998 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1999#define PERL_ARGS_ASSERT_NEWCONDOP \
2000 assert(first)
aec46f14 2001
99ab892b 2002PERL_CALLCONV CV* Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
eb8433b7
NC
2003#ifdef PERL_MAD
2004PERL_CALLCONV OP* Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
2005#else
1d7c1841 2006PERL_CALLCONV void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
eb8433b7 2007#endif
aa924a5a 2008PERL_CALLCONV OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sv, OP* expr, OP* block, OP* cont)
abb2c242 2009 __attribute__malloc__
aa924a5a
SH
2010 __attribute__warn_unused_result__
2011 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2012#define PERL_ARGS_ASSERT_NEWFOROP \
2013 assert(expr)
f54cb97a 2014
0d863452
RH
2015PERL_CALLCONV OP* Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
2016 __attribute__malloc__
2017 __attribute__warn_unused_result__
2018 __attribute__nonnull__(pTHX_1)
2019 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2020#define PERL_ARGS_ASSERT_NEWGIVENOP \
2021 assert(cond); assert(block)
0d863452 2022
4048f010 2023PERL_CALLCONV OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP *first, OP *other)
abb2c242 2024 __attribute__malloc__
aa924a5a
SH
2025 __attribute__warn_unused_result__
2026 __attribute__nonnull__(pTHX_3)
2027 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2028#define PERL_ARGS_ASSERT_NEWLOGOP \
2029 assert(first); assert(other)
f54cb97a
AL
2030
2031PERL_CALLCONV OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label)
abb2c242 2032 __attribute__malloc__
aa924a5a
SH
2033 __attribute__warn_unused_result__
2034 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2035#define PERL_ARGS_ASSERT_NEWLOOPEX \
2036 assert(label)
f54cb97a
AL
2037
2038PERL_CALLCONV OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
abb2c242
JH
2039 __attribute__malloc__
2040 __attribute__warn_unused_result__;
f54cb97a 2041
4373e329 2042PERL_CALLCONV OP* Perl_newNULLLIST(pTHX)
abb2c242
JH
2043 __attribute__malloc__
2044 __attribute__warn_unused_result__;
f54cb97a
AL
2045
2046PERL_CALLCONV OP* Perl_newOP(pTHX_ I32 optype, I32 flags)
abb2c242
JH
2047 __attribute__malloc__
2048 __attribute__warn_unused_result__;
f54cb97a
AL
2049
2050PERL_CALLCONV void Perl_newPROG(pTHX_ OP* o)
abb2c242 2051 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2052#define PERL_ARGS_ASSERT_NEWPROG \
2053 assert(o)
f54cb97a
AL
2054
2055PERL_CALLCONV OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
abb2c242 2056 __attribute__malloc__
aa924a5a
SH
2057 __attribute__warn_unused_result__
2058 __attribute__nonnull__(pTHX_2)
2059 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2060#define PERL_ARGS_ASSERT_NEWRANGE \
2061 assert(left); assert(right)
f54cb97a
AL
2062
2063PERL_CALLCONV OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
abb2c242
JH
2064 __attribute__malloc__
2065 __attribute__warn_unused_result__;
f54cb97a
AL
2066
2067PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
abb2c242
JH
2068 __attribute__malloc__
2069 __attribute__warn_unused_result__;
f54cb97a 2070
1d7c1841 2071PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
77004dee
NC
2072PERL_CALLCONV CV * Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags)
2073 __attribute__nonnull__(pTHX_2)
2074 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2075#define PERL_ARGS_ASSERT_NEWXS_FLAGS \
2076 assert(subaddr); assert(filename)
77004dee 2077
4048f010 2078PERL_CALLCONV CV* Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename)
9a957fbc 2079 __attribute__nonnull__(pTHX_2)
abb2c242 2080 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2081#define PERL_ARGS_ASSERT_NEWXS \
2082 assert(subaddr); assert(filename)
f54cb97a 2083
ac572bf4 2084/* PERL_CALLCONV AV* Perl_newAV(pTHX)
ac572bf4 2085 __attribute__warn_unused_result__; */
f54cb97a 2086
4373e329 2087PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o)
abb2c242
JH
2088 __attribute__malloc__
2089 __attribute__warn_unused_result__
2090 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2091#define PERL_ARGS_ASSERT_NEWAVREF \
2092 assert(o)
f54cb97a
AL
2093
2094PERL_CALLCONV OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2095 __attribute__malloc__
2096 __attribute__warn_unused_result__;
f54cb97a
AL
2097
2098PERL_CALLCONV OP* Perl_newCVREF(pTHX_ I32 flags, OP* o)
abb2c242
JH
2099 __attribute__malloc__
2100 __attribute__warn_unused_result__;
f54cb97a
AL
2101
2102PERL_CALLCONV OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
abb2c242 2103 __attribute__malloc__
2d03de9c
AL
2104 __attribute__warn_unused_result__
2105 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2106#define PERL_ARGS_ASSERT_NEWGVOP \
2107 assert(gv)
f54cb97a
AL
2108
2109PERL_CALLCONV GV* Perl_newGVgen(pTHX_ const char* pack)
abb2c242 2110 __attribute__malloc__
aa924a5a
SH
2111 __attribute__warn_unused_result__
2112 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2113#define PERL_ARGS_ASSERT_NEWGVGEN \
2114 assert(pack)
f54cb97a
AL
2115
2116PERL_CALLCONV OP* Perl_newGVREF(pTHX_ I32 type, OP* o)
abb2c242
JH
2117 __attribute__malloc__
2118 __attribute__warn_unused_result__;
f54cb97a 2119
4373e329 2120PERL_CALLCONV OP* Perl_newHVREF(pTHX_ OP* o)
abb2c242
JH
2121 __attribute__malloc__
2122 __attribute__warn_unused_result__
2123 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2124#define PERL_ARGS_ASSERT_NEWHVREF \
2125 assert(o)
f54cb97a 2126
78ac7dd9 2127/* PERL_CALLCONV HV* Perl_newHV(pTHX)
78ac7dd9 2128 __attribute__warn_unused_result__; */
f54cb97a 2129
4048f010 2130PERL_CALLCONV HV* Perl_newHVhv(pTHX_ HV *hv)
abb2c242
JH
2131 __attribute__malloc__
2132 __attribute__warn_unused_result__;
f54cb97a 2133
85dca89a 2134/* PERL_CALLCONV IO* Perl_newIO(pTHX)
abb2c242 2135 __attribute__malloc__
85dca89a 2136 __attribute__warn_unused_result__; */
f54cb97a
AL
2137
2138PERL_CALLCONV OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2139 __attribute__malloc__
2140 __attribute__warn_unused_result__;
f54cb97a 2141
392d04bb 2142#ifdef USE_ITHREADS
f54cb97a 2143PERL_CALLCONV OP* Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242 2144 __attribute__malloc__
58182927
NC
2145 __attribute__warn_unused_result__
2146 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2147#define PERL_ARGS_ASSERT_NEWPADOP \
2148 assert(sv)
f54cb97a 2149
392d04bb 2150#endif
f54cb97a 2151PERL_CALLCONV OP* Perl_newPMOP(pTHX_ I32 type, I32 flags)
abb2c242
JH
2152 __attribute__malloc__
2153 __attribute__warn_unused_result__;
f54cb97a
AL
2154
2155PERL_CALLCONV OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
abb2c242
JH
2156 __attribute__malloc__
2157 __attribute__warn_unused_result__;
f54cb97a 2158
23f13727 2159PERL_CALLCONV SV* Perl_newRV(pTHX_ SV *const sv)
abb2c242 2160 __attribute__malloc__
66a1b24b
AL
2161 __attribute__warn_unused_result__
2162 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2163#define PERL_ARGS_ASSERT_NEWRV \
2164 assert(sv)
f54cb97a 2165
23f13727 2166PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV *const sv)
abb2c242
JH
2167 __attribute__malloc__
2168 __attribute__warn_unused_result__
2169 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2170#define PERL_ARGS_ASSERT_NEWRV_NOINC \
2171 assert(sv)
f54cb97a 2172
2b021c53 2173PERL_CALLCONV SV* Perl_newSV(pTHX_ const STRLEN len)
abb2c242
JH
2174 __attribute__malloc__
2175 __attribute__warn_unused_result__;
f54cb97a 2176
4373e329 2177PERL_CALLCONV OP* Perl_newSVREF(pTHX_ OP* o)
abb2c242
JH
2178 __attribute__malloc__
2179 __attribute__warn_unused_result__
2180 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2181#define PERL_ARGS_ASSERT_NEWSVREF \
2182 assert(o)
f54cb97a 2183
4373e329 2184PERL_CALLCONV OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242
JH
2185 __attribute__malloc__
2186 __attribute__warn_unused_result__
2187 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2188#define PERL_ARGS_ASSERT_NEWSVOP \
2189 assert(sv)
f54cb97a 2190
23f13727 2191PERL_CALLCONV SV* Perl_newSViv(pTHX_ const IV i)
abb2c242
JH
2192 __attribute__malloc__
2193 __attribute__warn_unused_result__;
f54cb97a 2194
23f13727 2195PERL_CALLCONV SV* Perl_newSVuv(pTHX_ const UV u)
abb2c242
JH
2196 __attribute__malloc__
2197 __attribute__warn_unused_result__;
f54cb97a 2198
23f13727 2199PERL_CALLCONV SV* Perl_newSVnv(pTHX_ const NV n)
abb2c242
JH
2200 __attribute__malloc__
2201 __attribute__warn_unused_result__;
f54cb97a 2202
23f13727 2203PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
abb2c242
JH
2204 __attribute__malloc__
2205 __attribute__warn_unused_result__;
f54cb97a 2206
23f13727 2207PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char *const s, const STRLEN len)
abb2c242
JH
2208 __attribute__malloc__
2209 __attribute__warn_unused_result__;
f54cb97a 2210
23f13727 2211PERL_CALLCONV SV* Perl_newSVpvn_flags(pTHX_ const char *const s, const STRLEN len, const U32 flags)
740cce10
NC
2212 __attribute__malloc__
2213 __attribute__warn_unused_result__;
2214
23f13727 2215PERL_CALLCONV SV* Perl_newSVhek(pTHX_ const HEK *const hek)
c1b02ed8
NC
2216 __attribute__malloc__
2217 __attribute__warn_unused_result__;
2218
f54cb97a 2219PERL_CALLCONV SV* Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
abb2c242
JH
2220 __attribute__malloc__
2221 __attribute__warn_unused_result__;
f54cb97a 2222
23f13727 2223PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char *const pat, ...)
abb2c242
JH
2224 __attribute__malloc__
2225 __attribute__warn_unused_result__
aec46f14
AL
2226 __attribute__format__(__printf__,pTHX_1,pTHX_2)
2227 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2228#define PERL_ARGS_ASSERT_NEWSVPVF \
2229 assert(pat)
aec46f14 2230
23f13727 2231PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char *const pat, va_list *const args)
aec46f14
AL
2232 __attribute__malloc__
2233 __attribute__warn_unused_result__
2234 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2235#define PERL_ARGS_ASSERT_VNEWSVPVF \
2236 assert(pat)
f54cb97a 2237
12964ddd 2238PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV *const rv, const char *const classname)
1b6737cc 2239 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2240#define PERL_ARGS_ASSERT_NEWSVRV \
2241 assert(rv)
f54cb97a 2242
23f13727 2243PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV *const old)
abb2c242
JH
2244 __attribute__malloc__
2245 __attribute__warn_unused_result__;
f54cb97a 2246
fe9845cc 2247PERL_CALLCONV SV* Perl_newSV_type(pTHX_ const svtype type)
b9f83d2f
NC
2248 __attribute__malloc__
2249 __attribute__warn_unused_result__;
2250
f54cb97a 2251PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
abb2c242
JH
2252 __attribute__malloc__
2253 __attribute__warn_unused_result__;
f54cb97a 2254
0d863452
RH
2255PERL_CALLCONV OP* Perl_newWHENOP(pTHX_ OP* cond, OP* block)
2256 __attribute__malloc__
2257 __attribute__warn_unused_result__
2258 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2259#define PERL_ARGS_ASSERT_NEWWHENOP \
2260 assert(block)
0d863452 2261
f54cb97a 2262PERL_CALLCONV OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my)
abb2c242
JH
2263 __attribute__malloc__
2264 __attribute__warn_unused_result__;
f54cb97a
AL
2265
2266PERL_CALLCONV PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
abb2c242
JH
2267 __attribute__malloc__
2268 __attribute__warn_unused_result__;
f54cb97a 2269
4048f010 2270PERL_CALLCONV char* Perl_scan_vstring(pTHX_ const char *s, const char *const e, SV *sv)
abb2c242 2271 __attribute__nonnull__(pTHX_1)
65b06e02
DM
2272 __attribute__nonnull__(pTHX_2)
2273 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2274#define PERL_ARGS_ASSERT_SCAN_VSTRING \
2275 assert(s); assert(e); assert(sv)
f54cb97a 2276
9f6cc744 2277PERL_CALLCONV const char* Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv)
abb2c242
JH
2278 __attribute__nonnull__(pTHX_1)
2279 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2280#define PERL_ARGS_ASSERT_SCAN_VERSION \
2281 assert(s); assert(rv)
f54cb97a 2282
2d03de9c
AL
2283PERL_CALLCONV SV* Perl_new_version(pTHX_ SV *ver)
2284 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2285#define PERL_ARGS_ASSERT_NEW_VERSION \
2286 assert(ver)
2d03de9c 2287
ac0e6a2f 2288PERL_CALLCONV SV* Perl_upg_version(pTHX_ SV *ver, bool qv)
2d03de9c 2289 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2290#define PERL_ARGS_ASSERT_UPG_VERSION \
2291 assert(ver)
2d03de9c 2292
e0218a61
JP
2293PERL_CALLCONV bool Perl_vverify(pTHX_ SV *vs)
2294 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2295#define PERL_ARGS_ASSERT_VVERIFY \
2296 assert(vs)
e0218a61 2297
2d03de9c
AL
2298PERL_CALLCONV SV* Perl_vnumify(pTHX_ SV *vs)
2299 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2300#define PERL_ARGS_ASSERT_VNUMIFY \
2301 assert(vs)
2d03de9c
AL
2302
2303PERL_CALLCONV SV* Perl_vnormal(pTHX_ SV *vs)
2304 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2305#define PERL_ARGS_ASSERT_VNORMAL \
2306 assert(vs)
2d03de9c
AL
2307
2308PERL_CALLCONV SV* Perl_vstringify(pTHX_ SV *vs)
2309 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2310#define PERL_ARGS_ASSERT_VSTRINGIFY \
2311 assert(vs)
2d03de9c 2312
9f6cc744 2313PERL_CALLCONV int Perl_vcmp(pTHX_ SV *lhv, SV *rhv)
abb2c242
JH
2314 __attribute__nonnull__(pTHX_1)
2315 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2316#define PERL_ARGS_ASSERT_VCMP \
2317 assert(lhv); assert(rhv)
f54cb97a 2318
2d03de9c
AL
2319PERL_CALLCONV PerlIO* Perl_nextargv(pTHX_ GV* gv)
2320 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2321#define PERL_ARGS_ASSERT_NEXTARGV \
2322 assert(gv)
2d03de9c 2323
04c9e624 2324PERL_CALLCONV char* Perl_ninstr(const char* big, const char* bigend, const char* little, const char* lend)
2d03de9c 2325 __attribute__pure__
04c9e624
VP
2326 __attribute__nonnull__(1)
2327 __attribute__nonnull__(2)
2328 __attribute__nonnull__(3)
2329 __attribute__nonnull__(4);
7918f24d
NC
2330#define PERL_ARGS_ASSERT_NINSTR \
2331 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a 2332
6472dca1 2333PERL_CALLCONV void Perl_op_free(pTHX_ OP* arg);
eb8433b7
NC
2334#ifdef PERL_MAD
2335PERL_CALLCONV OP* Perl_package(pTHX_ OP* o)
2336 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2337#define PERL_ARGS_ASSERT_PACKAGE \
2338 assert(o)
eb8433b7
NC
2339
2340#else
2d03de9c
AL
2341PERL_CALLCONV void Perl_package(pTHX_ OP* o)
2342 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2343#define PERL_ARGS_ASSERT_PACKAGE \
2344 assert(o)
f54cb97a 2345
eb8433b7 2346#endif
6fa4d285
DG
2347PERL_CALLCONV void Perl_package_version(pTHX_ OP* v)
2348 __attribute__nonnull__(pTHX_1);
2349#define PERL_ARGS_ASSERT_PACKAGE_VERSION \
2350 assert(v)
2351
1d7c1841 2352PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
262cbcdb 2353PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name)
abb2c242 2354 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2355#define PERL_ARGS_ASSERT_ALLOCMY \
2356 assert(name)
f54cb97a 2357
4373e329 2358PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name)
255164ba 2359 __attribute__warn_unused_result__
abb2c242 2360 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2361#define PERL_ARGS_ASSERT_PAD_FINDMY \
2362 assert(name)
f54cb97a 2363
e1f795dc 2364PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX);
4373e329 2365PERL_CALLCONV OP* Perl_oopsAV(pTHX_ OP* o)
1df70142 2366 __attribute__warn_unused_result__
abb2c242 2367 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2368#define PERL_ARGS_ASSERT_OOPSAV \
2369 assert(o)
f54cb97a 2370
4373e329 2371PERL_CALLCONV OP* Perl_oopsHV(pTHX_ OP* o)
1df70142 2372 __attribute__warn_unused_result__
abb2c242 2373 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2374#define PERL_ARGS_ASSERT_OOPSHV \
2375 assert(o)
f54cb97a 2376
dd2155a4 2377PERL_CALLCONV void Perl_pad_leavemy(pTHX);
1d7c1841
GS
2378PERL_CALLCONV SV* Perl_pad_sv(pTHX_ PADOFFSET po);
2379PERL_CALLCONV void Perl_pad_free(pTHX_ PADOFFSET po);
efd0b058 2380#if defined(PERL_IN_PAD_C) || defined(PERL_DECL_PROT)
82af08ae
NC
2381STATIC void S_pad_reset(pTHX);
2382#endif
dd2155a4 2383PERL_CALLCONV void Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
1d7c1841 2384PERL_CALLCONV void Perl_peep(pTHX_ OP* o);
4048f010 2385PERL_CALLCONV PerlIO* Perl_start_glob(pTHX_ SV *tmpglob, IO *io)
2d03de9c
AL
2386 __attribute__nonnull__(pTHX_1)
2387 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2388#define PERL_ARGS_ASSERT_START_GLOB \
2389 assert(tmpglob); assert(io)
2d03de9c 2390
59bd0823 2391#if defined(USE_REENTRANT_API)
10bc17b6 2392PERL_CALLCONV void Perl_reentrant_size(pTHX);
59bd0823 2393PERL_CALLCONV void Perl_reentrant_init(pTHX);
10bc17b6 2394PERL_CALLCONV void Perl_reentrant_free(pTHX);
4048f010 2395PERL_CALLCONV void* Perl_reentrant_retry(const char *f, ...)
fb9bf107 2396 __attribute__nonnull__(1);
7918f24d
NC
2397#define PERL_ARGS_ASSERT_REENTRANT_RETRY \
2398 assert(f)
fb9bf107 2399
59bd0823 2400#endif
1d7c1841 2401PERL_CALLCONV void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
4373e329 2402PERL_CALLCONV I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv)
abb2c242
JH
2403 __attribute__nonnull__(pTHX_1)
2404 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2405#define PERL_ARGS_ASSERT_CALL_ARGV \
2406 assert(sub_name); assert(argv)
f54cb97a 2407
4373e329 2408PERL_CALLCONV I32 Perl_call_method(pTHX_ const char* methname, I32 flags)
abb2c242 2409 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2410#define PERL_ARGS_ASSERT_CALL_METHOD \
2411 assert(methname)
f54cb97a 2412
4373e329 2413PERL_CALLCONV I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags)
abb2c242 2414 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2415#define PERL_ARGS_ASSERT_CALL_PV \
2416 assert(sub_name)
f54cb97a 2417
8c54174d 2418PERL_CALLCONV I32 Perl_call_sv(pTHX_ SV* sv, VOL I32 flags)
aec46f14 2419 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2420#define PERL_ARGS_ASSERT_CALL_SV \
2421 assert(sv)
aec46f14 2422
ce08f86c 2423PERL_CALLCONV void Perl_despatch_signals(pTHX);
e4c5ccf3
RH
2424PERL_CALLCONV OP * Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref)
2425 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2426#define PERL_ARGS_ASSERT_DOREF \
2427 assert(o)
e4c5ccf3 2428
4373e329 2429PERL_CALLCONV SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error)
abb2c242 2430 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2431#define PERL_ARGS_ASSERT_EVAL_PV \
2432 assert(p)
f54cb97a 2433
4373e329 2434PERL_CALLCONV I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags)
abb2c242 2435 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2436#define PERL_ARGS_ASSERT_EVAL_SV \
2437 assert(sv)
f54cb97a 2438
64ace3f8 2439PERL_CALLCONV SV* Perl_get_sv(pTHX_ const char *name, I32 flags)
abb2c242 2440 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2441#define PERL_ARGS_ASSERT_GET_SV \
2442 assert(name)
f54cb97a 2443
cbfd0a87 2444PERL_CALLCONV AV* Perl_get_av(pTHX_ const char *name, I32 flags)
255164ba 2445 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2446#define PERL_ARGS_ASSERT_GET_AV \
2447 assert(name)
255164ba 2448
6673a63c 2449PERL_CALLCONV HV* Perl_get_hv(pTHX_ const char *name, I32 flags)
255164ba 2450 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2451#define PERL_ARGS_ASSERT_GET_HV \
2452 assert(name)
255164ba 2453
780a5241
NC
2454PERL_CALLCONV CV* Perl_get_cv(pTHX_ const char* name, I32 flags)
2455 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2456#define PERL_ARGS_ASSERT_GET_CV \
2457 assert(name)
780a5241
NC
2458
2459PERL_CALLCONV CV* Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags)
abb2c242 2460 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2461#define PERL_ARGS_ASSERT_GET_CVN_FLAGS \
2462 assert(name)
f54cb97a 2463
1d7c1841
GS
2464PERL_CALLCONV int Perl_init_i18nl10n(pTHX_ int printwarn);
2465PERL_CALLCONV int Perl_init_i18nl14n(pTHX_ int printwarn);
8772537c
AL
2466PERL_CALLCONV void Perl_new_collate(pTHX_ const char* newcoll);
2467PERL_CALLCONV void Perl_new_ctype(pTHX_ const char* newctype)
abb2c242 2468 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2469#define PERL_ARGS_ASSERT_NEW_CTYPE \
2470 assert(newctype)
f54cb97a 2471
8772537c 2472PERL_CALLCONV void Perl_new_numeric(pTHX_ const char* newcoll);
1d7c1841
GS
2473PERL_CALLCONV void Perl_set_numeric_local(pTHX);
2474PERL_CALLCONV void Perl_set_numeric_radix(pTHX);
2475PERL_CALLCONV void Perl_set_numeric_standard(pTHX);
4373e329 2476PERL_CALLCONV void Perl_require_pv(pTHX_ const char* pv)
abb2c242 2477 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2478#define PERL_ARGS_ASSERT_REQUIRE_PV \
2479 assert(pv)
f54cb97a 2480
2d03de9c
AL
2481PERL_CALLCONV void Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags)
2482 __attribute__nonnull__(pTHX_1)
2483 __attribute__nonnull__(pTHX_2)
2484 __attribute__nonnull__(pTHX_3)
2485 __attribute__nonnull__(pTHX_4)
2486 __attribute__nonnull__(pTHX_5)
2487 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2488#define PERL_ARGS_ASSERT_PACK_CAT \
2489 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
2d03de9c
AL
2490
2491PERL_CALLCONV void Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist)
2492 __attribute__nonnull__(pTHX_1)
2493 __attribute__nonnull__(pTHX_2)
2494 __attribute__nonnull__(pTHX_3)
2495 __attribute__nonnull__(pTHX_4)
2496 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2497#define PERL_ARGS_ASSERT_PACKLIST \
2498 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist)
2d03de9c 2499
ed4173ef
NC
2500#if defined(PERL_USES_PL_PIDSTATUS) && defined(PERL_IN_UTIL_C)
2501STATIC void S_pidgone(pTHX_ Pid_t pid, int status);
e3790a26 2502#endif
879d0c72
NC
2503PERL_CALLCONV void Perl_pmflag(pTHX_ U32 *pmfl, int ch)
2504 __attribute__deprecated__
abb2c242 2505 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2506#define PERL_ARGS_ASSERT_PMFLAG \
2507 assert(pmfl)
f54cb97a 2508
4048f010 2509PERL_CALLCONV OP* Perl_pmruntime(pTHX_ OP *o, OP *expr, bool isreg)
abb2c242
JH
2510 __attribute__nonnull__(pTHX_1)
2511 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2512#define PERL_ARGS_ASSERT_PMRUNTIME \
2513 assert(o); assert(expr)
f54cb97a 2514
efd0b058 2515#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
0d86688d 2516STATIC OP* S_pmtrans(pTHX_ OP* o, OP* expr, OP* repl)
abb2c242 2517 __attribute__nonnull__(pTHX_1)
2d03de9c
AL
2518 __attribute__nonnull__(pTHX_2)
2519 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2520#define PERL_ARGS_ASSERT_PMTRANS \
2521 assert(o); assert(expr); assert(repl)
f54cb97a 2522
0d86688d 2523#endif
1d7c1841
GS
2524PERL_CALLCONV void Perl_pop_scope(pTHX);
2525PERL_CALLCONV OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
1d7c1841 2526PERL_CALLCONV void Perl_push_scope(pTHX);
25b0f989 2527/* PERL_CALLCONV OP* Perl_ref(pTHX_ OP* o, I32 type); */
efd0b058 2528#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
0d86688d
NC
2529STATIC OP* S_refkids(pTHX_ OP* o, I32 type);
2530#endif
097eb12c 2531PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
abb2c242 2532 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2533#define PERL_ARGS_ASSERT_REGDUMP \
2534 assert(r)
f54cb97a 2535
f7819f85
A
2536PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
2537 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2538#define PERL_ARGS_ASSERT_REGDUMP \
2539 assert(r)
f7819f85 2540
4048f010 2541PERL_CALLCONV SV* Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **altsvp)
32fc9b6a 2542 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2543#define PERL_ARGS_ASSERT_REGCLASS_SWASH \
2544 assert(node)
2d03de9c 2545
49d7dfbc 2546PERL_CALLCONV I32 Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave)
abb2c242
JH
2547 __attribute__nonnull__(pTHX_1)
2548 __attribute__nonnull__(pTHX_2)
2549 __attribute__nonnull__(pTHX_3)
2550 __attribute__nonnull__(pTHX_4)
2551 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2552#define PERL_ARGS_ASSERT_PREGEXEC \
2553 assert(prog); assert(stringarg); assert(strend); assert(strbeg); assert(screamer)
f54cb97a 2554
84679df5 2555PERL_CALLCONV void Perl_pregfree(pTHX_ REGEXP* r);
4048f010 2556PERL_CALLCONV void Perl_pregfree2(pTHX_ REGEXP *rx)
288b8c02 2557 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2558#define PERL_ARGS_ASSERT_PREGFREE2 \
2559 assert(rx)
288b8c02 2560
f0826785
BM
2561PERL_CALLCONV REGEXP* Perl_reg_temp_copy(pTHX_ REGEXP* ret_x, REGEXP* rx)
2562 __attribute__nonnull__(pTHX_2);
7918f24d 2563#define PERL_ARGS_ASSERT_REG_TEMP_COPY \
f0826785 2564 assert(rx)
28d8d7f4 2565
4048f010 2566PERL_CALLCONV void Perl_regfree_internal(pTHX_ REGEXP *const rx)
8074533a 2567 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2568#define PERL_ARGS_ASSERT_REGFREE_INTERNAL \
2569 assert(rx)
8074533a 2570
a3c0e9ca 2571#if defined(USE_ITHREADS)
49d7dfbc 2572PERL_CALLCONV void* Perl_regdupe_internal(pTHX_ REGEXP * const r, CLONE_PARAMS* param)
84da74a7
YO
2573 __attribute__nonnull__(pTHX_1)
2574 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2575#define PERL_ARGS_ASSERT_REGDUPE_INTERNAL \
2576 assert(r); assert(param)
84da74a7 2577
a3c0e9ca 2578#endif
1593ad57 2579PERL_CALLCONV REGEXP* Perl_pregcomp(pTHX_ SV * const pattern, const U32 flags)
3ab4a224 2580 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2581#define PERL_ARGS_ASSERT_PREGCOMP \
2582 assert(pattern)
f54cb97a 2583
1593ad57 2584PERL_CALLCONV REGEXP* Perl_re_compile(pTHX_ SV * const pattern, U32 flags)
3ab4a224 2585 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2586#define PERL_ARGS_ASSERT_RE_COMPILE \
2587 assert(pattern)
2a5d9b1d 2588
9f61653a 2589PERL_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
2590 __attribute__nonnull__(pTHX_1)
2591 __attribute__nonnull__(pTHX_3)
2592 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2593#define PERL_ARGS_ASSERT_RE_INTUIT_START \
2594 assert(rx); assert(strpos); assert(strend)
2d03de9c 2595
4048f010 2596PERL_CALLCONV SV* Perl_re_intuit_string(pTHX_ REGEXP *const r)
2d03de9c 2597 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2598#define PERL_ARGS_ASSERT_RE_INTUIT_STRING \
2599 assert(r)
2d03de9c 2600
4048f010 2601PERL_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
2602 __attribute__nonnull__(pTHX_1)
2603 __attribute__nonnull__(pTHX_2)
2604 __attribute__nonnull__(pTHX_3)
fb9bf107
NC
2605 __attribute__nonnull__(pTHX_4)
2606 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2607#define PERL_ARGS_ASSERT_REGEXEC_FLAGS \
2608 assert(rx); assert(stringarg); assert(strend); assert(strbeg); assert(sv)
a3b680e6 2609
1df70142 2610PERL_CALLCONV regnode* Perl_regnext(pTHX_ regnode* p)
8074533a 2611 __attribute__warn_unused_result__;
1df70142 2612
81714fb9 2613
192b9cd1
AB
2614PERL_CALLCONV SV* Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags)
2615 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2616#define PERL_ARGS_ASSERT_REG_NAMED_BUFF \
2617 assert(rx)
192b9cd1
AB
2618
2619PERL_CALLCONV SV* Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags)
2620 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2621#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER \
2622 assert(rx)
192b9cd1
AB
2623
2624PERL_CALLCONV SV* Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags)
93b32b6d 2625 __attribute__nonnull__(pTHX_1)
44a2ac75 2626 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2627#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH \
2628 assert(rx); assert(namesv)
44a2ac75 2629
192b9cd1
AB
2630PERL_CALLCONV bool Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags)
2631 __attribute__nonnull__(pTHX_1)
2632 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2633#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS \
2634 assert(rx); assert(key)
192b9cd1
AB
2635
2636PERL_CALLCONV SV* Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags)
2637 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2638#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY \
2639 assert(rx)
192b9cd1
AB
2640
2641PERL_CALLCONV SV* Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags)
2642 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2643#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY \
2644 assert(rx)
192b9cd1
AB
2645
2646PERL_CALLCONV SV* Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags)
2647 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2648#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR \
2649 assert(rx)
192b9cd1
AB
2650
2651PERL_CALLCONV SV* Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags)
2652 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2653#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL \
2654 assert(rx)
192b9cd1 2655
2fdbfb4d
AB
2656
2657PERL_CALLCONV void Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv)
2658 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2659#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH \
2660 assert(rx)
2fdbfb4d
AB
2661
2662PERL_CALLCONV void Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value)
93b32b6d 2663 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2664#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE \
2665 assert(rx)
93b32b6d 2666
2fdbfb4d
AB
2667PERL_CALLCONV I32 Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren)
2668 __attribute__nonnull__(pTHX_1)
2669 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2670#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH \
2671 assert(rx); assert(sv)
2fdbfb4d
AB
2672
2673
49d7dfbc 2674PERL_CALLCONV SV* Perl_reg_qr_package(pTHX_ REGEXP * const rx)
fe578d7f 2675 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2676#define PERL_ARGS_ASSERT_REG_QR_PACKAGE \
2677 assert(rx)
fe578d7f 2678
93b32b6d 2679
32fc9b6a
DM
2680PERL_CALLCONV void Perl_regprop(pTHX_ const regexp *prog, SV* sv, const regnode* o)
2681 __attribute__nonnull__(pTHX_2)
2682 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2683#define PERL_ARGS_ASSERT_REGPROP \
2684 assert(sv); assert(o)
2d03de9c 2685
16fa5c11
VP
2686PERL_CALLCONV void Perl_repeatcpy(char* to, const char* from, I32 len, I32 count)
2687 __attribute__nonnull__(1)
2688 __attribute__nonnull__(2);
7918f24d
NC
2689#define PERL_ARGS_ASSERT_REPEATCPY \
2690 assert(to); assert(from)
f54cb97a 2691
04c9e624 2692PERL_CALLCONV char* Perl_rninstr(const char* big, const char* bigend, const char* little, const char* lend)
abb2c242 2693 __attribute__pure__
04c9e624
VP
2694 __attribute__nonnull__(1)
2695 __attribute__nonnull__(2)
2696 __attribute__nonnull__(3)
2697 __attribute__nonnull__(4);
7918f24d
NC
2698#define PERL_ARGS_ASSERT_RNINSTR \
2699 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a 2700
1d7c1841
GS
2701PERL_CALLCONV Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t);
2702PERL_CALLCONV int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
9f6cc744 2703PERL_CALLCONV int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save)
9a957fbc 2704 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2705#define PERL_ARGS_ASSERT_RSIGNAL_SAVE \
2706 assert(save)
9a957fbc 2707
1d7c1841 2708PERL_CALLCONV Sighandler_t Perl_rsignal_state(pTHX_ int i);
efd0b058 2709#if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT)
9c105995 2710STATIC void S_rxres_free(pTHX_ void** rsp)
abb2c242 2711 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2712#define PERL_ARGS_ASSERT_RXRES_FREE \
2713 assert(rsp)
a3b680e6 2714
9c105995 2715STATIC void S_rxres_restore(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2716 __attribute__nonnull__(pTHX_1)
2717 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2718#define PERL_ARGS_ASSERT_RXRES_RESTORE \
2719 assert(rsp); assert(rx)
a3b680e6 2720
9c105995 2721#endif
4048f010 2722PERL_CALLCONV void Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2723 __attribute__nonnull__(pTHX_1)
2724 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2725#define PERL_ARGS_ASSERT_RXRES_SAVE \
2726 assert(rsp); assert(rx)
a3b680e6 2727
cea2e8a9 2728#if !defined(HAS_RENAME)
4373e329 2729PERL_CALLCONV I32 Perl_same_dirent(pTHX_ const char* a, const char* b)
abb2c242
JH
2730 __attribute__nonnull__(pTHX_1)
2731 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2732#define PERL_ARGS_ASSERT_SAME_DIRENT \
2733 assert(a); assert(b)
f54cb97a 2734
0cb96387 2735#endif
53c1dcc0
AL
2736PERL_CALLCONV char* Perl_savepv(pTHX_ const char* pv)
2737 __attribute__malloc__
639f6c3d 2738 __attribute__warn_unused_result__;
53c1dcc0
AL
2739
2740PERL_CALLCONV char* Perl_savepvn(pTHX_ const char* pv, I32 len)
2741 __attribute__malloc__
639f6c3d 2742 __attribute__warn_unused_result__;
53c1dcc0
AL
2743
2744PERL_CALLCONV char* Perl_savesharedpv(pTHX_ const char* pv)
2745 __attribute__malloc__
2746 __attribute__warn_unused_result__;
2747
d9095cec
NC
2748PERL_CALLCONV char* Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
2749 __attribute__malloc__
2750 __attribute__warn_unused_result__
2751 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2752#define PERL_ARGS_ASSERT_SAVESHAREDPVN \
2753 assert(pv)
d9095cec 2754
53c1dcc0
AL
2755PERL_CALLCONV char* Perl_savesvpv(pTHX_ SV* sv)
2756 __attribute__malloc__
2757 __attribute__warn_unused_result__
2758 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2759#define PERL_ARGS_ASSERT_SAVESVPV \
2760 assert(sv)
53c1dcc0 2761
1d7c1841 2762PERL_CALLCONV void Perl_savestack_grow(pTHX);
4b3c1a47 2763PERL_CALLCONV void Perl_savestack_grow_cnt(pTHX_ I32 need);
91d1c79f
VP
2764/* PERL_CALLCONV void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr)
2765 __attribute__nonnull__(pTHX_1)
2766 __attribute__nonnull__(pTHX_3); */
2767
2768PERL_CALLCONV void Perl_save_aelem_flags(pTHX_ AV* av, I32 idx, SV **sptr, const U32 flags)
9a957fbc
AL
2769 __attribute__nonnull__(pTHX_1)
2770 __attribute__nonnull__(pTHX_3);
91d1c79f 2771#define PERL_ARGS_ASSERT_SAVE_AELEM_FLAGS \
7918f24d 2772 assert(av); assert(sptr)
9a957fbc 2773
1d7c1841 2774PERL_CALLCONV I32 Perl_save_alloc(pTHX_ I32 size, I32 pad);
9a957fbc
AL
2775PERL_CALLCONV void Perl_save_aptr(pTHX_ AV** aptr)
2776 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2777#define PERL_ARGS_ASSERT_SAVE_APTR \
2778 assert(aptr)
9a957fbc
AL
2779
2780PERL_CALLCONV AV* Perl_save_ary(pTHX_ GV* gv)
2781 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2782#define PERL_ARGS_ASSERT_SAVE_ARY \
2783 assert(gv)
9a957fbc
AL
2784
2785PERL_CALLCONV void Perl_save_bool(pTHX_ bool* boolp)
2786 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2787#define PERL_ARGS_ASSERT_SAVE_BOOL \
2788 assert(boolp)
9a957fbc
AL
2789
2790PERL_CALLCONV void Perl_save_clearsv(pTHX_ SV** svp)
2791 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2792#define PERL_ARGS_ASSERT_SAVE_CLEARSV \
2793 assert(svp)
9a957fbc 2794
4048f010 2795PERL_CALLCONV void Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen)
9a957fbc
AL
2796 __attribute__nonnull__(pTHX_1)
2797 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2798#define PERL_ARGS_ASSERT_SAVE_DELETE \
2799 assert(hv); assert(key)
9a957fbc 2800
af097752
VP
2801PERL_CALLCONV void Perl_save_hdelete(pTHX_ HV *hv, SV *keysv)
2802 __attribute__nonnull__(pTHX_1)
2803 __attribute__nonnull__(pTHX_2);
2804#define PERL_ARGS_ASSERT_SAVE_HDELETE \
2805 assert(hv); assert(keysv)
2806
c68ec7a9
VP
2807PERL_CALLCONV void Perl_save_adelete(pTHX_ AV *av, I32 key)
2808 __attribute__nonnull__(pTHX_1);
2809#define PERL_ARGS_ASSERT_SAVE_ADELETE \
2810 assert(av)
2811
fb9bf107
NC
2812PERL_CALLCONV void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p)
2813 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2814#define PERL_ARGS_ASSERT_SAVE_DESTRUCTOR \
2815 assert(p)
fb9bf107 2816
55968144 2817PERL_CALLCONV void Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
2fd8beea
NC
2818/* PERL_CALLCONV void Perl_save_freesv(pTHX_ SV* sv); */
2819/* PERL_CALLCONV void Perl_save_freeop(pTHX_ OP* o); */
2820/* PERL_CALLCONV void Perl_save_freepv(pTHX_ char* pv); */
9a957fbc
AL
2821PERL_CALLCONV void Perl_save_generic_svref(pTHX_ SV** sptr)
2822 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2823#define PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF \
2824 assert(sptr)
9a957fbc
AL
2825
2826PERL_CALLCONV void Perl_save_generic_pvref(pTHX_ char** str)
2827 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2828#define PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF \
2829 assert(str)
9a957fbc
AL
2830
2831PERL_CALLCONV void Perl_save_shared_pvref(pTHX_ char** str)
2832 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2833#define PERL_ARGS_ASSERT_SAVE_SHARED_PVREF \
2834 assert(str)
9a957fbc 2835
aec46f14
AL
2836PERL_CALLCONV void Perl_save_gp(pTHX_ GV* gv, I32 empty)
2837 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2838#define PERL_ARGS_ASSERT_SAVE_GP \
2839 assert(gv)
aec46f14
AL
2840
2841PERL_CALLCONV HV* Perl_save_hash(pTHX_ GV* gv)
2842 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2843#define PERL_ARGS_ASSERT_SAVE_HASH \
2844 assert(gv)
aec46f14 2845
da8315f8 2846PERL_CALLCONV void Perl_save_hints(pTHX);
af7df257 2847/* PERL_CALLCONV void Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr)
9a957fbc
AL
2848 __attribute__nonnull__(pTHX_1)
2849 __attribute__nonnull__(pTHX_2)
af7df257 2850 __attribute__nonnull__(pTHX_3); */
9a957fbc 2851
af7df257
CS
2852PERL_CALLCONV void Perl_save_helem_flags(pTHX_ HV *hv, SV *key, SV **sptr, const U32 flags)
2853 __attribute__nonnull__(pTHX_1)
2854 __attribute__nonnull__(pTHX_2)
2855 __attribute__nonnull__(pTHX_3);
2856#define PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS \
2857 assert(hv); assert(key); assert(sptr)
2858
aec46f14
AL
2859PERL_CALLCONV void Perl_save_hptr(pTHX_ HV** hptr)
2860 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2861#define PERL_ARGS_ASSERT_SAVE_HPTR \
2862 assert(hptr)
aec46f14
AL
2863
2864PERL_CALLCONV void Perl_save_I16(pTHX_ I16* intp)
2865 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2866#define PERL_ARGS_ASSERT_SAVE_I16 \
2867 assert(intp)
aec46f14
AL
2868
2869PERL_CALLCONV void Perl_save_I32(pTHX_ I32* intp)
2870 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2871#define PERL_ARGS_ASSERT_SAVE_I32 \
2872 assert(intp)
aec46f14
AL
2873
2874PERL_CALLCONV void Perl_save_I8(pTHX_ I8* bytep)
2875 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2876#define PERL_ARGS_ASSERT_SAVE_I8 \
2877 assert(bytep)
aec46f14
AL
2878
2879PERL_CALLCONV void Perl_save_int(pTHX_ int* intp)
2880 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2881#define PERL_ARGS_ASSERT_SAVE_INT \
2882 assert(intp)
aec46f14
AL
2883
2884PERL_CALLCONV void Perl_save_item(pTHX_ SV* item)
2885 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2886#define PERL_ARGS_ASSERT_SAVE_ITEM \
2887 assert(item)
aec46f14 2888
4048f010 2889PERL_CALLCONV void Perl_save_iv(pTHX_ IV *ivp)
aec46f14 2890 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2891#define PERL_ARGS_ASSERT_SAVE_IV \
2892 assert(ivp)
aec46f14
AL
2893
2894PERL_CALLCONV void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg)
2895 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2896#define PERL_ARGS_ASSERT_SAVE_LIST \
2897 assert(sarg)
aec46f14
AL
2898
2899PERL_CALLCONV void Perl_save_long(pTHX_ long* longp)
2900 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2901#define PERL_ARGS_ASSERT_SAVE_LONG \
2902 assert(longp)
aec46f14 2903
2fd8beea
NC
2904/* PERL_CALLCONV void Perl_save_mortalizesv(pTHX_ SV* sv)
2905 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
2906#define PERL_ARGS_ASSERT_SAVE_MORTALIZESV \
2907 assert(sv)
aec46f14 2908
3d4dd4c7
NC
2909PERL_CALLCONV void Perl_save_nogv(pTHX_ GV* gv)
2910 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2911#define PERL_ARGS_ASSERT_SAVE_NOGV \
2912 assert(gv)
3d4dd4c7 2913
2fd8beea 2914/* PERL_CALLCONV void Perl_save_op(pTHX); */
aec46f14
AL
2915PERL_CALLCONV SV* Perl_save_scalar(pTHX_ GV* gv)
2916 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2917#define PERL_ARGS_ASSERT_SAVE_SCALAR \
2918 assert(gv)
aec46f14
AL
2919
2920PERL_CALLCONV void Perl_save_pptr(pTHX_ char** pptr)
2921 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2922#define PERL_ARGS_ASSERT_SAVE_PPTR \
2923 assert(pptr)
aec46f14 2924
4048f010 2925PERL_CALLCONV void Perl_save_vptr(pTHX_ void *ptr)
aec46f14 2926 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2927#define PERL_ARGS_ASSERT_SAVE_VPTR \
2928 assert(ptr)
aec46f14 2929
1d7c1841 2930PERL_CALLCONV void Perl_save_re_context(pTHX);
09edbca0 2931PERL_CALLCONV void Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
aec46f14
AL
2932PERL_CALLCONV void Perl_save_sptr(pTHX_ SV** sptr)
2933 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2934#define PERL_ARGS_ASSERT_SAVE_SPTR \
2935 assert(sptr)
aec46f14
AL
2936
2937PERL_CALLCONV SV* Perl_save_svref(pTHX_ SV** sptr)
2938 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2939#define PERL_ARGS_ASSERT_SAVE_SVREF \
2940 assert(sptr)
aec46f14 2941
2fd8beea 2942PERL_CALLCONV void Perl_save_pushptr(pTHX_ void *const ptr, const int type);
4f5084fa 2943PERL_CALLCONV void Perl_save_pushi32ptr(pTHX_ const I32 i, void *const ptr, const int type);
dfcd3de5 2944PERL_CALLCONV void Perl_save_pushptrptr(pTHX_ void *const ptr1, void *const ptr2, const int type);
be84297e
NC
2945#if defined(PERL_IN_SCOPE_C) || defined(PERL_DECL_PROT)
2946STATIC void S_save_pushptri32ptr(pTHX_ void *const ptr1, const I32 i, void *const ptr2, const int type);
2947#endif
1d7c1841
GS
2948PERL_CALLCONV OP* Perl_sawparens(pTHX_ OP* o);
2949PERL_CALLCONV OP* Perl_scalar(pTHX_ OP* o);
efd0b058 2950#if defined(PERL_IN_OP_C) || defined(PERL_DECL_PROT)
2dd5337b
NC
2951STATIC OP* S_scalarkids(pTHX_ OP* o);
2952STATIC OP* S_scalarseq(pTHX_ OP* o);
2953#endif
aec46f14
AL
2954PERL_CALLCONV OP* Perl_scalarvoid(pTHX_ OP* o)
2955 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2956#define PERL_ARGS_ASSERT_SCALARVOID \
2957 assert(o)
aec46f14
AL
2958
2959PERL_CALLCONV NV Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2960 __attribute__nonnull__(pTHX_1)
2961 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2962#define PERL_ARGS_ASSERT_SCAN_BIN \
2963 assert(start); assert(retlen)
aec46f14
AL
2964
2965PERL_CALLCONV NV Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2966 __attribute__nonnull__(pTHX_1)
2967 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2968#define PERL_ARGS_ASSERT_SCAN_HEX \
2969 assert(start); assert(retlen)
aec46f14
AL
2970
2971PERL_CALLCONV char* Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp)
2972 __attribute__nonnull__(pTHX_1)
2973 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2974#define PERL_ARGS_ASSERT_SCAN_NUM \
2975 assert(s); assert(lvalp)
aec46f14
AL
2976
2977PERL_CALLCONV NV Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
2978 __attribute__nonnull__(pTHX_1)
2979 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2980#define PERL_ARGS_ASSERT_SCAN_OCT \
2981 assert(start); assert(retlen)
aec46f14 2982
1d7c1841 2983PERL_CALLCONV OP* Perl_scope(pTHX_ OP* o);
9f6cc744 2984PERL_CALLCONV char* Perl_screaminstr(pTHX_ SV *bigstr, SV *littlestr, I32 start_shift, I32 end_shift, I32 *old_posp, I32 last)
aec46f14
AL
2985 __attribute__nonnull__(pTHX_1)
2986 __attribute__nonnull__(pTHX_2)
2987 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2988#define PERL_ARGS_ASSERT_SCREAMINSTR \
2989 assert(bigstr); assert(littlestr); assert(old_posp)
aec46f14 2990
1d7c1841 2991PERL_CALLCONV void Perl_setdefout(pTHX_ GV* gv);
aec46f14
AL
2992PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash)
2993 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2994#define PERL_ARGS_ASSERT_SHARE_HEK \
2995 assert(str)
aec46f14 2996
8aad04aa 2997#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
b6455c53
SR
2998PERL_CALLCONV Signal_t Perl_sighandler(int sig, siginfo_t *info, void *uap);
2999PERL_CALLCONV Signal_t Perl_csighandler(int sig, siginfo_t *info, void *uap);
8aad04aa 3000#else
1d7c1841 3001PERL_CALLCONV Signal_t Perl_sighandler(int sig);
d36b6582 3002PERL_CALLCONV Signal_t Perl_csighandler(int sig);
8aad04aa 3003#endif
c48640ec 3004PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV** p, int n)
abb2c242
JH
3005 __attribute__nonnull__(pTHX_1)
3006 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3007#define PERL_ARGS_ASSERT_STACK_GROW \
3008 assert(sp); assert(p)
f54cb97a 3009
0b1558d1 3010PERL_CALLCONV I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
aec46f14
AL
3011PERL_CALLCONV void Perl_sub_crush_depth(pTHX_ CV* cv)
3012 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3013#define PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH \
3014 assert(cv)
aec46f14 3015
7bc54cea 3016PERL_CALLCONV bool Perl_sv_2bool(pTHX_ SV *const sv)
abb2c242 3017 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3018#define PERL_ARGS_ASSERT_SV_2BOOL \
3019 assert(sv)
f54cb97a 3020
23f13727 3021PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV **const st, GV **const gvp, const I32 lref)
aec46f14
AL
3022 __attribute__nonnull__(pTHX_2)
3023 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3024#define PERL_ARGS_ASSERT_SV_2CV \
3025 assert(st); assert(gvp)
f54cb97a 3026
23f13727 3027PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV *const sv)
abb2c242 3028 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3029#define PERL_ARGS_ASSERT_SV_2IO \
3030 assert(sv)
f54cb97a 3031
efd0b058 3032#if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
19f6321d 3033STATIC bool S_glob_2number(pTHX_ GV* const gv)
180488f8 3034 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3035#define PERL_ARGS_ASSERT_GLOB_2NUMBER \
3036 assert(gv)
180488f8
NC
3037
3038#endif
53e85712
NC
3039/* PERL_CALLCONV IV Perl_sv_2iv(pTHX_ SV *sv); */
3040PERL_CALLCONV IV Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
23f13727 3041PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV *const sv);
53e85712 3042PERL_CALLCONV NV Perl_sv_2nv(pTHX_ SV *const sv);
5de3775c 3043PERL_CALLCONV SV* Perl_sv_2num(pTHX_ SV *const sv)
800401ee 3044 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3045#define PERL_ARGS_ASSERT_SV_2NUM \
3046 assert(sv)
800401ee 3047
53e85712
NC
3048/* PERL_CALLCONV char* Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp); */
3049PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
7bc54cea 3050PERL_CALLCONV char* Perl_sv_2pvutf8(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3051 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3052#define PERL_ARGS_ASSERT_SV_2PVUTF8 \
3053 assert(sv)
f54cb97a 3054
5de3775c 3055PERL_CALLCONV char* Perl_sv_2pvbyte(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3056 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3057#define PERL_ARGS_ASSERT_SV_2PVBYTE \
3058 assert(sv)
f54cb97a 3059
4373e329 3060PERL_CALLCONV char* Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp)
f49ed1da 3061 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3062#define PERL_ARGS_ASSERT_SV_PVN_NOMG \
3063 assert(sv)
f54cb97a 3064
53e85712
NC
3065/* PERL_CALLCONV UV Perl_sv_2uv(pTHX_ SV *sv); */
3066PERL_CALLCONV UV Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
4373e329 3067PERL_CALLCONV IV Perl_sv_iv(pTHX_ SV* sv)
abb2c242 3068 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3069#define PERL_ARGS_ASSERT_SV_IV \
3070 assert(sv)
f54cb97a 3071
4373e329 3072PERL_CALLCONV UV Perl_sv_uv(pTHX_ SV* sv)
abb2c242 3073 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3074#define PERL_ARGS_ASSERT_SV_UV \
3075 assert(sv)
f54cb97a 3076
4373e329 3077PERL_CALLCONV NV Perl_sv_nv(pTHX_ SV* sv)
abb2c242 3078 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3079#define PERL_ARGS_ASSERT_SV_NV \
3080 assert(sv)
f54cb97a 3081
4048f010 3082PERL_CALLCONV char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3083 __attribute__nonnull__(pTHX_1)
3084 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3085#define PERL_ARGS_ASSERT_SV_PVN \
3086 assert(sv); assert(lp)
f54cb97a 3087
4048f010 3088PERL_CALLCONV char* Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3089 __attribute__nonnull__(pTHX_1)
3090 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3091#define PERL_ARGS_ASSERT_SV_PVUTF8N \
3092 assert(sv); assert(lp)
f54cb97a 3093
4048f010 3094PERL_CALLCONV char* Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3095 __attribute__nonnull__(pTHX_1)
3096 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3097#define PERL_ARGS_ASSERT_SV_PVBYTEN \
3098 assert(sv); assert(lp)
f54cb97a 3099
23f13727 3100PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *const sv);
efd0b058 3101#if defined(PERL_IN_SV_C) || defined(PERL_DECL_PROT)
d2bd4e7f 3102STATIC void S_sv_add_arena(pTHX_ char *const ptr, const U32 size, const U32 flags)
abb2c242 3103 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3104#define PERL_ARGS_ASSERT_SV_ADD_ARENA \
3105 assert(ptr)
f54cb97a 3106
d2bd4e7f 3107#endif
aad570aa 3108PERL_CALLCONV int Perl_sv_backoff(pTHX_ SV *const sv)
abb2c242 3109 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3110#define PERL_ARGS_ASSERT_SV_BACKOFF \
3111 assert(sv)
f54cb97a 3112
12964ddd 3113PERL_CALLCONV SV* Perl_sv_bless(pTHX_ SV *const sv, HV *const stash)
abb2c242
JH
3114 __attribute__nonnull__(pTHX_1)
3115 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3116#define PERL_ARGS_ASSERT_SV_BLESS \
3117 assert(sv); assert(stash)
f54cb97a 3118
66ceb532 3119PERL_CALLCONV void Perl_sv_catpvf(pTHX_ SV *const sv, const char *const pat, ...)
f54cb97a 3120 __attribute__format__(__printf__,pTHX_2,pTHX_3)
aec46f14
AL
3121 __attribute__nonnull__(pTHX_1)
3122 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3123#define PERL_ARGS_ASSERT_SV_CATPVF \
3124 assert(sv); assert(pat)
f54cb97a 3125
66ceb532 3126PERL_CALLCONV void Perl_sv_vcatpvf(pTHX_ SV *const sv, const char *const pat, va_list *const args)
aec46f14
AL
3127 __attribute__nonnull__(pTHX_1)
3128 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3129#define PERL_ARGS_ASSERT_SV_VCATPVF \
3130 assert(sv); assert(pat)
f54cb97a 3131
2b021c53 3132PERL_CALLCONV void Perl_sv_catpv(pTHX_ SV *const sv, const char* ptr)
cf684db6 3133 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3134#define PERL_ARGS_ASSERT_SV_CATPV \
3135 assert(sv)
f54cb97a 3136
4048f010 3137/* PERL_CALLCONV void Perl_sv_catpvn(pTHX_ SV *dsv, const char *sstr, STRLEN len)
aec46f14
AL
3138 __attribute__nonnull__(pTHX_1)
3139 __attribute__nonnull__(pTHX_2); */
7918f24d
NC
3140#define PERL_ARGS_ASSERT_SV_CATPVN \
3141 assert(dsv); assert(sstr)
f54cb97a 3142
4048f010 3143/* PERL_CALLCONV void Perl_sv_catsv(pTHX_ SV *dstr, SV *sstr)
abb2c242 3144 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3145#define PERL_ARGS_ASSERT_SV_CATSV \
3146 assert(dstr)
f54cb97a 3147
2e000ff2 3148PERL_CALLCONV void Perl_sv_chop(pTHX_ SV *const sv, const char *const ptr)
abb2c242 3149 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3150#define PERL_ARGS_ASSERT_SV_CHOP \
3151 assert(sv)
f54cb97a 3152
5226ed68 3153PERL_CALLCONV I32 Perl_sv_clean_all(pTHX);
1d7c1841 3154PERL_CALLCONV void Perl_sv_clean_objs(pTHX);
af828c01 3155PERL_CALLCONV void Perl_sv_clear(pTHX_ SV *const sv)
abb2c242 3156 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3157#define PERL_ARGS_ASSERT_SV_CLEAR \
3158 assert(sv)
f54cb97a 3159
ac1e9476
SS
3160PERL_CALLCONV I32 Perl_sv_cmp(pTHX_ SV *const sv1, SV *const sv2);
3161PERL_CALLCONV I32 Perl_sv_cmp_locale(pTHX_ SV *const sv1, SV *const sv2);
864dbfa3 3162#if defined(USE_LOCALE_COLLATE)
ac1e9476 3163PERL_CALLCONV char* Perl_sv_collxfrm(pTHX_ SV *const sv, STRLEN *const nxp)
1df70142
AL
3164 __attribute__nonnull__(pTHX_1)
3165 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3166#define PERL_ARGS_ASSERT_SV_COLLXFRM \
3167 assert(sv); assert(nxp)
f54cb97a 3168
0cb96387 3169#endif
4048f010 3170PERL_CALLCONV OP* Perl_sv_compile_2op(pTHX_ SV *sv, OP **startop, const char *code, PAD **padp)
abb2c242
JH
3171 __attribute__nonnull__(pTHX_1)
3172 __attribute__nonnull__(pTHX_2)
3173 __attribute__nonnull__(pTHX_3)
3174 __attribute__nonnull__(pTHX_4);
7918f24d
NC
3175#define PERL_ARGS_ASSERT_SV_COMPILE_2OP \
3176 assert(sv); assert(startop); assert(code); assert(padp)
f54cb97a 3177
4373e329 3178PERL_CALLCONV int Perl_getcwd_sv(pTHX_ SV* sv)
abb2c242 3179 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3180#define PERL_ARGS_ASSERT_GETCWD_SV \
3181 assert(sv)
f54cb97a 3182
ac1e9476 3183PERL_CALLCONV void Perl_sv_dec(pTHX_ SV *const sv);
f54cb97a 3184PERL_CALLCONV void Perl_sv_dump(pTHX_ SV* sv)
abb2c242 3185 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3186#define PERL_ARGS_ASSERT_SV_DUMP \
3187 assert(sv)
f54cb97a 3188
15f169a1 3189PERL_CALLCONV bool Perl_sv_derived_from(pTHX_ SV* sv, const char *const name)
abb2c242
JH
3190 __attribute__warn_unused_result__
3191 __attribute__nonnull__(pTHX_1)
3192 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3193#define PERL_ARGS_ASSERT_SV_DERIVED_FROM \
3194 assert(sv); assert(name)
f54cb97a 3195
15f169a1 3196PERL_CALLCONV bool Perl_sv_does(pTHX_ SV* sv, const char *const name)
cbc021f9 3197 __attribute__warn_unused_result__
3198 __attribute__nonnull__(pTHX_1)
3199 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3200#define PERL_ARGS_ASSERT_SV_DOES \
3201 assert(sv); assert(name)
cbc021f9 3202
551405c4 3203PERL_CALLCONV I32 Perl_sv_eq(pTHX_ SV* sv1, SV* sv2);
af828c01
SS
3204PERL_CALLCONV void Perl_sv_free(pTHX_ SV *const sv);
3205PERL_CALLCONV void Perl_sv_free2(pTHX_ SV *const sv)
abb2c242 3206 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3207#define PERL_ARGS_ASSERT_SV_FREE2 \
3208 assert(sv)
f54cb97a 3209
1d7c1841 3210PERL_CALLCONV void Perl_sv_free_arenas(pTHX);
ac1e9476 3211PERL_CALLCONV char* Perl_sv_gets(pTHX_ SV *const sv, PerlIO *const fp, I32 append)
abb2c242
JH
3212 __attribute__nonnull__(pTHX_1)
3213 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3214#define PERL_ARGS_ASSERT_SV_GETS \
3215 assert(sv); assert(fp)
f54cb97a 3216
aad570aa 3217PERL_CALLCONV char* Perl_sv_grow(pTHX_ SV *const sv, STRLEN newlen)
abb2c242 3218 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3219#define PERL_ARGS_ASSERT_SV_GROW \
3220 assert(sv)
f54cb97a 3221
ac1e9476 3222PERL_CALLCONV void Perl_sv_inc(pTHX_ SV *const sv);
84335ee9 3223/* PERL_CALLCONV void Perl_sv_insert(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen)
abb2c242 3224 __attribute__nonnull__(pTHX_1)
84335ee9 3225 __attribute__nonnull__(pTHX_4); */
7918f24d
NC
3226#define PERL_ARGS_ASSERT_SV_INSERT \
3227 assert(bigstr); assert(little)
f54cb97a 3228
c0dd94a0
VP
3229PERL_CALLCONV void Perl_sv_insert_flags(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len, const char *const little, const STRLEN littlelen, const U32 flags)
3230 __attribute__nonnull__(pTHX_1)
3231 __attribute__nonnull__(pTHX_4);
3232#define PERL_ARGS_ASSERT_SV_INSERT_FLAGS \
3233 assert(bigstr); assert(little)
3234
12964ddd 3235PERL_CALLCONV int Perl_sv_isa(pTHX_ SV* sv, const char *const name)
aec46f14