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