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