This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "Make the peep recurse via PL_peepp"
[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
8af6f985 1167PERL_CALLCONV void Perl_init_dbargs(pTHX);
1d7c1841
GS
1168PERL_CALLCONV void Perl_init_debugger(pTHX);
1169PERL_CALLCONV void Perl_init_stacks(pTHX);
bfce84ec
AL
1170PERL_CALLCONV void Perl_init_tm(pTHX_ struct tm *ptm)
1171 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1172#define PERL_ARGS_ASSERT_INIT_TM \
1173 assert(ptm)
bfce84ec 1174
1d7c1841 1175PERL_CALLCONV U32 Perl_intro_my(pTHX);
04c9e624 1176PERL_CALLCONV char* Perl_instr(const char* big, const char* little)
b464bac0 1177 __attribute__warn_unused_result__
abb2c242 1178 __attribute__pure__
04c9e624
VP
1179 __attribute__nonnull__(1)
1180 __attribute__nonnull__(2);
7918f24d
NC
1181#define PERL_ARGS_ASSERT_INSTR \
1182 assert(big); assert(little)
f54cb97a 1183
b464bac0 1184PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit)
b464bac0 1185 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1186#define PERL_ARGS_ASSERT_IO_CLOSE \
1187 assert(io)
b464bac0
AL
1188
1189PERL_CALLCONV OP* Perl_invert(pTHX_ OP* cmd)
1190 __attribute__warn_unused_result__;
1191
f54cb97a 1192PERL_CALLCONV I32 Perl_is_lvalue_sub(pTHX)
abb2c242 1193 __attribute__warn_unused_result__;
f54cb97a
AL
1194
1195PERL_CALLCONV U32 Perl_to_uni_upper_lc(pTHX_ U32 c)
abb2c242
JH
1196 __attribute__warn_unused_result__
1197 __attribute__pure__;
f54cb97a
AL
1198
1199PERL_CALLCONV U32 Perl_to_uni_title_lc(pTHX_ U32 c)
abb2c242
JH
1200 __attribute__warn_unused_result__
1201 __attribute__pure__;
f54cb97a
AL
1202
1203PERL_CALLCONV U32 Perl_to_uni_lower_lc(pTHX_ U32 c)
abb2c242
JH
1204 __attribute__warn_unused_result__
1205 __attribute__pure__;
f54cb97a
AL
1206
1207PERL_CALLCONV bool Perl_is_uni_alnum(pTHX_ UV c)
abb2c242
JH
1208 __attribute__warn_unused_result__
1209 __attribute__pure__;
f54cb97a 1210
f54cb97a 1211PERL_CALLCONV bool Perl_is_uni_idfirst(pTHX_ UV c)
abb2c242
JH
1212 __attribute__warn_unused_result__
1213 __attribute__pure__;
f54cb97a
AL
1214
1215PERL_CALLCONV bool Perl_is_uni_alpha(pTHX_ UV c)
abb2c242
JH
1216 __attribute__warn_unused_result__
1217 __attribute__pure__;
f54cb97a
AL
1218
1219PERL_CALLCONV bool Perl_is_uni_ascii(pTHX_ UV c)
abb2c242
JH
1220 __attribute__warn_unused_result__
1221 __attribute__pure__;
f54cb97a
AL
1222
1223PERL_CALLCONV bool Perl_is_uni_space(pTHX_ UV c)
abb2c242
JH
1224 __attribute__warn_unused_result__
1225 __attribute__pure__;
f54cb97a
AL
1226
1227PERL_CALLCONV bool Perl_is_uni_cntrl(pTHX_ UV c)
abb2c242
JH
1228 __attribute__warn_unused_result__
1229 __attribute__pure__;
f54cb97a
AL
1230
1231PERL_CALLCONV bool Perl_is_uni_graph(pTHX_ UV c)
abb2c242
JH
1232 __attribute__warn_unused_result__
1233 __attribute__pure__;
f54cb97a
AL
1234
1235PERL_CALLCONV bool Perl_is_uni_digit(pTHX_ UV c)
abb2c242
JH
1236 __attribute__warn_unused_result__
1237 __attribute__pure__;
f54cb97a
AL
1238
1239PERL_CALLCONV bool Perl_is_uni_upper(pTHX_ UV c)
abb2c242
JH
1240 __attribute__warn_unused_result__
1241 __attribute__pure__;
f54cb97a
AL
1242
1243PERL_CALLCONV bool Perl_is_uni_lower(pTHX_ UV c)
abb2c242
JH
1244 __attribute__warn_unused_result__
1245 __attribute__pure__;
f54cb97a
AL
1246
1247PERL_CALLCONV bool Perl_is_uni_print(pTHX_ UV c)
abb2c242
JH
1248 __attribute__warn_unused_result__
1249 __attribute__pure__;
f54cb97a
AL
1250
1251PERL_CALLCONV bool Perl_is_uni_punct(pTHX_ UV c)
abb2c242
JH
1252 __attribute__warn_unused_result__
1253 __attribute__pure__;
f54cb97a
AL
1254
1255PERL_CALLCONV bool Perl_is_uni_xdigit(pTHX_ UV c)
abb2c242
JH
1256 __attribute__warn_unused_result__
1257 __attribute__pure__;
f54cb97a 1258
4373e329 1259PERL_CALLCONV UV Perl_to_uni_upper(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1260 __attribute__nonnull__(pTHX_2)
1261 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1262#define PERL_ARGS_ASSERT_TO_UNI_UPPER \
1263 assert(p); assert(lenp)
f54cb97a 1264
4373e329 1265PERL_CALLCONV UV Perl_to_uni_title(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1266 __attribute__nonnull__(pTHX_2)
1267 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1268#define PERL_ARGS_ASSERT_TO_UNI_TITLE \
1269 assert(p); assert(lenp)
f54cb97a 1270
4373e329 1271PERL_CALLCONV UV Perl_to_uni_lower(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1272 __attribute__nonnull__(pTHX_2)
1273 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1274#define PERL_ARGS_ASSERT_TO_UNI_LOWER \
1275 assert(p); assert(lenp)
f54cb97a 1276
4373e329 1277PERL_CALLCONV UV Perl_to_uni_fold(pTHX_ UV c, U8 *p, STRLEN *lenp)
abb2c242
JH
1278 __attribute__nonnull__(pTHX_2)
1279 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1280#define PERL_ARGS_ASSERT_TO_UNI_FOLD \
1281 assert(p); assert(lenp)
f54cb97a
AL
1282
1283PERL_CALLCONV bool Perl_is_uni_alnum_lc(pTHX_ UV c)
abb2c242
JH
1284 __attribute__warn_unused_result__
1285 __attribute__pure__;
f54cb97a 1286
f54cb97a 1287PERL_CALLCONV bool Perl_is_uni_idfirst_lc(pTHX_ UV c)
abb2c242
JH
1288 __attribute__warn_unused_result__
1289 __attribute__pure__;
f54cb97a
AL
1290
1291PERL_CALLCONV bool Perl_is_uni_alpha_lc(pTHX_ UV c)
abb2c242
JH
1292 __attribute__warn_unused_result__
1293 __attribute__pure__;
f54cb97a
AL
1294
1295PERL_CALLCONV bool Perl_is_uni_ascii_lc(pTHX_ UV c)
abb2c242
JH
1296 __attribute__warn_unused_result__
1297 __attribute__pure__;
f54cb97a
AL
1298
1299PERL_CALLCONV bool Perl_is_uni_space_lc(pTHX_ UV c)
abb2c242
JH
1300 __attribute__warn_unused_result__
1301 __attribute__pure__;
f54cb97a
AL
1302
1303PERL_CALLCONV bool Perl_is_uni_cntrl_lc(pTHX_ UV c)
abb2c242
JH
1304 __attribute__warn_unused_result__
1305 __attribute__pure__;
f54cb97a
AL
1306
1307PERL_CALLCONV bool Perl_is_uni_graph_lc(pTHX_ UV c)
abb2c242
JH
1308 __attribute__warn_unused_result__
1309 __attribute__pure__;
f54cb97a
AL
1310
1311PERL_CALLCONV bool Perl_is_uni_digit_lc(pTHX_ UV c)
abb2c242
JH
1312 __attribute__warn_unused_result__
1313 __attribute__pure__;
f54cb97a
AL
1314
1315PERL_CALLCONV bool Perl_is_uni_upper_lc(pTHX_ UV c)
abb2c242
JH
1316 __attribute__warn_unused_result__
1317 __attribute__pure__;
f54cb97a
AL
1318
1319PERL_CALLCONV bool Perl_is_uni_lower_lc(pTHX_ UV c)
abb2c242
JH
1320 __attribute__warn_unused_result__
1321 __attribute__pure__;
f54cb97a
AL
1322
1323PERL_CALLCONV bool Perl_is_uni_print_lc(pTHX_ UV c)
abb2c242
JH
1324 __attribute__warn_unused_result__
1325 __attribute__pure__;
f54cb97a
AL
1326
1327PERL_CALLCONV bool Perl_is_uni_punct_lc(pTHX_ UV c)
abb2c242
JH
1328 __attribute__warn_unused_result__
1329 __attribute__pure__;
f54cb97a
AL
1330
1331PERL_CALLCONV bool Perl_is_uni_xdigit_lc(pTHX_ UV c)
abb2c242
JH
1332 __attribute__warn_unused_result__
1333 __attribute__pure__;
f54cb97a 1334
668b6d8d
VP
1335PERL_CALLCONV bool Perl_is_ascii_string(const U8 *s, STRLEN len)
1336 __attribute__nonnull__(1);
eaf7a4d2
CS
1337#define PERL_ARGS_ASSERT_IS_ASCII_STRING \
1338 assert(s)
1339
668b6d8d
VP
1340PERL_CALLCONV STRLEN Perl_is_utf8_char(const U8 *s)
1341 __attribute__nonnull__(1);
7918f24d
NC
1342#define PERL_ARGS_ASSERT_IS_UTF8_CHAR \
1343 assert(s)
f54cb97a 1344
668b6d8d
VP
1345PERL_CALLCONV bool Perl_is_utf8_string(const U8 *s, STRLEN len)
1346 __attribute__nonnull__(1);
7918f24d
NC
1347#define PERL_ARGS_ASSERT_IS_UTF8_STRING \
1348 assert(s)
f54cb97a 1349
668b6d8d
VP
1350/* PERL_CALLCONV bool Perl_is_utf8_string_loc(const U8 *s, STRLEN len, const U8 **p)
1351 __attribute__nonnull__(1); */
7918f24d
NC
1352#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOC \
1353 assert(s)
768c67ee 1354
668b6d8d
VP
1355PERL_CALLCONV bool Perl_is_utf8_string_loclen(const U8 *s, STRLEN len, const U8 **ep, STRLEN *el)
1356 __attribute__nonnull__(1);
7918f24d
NC
1357#define PERL_ARGS_ASSERT_IS_UTF8_STRING_LOCLEN \
1358 assert(s)
f54cb97a 1359
4373e329 1360PERL_CALLCONV bool Perl_is_utf8_alnum(pTHX_ const U8 *p)
1df70142 1361 __attribute__warn_unused_result__
abb2c242 1362 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1363#define PERL_ARGS_ASSERT_IS_UTF8_ALNUM \
1364 assert(p)
f54cb97a 1365
4373e329 1366PERL_CALLCONV bool Perl_is_utf8_idfirst(pTHX_ const U8 *p)
1df70142 1367 __attribute__warn_unused_result__
abb2c242 1368 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1369#define PERL_ARGS_ASSERT_IS_UTF8_IDFIRST \
1370 assert(p)
f54cb97a 1371
4373e329 1372PERL_CALLCONV bool Perl_is_utf8_idcont(pTHX_ const U8 *p)
1df70142 1373 __attribute__warn_unused_result__
abb2c242 1374 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1375#define PERL_ARGS_ASSERT_IS_UTF8_IDCONT \
1376 assert(p)
f54cb97a 1377
4373e329 1378PERL_CALLCONV bool Perl_is_utf8_alpha(pTHX_ const U8 *p)
1df70142 1379 __attribute__warn_unused_result__
abb2c242 1380 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1381#define PERL_ARGS_ASSERT_IS_UTF8_ALPHA \
1382 assert(p)
f54cb97a 1383
4373e329 1384PERL_CALLCONV bool Perl_is_utf8_ascii(pTHX_ const U8 *p)
1df70142 1385 __attribute__warn_unused_result__
abb2c242 1386 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1387#define PERL_ARGS_ASSERT_IS_UTF8_ASCII \
1388 assert(p)
f54cb97a 1389
4373e329 1390PERL_CALLCONV bool Perl_is_utf8_space(pTHX_ const U8 *p)
1df70142 1391 __attribute__warn_unused_result__
abb2c242 1392 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1393#define PERL_ARGS_ASSERT_IS_UTF8_SPACE \
1394 assert(p)
f54cb97a 1395
d1eb3177
YO
1396PERL_CALLCONV bool Perl_is_utf8_perl_space(pTHX_ const U8 *p)
1397 __attribute__warn_unused_result__
1398 __attribute__nonnull__(pTHX_1);
1399#define PERL_ARGS_ASSERT_IS_UTF8_PERL_SPACE \
1400 assert(p)
1401
1402PERL_CALLCONV bool Perl_is_utf8_perl_word(pTHX_ const U8 *p)
1403 __attribute__warn_unused_result__
1404 __attribute__nonnull__(pTHX_1);
1405#define PERL_ARGS_ASSERT_IS_UTF8_PERL_WORD \
1406 assert(p)
1407
4373e329 1408PERL_CALLCONV bool Perl_is_utf8_cntrl(pTHX_ const U8 *p)
1df70142 1409 __attribute__warn_unused_result__
abb2c242 1410 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1411#define PERL_ARGS_ASSERT_IS_UTF8_CNTRL \
1412 assert(p)
f54cb97a 1413
4373e329 1414PERL_CALLCONV bool Perl_is_utf8_digit(pTHX_ const U8 *p)
1df70142 1415 __attribute__warn_unused_result__
abb2c242 1416 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1417#define PERL_ARGS_ASSERT_IS_UTF8_DIGIT \
1418 assert(p)
f54cb97a 1419
d1eb3177
YO
1420PERL_CALLCONV bool Perl_is_utf8_posix_digit(pTHX_ const U8 *p)
1421 __attribute__warn_unused_result__
1422 __attribute__nonnull__(pTHX_1);
1423#define PERL_ARGS_ASSERT_IS_UTF8_POSIX_DIGIT \
1424 assert(p)
1425
4373e329 1426PERL_CALLCONV bool Perl_is_utf8_graph(pTHX_ const U8 *p)
1df70142 1427 __attribute__warn_unused_result__
abb2c242 1428 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1429#define PERL_ARGS_ASSERT_IS_UTF8_GRAPH \
1430 assert(p)
f54cb97a 1431
4373e329 1432PERL_CALLCONV bool Perl_is_utf8_upper(pTHX_ const U8 *p)
1df70142 1433 __attribute__warn_unused_result__
abb2c242 1434 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1435#define PERL_ARGS_ASSERT_IS_UTF8_UPPER \
1436 assert(p)
f54cb97a 1437
4373e329 1438PERL_CALLCONV bool Perl_is_utf8_lower(pTHX_ const U8 *p)
1df70142 1439 __attribute__warn_unused_result__
abb2c242 1440 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1441#define PERL_ARGS_ASSERT_IS_UTF8_LOWER \
1442 assert(p)
f54cb97a 1443
4373e329 1444PERL_CALLCONV bool Perl_is_utf8_print(pTHX_ const U8 *p)
1df70142 1445 __attribute__warn_unused_result__
abb2c242 1446 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1447#define PERL_ARGS_ASSERT_IS_UTF8_PRINT \
1448 assert(p)
f54cb97a 1449
4373e329 1450PERL_CALLCONV bool Perl_is_utf8_punct(pTHX_ const U8 *p)
1df70142 1451 __attribute__warn_unused_result__
abb2c242 1452 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1453#define PERL_ARGS_ASSERT_IS_UTF8_PUNCT \
1454 assert(p)
f54cb97a 1455
4373e329 1456PERL_CALLCONV bool Perl_is_utf8_xdigit(pTHX_ const U8 *p)
1df70142 1457 __attribute__warn_unused_result__
abb2c242 1458 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1459#define PERL_ARGS_ASSERT_IS_UTF8_XDIGIT \
1460 assert(p)
f54cb97a 1461
4373e329 1462PERL_CALLCONV bool Perl_is_utf8_mark(pTHX_ const U8 *p)
1df70142 1463 __attribute__warn_unused_result__
abb2c242 1464 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1465#define PERL_ARGS_ASSERT_IS_UTF8_MARK \
1466 assert(p)
f54cb97a 1467
37e2e78e
KW
1468PERL_CALLCONV bool Perl_is_utf8_X_begin(pTHX_ const U8 *p)
1469 __attribute__warn_unused_result__
1470 __attribute__nonnull__(pTHX_1);
1471#define PERL_ARGS_ASSERT_IS_UTF8_X_BEGIN \
1472 assert(p)
1473
1474PERL_CALLCONV bool Perl_is_utf8_X_extend(pTHX_ const U8 *p)
1475 __attribute__warn_unused_result__
1476 __attribute__nonnull__(pTHX_1);
1477#define PERL_ARGS_ASSERT_IS_UTF8_X_EXTEND \
1478 assert(p)
1479
1480PERL_CALLCONV bool Perl_is_utf8_X_prepend(pTHX_ const U8 *p)
1481 __attribute__warn_unused_result__
1482 __attribute__nonnull__(pTHX_1);
1483#define PERL_ARGS_ASSERT_IS_UTF8_X_PREPEND \
1484 assert(p)
1485
1486PERL_CALLCONV bool Perl_is_utf8_X_non_hangul(pTHX_ const U8 *p)
1487 __attribute__warn_unused_result__
1488 __attribute__nonnull__(pTHX_1);
1489#define PERL_ARGS_ASSERT_IS_UTF8_X_NON_HANGUL \
1490 assert(p)
1491
1492PERL_CALLCONV bool Perl_is_utf8_X_L(pTHX_ const U8 *p)
1493 __attribute__warn_unused_result__
1494 __attribute__nonnull__(pTHX_1);
1495#define PERL_ARGS_ASSERT_IS_UTF8_X_L \
1496 assert(p)
1497
1498PERL_CALLCONV bool Perl_is_utf8_X_LV(pTHX_ const U8 *p)
1499 __attribute__warn_unused_result__
1500 __attribute__nonnull__(pTHX_1);
1501#define PERL_ARGS_ASSERT_IS_UTF8_X_LV \
1502 assert(p)
1503
1504PERL_CALLCONV bool Perl_is_utf8_X_LVT(pTHX_ const U8 *p)
1505 __attribute__warn_unused_result__
1506 __attribute__nonnull__(pTHX_1);
1507#define PERL_ARGS_ASSERT_IS_UTF8_X_LVT \
1508 assert(p)
1509
1510PERL_CALLCONV bool Perl_is_utf8_X_LV_LVT_V(pTHX_ const U8 *p)
1511 __attribute__warn_unused_result__
1512 __attribute__nonnull__(pTHX_1);
1513#define PERL_ARGS_ASSERT_IS_UTF8_X_LV_LVT_V \
1514 assert(p)
1515
1516PERL_CALLCONV bool Perl_is_utf8_X_T(pTHX_ const U8 *p)
1517 __attribute__warn_unused_result__
1518 __attribute__nonnull__(pTHX_1);
1519#define PERL_ARGS_ASSERT_IS_UTF8_X_T \
1520 assert(p)
1521
1522PERL_CALLCONV bool Perl_is_utf8_X_V(pTHX_ const U8 *p)
1523 __attribute__warn_unused_result__
1524 __attribute__nonnull__(pTHX_1);
1525#define PERL_ARGS_ASSERT_IS_UTF8_X_V \
1526 assert(p)
1527
4048f010 1528PERL_CALLCONV OP* Perl_jmaybe(pTHX_ OP *o)
abb2c242 1529 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1530#define PERL_ARGS_ASSERT_JMAYBE \
1531 assert(o)
f54cb97a 1532
4048f010 1533PERL_CALLCONV I32 Perl_keyword(pTHX_ const char *name, I32 len, bool all_keywords)
abb2c242
JH
1534 __attribute__pure__
1535 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1536#define PERL_ARGS_ASSERT_KEYWORD \
1537 assert(name)
f54cb97a 1538
43869a0c 1539#if defined(PERL_IN_OP_C)
867fa1e2
YO
1540STATIC OP* S_opt_scalarhv(pTHX_ OP* rep_op)
1541 __attribute__nonnull__(pTHX_1);
1542#define PERL_ARGS_ASSERT_OPT_SCALARHV \
1543 assert(rep_op)
1544
2f9e2db0
VP
1545STATIC OP* S_is_inplace_av(pTHX_ OP* o, OP* oright)
1546 __attribute__nonnull__(pTHX_1);
1547#define PERL_ARGS_ASSERT_IS_INPLACE_AV \
1548 assert(o)
1549
867fa1e2 1550#endif
1d7c1841
GS
1551PERL_CALLCONV void Perl_leave_scope(pTHX_ I32 base);
1552PERL_CALLCONV void Perl_lex_end(pTHX);
5486870f 1553PERL_CALLCONV void Perl_lex_start(pTHX_ SV* line, PerlIO *rsfp, bool new_filter);
f0e67a1d
Z
1554PERL_CALLCONV bool Perl_lex_bufutf8(pTHX);
1555PERL_CALLCONV char* Perl_lex_grow_linestr(pTHX_ STRLEN len);
83aa740e 1556PERL_CALLCONV void Perl_lex_stuff_pvn(pTHX_ const char* pv, STRLEN len, U32 flags)
f0e67a1d
Z
1557 __attribute__nonnull__(pTHX_1);
1558#define PERL_ARGS_ASSERT_LEX_STUFF_PVN \
1559 assert(pv)
1560
1561PERL_CALLCONV void Perl_lex_stuff_sv(pTHX_ SV* sv, U32 flags)
1562 __attribute__nonnull__(pTHX_1);
1563#define PERL_ARGS_ASSERT_LEX_STUFF_SV \
1564 assert(sv)
1565
1566PERL_CALLCONV void Perl_lex_unstuff(pTHX_ char* ptr)
1567 __attribute__nonnull__(pTHX_1);
1568#define PERL_ARGS_ASSERT_LEX_UNSTUFF \
1569 assert(ptr)
1570
1571PERL_CALLCONV void Perl_lex_read_to(pTHX_ char* ptr)
1572 __attribute__nonnull__(pTHX_1);
1573#define PERL_ARGS_ASSERT_LEX_READ_TO \
1574 assert(ptr)
1575
1576PERL_CALLCONV void Perl_lex_discard_to(pTHX_ char* ptr)
1577 __attribute__nonnull__(pTHX_1);
1578#define PERL_ARGS_ASSERT_LEX_DISCARD_TO \
1579 assert(ptr)
1580
1581PERL_CALLCONV bool Perl_lex_next_chunk(pTHX_ U32 flags);
1582PERL_CALLCONV I32 Perl_lex_peek_unichar(pTHX_ U32 flags);
1583PERL_CALLCONV I32 Perl_lex_read_unichar(pTHX_ U32 flags);
1584PERL_CALLCONV void Perl_lex_read_space(pTHX_ U32 flags);
aec46f14
AL
1585PERL_CALLCONV void Perl_op_null(pTHX_ OP* o)
1586 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1587#define PERL_ARGS_ASSERT_OP_NULL \
1588 assert(o)
aec46f14
AL
1589
1590PERL_CALLCONV void Perl_op_clear(pTHX_ OP* o)
1591 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1592#define PERL_ARGS_ASSERT_OP_CLEAR \
1593 assert(o)
aec46f14 1594
4026c95a
SH
1595PERL_CALLCONV void Perl_op_refcnt_lock(pTHX);
1596PERL_CALLCONV void Perl_op_refcnt_unlock(pTHX);
43869a0c 1597#if defined(PERL_IN_OP_C)
12e93c28 1598STATIC OP* S_linklist(pTHX_ OP *o)
aec46f14 1599 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1600#define PERL_ARGS_ASSERT_LINKLIST \
1601 assert(o)
aec46f14 1602
412da003 1603STATIC OP* S_listkids(pTHX_ OP* o);
2dd5337b 1604#endif
1d7c1841 1605PERL_CALLCONV OP* Perl_list(pTHX_ OP* o);
aec46f14
AL
1606PERL_CALLCONV void Perl_load_module(pTHX_ U32 flags, SV* name, SV* ver, ...)
1607 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1608#define PERL_ARGS_ASSERT_LOAD_MODULE \
1609 assert(name)
aec46f14
AL
1610
1611PERL_CALLCONV void Perl_vload_module(pTHX_ U32 flags, SV* name, SV* ver, va_list* args)
1612 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1613#define PERL_ARGS_ASSERT_VLOAD_MODULE \
1614 assert(name)
aec46f14 1615
4048f010 1616PERL_CALLCONV OP* Perl_localize(pTHX_ OP *o, I32 lex)
bfce84ec 1617 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1618#define PERL_ARGS_ASSERT_LOCALIZE \
1619 assert(o)
bfce84ec 1620
aad570aa 1621PERL_CALLCONV I32 Perl_looks_like_number(pTHX_ SV *const sv)
abb2c242
JH
1622 __attribute__warn_unused_result__
1623 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1624#define PERL_ARGS_ASSERT_LOOKS_LIKE_NUMBER \
1625 assert(sv)
f54cb97a 1626
a3b680e6 1627PERL_CALLCONV UV Perl_grok_bin(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1628 __attribute__nonnull__(pTHX_1)
1629 __attribute__nonnull__(pTHX_2)
1630 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1631#define PERL_ARGS_ASSERT_GROK_BIN \
1632 assert(start); assert(len_p); assert(flags)
f54cb97a 1633
e52cd83c
RGS
1634PERL_CALLCONV char Perl_grok_bslash_c(pTHX_ const char source, const bool output_warning)
1635 __attribute__warn_unused_result__;
1636
454155d9 1637PERL_CALLCONV bool Perl_grok_bslash_o(pTHX_ const char* s, UV* uv, STRLEN* len, const char** error_msg, const bool output_warning)
f0a2b745
KW
1638 __attribute__warn_unused_result__
1639 __attribute__nonnull__(pTHX_1)
1640 __attribute__nonnull__(pTHX_2)
454155d9
KW
1641 __attribute__nonnull__(pTHX_3)
1642 __attribute__nonnull__(pTHX_4);
f0a2b745 1643#define PERL_ARGS_ASSERT_GROK_BSLASH_O \
454155d9 1644 assert(s); assert(uv); assert(len); assert(error_msg)
f0a2b745 1645
a3b680e6 1646PERL_CALLCONV UV Perl_grok_hex(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
abb2c242
JH
1647 __attribute__nonnull__(pTHX_1)
1648 __attribute__nonnull__(pTHX_2)
1649 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1650#define PERL_ARGS_ASSERT_GROK_HEX \
1651 assert(start); assert(len_p); assert(flags)
f54cb97a
AL
1652
1653PERL_CALLCONV int Perl_grok_number(pTHX_ const char *pv, STRLEN len, UV *valuep)
abb2c242 1654 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1655#define PERL_ARGS_ASSERT_GROK_NUMBER \
1656 assert(pv)
f54cb97a 1657
901017d6 1658PERL_CALLCONV bool Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send)
bfce84ec
AL
1659 __attribute__warn_unused_result__
1660 __attribute__nonnull__(pTHX_1)
1661 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1662#define PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX \
1663 assert(sp); assert(send)
bfce84ec
AL
1664
1665PERL_CALLCONV UV Perl_grok_oct(pTHX_ const char* start, STRLEN* len_p, I32* flags, NV *result)
fb9bf107
NC
1666 __attribute__nonnull__(pTHX_1)
1667 __attribute__nonnull__(pTHX_2)
1668 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1669#define PERL_ARGS_ASSERT_GROK_OCT \
1670 assert(start); assert(len_p); assert(flags)
bfce84ec
AL
1671
1672PERL_CALLCONV int Perl_magic_clearenv(pTHX_ SV* sv, MAGIC* mg)
1673 __attribute__nonnull__(pTHX_1)
1674 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1675#define PERL_ARGS_ASSERT_MAGIC_CLEARENV \
1676 assert(sv); assert(mg)
bfce84ec
AL
1677
1678PERL_CALLCONV int Perl_magic_clear_all_env(pTHX_ SV* sv, MAGIC* mg)
1679 __attribute__nonnull__(pTHX_1)
1680 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1681#define PERL_ARGS_ASSERT_MAGIC_CLEAR_ALL_ENV \
1682 assert(sv); assert(mg)
bfce84ec 1683
b3ca2e83
NC
1684PERL_CALLCONV int Perl_magic_clearhint(pTHX_ SV* sv, MAGIC* mg)
1685 __attribute__nonnull__(pTHX_1)
1686 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1687#define PERL_ARGS_ASSERT_MAGIC_CLEARHINT \
1688 assert(sv); assert(mg)
b3ca2e83 1689
f747ebd6
Z
1690PERL_CALLCONV int Perl_magic_clearhints(pTHX_ SV* sv, MAGIC* mg)
1691 __attribute__nonnull__(pTHX_1)
1692 __attribute__nonnull__(pTHX_2);
1693#define PERL_ARGS_ASSERT_MAGIC_CLEARHINTS \
1694 assert(sv); assert(mg)
1695
52b45067 1696PERL_CALLCONV int Perl_magic_clearisa(pTHX_ SV* sv, MAGIC* mg)
52b45067 1697 __attribute__nonnull__(pTHX_2);
7918f24d 1698#define PERL_ARGS_ASSERT_MAGIC_CLEARISA \
0e446081 1699 assert(mg)
52b45067 1700
bfce84ec
AL
1701PERL_CALLCONV int Perl_magic_clearpack(pTHX_ SV* sv, MAGIC* mg)
1702 __attribute__nonnull__(pTHX_1)
1703 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1704#define PERL_ARGS_ASSERT_MAGIC_CLEARPACK \
1705 assert(sv); assert(mg)
bfce84ec
AL
1706
1707PERL_CALLCONV int Perl_magic_clearsig(pTHX_ SV* sv, MAGIC* mg)
1708 __attribute__nonnull__(pTHX_1)
1709 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1710#define PERL_ARGS_ASSERT_MAGIC_CLEARSIG \
1711 assert(sv); assert(mg)
bfce84ec 1712
1146e912 1713PERL_CALLCONV int Perl_magic_existspack(pTHX_ SV* sv, const MAGIC* mg)
bfce84ec
AL
1714 __attribute__nonnull__(pTHX_1)
1715 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1716#define PERL_ARGS_ASSERT_MAGIC_EXISTSPACK \
1717 assert(sv); assert(mg)
bfce84ec 1718
bfce84ec
AL
1719PERL_CALLCONV int Perl_magic_freeovrld(pTHX_ SV* sv, MAGIC* mg)
1720 __attribute__nonnull__(pTHX_1)
1721 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1722#define PERL_ARGS_ASSERT_MAGIC_FREEOVRLD \
1723 assert(sv); assert(mg)
bfce84ec
AL
1724
1725PERL_CALLCONV int Perl_magic_get(pTHX_ SV* sv, MAGIC* mg)
1726 __attribute__nonnull__(pTHX_1)
1727 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1728#define PERL_ARGS_ASSERT_MAGIC_GET \
1729 assert(sv); assert(mg)
901017d6 1730
8772537c
AL
1731PERL_CALLCONV int Perl_magic_getarylen(pTHX_ SV* sv, const MAGIC* mg)
1732 __attribute__nonnull__(pTHX_1)
1733 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1734#define PERL_ARGS_ASSERT_MAGIC_GETARYLEN \
1735 assert(sv); assert(mg)
8772537c 1736
bfce84ec
AL
1737PERL_CALLCONV int Perl_magic_getdefelem(pTHX_ SV* sv, MAGIC* mg)
1738 __attribute__nonnull__(pTHX_1)
1739 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1740#define PERL_ARGS_ASSERT_MAGIC_GETDEFELEM \
1741 assert(sv); assert(mg)
bfce84ec 1742
bfce84ec
AL
1743PERL_CALLCONV int Perl_magic_getnkeys(pTHX_ SV* sv, MAGIC* mg)
1744 __attribute__nonnull__(pTHX_1)
1745 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1746#define PERL_ARGS_ASSERT_MAGIC_GETNKEYS \
1747 assert(sv); assert(mg)
bfce84ec
AL
1748
1749PERL_CALLCONV int Perl_magic_getpack(pTHX_ SV* sv, MAGIC* mg)
1750 __attribute__nonnull__(pTHX_1)
1751 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1752#define PERL_ARGS_ASSERT_MAGIC_GETPACK \
1753 assert(sv); assert(mg)
bfce84ec
AL
1754
1755PERL_CALLCONV int Perl_magic_getpos(pTHX_ SV* sv, MAGIC* mg)
1756 __attribute__nonnull__(pTHX_1)
1757 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1758#define PERL_ARGS_ASSERT_MAGIC_GETPOS \
1759 assert(sv); assert(mg)
bfce84ec
AL
1760
1761PERL_CALLCONV int Perl_magic_getsig(pTHX_ SV* sv, MAGIC* mg)
1762 __attribute__nonnull__(pTHX_1)
1763 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1764#define PERL_ARGS_ASSERT_MAGIC_GETSIG \
1765 assert(sv); assert(mg)
bfce84ec
AL
1766
1767PERL_CALLCONV int Perl_magic_getsubstr(pTHX_ SV* sv, MAGIC* mg)
1768 __attribute__nonnull__(pTHX_1)
1769 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1770#define PERL_ARGS_ASSERT_MAGIC_GETSUBSTR \
1771 assert(sv); assert(mg)
bfce84ec
AL
1772
1773PERL_CALLCONV int Perl_magic_gettaint(pTHX_ SV* sv, MAGIC* mg)
1774 __attribute__nonnull__(pTHX_1)
1775 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1776#define PERL_ARGS_ASSERT_MAGIC_GETTAINT \
1777 assert(sv); assert(mg)
bfce84ec
AL
1778
1779PERL_CALLCONV int Perl_magic_getuvar(pTHX_ SV* sv, MAGIC* mg)
1780 __attribute__nonnull__(pTHX_1)
1781 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1782#define PERL_ARGS_ASSERT_MAGIC_GETUVAR \
1783 assert(sv); assert(mg)
bfce84ec
AL
1784
1785PERL_CALLCONV int Perl_magic_getvec(pTHX_ SV* sv, MAGIC* mg)
1786 __attribute__nonnull__(pTHX_1)
1787 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1788#define PERL_ARGS_ASSERT_MAGIC_GETVEC \
1789 assert(sv); assert(mg)
bfce84ec
AL
1790
1791PERL_CALLCONV U32 Perl_magic_len(pTHX_ SV* sv, MAGIC* mg)
1792 __attribute__nonnull__(pTHX_1)
1793 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1794#define PERL_ARGS_ASSERT_MAGIC_LEN \
1795 assert(sv); assert(mg)
bfce84ec 1796
4048f010 1797PERL_CALLCONV int Perl_magic_nextpack(pTHX_ SV *sv, MAGIC *mg, SV *key)
bfce84ec
AL
1798 __attribute__nonnull__(pTHX_1)
1799 __attribute__nonnull__(pTHX_2)
1800 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1801#define PERL_ARGS_ASSERT_MAGIC_NEXTPACK \
1802 assert(sv); assert(mg); assert(key)
bfce84ec
AL
1803
1804PERL_CALLCONV U32 Perl_magic_regdata_cnt(pTHX_ SV* sv, MAGIC* mg)
1805 __attribute__nonnull__(pTHX_1)
1806 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1807#define PERL_ARGS_ASSERT_MAGIC_REGDATA_CNT \
1808 assert(sv); assert(mg)
bfce84ec
AL
1809
1810PERL_CALLCONV int Perl_magic_regdatum_get(pTHX_ SV* sv, MAGIC* mg)
1811 __attribute__nonnull__(pTHX_1)
1812 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1813#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_GET \
1814 assert(sv); assert(mg)
bfce84ec 1815
f54cb97a 1816PERL_CALLCONV int Perl_magic_regdatum_set(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1817 __attribute__noreturn__
1818 __attribute__nonnull__(pTHX_1)
1819 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1820#define PERL_ARGS_ASSERT_MAGIC_REGDATUM_SET \
1821 assert(sv); assert(mg)
bfce84ec
AL
1822
1823PERL_CALLCONV int Perl_magic_set(pTHX_ SV* sv, MAGIC* mg)
1824 __attribute__nonnull__(pTHX_1)
1825 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1826#define PERL_ARGS_ASSERT_MAGIC_SET \
1827 assert(sv); assert(mg)
bfce84ec
AL
1828
1829PERL_CALLCONV int Perl_magic_setamagic(pTHX_ SV* sv, MAGIC* mg)
1830 __attribute__nonnull__(pTHX_1)
1831 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1832#define PERL_ARGS_ASSERT_MAGIC_SETAMAGIC \
1833 assert(sv); assert(mg)
bfce84ec
AL
1834
1835PERL_CALLCONV int Perl_magic_setarylen(pTHX_ SV* sv, MAGIC* mg)
1836 __attribute__nonnull__(pTHX_1)
1837 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1838#define PERL_ARGS_ASSERT_MAGIC_SETARYLEN \
1839 assert(sv); assert(mg)
bfce84ec
AL
1840
1841PERL_CALLCONV int Perl_magic_freearylen_p(pTHX_ SV* sv, MAGIC* mg)
1842 __attribute__nonnull__(pTHX_1)
1843 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1844#define PERL_ARGS_ASSERT_MAGIC_FREEARYLEN_P \
1845 assert(sv); assert(mg)
bfce84ec 1846
488344d2 1847PERL_CALLCONV int Perl_magic_setdbline(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1848 __attribute__nonnull__(pTHX_1)
1849 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1850#define PERL_ARGS_ASSERT_MAGIC_SETDBLINE \
1851 assert(sv); assert(mg)
bfce84ec 1852
488344d2 1853PERL_CALLCONV int Perl_magic_setdefelem(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1854 __attribute__nonnull__(pTHX_1)
1855 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1856#define PERL_ARGS_ASSERT_MAGIC_SETDEFELEM \
1857 assert(sv); assert(mg)
bfce84ec 1858
488344d2 1859PERL_CALLCONV int Perl_magic_setenv(pTHX_ SV* sv, MAGIC* mg)
bfce84ec
AL
1860 __attribute__nonnull__(pTHX_1)
1861 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1862#define PERL_ARGS_ASSERT_MAGIC_SETENV \
1863 assert(sv); assert(mg)
bfce84ec 1864
b3ca2e83
NC
1865PERL_CALLCONV int Perl_magic_sethint(pTHX_ SV* sv, MAGIC* mg)
1866 __attribute__nonnull__(pTHX_1)
1867 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1868#define PERL_ARGS_ASSERT_MAGIC_SETHINT \
1869 assert(sv); assert(mg)
b3ca2e83 1870
bfce84ec
AL
1871PERL_CALLCONV int Perl_magic_setisa(pTHX_ SV* sv, MAGIC* mg)
1872 __attribute__nonnull__(pTHX_1)
1873 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1874#define PERL_ARGS_ASSERT_MAGIC_SETISA \
1875 assert(sv); assert(mg)
bfce84ec 1876
bfce84ec
AL
1877PERL_CALLCONV int Perl_magic_setmglob(pTHX_ SV* sv, MAGIC* mg)
1878 __attribute__nonnull__(pTHX_1)
1879 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1880#define PERL_ARGS_ASSERT_MAGIC_SETMGLOB \
1881 assert(sv); assert(mg)
bfce84ec
AL
1882
1883PERL_CALLCONV int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg)
1884 __attribute__nonnull__(pTHX_1)
1885 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1886#define PERL_ARGS_ASSERT_MAGIC_SETNKEYS \
1887 assert(sv); assert(mg)
bfce84ec
AL
1888
1889PERL_CALLCONV int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg)
1890 __attribute__nonnull__(pTHX_1)
1891 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1892#define PERL_ARGS_ASSERT_MAGIC_SETPACK \
1893 assert(sv); assert(mg)
bfce84ec
AL
1894
1895PERL_CALLCONV int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg)
1896 __attribute__nonnull__(pTHX_1)
1897 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1898#define PERL_ARGS_ASSERT_MAGIC_SETPOS \
1899 assert(sv); assert(mg)
bfce84ec
AL
1900
1901PERL_CALLCONV int Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg)
1902 __attribute__nonnull__(pTHX_1)
1903 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1904#define PERL_ARGS_ASSERT_MAGIC_SETREGEXP \
1905 assert(sv); assert(mg)
bfce84ec
AL
1906
1907PERL_CALLCONV int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg)
bfce84ec 1908 __attribute__nonnull__(pTHX_2);
7918f24d 1909#define PERL_ARGS_ASSERT_MAGIC_SETSIG \
38a124f0 1910 assert(mg)
bfce84ec
AL
1911
1912PERL_CALLCONV int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg)
1913 __attribute__nonnull__(pTHX_1)
1914 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1915#define PERL_ARGS_ASSERT_MAGIC_SETSUBSTR \
1916 assert(sv); assert(mg)
bfce84ec
AL
1917
1918PERL_CALLCONV int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg)
1919 __attribute__nonnull__(pTHX_1)
1920 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1921#define PERL_ARGS_ASSERT_MAGIC_SETTAINT \
1922 assert(sv); assert(mg)
bfce84ec
AL
1923
1924PERL_CALLCONV int Perl_magic_setuvar(pTHX_ SV* sv, MAGIC* mg)
1925 __attribute__nonnull__(pTHX_1)
1926 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1927#define PERL_ARGS_ASSERT_MAGIC_SETUVAR \
1928 assert(sv); assert(mg)
bfce84ec
AL
1929
1930PERL_CALLCONV int Perl_magic_setvec(pTHX_ SV* sv, MAGIC* mg)
1931 __attribute__nonnull__(pTHX_1)
1932 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1933#define PERL_ARGS_ASSERT_MAGIC_SETVEC \
1934 assert(sv); assert(mg)
bfce84ec
AL
1935
1936PERL_CALLCONV int Perl_magic_setutf8(pTHX_ SV* sv, MAGIC* mg)
1937 __attribute__nonnull__(pTHX_1)
1938 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1939#define PERL_ARGS_ASSERT_MAGIC_SETUTF8 \
1940 assert(sv); assert(mg)
bfce84ec
AL
1941
1942PERL_CALLCONV int Perl_magic_set_all_env(pTHX_ SV* sv, MAGIC* mg)
1943 __attribute__nonnull__(pTHX_1)
1944 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1945#define PERL_ARGS_ASSERT_MAGIC_SET_ALL_ENV \
1946 assert(sv); assert(mg)
bfce84ec
AL
1947
1948PERL_CALLCONV U32 Perl_magic_sizepack(pTHX_ SV* sv, MAGIC* mg)
1949 __attribute__nonnull__(pTHX_1)
1950 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1951#define PERL_ARGS_ASSERT_MAGIC_SIZEPACK \
1952 assert(sv); assert(mg)
bfce84ec
AL
1953
1954PERL_CALLCONV int Perl_magic_wipepack(pTHX_ SV* sv, MAGIC* mg)
1955 __attribute__nonnull__(pTHX_1)
1956 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1957#define PERL_ARGS_ASSERT_MAGIC_WIPEPACK \
1958 assert(sv); assert(mg)
bfce84ec 1959
046b0c7d 1960PERL_CALLCONV SV* Perl_magic_methcall(pTHX_ SV *sv, const MAGIC *mg, const char *meth, U32 flags, U32 argc, ...)
efaf3674
DM
1961 __attribute__nonnull__(pTHX_1)
1962 __attribute__nonnull__(pTHX_2)
1963 __attribute__nonnull__(pTHX_3);
1964#define PERL_ARGS_ASSERT_MAGIC_METHCALL \
1965 assert(sv); assert(mg); assert(meth)
1966
1d7c1841 1967PERL_CALLCONV void Perl_markstack_grow(pTHX);
864dbfa3 1968#if defined(USE_LOCALE_COLLATE)
aa924a5a
SH
1969PERL_CALLCONV int Perl_magic_setcollxfrm(pTHX_ SV* sv, MAGIC* mg)
1970 __attribute__nonnull__(pTHX_1)
1971 __attribute__nonnull__(pTHX_2);
7918f24d
NC
1972#define PERL_ARGS_ASSERT_MAGIC_SETCOLLXFRM \
1973 assert(sv); assert(mg)
aa924a5a
SH
1974
1975PERL_CALLCONV char* Perl_mem_collxfrm(pTHX_ const char* s, STRLEN len, STRLEN* xlen)
1976 __attribute__nonnull__(pTHX_1)
1977 __attribute__nonnull__(pTHX_3);
7918f24d
NC
1978#define PERL_ARGS_ASSERT_MEM_COLLXFRM \
1979 assert(s); assert(xlen)
aa924a5a 1980
0cb96387 1981#endif
894356b3 1982PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...)
aec46f14
AL
1983 __attribute__format__(__printf__,pTHX_1,pTHX_2)
1984 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1985#define PERL_ARGS_ASSERT_MESS \
1986 assert(pat)
aec46f14 1987
c5df3096
Z
1988PERL_CALLCONV SV* Perl_mess_sv(pTHX_ SV* basemsg, bool consume)
1989 __attribute__nonnull__(pTHX_1);
1990#define PERL_ARGS_ASSERT_MESS_SV \
1991 assert(basemsg)
1992
aec46f14
AL
1993PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args)
1994 __attribute__nonnull__(pTHX_1);
7918f24d
NC
1995#define PERL_ARGS_ASSERT_VMESS \
1996 assert(pat)
f54cb97a 1997
aa924a5a
SH
1998PERL_CALLCONV void Perl_qerror(pTHX_ SV* err)
1999 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2000#define PERL_ARGS_ASSERT_QERROR \
2001 assert(err)
aa924a5a
SH
2002
2003PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp)
52657f30 2004 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2005#define PERL_ARGS_ASSERT_SORTSV \
2006 assert(cmp)
aa924a5a 2007
7b9ef140 2008PERL_CALLCONV void Perl_sortsv_flags(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp, U32 flags)
52657f30 2009 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2010#define PERL_ARGS_ASSERT_SORTSV_FLAGS \
2011 assert(cmp)
7b9ef140 2012
9a957fbc
AL
2013PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv)
2014 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2015#define PERL_ARGS_ASSERT_MG_CLEAR \
2016 assert(sv)
9a957fbc 2017
4048f010 2018PERL_CALLCONV int Perl_mg_copy(pTHX_ SV *sv, SV *nsv, const char *key, I32 klen)
9a957fbc
AL
2019 __attribute__nonnull__(pTHX_1)
2020 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2021#define PERL_ARGS_ASSERT_MG_COPY \
2022 assert(sv); assert(nsv)
9a957fbc 2023
af7df257 2024PERL_CALLCONV void Perl_mg_localize(pTHX_ SV* sv, SV* nsv, bool setmagic)
9a957fbc
AL
2025 __attribute__nonnull__(pTHX_1)
2026 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2027#define PERL_ARGS_ASSERT_MG_LOCALIZE \
2028 assert(sv); assert(nsv)
9a957fbc 2029
255164ba
DM
2030PERL_CALLCONV MAGIC* Perl_mg_find(pTHX_ const SV* sv, int type)
2031 __attribute__warn_unused_result__;
2032
9a957fbc
AL
2033PERL_CALLCONV int Perl_mg_free(pTHX_ SV* sv)
2034 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2035#define PERL_ARGS_ASSERT_MG_FREE \
2036 assert(sv)
9a957fbc
AL
2037
2038PERL_CALLCONV int Perl_mg_get(pTHX_ SV* sv)
2039 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2040#define PERL_ARGS_ASSERT_MG_GET \
2041 assert(sv)
9a957fbc
AL
2042
2043PERL_CALLCONV U32 Perl_mg_length(pTHX_ SV* sv)
2044 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2045#define PERL_ARGS_ASSERT_MG_LENGTH \
2046 assert(sv)
9a957fbc
AL
2047
2048PERL_CALLCONV void Perl_mg_magical(pTHX_ SV* sv)
2049 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2050#define PERL_ARGS_ASSERT_MG_MAGICAL \
2051 assert(sv)
9a957fbc
AL
2052
2053PERL_CALLCONV int Perl_mg_set(pTHX_ SV* sv)
2054 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2055#define PERL_ARGS_ASSERT_MG_SET \
2056 assert(sv)
9a957fbc
AL
2057
2058PERL_CALLCONV I32 Perl_mg_size(pTHX_ SV* sv)
2059 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2060#define PERL_ARGS_ASSERT_MG_SIZE \
2061 assert(sv)
9a957fbc 2062
9f6cc744 2063PERL_CALLCONV void Perl_mini_mktime(pTHX_ struct tm *ptm)
9a957fbc 2064 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2065#define PERL_ARGS_ASSERT_MINI_MKTIME \
2066 assert(ptm)
9a957fbc 2067
1d7c1841 2068PERL_CALLCONV OP* Perl_mod(pTHX_ OP* o, I32 type);
a79b25b7 2069PERL_CALLCONV int Perl_mode_from_discipline(pTHX_ const char* s, STRLEN len);
c7030b81 2070PERL_CALLCONV const char* Perl_moreswitches(pTHX_ const char* s)
bfce84ec 2071 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2072#define PERL_ARGS_ASSERT_MORESWITCHES \
2073 assert(s)
bfce84ec 2074
4373e329 2075PERL_CALLCONV NV Perl_my_atof(pTHX_ const char *s)
abb2c242 2076 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2077#define PERL_ARGS_ASSERT_MY_ATOF \
2078 assert(s)
f54cb97a 2079
2253333f 2080#if (!defined(HAS_MEMCPY) && !defined(HAS_BCOPY)) || (!defined(HAS_MEMMOVE) && !defined(HAS_SAFE_MEMCPY) && !defined(HAS_SAFE_BCOPY))
4373e329 2081PERL_CALLCONV char* Perl_my_bcopy(const char* from, char* to, I32 len)
abb2c242
JH
2082 __attribute__nonnull__(1)
2083 __attribute__nonnull__(2);
7918f24d
NC
2084#define PERL_ARGS_ASSERT_MY_BCOPY \
2085 assert(from); assert(to)
f54cb97a 2086
5f05dabc 2087#endif
a0d0e21e 2088#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
4373e329 2089PERL_CALLCONV char* Perl_my_bzero(char* loc, I32 len)
abb2c242 2090 __attribute__nonnull__(1);
7918f24d
NC
2091#define PERL_ARGS_ASSERT_MY_BZERO \
2092 assert(loc)
f54cb97a 2093
864dbfa3 2094#endif
f54cb97a 2095PERL_CALLCONV void Perl_my_exit(pTHX_ U32 status)
abb2c242 2096 __attribute__noreturn__;
f54cb97a
AL
2097
2098PERL_CALLCONV void Perl_my_failure_exit(pTHX)
abb2c242 2099 __attribute__noreturn__;
f54cb97a 2100
1d7c1841 2101PERL_CALLCONV I32 Perl_my_fflush_all(pTHX);
52e18b1f
GS
2102PERL_CALLCONV Pid_t Perl_my_fork(void);
2103PERL_CALLCONV void Perl_atfork_lock(void);
2104PERL_CALLCONV void Perl_atfork_unlock(void);
0d7d409d
DM
2105/* PERL_CALLCONV I32 Perl_my_lstat(pTHX); */
2106PERL_CALLCONV I32 Perl_my_lstat_flags(pTHX_ const U32 flags);
5f05dabc 2107#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
4373e329 2108PERL_CALLCONV I32 Perl_my_memcmp(const char* s1, const char* s2, I32 len)
abb2c242
JH
2109 __attribute__pure__
2110 __attribute__nonnull__(1)
2111 __attribute__nonnull__(2);
7918f24d
NC
2112#define PERL_ARGS_ASSERT_MY_MEMCMP \
2113 assert(s1); assert(s2)
f54cb97a 2114
a0d0e21e 2115#endif
fc36a67e 2116#if !defined(HAS_MEMSET)
4373e329 2117PERL_CALLCONV void* Perl_my_memset(char* loc, I32 ch, I32 len)
abb2c242 2118 __attribute__nonnull__(1);
7918f24d
NC
2119#define PERL_ARGS_ASSERT_MY_MEMSET \
2120 assert(loc)
f54cb97a 2121
864dbfa3 2122#endif
1d7c1841 2123PERL_CALLCONV I32 Perl_my_pclose(pTHX_ PerlIO* ptr);
bfce84ec
AL
2124PERL_CALLCONV PerlIO* Perl_my_popen(pTHX_ const char* cmd, const char* mode)
2125 __attribute__nonnull__(pTHX_1)
2126 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2127#define PERL_ARGS_ASSERT_MY_POPEN \
2128 assert(cmd); assert(mode)
bfce84ec 2129
c9289b7b 2130PERL_CALLCONV PerlIO* Perl_my_popen_list(pTHX_ const char* mode, int n, SV ** args)
bfce84ec
AL
2131 __attribute__nonnull__(pTHX_1)
2132 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2133#define PERL_ARGS_ASSERT_MY_POPEN_LIST \
2134 assert(mode); assert(args)
bfce84ec 2135
e1ec3a88 2136PERL_CALLCONV void Perl_my_setenv(pTHX_ const char* nam, const char* val);
0d7d409d
DM
2137/* PERL_CALLCONV I32 Perl_my_stat(pTHX); */
2138PERL_CALLCONV I32 Perl_my_stat_flags(pTHX_ const U32 flags);
bfce84ec
AL
2139PERL_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)
2140 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2141#define PERL_ARGS_ASSERT_MY_STRFTIME \
2142 assert(fmt)
bfce84ec 2143
864dbfa3 2144#if defined(MYSWAP)
4373e329 2145PERL_CALLCONV short Perl_my_swap(pTHX_ short s)
abb2c242
JH
2146 __attribute__malloc__
2147 __attribute__warn_unused_result__
2148 __attribute__pure__;
f54cb97a 2149
4373e329 2150PERL_CALLCONV long Perl_my_htonl(pTHX_ long l)
abb2c242
JH
2151 __attribute__malloc__
2152 __attribute__warn_unused_result__
2153 __attribute__pure__;
f54cb97a 2154
4373e329 2155PERL_CALLCONV long Perl_my_ntohl(pTHX_ long l)
abb2c242
JH
2156 __attribute__malloc__
2157 __attribute__warn_unused_result__
2158 __attribute__pure__;
f54cb97a 2159
0cb96387 2160#endif
1d7c1841 2161PERL_CALLCONV void Perl_my_unexec(pTHX);
f54cb97a 2162PERL_CALLCONV OP* Perl_newANONLIST(pTHX_ OP* o)
abb2c242
JH
2163 __attribute__malloc__
2164 __attribute__warn_unused_result__;
f54cb97a
AL
2165
2166PERL_CALLCONV OP* Perl_newANONHASH(pTHX_ OP* o)
abb2c242
JH
2167 __attribute__malloc__
2168 __attribute__warn_unused_result__;
f54cb97a 2169
1d7c1841 2170PERL_CALLCONV OP* Perl_newANONSUB(pTHX_ I32 floor, OP* proto, OP* block);
f54cb97a 2171PERL_CALLCONV OP* Perl_newASSIGNOP(pTHX_ I32 flags, OP* left, I32 optype, OP* right)
abb2c242
JH
2172 __attribute__malloc__
2173 __attribute__warn_unused_result__;
f54cb97a 2174
aec46f14 2175PERL_CALLCONV OP* Perl_newCONDOP(pTHX_ I32 flags, OP* first, OP* trueop, OP* falseop)
abb2c242 2176 __attribute__malloc__
aec46f14
AL
2177 __attribute__warn_unused_result__
2178 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2179#define PERL_ARGS_ASSERT_NEWCONDOP \
2180 assert(first)
aec46f14 2181
99ab892b 2182PERL_CALLCONV CV* Perl_newCONSTSUB(pTHX_ HV* stash, const char* name, SV* sv);
eb8433b7
NC
2183#ifdef PERL_MAD
2184PERL_CALLCONV OP* Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
2185#else
1d7c1841 2186PERL_CALLCONV void Perl_newFORM(pTHX_ I32 floor, OP* o, OP* block);
eb8433b7 2187#endif
aa924a5a 2188PERL_CALLCONV OP* Perl_newFOROP(pTHX_ I32 flags, char* label, line_t forline, OP* sv, OP* expr, OP* block, OP* cont)
abb2c242 2189 __attribute__malloc__
aa924a5a
SH
2190 __attribute__warn_unused_result__
2191 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2192#define PERL_ARGS_ASSERT_NEWFOROP \
2193 assert(expr)
f54cb97a 2194
0d863452
RH
2195PERL_CALLCONV OP* Perl_newGIVENOP(pTHX_ OP* cond, OP* block, PADOFFSET defsv_off)
2196 __attribute__malloc__
2197 __attribute__warn_unused_result__
2198 __attribute__nonnull__(pTHX_1)
2199 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2200#define PERL_ARGS_ASSERT_NEWGIVENOP \
2201 assert(cond); assert(block)
0d863452 2202
4048f010 2203PERL_CALLCONV OP* Perl_newLOGOP(pTHX_ I32 optype, I32 flags, OP *first, OP *other)
abb2c242 2204 __attribute__malloc__
aa924a5a
SH
2205 __attribute__warn_unused_result__
2206 __attribute__nonnull__(pTHX_3)
2207 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2208#define PERL_ARGS_ASSERT_NEWLOGOP \
2209 assert(first); assert(other)
f54cb97a
AL
2210
2211PERL_CALLCONV OP* Perl_newLOOPEX(pTHX_ I32 type, OP* label)
abb2c242 2212 __attribute__malloc__
aa924a5a
SH
2213 __attribute__warn_unused_result__
2214 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2215#define PERL_ARGS_ASSERT_NEWLOOPEX \
2216 assert(label)
f54cb97a
AL
2217
2218PERL_CALLCONV OP* Perl_newLOOPOP(pTHX_ I32 flags, I32 debuggable, OP* expr, OP* block)
abb2c242
JH
2219 __attribute__malloc__
2220 __attribute__warn_unused_result__;
f54cb97a 2221
4373e329 2222PERL_CALLCONV OP* Perl_newNULLLIST(pTHX)
abb2c242
JH
2223 __attribute__malloc__
2224 __attribute__warn_unused_result__;
f54cb97a
AL
2225
2226PERL_CALLCONV OP* Perl_newOP(pTHX_ I32 optype, I32 flags)
abb2c242
JH
2227 __attribute__malloc__
2228 __attribute__warn_unused_result__;
f54cb97a
AL
2229
2230PERL_CALLCONV void Perl_newPROG(pTHX_ OP* o)
abb2c242 2231 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2232#define PERL_ARGS_ASSERT_NEWPROG \
2233 assert(o)
f54cb97a
AL
2234
2235PERL_CALLCONV OP* Perl_newRANGE(pTHX_ I32 flags, OP* left, OP* right)
abb2c242 2236 __attribute__malloc__
aa924a5a
SH
2237 __attribute__warn_unused_result__
2238 __attribute__nonnull__(pTHX_2)
2239 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2240#define PERL_ARGS_ASSERT_NEWRANGE \
2241 assert(left); assert(right)
f54cb97a
AL
2242
2243PERL_CALLCONV OP* Perl_newSLICEOP(pTHX_ I32 flags, OP* subscript, OP* listop)
abb2c242
JH
2244 __attribute__malloc__
2245 __attribute__warn_unused_result__;
f54cb97a
AL
2246
2247PERL_CALLCONV OP* Perl_newSTATEOP(pTHX_ I32 flags, char* label, OP* o)
abb2c242
JH
2248 __attribute__malloc__
2249 __attribute__warn_unused_result__;
f54cb97a 2250
1d7c1841 2251PERL_CALLCONV CV* Perl_newSUB(pTHX_ I32 floor, OP* o, OP* proto, OP* block);
77004dee
NC
2252PERL_CALLCONV CV * Perl_newXS_flags(pTHX_ const char *name, XSUBADDR_t subaddr, const char *const filename, const char *const proto, U32 flags)
2253 __attribute__nonnull__(pTHX_2)
2254 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2255#define PERL_ARGS_ASSERT_NEWXS_FLAGS \
2256 assert(subaddr); assert(filename)
77004dee 2257
4048f010 2258PERL_CALLCONV CV* Perl_newXS(pTHX_ const char *name, XSUBADDR_t subaddr, const char *filename)
9a957fbc 2259 __attribute__nonnull__(pTHX_2)
abb2c242 2260 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2261#define PERL_ARGS_ASSERT_NEWXS \
2262 assert(subaddr); assert(filename)
f54cb97a 2263
ac572bf4 2264/* PERL_CALLCONV AV* Perl_newAV(pTHX)
ac572bf4 2265 __attribute__warn_unused_result__; */
f54cb97a 2266
4373e329 2267PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o)
abb2c242
JH
2268 __attribute__malloc__
2269 __attribute__warn_unused_result__
2270 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2271#define PERL_ARGS_ASSERT_NEWAVREF \
2272 assert(o)
f54cb97a
AL
2273
2274PERL_CALLCONV OP* Perl_newBINOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2275 __attribute__malloc__
2276 __attribute__warn_unused_result__;
f54cb97a
AL
2277
2278PERL_CALLCONV OP* Perl_newCVREF(pTHX_ I32 flags, OP* o)
abb2c242
JH
2279 __attribute__malloc__
2280 __attribute__warn_unused_result__;
f54cb97a
AL
2281
2282PERL_CALLCONV OP* Perl_newGVOP(pTHX_ I32 type, I32 flags, GV* gv)
abb2c242 2283 __attribute__malloc__
2d03de9c
AL
2284 __attribute__warn_unused_result__
2285 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2286#define PERL_ARGS_ASSERT_NEWGVOP \
2287 assert(gv)
f54cb97a
AL
2288
2289PERL_CALLCONV GV* Perl_newGVgen(pTHX_ const char* pack)
abb2c242 2290 __attribute__malloc__
aa924a5a
SH
2291 __attribute__warn_unused_result__
2292 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2293#define PERL_ARGS_ASSERT_NEWGVGEN \
2294 assert(pack)
f54cb97a
AL
2295
2296PERL_CALLCONV OP* Perl_newGVREF(pTHX_ I32 type, OP* o)
abb2c242
JH
2297 __attribute__malloc__
2298 __attribute__warn_unused_result__;
f54cb97a 2299
4373e329 2300PERL_CALLCONV OP* Perl_newHVREF(pTHX_ OP* o)
abb2c242
JH
2301 __attribute__malloc__
2302 __attribute__warn_unused_result__
2303 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2304#define PERL_ARGS_ASSERT_NEWHVREF \
2305 assert(o)
f54cb97a 2306
78ac7dd9 2307/* PERL_CALLCONV HV* Perl_newHV(pTHX)
78ac7dd9 2308 __attribute__warn_unused_result__; */
f54cb97a 2309
4048f010 2310PERL_CALLCONV HV* Perl_newHVhv(pTHX_ HV *hv)
abb2c242
JH
2311 __attribute__malloc__
2312 __attribute__warn_unused_result__;
f54cb97a 2313
85dca89a 2314/* PERL_CALLCONV IO* Perl_newIO(pTHX)
abb2c242 2315 __attribute__malloc__
85dca89a 2316 __attribute__warn_unused_result__; */
f54cb97a
AL
2317
2318PERL_CALLCONV OP* Perl_newLISTOP(pTHX_ I32 type, I32 flags, OP* first, OP* last)
abb2c242
JH
2319 __attribute__malloc__
2320 __attribute__warn_unused_result__;
f54cb97a 2321
392d04bb 2322#ifdef USE_ITHREADS
f54cb97a 2323PERL_CALLCONV OP* Perl_newPADOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242 2324 __attribute__malloc__
58182927
NC
2325 __attribute__warn_unused_result__
2326 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2327#define PERL_ARGS_ASSERT_NEWPADOP \
2328 assert(sv)
f54cb97a 2329
392d04bb 2330#endif
f54cb97a 2331PERL_CALLCONV OP* Perl_newPMOP(pTHX_ I32 type, I32 flags)
abb2c242
JH
2332 __attribute__malloc__
2333 __attribute__warn_unused_result__;
f54cb97a
AL
2334
2335PERL_CALLCONV OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv)
abb2c242
JH
2336 __attribute__malloc__
2337 __attribute__warn_unused_result__;
f54cb97a 2338
23f13727 2339PERL_CALLCONV SV* Perl_newRV(pTHX_ SV *const sv)
abb2c242 2340 __attribute__malloc__
66a1b24b
AL
2341 __attribute__warn_unused_result__
2342 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2343#define PERL_ARGS_ASSERT_NEWRV \
2344 assert(sv)
f54cb97a 2345
23f13727 2346PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV *const sv)
abb2c242
JH
2347 __attribute__malloc__
2348 __attribute__warn_unused_result__
2349 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2350#define PERL_ARGS_ASSERT_NEWRV_NOINC \
2351 assert(sv)
f54cb97a 2352
2b021c53 2353PERL_CALLCONV SV* Perl_newSV(pTHX_ const STRLEN len)
abb2c242
JH
2354 __attribute__malloc__
2355 __attribute__warn_unused_result__;
f54cb97a 2356
4373e329 2357PERL_CALLCONV OP* Perl_newSVREF(pTHX_ OP* o)
abb2c242
JH
2358 __attribute__malloc__
2359 __attribute__warn_unused_result__
2360 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2361#define PERL_ARGS_ASSERT_NEWSVREF \
2362 assert(o)
f54cb97a 2363
4373e329 2364PERL_CALLCONV OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv)
abb2c242
JH
2365 __attribute__malloc__
2366 __attribute__warn_unused_result__
2367 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2368#define PERL_ARGS_ASSERT_NEWSVOP \
2369 assert(sv)
f54cb97a 2370
23f13727 2371PERL_CALLCONV SV* Perl_newSViv(pTHX_ const IV i)
abb2c242
JH
2372 __attribute__malloc__
2373 __attribute__warn_unused_result__;
f54cb97a 2374
23f13727 2375PERL_CALLCONV SV* Perl_newSVuv(pTHX_ const UV u)
abb2c242
JH
2376 __attribute__malloc__
2377 __attribute__warn_unused_result__;
f54cb97a 2378
23f13727 2379PERL_CALLCONV SV* Perl_newSVnv(pTHX_ const NV n)
abb2c242
JH
2380 __attribute__malloc__
2381 __attribute__warn_unused_result__;
f54cb97a 2382
23f13727 2383PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char *const s, const STRLEN len)
abb2c242
JH
2384 __attribute__malloc__
2385 __attribute__warn_unused_result__;
f54cb97a 2386
23f13727 2387PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char *const s, const STRLEN len)
abb2c242
JH
2388 __attribute__malloc__
2389 __attribute__warn_unused_result__;
f54cb97a 2390
23f13727 2391PERL_CALLCONV SV* Perl_newSVpvn_flags(pTHX_ const char *const s, const STRLEN len, const U32 flags)
740cce10
NC
2392 __attribute__malloc__
2393 __attribute__warn_unused_result__;
2394
23f13727 2395PERL_CALLCONV SV* Perl_newSVhek(pTHX_ const HEK *const hek)
c1b02ed8
NC
2396 __attribute__malloc__
2397 __attribute__warn_unused_result__;
2398
f54cb97a 2399PERL_CALLCONV SV* Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash)
abb2c242
JH
2400 __attribute__malloc__
2401 __attribute__warn_unused_result__;
f54cb97a 2402
23f13727 2403PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char *const pat, ...)
abb2c242
JH
2404 __attribute__malloc__
2405 __attribute__warn_unused_result__
aec46f14
AL
2406 __attribute__format__(__printf__,pTHX_1,pTHX_2)
2407 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2408#define PERL_ARGS_ASSERT_NEWSVPVF \
2409 assert(pat)
aec46f14 2410
23f13727 2411PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char *const pat, va_list *const args)
aec46f14
AL
2412 __attribute__malloc__
2413 __attribute__warn_unused_result__
2414 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2415#define PERL_ARGS_ASSERT_VNEWSVPVF \
2416 assert(pat)
f54cb97a 2417
12964ddd 2418PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV *const rv, const char *const classname)
1b6737cc 2419 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2420#define PERL_ARGS_ASSERT_NEWSVRV \
2421 assert(rv)
f54cb97a 2422
23f13727 2423PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV *const old)
abb2c242
JH
2424 __attribute__malloc__
2425 __attribute__warn_unused_result__;
f54cb97a 2426
fe9845cc 2427PERL_CALLCONV SV* Perl_newSV_type(pTHX_ const svtype type)
b9f83d2f
NC
2428 __attribute__malloc__
2429 __attribute__warn_unused_result__;
2430
f54cb97a 2431PERL_CALLCONV OP* Perl_newUNOP(pTHX_ I32 type, I32 flags, OP* first)
abb2c242
JH
2432 __attribute__malloc__
2433 __attribute__warn_unused_result__;
f54cb97a 2434
0d863452
RH
2435PERL_CALLCONV OP* Perl_newWHENOP(pTHX_ OP* cond, OP* block)
2436 __attribute__malloc__
2437 __attribute__warn_unused_result__
2438 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2439#define PERL_ARGS_ASSERT_NEWWHENOP \
2440 assert(block)
0d863452 2441
f54cb97a 2442PERL_CALLCONV OP* Perl_newWHILEOP(pTHX_ I32 flags, I32 debuggable, LOOP* loop, I32 whileline, OP* expr, OP* block, OP* cont, I32 has_my)
abb2c242
JH
2443 __attribute__malloc__
2444 __attribute__warn_unused_result__;
f54cb97a
AL
2445
2446PERL_CALLCONV PERL_SI* Perl_new_stackinfo(pTHX_ I32 stitems, I32 cxitems)
abb2c242
JH
2447 __attribute__malloc__
2448 __attribute__warn_unused_result__;
f54cb97a 2449
4048f010 2450PERL_CALLCONV char* Perl_scan_vstring(pTHX_ const char *s, const char *const e, SV *sv)
abb2c242 2451 __attribute__nonnull__(pTHX_1)
65b06e02
DM
2452 __attribute__nonnull__(pTHX_2)
2453 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2454#define PERL_ARGS_ASSERT_SCAN_VSTRING \
2455 assert(s); assert(e); assert(sv)
f54cb97a 2456
9f6cc744 2457PERL_CALLCONV const char* Perl_scan_version(pTHX_ const char *s, SV *rv, bool qv)
abb2c242
JH
2458 __attribute__nonnull__(pTHX_1)
2459 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2460#define PERL_ARGS_ASSERT_SCAN_VERSION \
2461 assert(s); assert(rv)
f54cb97a 2462
5747a2f6 2463PERL_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
2464 __attribute__nonnull__(pTHX_1);
2465#define PERL_ARGS_ASSERT_PRESCAN_VERSION \
2466 assert(s)
2467
2d03de9c
AL
2468PERL_CALLCONV SV* Perl_new_version(pTHX_ SV *ver)
2469 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2470#define PERL_ARGS_ASSERT_NEW_VERSION \
2471 assert(ver)
2d03de9c 2472
ac0e6a2f 2473PERL_CALLCONV SV* Perl_upg_version(pTHX_ SV *ver, bool qv)
2d03de9c 2474 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2475#define PERL_ARGS_ASSERT_UPG_VERSION \
2476 assert(ver)
2d03de9c 2477
e0218a61
JP
2478PERL_CALLCONV bool Perl_vverify(pTHX_ SV *vs)
2479 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2480#define PERL_ARGS_ASSERT_VVERIFY \
2481 assert(vs)
e0218a61 2482
2d03de9c
AL
2483PERL_CALLCONV SV* Perl_vnumify(pTHX_ SV *vs)
2484 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2485#define PERL_ARGS_ASSERT_VNUMIFY \
2486 assert(vs)
2d03de9c
AL
2487
2488PERL_CALLCONV SV* Perl_vnormal(pTHX_ SV *vs)
2489 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2490#define PERL_ARGS_ASSERT_VNORMAL \
2491 assert(vs)
2d03de9c
AL
2492
2493PERL_CALLCONV SV* Perl_vstringify(pTHX_ SV *vs)
2494 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2495#define PERL_ARGS_ASSERT_VSTRINGIFY \
2496 assert(vs)
2d03de9c 2497
9f6cc744 2498PERL_CALLCONV int Perl_vcmp(pTHX_ SV *lhv, SV *rhv)
abb2c242
JH
2499 __attribute__nonnull__(pTHX_1)
2500 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2501#define PERL_ARGS_ASSERT_VCMP \
2502 assert(lhv); assert(rhv)
f54cb97a 2503
2d03de9c
AL
2504PERL_CALLCONV PerlIO* Perl_nextargv(pTHX_ GV* gv)
2505 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2506#define PERL_ARGS_ASSERT_NEXTARGV \
2507 assert(gv)
2d03de9c 2508
04c9e624 2509PERL_CALLCONV char* Perl_ninstr(const char* big, const char* bigend, const char* little, const char* lend)
2d03de9c 2510 __attribute__pure__
04c9e624
VP
2511 __attribute__nonnull__(1)
2512 __attribute__nonnull__(2)
2513 __attribute__nonnull__(3)
2514 __attribute__nonnull__(4);
7918f24d
NC
2515#define PERL_ARGS_ASSERT_NINSTR \
2516 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a 2517
6472dca1 2518PERL_CALLCONV void Perl_op_free(pTHX_ OP* arg);
eb8433b7
NC
2519#ifdef PERL_MAD
2520PERL_CALLCONV OP* Perl_package(pTHX_ OP* o)
2521 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2522#define PERL_ARGS_ASSERT_PACKAGE \
2523 assert(o)
eb8433b7
NC
2524
2525#else
2d03de9c
AL
2526PERL_CALLCONV void Perl_package(pTHX_ OP* o)
2527 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2528#define PERL_ARGS_ASSERT_PACKAGE \
2529 assert(o)
f54cb97a 2530
eb8433b7 2531#endif
6fa4d285
DG
2532PERL_CALLCONV void Perl_package_version(pTHX_ OP* v)
2533 __attribute__nonnull__(pTHX_1);
2534#define PERL_ARGS_ASSERT_PACKAGE_VERSION \
2535 assert(v)
2536
1d7c1841 2537PERL_CALLCONV PADOFFSET Perl_pad_alloc(pTHX_ I32 optype, U32 tmptype);
d6447115 2538PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name, const STRLEN len, const U32 flags)
abb2c242 2539 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2540#define PERL_ARGS_ASSERT_ALLOCMY \
2541 assert(name)
f54cb97a 2542
f8f98e0a 2543PERL_CALLCONV PADOFFSET Perl_pad_findmy(pTHX_ const char* name, STRLEN len, U32 flags)
255164ba 2544 __attribute__warn_unused_result__
abb2c242 2545 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2546#define PERL_ARGS_ASSERT_PAD_FINDMY \
2547 assert(name)
f54cb97a 2548
03d5bcf8
VP
2549PERL_CALLCONV PADOFFSET Perl_find_rundefsvoffset(pTHX)
2550 __attribute__deprecated__;
2551
789bd863 2552PERL_CALLCONV SV* Perl_find_rundefsv(pTHX);
4373e329 2553PERL_CALLCONV OP* Perl_oopsAV(pTHX_ OP* o)
1df70142 2554 __attribute__warn_unused_result__
abb2c242 2555 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2556#define PERL_ARGS_ASSERT_OOPSAV \
2557 assert(o)
f54cb97a 2558
4373e329 2559PERL_CALLCONV OP* Perl_oopsHV(pTHX_ OP* o)
1df70142 2560 __attribute__warn_unused_result__
abb2c242 2561 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2562#define PERL_ARGS_ASSERT_OOPSHV \
2563 assert(o)
f54cb97a 2564
dd2155a4 2565PERL_CALLCONV void Perl_pad_leavemy(pTHX);
c3507693 2566#ifdef DEBUGGING
1d7c1841 2567PERL_CALLCONV SV* Perl_pad_sv(pTHX_ PADOFFSET po);
c3507693 2568#endif
1d7c1841 2569PERL_CALLCONV void Perl_pad_free(pTHX_ PADOFFSET po);
43869a0c 2570#if defined(PERL_IN_PAD_C)
82af08ae
NC
2571STATIC void S_pad_reset(pTHX);
2572#endif
dd2155a4 2573PERL_CALLCONV void Perl_pad_swipe(pTHX_ PADOFFSET po, bool refadjust);
666e7765 2574PERL_CALLCONV void Perl_peep(pTHX_ OP* o);
4048f010 2575PERL_CALLCONV PerlIO* Perl_start_glob(pTHX_ SV *tmpglob, IO *io)
2d03de9c
AL
2576 __attribute__nonnull__(pTHX_1)
2577 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2578#define PERL_ARGS_ASSERT_START_GLOB \
2579 assert(tmpglob); assert(io)
2d03de9c 2580
59bd0823 2581#if defined(USE_REENTRANT_API)
10bc17b6 2582PERL_CALLCONV void Perl_reentrant_size(pTHX);
59bd0823 2583PERL_CALLCONV void Perl_reentrant_init(pTHX);
10bc17b6 2584PERL_CALLCONV void Perl_reentrant_free(pTHX);
4048f010 2585PERL_CALLCONV void* Perl_reentrant_retry(const char *f, ...)
fb9bf107 2586 __attribute__nonnull__(1);
7918f24d
NC
2587#define PERL_ARGS_ASSERT_REENTRANT_RETRY \
2588 assert(f)
fb9bf107 2589
59bd0823 2590#endif
1d7c1841 2591PERL_CALLCONV void Perl_call_atexit(pTHX_ ATEXIT_t fn, void *ptr);
4373e329 2592PERL_CALLCONV I32 Perl_call_argv(pTHX_ const char* sub_name, I32 flags, char** argv)
abb2c242
JH
2593 __attribute__nonnull__(pTHX_1)
2594 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2595#define PERL_ARGS_ASSERT_CALL_ARGV \
2596 assert(sub_name); assert(argv)
f54cb97a 2597
4373e329 2598PERL_CALLCONV I32 Perl_call_method(pTHX_ const char* methname, I32 flags)
abb2c242 2599 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2600#define PERL_ARGS_ASSERT_CALL_METHOD \
2601 assert(methname)
f54cb97a 2602
4373e329 2603PERL_CALLCONV I32 Perl_call_pv(pTHX_ const char* sub_name, I32 flags)
abb2c242 2604 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2605#define PERL_ARGS_ASSERT_CALL_PV \
2606 assert(sub_name)
f54cb97a 2607
8c54174d 2608PERL_CALLCONV I32 Perl_call_sv(pTHX_ SV* sv, VOL I32 flags)
aec46f14 2609 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2610#define PERL_ARGS_ASSERT_CALL_SV \
2611 assert(sv)
aec46f14 2612
ce08f86c 2613PERL_CALLCONV void Perl_despatch_signals(pTHX);
e4c5ccf3
RH
2614PERL_CALLCONV OP * Perl_doref(pTHX_ OP *o, I32 type, bool set_op_ref)
2615 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2616#define PERL_ARGS_ASSERT_DOREF \
2617 assert(o)
e4c5ccf3 2618
4373e329 2619PERL_CALLCONV SV* Perl_eval_pv(pTHX_ const char* p, I32 croak_on_error)
abb2c242 2620 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2621#define PERL_ARGS_ASSERT_EVAL_PV \
2622 assert(p)
f54cb97a 2623
4373e329 2624PERL_CALLCONV I32 Perl_eval_sv(pTHX_ SV* sv, I32 flags)
abb2c242 2625 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2626#define PERL_ARGS_ASSERT_EVAL_SV \
2627 assert(sv)
f54cb97a 2628
64ace3f8 2629PERL_CALLCONV SV* Perl_get_sv(pTHX_ const char *name, I32 flags)
abb2c242 2630 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2631#define PERL_ARGS_ASSERT_GET_SV \
2632 assert(name)
f54cb97a 2633
cbfd0a87 2634PERL_CALLCONV AV* Perl_get_av(pTHX_ const char *name, I32 flags)
255164ba 2635 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2636#define PERL_ARGS_ASSERT_GET_AV \
2637 assert(name)
255164ba 2638
6673a63c 2639PERL_CALLCONV HV* Perl_get_hv(pTHX_ const char *name, I32 flags)
255164ba 2640 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2641#define PERL_ARGS_ASSERT_GET_HV \
2642 assert(name)
255164ba 2643
780a5241
NC
2644PERL_CALLCONV CV* Perl_get_cv(pTHX_ const char* name, I32 flags)
2645 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2646#define PERL_ARGS_ASSERT_GET_CV \
2647 assert(name)
780a5241
NC
2648
2649PERL_CALLCONV CV* Perl_get_cvn_flags(pTHX_ const char* name, STRLEN len, I32 flags)
abb2c242 2650 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2651#define PERL_ARGS_ASSERT_GET_CVN_FLAGS \
2652 assert(name)
f54cb97a 2653
1d7c1841
GS
2654PERL_CALLCONV int Perl_init_i18nl10n(pTHX_ int printwarn);
2655PERL_CALLCONV int Perl_init_i18nl14n(pTHX_ int printwarn);
8772537c
AL
2656PERL_CALLCONV void Perl_new_collate(pTHX_ const char* newcoll);
2657PERL_CALLCONV void Perl_new_ctype(pTHX_ const char* newctype)
abb2c242 2658 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2659#define PERL_ARGS_ASSERT_NEW_CTYPE \
2660 assert(newctype)
f54cb97a 2661
8772537c 2662PERL_CALLCONV void Perl_new_numeric(pTHX_ const char* newcoll);
1d7c1841
GS
2663PERL_CALLCONV void Perl_set_numeric_local(pTHX);
2664PERL_CALLCONV void Perl_set_numeric_radix(pTHX);
2665PERL_CALLCONV void Perl_set_numeric_standard(pTHX);
4373e329 2666PERL_CALLCONV void Perl_require_pv(pTHX_ const char* pv)
abb2c242 2667 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2668#define PERL_ARGS_ASSERT_REQUIRE_PV \
2669 assert(pv)
f54cb97a 2670
2d03de9c
AL
2671PERL_CALLCONV void Perl_pack_cat(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist, SV ***next_in_list, U32 flags)
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)
2677 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2678#define PERL_ARGS_ASSERT_PACK_CAT \
2679 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist); assert(next_in_list)
2d03de9c
AL
2680
2681PERL_CALLCONV void Perl_packlist(pTHX_ SV *cat, const char *pat, const char *patend, SV **beglist, SV **endlist)
2682 __attribute__nonnull__(pTHX_1)
2683 __attribute__nonnull__(pTHX_2)
2684 __attribute__nonnull__(pTHX_3)
2685 __attribute__nonnull__(pTHX_4)
2686 __attribute__nonnull__(pTHX_5);
7918f24d
NC
2687#define PERL_ARGS_ASSERT_PACKLIST \
2688 assert(cat); assert(pat); assert(patend); assert(beglist); assert(endlist)
2d03de9c 2689
ed4173ef
NC
2690#if defined(PERL_USES_PL_PIDSTATUS) && defined(PERL_IN_UTIL_C)
2691STATIC void S_pidgone(pTHX_ Pid_t pid, int status);
e3790a26 2692#endif
4048f010 2693PERL_CALLCONV OP* Perl_pmruntime(pTHX_ OP *o, OP *expr, bool isreg)
abb2c242
JH
2694 __attribute__nonnull__(pTHX_1)
2695 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2696#define PERL_ARGS_ASSERT_PMRUNTIME \
2697 assert(o); assert(expr)
f54cb97a 2698
43869a0c 2699#if defined(PERL_IN_OP_C)
0d86688d 2700STATIC OP* S_pmtrans(pTHX_ OP* o, OP* expr, OP* repl)
abb2c242 2701 __attribute__nonnull__(pTHX_1)
2d03de9c
AL
2702 __attribute__nonnull__(pTHX_2)
2703 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2704#define PERL_ARGS_ASSERT_PMTRANS \
2705 assert(o); assert(expr); assert(repl)
f54cb97a 2706
0d86688d 2707#endif
1d7c1841
GS
2708PERL_CALLCONV void Perl_pop_scope(pTHX);
2709PERL_CALLCONV OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
1d7c1841 2710PERL_CALLCONV void Perl_push_scope(pTHX);
25b0f989 2711/* PERL_CALLCONV OP* Perl_ref(pTHX_ OP* o, I32 type); */
43869a0c 2712#if defined(PERL_IN_OP_C)
0d86688d
NC
2713STATIC OP* S_refkids(pTHX_ OP* o, I32 type);
2714#endif
097eb12c 2715PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
abb2c242 2716 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2717#define PERL_ARGS_ASSERT_REGDUMP \
2718 assert(r)
f54cb97a 2719
f7819f85
A
2720PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
2721 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2722#define PERL_ARGS_ASSERT_REGDUMP \
2723 assert(r)
f7819f85 2724
4048f010 2725PERL_CALLCONV SV* Perl_regclass_swash(pTHX_ const regexp *prog, const struct regnode *node, bool doinit, SV **listsvp, SV **altsvp)
32fc9b6a 2726 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2727#define PERL_ARGS_ASSERT_REGCLASS_SWASH \
2728 assert(node)
2d03de9c 2729
49d7dfbc 2730PERL_CALLCONV I32 Perl_pregexec(pTHX_ REGEXP * const prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave)
abb2c242
JH
2731 __attribute__nonnull__(pTHX_1)
2732 __attribute__nonnull__(pTHX_2)
2733 __attribute__nonnull__(pTHX_3)
2734 __attribute__nonnull__(pTHX_4)
2735 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2736#define PERL_ARGS_ASSERT_PREGEXEC \
2737 assert(prog); assert(stringarg); assert(strend); assert(strbeg); assert(screamer)
f54cb97a 2738
84679df5 2739PERL_CALLCONV void Perl_pregfree(pTHX_ REGEXP* r);
4048f010 2740PERL_CALLCONV void Perl_pregfree2(pTHX_ REGEXP *rx)
288b8c02 2741 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2742#define PERL_ARGS_ASSERT_PREGFREE2 \
2743 assert(rx)
288b8c02 2744
f0826785
BM
2745PERL_CALLCONV REGEXP* Perl_reg_temp_copy(pTHX_ REGEXP* ret_x, REGEXP* rx)
2746 __attribute__nonnull__(pTHX_2);
7918f24d 2747#define PERL_ARGS_ASSERT_REG_TEMP_COPY \
f0826785 2748 assert(rx)
28d8d7f4 2749
4048f010 2750PERL_CALLCONV void Perl_regfree_internal(pTHX_ REGEXP *const rx)
8074533a 2751 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2752#define PERL_ARGS_ASSERT_REGFREE_INTERNAL \
2753 assert(rx)
8074533a 2754
a3c0e9ca 2755#if defined(USE_ITHREADS)
49d7dfbc 2756PERL_CALLCONV void* Perl_regdupe_internal(pTHX_ REGEXP * const r, CLONE_PARAMS* param)
84da74a7
YO
2757 __attribute__nonnull__(pTHX_1)
2758 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2759#define PERL_ARGS_ASSERT_REGDUPE_INTERNAL \
2760 assert(r); assert(param)
84da74a7 2761
a3c0e9ca 2762#endif
1593ad57 2763PERL_CALLCONV REGEXP* Perl_pregcomp(pTHX_ SV * const pattern, const U32 flags)
3ab4a224 2764 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2765#define PERL_ARGS_ASSERT_PREGCOMP \
2766 assert(pattern)
f54cb97a 2767
1593ad57 2768PERL_CALLCONV REGEXP* Perl_re_compile(pTHX_ SV * const pattern, U32 flags)
3ab4a224 2769 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2770#define PERL_ARGS_ASSERT_RE_COMPILE \
2771 assert(pattern)
2a5d9b1d 2772
9f61653a 2773PERL_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
2774 __attribute__nonnull__(pTHX_1)
2775 __attribute__nonnull__(pTHX_3)
2776 __attribute__nonnull__(pTHX_4);
7918f24d
NC
2777#define PERL_ARGS_ASSERT_RE_INTUIT_START \
2778 assert(rx); assert(strpos); assert(strend)
2d03de9c 2779
4048f010 2780PERL_CALLCONV SV* Perl_re_intuit_string(pTHX_ REGEXP *const r)
2d03de9c 2781 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2782#define PERL_ARGS_ASSERT_RE_INTUIT_STRING \
2783 assert(r)
2d03de9c 2784
4048f010 2785PERL_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
2786 __attribute__nonnull__(pTHX_1)
2787 __attribute__nonnull__(pTHX_2)
2788 __attribute__nonnull__(pTHX_3)
fb9bf107
NC
2789 __attribute__nonnull__(pTHX_4)
2790 __attribute__nonnull__(pTHX_6);
7918f24d
NC
2791#define PERL_ARGS_ASSERT_REGEXEC_FLAGS \
2792 assert(rx); assert(stringarg); assert(strend); assert(strbeg); assert(sv)
a3b680e6 2793
1df70142 2794PERL_CALLCONV regnode* Perl_regnext(pTHX_ regnode* p)
8074533a 2795 __attribute__warn_unused_result__;
1df70142 2796
81714fb9 2797
192b9cd1
AB
2798PERL_CALLCONV SV* Perl_reg_named_buff(pTHX_ REGEXP * const rx, SV * const key, SV * const value, const U32 flags)
2799 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2800#define PERL_ARGS_ASSERT_REG_NAMED_BUFF \
2801 assert(rx)
192b9cd1
AB
2802
2803PERL_CALLCONV SV* Perl_reg_named_buff_iter(pTHX_ REGEXP * const rx, const SV * const lastkey, const U32 flags)
2804 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2805#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ITER \
2806 assert(rx)
192b9cd1
AB
2807
2808PERL_CALLCONV SV* Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags)
93b32b6d 2809 __attribute__nonnull__(pTHX_1)
44a2ac75 2810 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2811#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FETCH \
2812 assert(rx); assert(namesv)
44a2ac75 2813
192b9cd1
AB
2814PERL_CALLCONV bool Perl_reg_named_buff_exists(pTHX_ REGEXP * const rx, SV * const key, const U32 flags)
2815 __attribute__nonnull__(pTHX_1)
2816 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2817#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_EXISTS \
2818 assert(rx); assert(key)
192b9cd1
AB
2819
2820PERL_CALLCONV SV* Perl_reg_named_buff_firstkey(pTHX_ REGEXP * const rx, const U32 flags)
2821 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2822#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_FIRSTKEY \
2823 assert(rx)
192b9cd1
AB
2824
2825PERL_CALLCONV SV* Perl_reg_named_buff_nextkey(pTHX_ REGEXP * const rx, const U32 flags)
2826 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2827#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_NEXTKEY \
2828 assert(rx)
192b9cd1
AB
2829
2830PERL_CALLCONV SV* Perl_reg_named_buff_scalar(pTHX_ REGEXP * const rx, const U32 flags)
2831 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2832#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_SCALAR \
2833 assert(rx)
192b9cd1
AB
2834
2835PERL_CALLCONV SV* Perl_reg_named_buff_all(pTHX_ REGEXP * const rx, const U32 flags)
2836 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2837#define PERL_ARGS_ASSERT_REG_NAMED_BUFF_ALL \
2838 assert(rx)
192b9cd1 2839
2fdbfb4d
AB
2840
2841PERL_CALLCONV void Perl_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren, SV * const sv)
2842 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2843#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_FETCH \
2844 assert(rx)
2fdbfb4d
AB
2845
2846PERL_CALLCONV void Perl_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren, SV const * const value)
93b32b6d 2847 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2848#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_STORE \
2849 assert(rx)
93b32b6d 2850
2fdbfb4d
AB
2851PERL_CALLCONV I32 Perl_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const SV * const sv, const I32 paren)
2852 __attribute__nonnull__(pTHX_1)
2853 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2854#define PERL_ARGS_ASSERT_REG_NUMBERED_BUFF_LENGTH \
2855 assert(rx); assert(sv)
2fdbfb4d
AB
2856
2857
49d7dfbc 2858PERL_CALLCONV SV* Perl_reg_qr_package(pTHX_ REGEXP * const rx)
fe578d7f 2859 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2860#define PERL_ARGS_ASSERT_REG_QR_PACKAGE \
2861 assert(rx)
fe578d7f 2862
93b32b6d 2863
32fc9b6a
DM
2864PERL_CALLCONV void Perl_regprop(pTHX_ const regexp *prog, SV* sv, const regnode* o)
2865 __attribute__nonnull__(pTHX_2)
2866 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2867#define PERL_ARGS_ASSERT_REGPROP \
2868 assert(sv); assert(o)
2d03de9c 2869
16fa5c11
VP
2870PERL_CALLCONV void Perl_repeatcpy(char* to, const char* from, I32 len, I32 count)
2871 __attribute__nonnull__(1)
2872 __attribute__nonnull__(2);
7918f24d
NC
2873#define PERL_ARGS_ASSERT_REPEATCPY \
2874 assert(to); assert(from)
f54cb97a 2875
04c9e624 2876PERL_CALLCONV char* Perl_rninstr(const char* big, const char* bigend, const char* little, const char* lend)
abb2c242 2877 __attribute__pure__
04c9e624
VP
2878 __attribute__nonnull__(1)
2879 __attribute__nonnull__(2)
2880 __attribute__nonnull__(3)
2881 __attribute__nonnull__(4);
7918f24d
NC
2882#define PERL_ARGS_ASSERT_RNINSTR \
2883 assert(big); assert(bigend); assert(little); assert(lend)
f54cb97a 2884
1d7c1841
GS
2885PERL_CALLCONV Sighandler_t Perl_rsignal(pTHX_ int i, Sighandler_t t);
2886PERL_CALLCONV int Perl_rsignal_restore(pTHX_ int i, Sigsave_t* t);
9f6cc744 2887PERL_CALLCONV int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* save)
9a957fbc 2888 __attribute__nonnull__(pTHX_3);
7918f24d
NC
2889#define PERL_ARGS_ASSERT_RSIGNAL_SAVE \
2890 assert(save)
9a957fbc 2891
1d7c1841 2892PERL_CALLCONV Sighandler_t Perl_rsignal_state(pTHX_ int i);
43869a0c 2893#if defined(PERL_IN_PP_CTL_C)
9c105995 2894STATIC void S_rxres_free(pTHX_ void** rsp)
abb2c242 2895 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2896#define PERL_ARGS_ASSERT_RXRES_FREE \
2897 assert(rsp)
a3b680e6 2898
9c105995 2899STATIC void S_rxres_restore(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2900 __attribute__nonnull__(pTHX_1)
2901 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2902#define PERL_ARGS_ASSERT_RXRES_RESTORE \
2903 assert(rsp); assert(rx)
a3b680e6 2904
9c105995 2905#endif
4048f010 2906PERL_CALLCONV void Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx)
abb2c242
JH
2907 __attribute__nonnull__(pTHX_1)
2908 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2909#define PERL_ARGS_ASSERT_RXRES_SAVE \
2910 assert(rsp); assert(rx)
a3b680e6 2911
cea2e8a9 2912#if !defined(HAS_RENAME)
4373e329 2913PERL_CALLCONV I32 Perl_same_dirent(pTHX_ const char* a, const char* b)
abb2c242
JH
2914 __attribute__nonnull__(pTHX_1)
2915 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2916#define PERL_ARGS_ASSERT_SAME_DIRENT \
2917 assert(a); assert(b)
f54cb97a 2918
0cb96387 2919#endif
53c1dcc0
AL
2920PERL_CALLCONV char* Perl_savepv(pTHX_ const char* pv)
2921 __attribute__malloc__
639f6c3d 2922 __attribute__warn_unused_result__;
53c1dcc0
AL
2923
2924PERL_CALLCONV char* Perl_savepvn(pTHX_ const char* pv, I32 len)
2925 __attribute__malloc__
639f6c3d 2926 __attribute__warn_unused_result__;
53c1dcc0
AL
2927
2928PERL_CALLCONV char* Perl_savesharedpv(pTHX_ const char* pv)
2929 __attribute__malloc__
2930 __attribute__warn_unused_result__;
2931
d9095cec
NC
2932PERL_CALLCONV char* Perl_savesharedpvn(pTHX_ const char *const pv, const STRLEN len)
2933 __attribute__malloc__
2934 __attribute__warn_unused_result__
2935 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2936#define PERL_ARGS_ASSERT_SAVESHAREDPVN \
2937 assert(pv)
d9095cec 2938
53c1dcc0
AL
2939PERL_CALLCONV char* Perl_savesvpv(pTHX_ SV* sv)
2940 __attribute__malloc__
2941 __attribute__warn_unused_result__
2942 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2943#define PERL_ARGS_ASSERT_SAVESVPV \
2944 assert(sv)
53c1dcc0 2945
1d7c1841 2946PERL_CALLCONV void Perl_savestack_grow(pTHX);
4b3c1a47 2947PERL_CALLCONV void Perl_savestack_grow_cnt(pTHX_ I32 need);
91d1c79f
VP
2948/* PERL_CALLCONV void Perl_save_aelem(pTHX_ AV* av, I32 idx, SV **sptr)
2949 __attribute__nonnull__(pTHX_1)
2950 __attribute__nonnull__(pTHX_3); */
2951
2952PERL_CALLCONV void Perl_save_aelem_flags(pTHX_ AV* av, I32 idx, SV **sptr, const U32 flags)
9a957fbc
AL
2953 __attribute__nonnull__(pTHX_1)
2954 __attribute__nonnull__(pTHX_3);
91d1c79f 2955#define PERL_ARGS_ASSERT_SAVE_AELEM_FLAGS \
7918f24d 2956 assert(av); assert(sptr)
9a957fbc 2957
1d7c1841 2958PERL_CALLCONV I32 Perl_save_alloc(pTHX_ I32 size, I32 pad);
9a957fbc
AL
2959PERL_CALLCONV void Perl_save_aptr(pTHX_ AV** aptr)
2960 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2961#define PERL_ARGS_ASSERT_SAVE_APTR \
2962 assert(aptr)
9a957fbc
AL
2963
2964PERL_CALLCONV AV* Perl_save_ary(pTHX_ GV* gv)
2965 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2966#define PERL_ARGS_ASSERT_SAVE_ARY \
2967 assert(gv)
9a957fbc
AL
2968
2969PERL_CALLCONV void Perl_save_bool(pTHX_ bool* boolp)
2970 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2971#define PERL_ARGS_ASSERT_SAVE_BOOL \
2972 assert(boolp)
9a957fbc
AL
2973
2974PERL_CALLCONV void Perl_save_clearsv(pTHX_ SV** svp)
2975 __attribute__nonnull__(pTHX_1);
7918f24d
NC
2976#define PERL_ARGS_ASSERT_SAVE_CLEARSV \
2977 assert(svp)
9a957fbc 2978
4048f010 2979PERL_CALLCONV void Perl_save_delete(pTHX_ HV *hv, char *key, I32 klen)
9a957fbc
AL
2980 __attribute__nonnull__(pTHX_1)
2981 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2982#define PERL_ARGS_ASSERT_SAVE_DELETE \
2983 assert(hv); assert(key)
9a957fbc 2984
af097752
VP
2985PERL_CALLCONV void Perl_save_hdelete(pTHX_ HV *hv, SV *keysv)
2986 __attribute__nonnull__(pTHX_1)
2987 __attribute__nonnull__(pTHX_2);
2988#define PERL_ARGS_ASSERT_SAVE_HDELETE \
2989 assert(hv); assert(keysv)
2990
c68ec7a9
VP
2991PERL_CALLCONV void Perl_save_adelete(pTHX_ AV *av, I32 key)
2992 __attribute__nonnull__(pTHX_1);
2993#define PERL_ARGS_ASSERT_SAVE_ADELETE \
2994 assert(av)
2995
fb9bf107
NC
2996PERL_CALLCONV void Perl_save_destructor(pTHX_ DESTRUCTORFUNC_NOCONTEXT_t f, void* p)
2997 __attribute__nonnull__(pTHX_2);
7918f24d
NC
2998#define PERL_ARGS_ASSERT_SAVE_DESTRUCTOR \
2999 assert(p)
fb9bf107 3000
55968144 3001PERL_CALLCONV void Perl_save_destructor_x(pTHX_ DESTRUCTORFUNC_t f, void* p);
2fd8beea
NC
3002/* PERL_CALLCONV void Perl_save_freesv(pTHX_ SV* sv); */
3003/* PERL_CALLCONV void Perl_save_freeop(pTHX_ OP* o); */
3004/* PERL_CALLCONV void Perl_save_freepv(pTHX_ char* pv); */
9a957fbc
AL
3005PERL_CALLCONV void Perl_save_generic_svref(pTHX_ SV** sptr)
3006 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3007#define PERL_ARGS_ASSERT_SAVE_GENERIC_SVREF \
3008 assert(sptr)
9a957fbc
AL
3009
3010PERL_CALLCONV void Perl_save_generic_pvref(pTHX_ char** str)
3011 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3012#define PERL_ARGS_ASSERT_SAVE_GENERIC_PVREF \
3013 assert(str)
9a957fbc
AL
3014
3015PERL_CALLCONV void Perl_save_shared_pvref(pTHX_ char** str)
3016 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3017#define PERL_ARGS_ASSERT_SAVE_SHARED_PVREF \
3018 assert(str)
9a957fbc 3019
aec46f14
AL
3020PERL_CALLCONV void Perl_save_gp(pTHX_ GV* gv, I32 empty)
3021 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3022#define PERL_ARGS_ASSERT_SAVE_GP \
3023 assert(gv)
aec46f14
AL
3024
3025PERL_CALLCONV HV* Perl_save_hash(pTHX_ GV* gv)
3026 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3027#define PERL_ARGS_ASSERT_SAVE_HASH \
3028 assert(gv)
aec46f14 3029
da8315f8 3030PERL_CALLCONV void Perl_save_hints(pTHX);
af7df257 3031/* PERL_CALLCONV void Perl_save_helem(pTHX_ HV *hv, SV *key, SV **sptr)
9a957fbc
AL
3032 __attribute__nonnull__(pTHX_1)
3033 __attribute__nonnull__(pTHX_2)
af7df257 3034 __attribute__nonnull__(pTHX_3); */
9a957fbc 3035
af7df257
CS
3036PERL_CALLCONV void Perl_save_helem_flags(pTHX_ HV *hv, SV *key, SV **sptr, const U32 flags)
3037 __attribute__nonnull__(pTHX_1)
3038 __attribute__nonnull__(pTHX_2)
3039 __attribute__nonnull__(pTHX_3);
3040#define PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS \
3041 assert(hv); assert(key); assert(sptr)
3042
aec46f14
AL
3043PERL_CALLCONV void Perl_save_hptr(pTHX_ HV** hptr)
3044 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3045#define PERL_ARGS_ASSERT_SAVE_HPTR \
3046 assert(hptr)
aec46f14
AL
3047
3048PERL_CALLCONV void Perl_save_I16(pTHX_ I16* intp)
3049 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3050#define PERL_ARGS_ASSERT_SAVE_I16 \
3051 assert(intp)
aec46f14
AL
3052
3053PERL_CALLCONV void Perl_save_I32(pTHX_ I32* intp)
3054 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3055#define PERL_ARGS_ASSERT_SAVE_I32 \
3056 assert(intp)
aec46f14
AL
3057
3058PERL_CALLCONV void Perl_save_I8(pTHX_ I8* bytep)
3059 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3060#define PERL_ARGS_ASSERT_SAVE_I8 \
3061 assert(bytep)
aec46f14
AL
3062
3063PERL_CALLCONV void Perl_save_int(pTHX_ int* intp)
3064 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3065#define PERL_ARGS_ASSERT_SAVE_INT \
3066 assert(intp)
aec46f14
AL
3067
3068PERL_CALLCONV void Perl_save_item(pTHX_ SV* item)
3069 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3070#define PERL_ARGS_ASSERT_SAVE_ITEM \
3071 assert(item)
aec46f14 3072
4048f010 3073PERL_CALLCONV void Perl_save_iv(pTHX_ IV *ivp)
aec46f14 3074 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3075#define PERL_ARGS_ASSERT_SAVE_IV \
3076 assert(ivp)
aec46f14
AL
3077
3078PERL_CALLCONV void Perl_save_list(pTHX_ SV** sarg, I32 maxsarg)
3079 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3080#define PERL_ARGS_ASSERT_SAVE_LIST \
3081 assert(sarg)
aec46f14
AL
3082
3083PERL_CALLCONV void Perl_save_long(pTHX_ long* longp)
3084 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3085#define PERL_ARGS_ASSERT_SAVE_LONG \
3086 assert(longp)
aec46f14 3087
2fd8beea
NC
3088/* PERL_CALLCONV void Perl_save_mortalizesv(pTHX_ SV* sv)
3089 __attribute__nonnull__(pTHX_1); */
7918f24d
NC
3090#define PERL_ARGS_ASSERT_SAVE_MORTALIZESV \
3091 assert(sv)
aec46f14 3092
3d4dd4c7
NC
3093PERL_CALLCONV void Perl_save_nogv(pTHX_ GV* gv)
3094 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3095#define PERL_ARGS_ASSERT_SAVE_NOGV \
3096 assert(gv)
3d4dd4c7 3097
2fd8beea 3098/* PERL_CALLCONV void Perl_save_op(pTHX); */
aec46f14
AL
3099PERL_CALLCONV SV* Perl_save_scalar(pTHX_ GV* gv)
3100 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3101#define PERL_ARGS_ASSERT_SAVE_SCALAR \
3102 assert(gv)
aec46f14
AL
3103
3104PERL_CALLCONV void Perl_save_pptr(pTHX_ char** pptr)
3105 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3106#define PERL_ARGS_ASSERT_SAVE_PPTR \
3107 assert(pptr)
aec46f14 3108
4048f010 3109PERL_CALLCONV void Perl_save_vptr(pTHX_ void *ptr)
aec46f14 3110 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3111#define PERL_ARGS_ASSERT_SAVE_VPTR \
3112 assert(ptr)
aec46f14 3113
1d7c1841 3114PERL_CALLCONV void Perl_save_re_context(pTHX);
09edbca0 3115PERL_CALLCONV void Perl_save_padsv_and_mortalize(pTHX_ PADOFFSET off);
aec46f14
AL
3116PERL_CALLCONV void Perl_save_sptr(pTHX_ SV** sptr)
3117 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3118#define PERL_ARGS_ASSERT_SAVE_SPTR \
3119 assert(sptr)
aec46f14
AL
3120
3121PERL_CALLCONV SV* Perl_save_svref(pTHX_ SV** sptr)
3122 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3123#define PERL_ARGS_ASSERT_SAVE_SVREF \
3124 assert(sptr)
aec46f14 3125
2fd8beea 3126PERL_CALLCONV void Perl_save_pushptr(pTHX_ void *const ptr, const int type);
4f5084fa 3127PERL_CALLCONV void Perl_save_pushi32ptr(pTHX_ const I32 i, void *const ptr, const int type);
dfcd3de5 3128PERL_CALLCONV void Perl_save_pushptrptr(pTHX_ void *const ptr1, void *const ptr2, const int type);
43869a0c 3129#if defined(PERL_IN_SCOPE_C)
be84297e
NC
3130STATIC void S_save_pushptri32ptr(pTHX_ void *const ptr1, const I32 i, void *const ptr2, const int type);
3131#endif
1d7c1841
GS
3132PERL_CALLCONV OP* Perl_sawparens(pTHX_ OP* o);
3133PERL_CALLCONV OP* Perl_scalar(pTHX_ OP* o);
43869a0c 3134#if defined(PERL_IN_OP_C)
2dd5337b
NC
3135STATIC OP* S_scalarkids(pTHX_ OP* o);
3136STATIC OP* S_scalarseq(pTHX_ OP* o);
3137#endif
aec46f14
AL
3138PERL_CALLCONV OP* Perl_scalarvoid(pTHX_ OP* o)
3139 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3140#define PERL_ARGS_ASSERT_SCALARVOID \
3141 assert(o)
aec46f14
AL
3142
3143PERL_CALLCONV NV Perl_scan_bin(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
3144 __attribute__nonnull__(pTHX_1)
3145 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3146#define PERL_ARGS_ASSERT_SCAN_BIN \
3147 assert(start); assert(retlen)
aec46f14
AL
3148
3149PERL_CALLCONV NV Perl_scan_hex(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
3150 __attribute__nonnull__(pTHX_1)
3151 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3152#define PERL_ARGS_ASSERT_SCAN_HEX \
3153 assert(start); assert(retlen)
aec46f14
AL
3154
3155PERL_CALLCONV char* Perl_scan_num(pTHX_ const char* s, YYSTYPE *lvalp)
3156 __attribute__nonnull__(pTHX_1)
3157 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3158#define PERL_ARGS_ASSERT_SCAN_NUM \
3159 assert(s); assert(lvalp)
aec46f14
AL
3160
3161PERL_CALLCONV NV Perl_scan_oct(pTHX_ const char* start, STRLEN len, STRLEN* retlen)
3162 __attribute__nonnull__(pTHX_1)
3163 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3164#define PERL_ARGS_ASSERT_SCAN_OCT \
3165 assert(start); assert(retlen)
aec46f14 3166
1d7c1841 3167PERL_CALLCONV OP* Perl_scope(pTHX_ OP* o);
9f6cc744 3168PERL_CALLCONV char* Perl_screaminstr(pTHX_ SV *bigstr, SV *littlestr, I32 start_shift, I32 end_shift, I32 *old_posp, I32 last)
aec46f14
AL
3169 __attribute__nonnull__(pTHX_1)
3170 __attribute__nonnull__(pTHX_2)
3171 __attribute__nonnull__(pTHX_5);
7918f24d
NC
3172#define PERL_ARGS_ASSERT_SCREAMINSTR \
3173 assert(bigstr); assert(littlestr); assert(old_posp)
aec46f14 3174
1d7c1841 3175PERL_CALLCONV void Perl_setdefout(pTHX_ GV* gv);
aec46f14
AL
3176PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash)
3177 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3178#define PERL_ARGS_ASSERT_SHARE_HEK \
3179 assert(str)
aec46f14 3180
8aad04aa 3181#if defined(HAS_SIGACTION) && defined(SA_SIGINFO)
b6455c53
SR
3182PERL_CALLCONV Signal_t Perl_sighandler(int sig, siginfo_t *info, void *uap);
3183PERL_CALLCONV Signal_t Perl_csighandler(int sig, siginfo_t *info, void *uap);
8aad04aa 3184#else
1d7c1841 3185PERL_CALLCONV Signal_t Perl_sighandler(int sig);
d36b6582 3186PERL_CALLCONV Signal_t Perl_csighandler(int sig);
8aad04aa 3187#endif
c48640ec 3188PERL_CALLCONV SV** Perl_stack_grow(pTHX_ SV** sp, SV** p, int n)
abb2c242
JH
3189 __attribute__nonnull__(pTHX_1)
3190 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3191#define PERL_ARGS_ASSERT_STACK_GROW \
3192 assert(sp); assert(p)
f54cb97a 3193
0b1558d1 3194PERL_CALLCONV I32 Perl_start_subparse(pTHX_ I32 is_format, U32 flags);
aec46f14
AL
3195PERL_CALLCONV void Perl_sub_crush_depth(pTHX_ CV* cv)
3196 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3197#define PERL_ARGS_ASSERT_SUB_CRUSH_DEPTH \
3198 assert(cv)
aec46f14 3199
7bc54cea 3200PERL_CALLCONV bool Perl_sv_2bool(pTHX_ SV *const sv)
abb2c242 3201 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3202#define PERL_ARGS_ASSERT_SV_2BOOL \
3203 assert(sv)
f54cb97a 3204
23f13727 3205PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV **const st, GV **const gvp, const I32 lref)
aec46f14
AL
3206 __attribute__nonnull__(pTHX_2)
3207 __attribute__nonnull__(pTHX_3);
7918f24d
NC
3208#define PERL_ARGS_ASSERT_SV_2CV \
3209 assert(st); assert(gvp)
f54cb97a 3210
23f13727 3211PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV *const sv)
abb2c242 3212 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3213#define PERL_ARGS_ASSERT_SV_2IO \
3214 assert(sv)
f54cb97a 3215
43869a0c 3216#if defined(PERL_IN_SV_C)
19f6321d 3217STATIC bool S_glob_2number(pTHX_ GV* const gv)
180488f8 3218 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3219#define PERL_ARGS_ASSERT_GLOB_2NUMBER \
3220 assert(gv)
180488f8
NC
3221
3222#endif
53e85712
NC
3223/* PERL_CALLCONV IV Perl_sv_2iv(pTHX_ SV *sv); */
3224PERL_CALLCONV IV Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags);
23f13727 3225PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV *const sv);
39d5de13 3226PERL_CALLCONV NV Perl_sv_2nv_flags(pTHX_ SV *const sv, const I32 flags);
5de3775c 3227PERL_CALLCONV SV* Perl_sv_2num(pTHX_ SV *const sv)
800401ee 3228 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3229#define PERL_ARGS_ASSERT_SV_2NUM \
3230 assert(sv)
800401ee 3231
53e85712
NC
3232/* PERL_CALLCONV char* Perl_sv_2pv(pTHX_ SV *sv, STRLEN *lp); */
3233PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags);
7bc54cea 3234PERL_CALLCONV char* Perl_sv_2pvutf8(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3235 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3236#define PERL_ARGS_ASSERT_SV_2PVUTF8 \
3237 assert(sv)
f54cb97a 3238
5de3775c 3239PERL_CALLCONV char* Perl_sv_2pvbyte(pTHX_ SV *const sv, STRLEN *const lp)
f49ed1da 3240 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3241#define PERL_ARGS_ASSERT_SV_2PVBYTE \
3242 assert(sv)
f54cb97a 3243
4373e329 3244PERL_CALLCONV char* Perl_sv_pvn_nomg(pTHX_ SV* sv, STRLEN* lp)
f49ed1da 3245 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3246#define PERL_ARGS_ASSERT_SV_PVN_NOMG \
3247 assert(sv)
f54cb97a 3248
53e85712
NC
3249/* PERL_CALLCONV UV Perl_sv_2uv(pTHX_ SV *sv); */
3250PERL_CALLCONV UV Perl_sv_2uv_flags(pTHX_ SV *const sv, const I32 flags);
4373e329 3251PERL_CALLCONV IV Perl_sv_iv(pTHX_ SV* sv)
abb2c242 3252 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3253#define PERL_ARGS_ASSERT_SV_IV \
3254 assert(sv)
f54cb97a 3255
4373e329 3256PERL_CALLCONV UV Perl_sv_uv(pTHX_ SV* sv)
abb2c242 3257 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3258#define PERL_ARGS_ASSERT_SV_UV \
3259 assert(sv)
f54cb97a 3260
4373e329 3261PERL_CALLCONV NV Perl_sv_nv(pTHX_ SV* sv)
abb2c242 3262 __attribute__nonnull__(pTHX_1);
7918f24d
NC
3263#define PERL_ARGS_ASSERT_SV_NV \
3264 assert(sv)
f54cb97a 3265
4048f010 3266PERL_CALLCONV char* Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3267 __attribute__nonnull__(pTHX_1)
3268 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3269#define PERL_ARGS_ASSERT_SV_PVN \
3270 assert(sv); assert(lp)
f54cb97a 3271
4048f010 3272PERL_CALLCONV char* Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3273 __attribute__nonnull__(pTHX_1)
3274 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3275#define PERL_ARGS_ASSERT_SV_PVUTF8N \
3276 assert(sv); assert(lp)
f54cb97a 3277
4048f010 3278PERL_CALLCONV char* Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp)
abb2c242
JH
3279 __attribute__nonnull__(pTHX_1)
3280 __attribute__nonnull__(pTHX_2);
7918f24d
NC
3281#define PERL_ARGS_ASSERT_SV_PVBYTEN \
3282 assert(sv); assert(lp)
f54cb97a 3283
23f13727 3284PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *const sv);