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