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