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