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