This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.[ch]: PADNAME_OUTER
[perl5.git] / pad.h
CommitLineData
dd2155a4
DM
1/* pad.h
2 *
2eee27d7
SS
3 * Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008,
4 * 2009, 2010, 2011 by Larry Wall and others
dd2155a4
DM
5 *
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Artistic License, as specified in the README file.
8 *
9 * This file defines the types and macros associated with the API for
10 * manipulating scratchpads, which are used by perl to store lexical
11 * variables, op targets and constants.
12 */
13
cc76b5cc
Z
14/*
15=head1 Pad Data Structures
16*/
dd2155a4
DM
17
18
dd2155a4
DM
19/* offsets within a pad */
20
21#if PTRSIZE == 4
22typedef U32TYPE PADOFFSET;
23#else
24# if PTRSIZE == 8
25typedef U64TYPE PADOFFSET;
26# endif
27#endif
28#define NOT_IN_PAD ((PADOFFSET) -1)
809abb02 29
7261499d
FC
30
31struct padlist {
32 SSize_t xpadl_max; /* max index for which array has space */
33 PAD ** xpadl_alloc; /* pointer to beginning of array of AVs */
db4cf31d
FC
34 U32 xpadl_id; /* Semi-unique ID, shared between clones */
35 U32 xpadl_outid; /* ID of outer pad */
7261499d
FC
36};
37
38
2df5bdd7
DM
39/* a value that PL_cop_seqmax is guaranteed never to be,
40 * flagging that a lexical is being introduced, or has not yet left scope
41 */
42#define PERL_PADSEQ_INTRO U32_MAX
43
44
7948fc08 45/* B.xs needs these for the benefit of B::Deparse */
809abb02 46/* Low range end is exclusive (valid from the cop seq after this one) */
809abb02 47/* High range end is inclusive (valid up to this cop seq) */
809abb02 48
3441fb63
NC
49#if defined (DEBUGGING) && defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN)
50# define COP_SEQ_RANGE_LOW(sv) \
b1bc3f34 51 (({ const SV *const _sv_cop_seq_range_low = (const SV *) (sv); \
7948fc08
RU
52 assert(SvTYPE(_sv_cop_seq_range_low) == SVt_NV \
53 || SvTYPE(_sv_cop_seq_range_low) >= SVt_PVNV); \
54 assert(SvTYPE(_sv_cop_seq_range_low) != SVt_PVAV); \
55 assert(SvTYPE(_sv_cop_seq_range_low) != SVt_PVHV); \
56 assert(SvTYPE(_sv_cop_seq_range_low) != SVt_PVCV); \
57 assert(SvTYPE(_sv_cop_seq_range_low) != SVt_PVFM); \
58 assert(!isGV_with_GP(_sv_cop_seq_range_low)); \
b1bc3f34 59 ((XPVNV*) MUTABLE_PTR(SvANY(_sv_cop_seq_range_low)))->xnv_u.xpad_cop_seq.xlow; \
3441fb63
NC
60 }))
61# define COP_SEQ_RANGE_HIGH(sv) \
b1bc3f34 62 (({ const SV *const _sv_cop_seq_range_high = (const SV *) (sv); \
7948fc08
RU
63 assert(SvTYPE(_sv_cop_seq_range_high) == SVt_NV \
64 || SvTYPE(_sv_cop_seq_range_high) >= SVt_PVNV); \
65 assert(SvTYPE(_sv_cop_seq_range_high) != SVt_PVAV); \
66 assert(SvTYPE(_sv_cop_seq_range_high) != SVt_PVHV); \
67 assert(SvTYPE(_sv_cop_seq_range_high) != SVt_PVCV); \
68 assert(SvTYPE(_sv_cop_seq_range_high) != SVt_PVFM); \
69 assert(!isGV_with_GP(_sv_cop_seq_range_high)); \
b1bc3f34 70 ((XPVNV*) MUTABLE_PTR(SvANY(_sv_cop_seq_range_high)))->xnv_u.xpad_cop_seq.xhigh; \
3441fb63
NC
71 }))
72# define PARENT_PAD_INDEX(sv) \
b1bc3f34 73 (({ const SV *const _sv_parent_pad_index = (const SV *) (sv); \
7948fc08
RU
74 assert(SvTYPE(_sv_parent_pad_index) == SVt_NV \
75 || SvTYPE(_sv_parent_pad_index) >= SVt_PVNV); \
76 assert(SvTYPE(_sv_parent_pad_index) != SVt_PVAV); \
77 assert(SvTYPE(_sv_parent_pad_index) != SVt_PVHV); \
78 assert(SvTYPE(_sv_parent_pad_index) != SVt_PVCV); \
79 assert(SvTYPE(_sv_parent_pad_index) != SVt_PVFM); \
80 assert(!isGV_with_GP(_sv_parent_pad_index)); \
b1bc3f34 81 ((XPVNV*) MUTABLE_PTR(SvANY(_sv_parent_pad_index)))->xnv_u.xpad_cop_seq.xlow; \
3441fb63
NC
82 }))
83# define PARENT_FAKELEX_FLAGS(sv) \
b1bc3f34 84 (({ const SV *const _sv_parent_fakelex_flags = (const SV *) (sv); \
7948fc08
RU
85 assert(SvTYPE(_sv_parent_fakelex_flags) == SVt_NV \
86 || SvTYPE(_sv_parent_fakelex_flags) >= SVt_PVNV); \
87 assert(SvTYPE(_sv_parent_fakelex_flags) != SVt_PVAV); \
88 assert(SvTYPE(_sv_parent_fakelex_flags) != SVt_PVHV); \
89 assert(SvTYPE(_sv_parent_fakelex_flags) != SVt_PVCV); \
90 assert(SvTYPE(_sv_parent_fakelex_flags) != SVt_PVFM); \
91 assert(!isGV_with_GP(_sv_parent_fakelex_flags)); \
b1bc3f34 92 ((XPVNV*) MUTABLE_PTR(SvANY(_sv_parent_fakelex_flags)))->xnv_u.xpad_cop_seq.xhigh; \
3441fb63
NC
93 }))
94#else
95# define COP_SEQ_RANGE_LOW(sv) \
96 (0 + (((XPVNV*) SvANY(sv))->xnv_u.xpad_cop_seq.xlow))
97# define COP_SEQ_RANGE_HIGH(sv) \
98 (0 + (((XPVNV*) SvANY(sv))->xnv_u.xpad_cop_seq.xhigh))
99
100
101# define PARENT_PAD_INDEX(sv) \
102 (0 + (((XPVNV*) SvANY(sv))->xnv_u.xpad_cop_seq.xlow))
103# define PARENT_FAKELEX_FLAGS(sv) \
104 (0 + (((XPVNV*) SvANY(sv))->xnv_u.xpad_cop_seq.xhigh))
105#endif
dd2155a4 106
6c5e080d 107/* Flags set in the SvIVX field of FAKE namesvs */
7948fc08 108
6c5e080d
NC
109#define PAD_FAKELEX_ANON 1 /* the lex is declared in an ANON, or ... */
110#define PAD_FAKELEX_MULTI 2 /* the lex can be instantiated multiple times */
111
dd2155a4
DM
112/* flags for the pad_new() function */
113
c7c737cb
DM
114#define padnew_CLONE 1 /* this pad is for a cloned CV */
115#define padnew_SAVE 2 /* save old globals */
116#define padnew_SAVESUB 4 /* also save extra stuff for start of sub */
dd2155a4
DM
117
118/* values for the pad_tidy() function */
119
120typedef enum {
121 padtidy_SUB, /* tidy up a pad for a sub, */
122 padtidy_SUBCLONE, /* a cloned sub, */
123 padtidy_FORMAT /* or a format */
124} padtidy_type;
125
9f6ec8dd 126/* flags for pad_add_name_pvn. */
35f82371 127
9f6ec8dd
BF
128#define padadd_OUR 0x01 /* our declaration. */
129#define padadd_STATE 0x02 /* state declaration. */
130#define padadd_NO_DUP_CHECK 0x04 /* skip warning on dups. */
7ef30830
FC
131#define padadd_STALEOK 0x08 /* allow stale lexical in active
132 * sub, but only one level up */
9f6ec8dd 133#define padadd_UTF8_NAME SVf_UTF8 /* name is UTF-8 encoded. */
35f82371 134
f3548bdc
DM
135/* ASSERT_CURPAD_LEGAL and ASSERT_CURPAD_ACTIVE respectively determine
136 * whether PL_comppad and PL_curpad are consistent and whether they have
137 * active values */
dd2155a4 138
1dba731d
NC
139#ifndef PERL_MAD
140# define pad_peg(label)
141#endif
142
f3548bdc
DM
143#ifdef DEBUGGING
144# define ASSERT_CURPAD_LEGAL(label) \
1dba731d 145 pad_peg(label); \
f3548bdc
DM
146 if (PL_comppad ? (AvARRAY(PL_comppad) != PL_curpad) : (PL_curpad != 0)) \
147 Perl_croak(aTHX_ "panic: illegal pad in %s: 0x%"UVxf"[0x%"UVxf"]",\
148 label, PTR2UV(PL_comppad), PTR2UV(PL_curpad));
149
150
151# define ASSERT_CURPAD_ACTIVE(label) \
1dba731d 152 pad_peg(label); \
f3548bdc
DM
153 if (!PL_comppad || (AvARRAY(PL_comppad) != PL_curpad)) \
154 Perl_croak(aTHX_ "panic: invalid pad in %s: 0x%"UVxf"[0x%"UVxf"]",\
155 label, PTR2UV(PL_comppad), PTR2UV(PL_curpad));
156#else
157# define ASSERT_CURPAD_LEGAL(label)
158# define ASSERT_CURPAD_ACTIVE(label)
159#endif
160
161
162
163/* Note: the following three macros are actually defined in scope.h, but
dd2155a4
DM
164 * they are documented here for completeness, since they directly or
165 * indirectly affect pads.
166
167=for apidoc m|void|SAVEPADSV |PADOFFSET po
168Save a pad slot (used to restore after an iteration)
169
f3548bdc 170XXX DAPM it would make more sense to make the arg a PADOFFSET
dd2155a4 171=for apidoc m|void|SAVECLEARSV |SV **svp
eeb8d49e 172Clear the pointed to pad value on scope exit. (i.e. the runtime action of 'my')
dd2155a4
DM
173
174=for apidoc m|void|SAVECOMPPAD
175save PL_comppad and PL_curpad
176
dd2155a4 177
35e035cc
FC
178=for apidoc Amx|PAD **|PADLIST_ARRAY|PADLIST padlist
179The C array of a padlist, containing the pads. Only subscript it with
180numbers >= 1, as the 0th entry is not guaranteed to remain usable.
dd2155a4 181
35e035cc
FC
182=for apidoc Amx|SSize_t|PADLIST_MAX|PADLIST padlist
183The index of the last pad in the padlist.
184
185=for apidoc Amx|PADNAMELIST *|PADLIST_NAMES|PADLIST padlist
186The names associated with pad entries.
187
188=for apidoc Amx|PADNAME **|PADLIST_NAMESARRAY|PADLIST padlist
189The C array of pad names.
190
191=for apidoc Amx|SSize_t|PADLIST_NAMESMAX|PADLIST padlist
192The index of the last pad name.
193
194=for apidoc Amx|U32|PADLIST_REFCNT|PADLIST padlist
195The reference count of the padlist. Currently this is always 1.
196
197=for apidoc Amx|PADNAME **|PADNAMELIST_ARRAY|PADNAMELIST pnl
198The C array of pad names.
199
200=for apidoc Amx|SSize_t|PADNAMELIST_MAX|PADNAMELIST pnl
201The index of the last pad name.
202
203=for apidoc Amx|SV **|PAD_ARRAY|PAD pad
204The C array of pad entries.
205
206=for apidoc Amx|SSize_t|PAD_MAX|PAD pad
207The index of the last pad entry.
208
209=for apidoc Amx|char *|PADNAME_PV|PADNAME pn
210The name stored in the pad name struct.
211
212=for apidoc Amx|STRLEN|PADNAME_LEN|PADNAME pn
213The length of the name.
214
215=for apidoc Amx|bool|PADNAME_UTF8|PADNAME pn
216Whether PADNAME_PV is in UTF8.
217
218=for apidoc m|bool|PADNAME_isOUR|PADNAME pn
219Whether this is an "our" variable.
220
221=for apidoc m|HV *|PADNAME_OURSTASH
222The stash in which this "our" variable was declared.
223
c44737a2
FC
224=for apidoc m|bool|PADNAME_OUTER|PADNAME pn
225Whether this entry belongs to an outer pad.
226
35e035cc
FC
227=for apidoc m|HV *|PADNAME_TYPE|PADNAME pn
228The stash associated with a typed lexical. This returns the %Foo:: hash
229for C<my Foo $bar>.
dd2155a4
DM
230
231
232=for apidoc m|SV *|PAD_SETSV |PADOFFSET po|SV* sv
233Set the slot at offset C<po> in the current pad to C<sv>
234
235=for apidoc m|void|PAD_SV |PADOFFSET po
236Get the value at offset C<po> in the current pad
237
238=for apidoc m|SV *|PAD_SVl |PADOFFSET po
239Lightweight and lvalue version of C<PAD_SV>.
240Get or set the value at offset C<po> in the current pad.
241Unlike C<PAD_SV>, does not print diagnostics with -DX.
242For internal use only.
243
244=for apidoc m|SV *|PAD_BASE_SV |PADLIST padlist|PADOFFSET po
245Get the value from slot C<po> in the base (DEPTH=1) pad of a padlist
246
247=for apidoc m|void|PAD_SET_CUR |PADLIST padlist|I32 n
248Set the current pad to be pad C<n> in the padlist, saving
fd617465
DM
249the previous current pad. NB currently this macro expands to a string too
250long for some compilers, so it's best to replace it with
251
252 SAVECOMPPAD();
253 PAD_SET_CUR_NOSAVE(padlist,n);
254
dd2155a4 255
4e380990
DM
256=for apidoc m|void|PAD_SET_CUR_NOSAVE |PADLIST padlist|I32 n
257like PAD_SET_CUR, but without the save
258
dd2155a4
DM
259=for apidoc m|void|PAD_SAVE_SETNULLPAD
260Save the current pad then set it to null.
261
f3548bdc
DM
262=for apidoc m|void|PAD_SAVE_LOCAL|PAD *opad|PAD *npad
263Save the current pad to the local variable opad, then make the
264current pad equal to npad
265
266=for apidoc m|void|PAD_RESTORE_LOCAL|PAD *opad
267Restore the old pad saved into the local variable opad by PAD_SAVE_LOCAL()
dd2155a4
DM
268
269=cut
270*/
271
7261499d
FC
272#define PADLIST_ARRAY(pl) (pl)->xpadl_alloc
273#define PADLIST_MAX(pl) (pl)->xpadl_max
35e035cc
FC
274#define PADLIST_NAMES(pl) (*PADLIST_ARRAY(pl))
275#define PADLIST_NAMESARRAY(pl) PADNAMELIST_ARRAY(PADLIST_NAMES(pl))
276#define PADLIST_NAMESMAX(pl) PADNAMELIST_MAX(PADLIST_NAMES(pl))
7261499d
FC
277#define PADLIST_REFCNT(pl) 1 /* reserved for future use */
278
35e035cc
FC
279#define PADNAMELIST_ARRAY(pnl) AvARRAY(pnl)
280#define PADNAMELIST_MAX(pnl) AvFILLp(pnl)
281
282#define PAD_ARRAY(pad) AvARRAY(pad)
283#define PAD_MAX(pad) AvFILLp(pad)
284
285#define PADNAME_PV(pn) SvPV_nolen(pn)
286#define PADNAME_LEN(pn) SvCUR(pn)
287#define PADNAME_UTF8(pn) !!SvUTF8(pn)
288#define PADNAME_isOUR(pn) !!SvPAD_OUR(pn)
289#define PADNAME_OURSTASH SvOURSTASH(pn)
c44737a2 290#define PADNAME_OUTER !!SvFAKE(pn)
35e035cc
FC
291#define PADNAME_TYPE(pn) (SvPAD_TYPED(pn) ? SvSTASH(pn) : NULL)
292
293
dd2155a4
DM
294#ifdef DEBUGGING
295# define PAD_SV(po) pad_sv(po)
296# define PAD_SETSV(po,sv) pad_setsv(po,sv)
297#else
298# define PAD_SV(po) (PL_curpad[po])
299# define PAD_SETSV(po,sv) PL_curpad[po] = (sv)
300#endif
301
302#define PAD_SVl(po) (PL_curpad[po])
303
304#define PAD_BASE_SV(padlist, po) \
7261499d
FC
305 (PADLIST_ARRAY(padlist)[1]) \
306 ? AvARRAY(MUTABLE_AV((PADLIST_ARRAY(padlist)[1])))[po] \
307 : NULL;
7948fc08 308
dd2155a4 309
de5e01c2 310#define PAD_SET_CUR_NOSAVE(padlist,nth) \
7261499d 311 PL_comppad = (PAD*) (PADLIST_ARRAY(padlist)[nth]); \
f3548bdc
DM
312 PL_curpad = AvARRAY(PL_comppad); \
313 DEBUG_Xv(PerlIO_printf(Perl_debug_log, \
314 "Pad 0x%"UVxf"[0x%"UVxf"] set_cur depth=%d\n", \
de5e01c2 315 PTR2UV(PL_comppad), PTR2UV(PL_curpad), (int)(nth)));
f3548bdc
DM
316
317
de5e01c2 318#define PAD_SET_CUR(padlist,nth) \
4e380990 319 SAVECOMPPAD(); \
de5e01c2 320 PAD_SET_CUR_NOSAVE(padlist,nth);
4e380990
DM
321
322
f3548bdc 323#define PAD_SAVE_SETNULLPAD() SAVECOMPPAD(); \
4608196e 324 PL_comppad = NULL; PL_curpad = NULL; \
f3548bdc
DM
325 DEBUG_Xv(PerlIO_printf(Perl_debug_log, "Pad set_null\n"));
326
327#define PAD_SAVE_LOCAL(opad,npad) \
328 opad = PL_comppad; \
329 PL_comppad = (npad); \
4608196e 330 PL_curpad = PL_comppad ? AvARRAY(PL_comppad) : NULL; \
f3548bdc
DM
331 DEBUG_Xv(PerlIO_printf(Perl_debug_log, \
332 "Pad 0x%"UVxf"[0x%"UVxf"] save_local\n", \
333 PTR2UV(PL_comppad), PTR2UV(PL_curpad)));
334
335#define PAD_RESTORE_LOCAL(opad) \
8c63ea58
GG
336 assert(!opad || !SvIS_FREED(opad)); \
337 PL_comppad = opad; \
4608196e 338 PL_curpad = PL_comppad ? AvARRAY(PL_comppad) : NULL; \
f3548bdc
DM
339 DEBUG_Xv(PerlIO_printf(Perl_debug_log, \
340 "Pad 0x%"UVxf"[0x%"UVxf"] restore_local\n", \
341 PTR2UV(PL_comppad), PTR2UV(PL_curpad)));
dd2155a4
DM
342
343
344/*
345=for apidoc m|void|CX_CURPAD_SAVE|struct context
346Save the current pad in the given context block structure.
347
f3548bdc 348=for apidoc m|SV *|CX_CURPAD_SV|struct context|PADOFFSET po
dd2155a4
DM
349Access the SV at offset po in the saved current pad in the given
350context block structure (can be used as an lvalue).
351
352=cut
353*/
354
f3548bdc 355#define CX_CURPAD_SAVE(block) (block).oldcomppad = PL_comppad
a062e10d 356#define CX_CURPAD_SV(block,po) (AvARRAY(MUTABLE_AV(((block).oldcomppad)))[po])
dd2155a4
DM
357
358
359/*
360=for apidoc m|U32|PAD_COMPNAME_FLAGS|PADOFFSET po
361Return the flags for the current compiling pad name
362at offset C<po>. Assumes a valid slot entry.
363
364=for apidoc m|char *|PAD_COMPNAME_PV|PADOFFSET po
365Return the name of the current compiling pad name
366at offset C<po>. Assumes a valid slot entry.
367
368=for apidoc m|HV *|PAD_COMPNAME_TYPE|PADOFFSET po
369Return the type (stash) of the current compiling pad name at offset
370C<po>. Must be a valid name. Returns null if not typed.
371
372=for apidoc m|HV *|PAD_COMPNAME_OURSTASH|PADOFFSET po
373Return the stash associated with an C<our> variable.
374Assumes the slot entry is a valid C<our> lexical.
375
376=for apidoc m|STRLEN|PAD_COMPNAME_GEN|PADOFFSET po
377The generation number of the name at offset C<po> in the current
931b58fb 378compiling pad (lvalue). Note that C<SvUVX> is hijacked for this purpose.
dd2155a4 379
b162af07
SP
380=for apidoc m|STRLEN|PAD_COMPNAME_GEN_set|PADOFFSET po|int gen
381Sets the generation number of the name at offset C<po> in the current
931b58fb 382ling pad (lvalue) to C<gen>. Note that C<SvUV_set> is hijacked for this purpose.
b162af07 383
dd2155a4 384=cut
b162af07 385
dd2155a4
DM
386*/
387
35e035cc 388#define PAD_COMPNAME(po) PAD_COMPNAME_SV(po)
f8503592
NC
389#define PAD_COMPNAME_SV(po) (*av_fetch(PL_comppad_name, (po), FALSE))
390#define PAD_COMPNAME_FLAGS(po) SvFLAGS(PAD_COMPNAME_SV(po))
1979170b 391#define PAD_COMPNAME_FLAGS_isOUR(po) SvPAD_OUR(PAD_COMPNAME_SV(po))
f8503592 392#define PAD_COMPNAME_PV(po) SvPV_nolen(PAD_COMPNAME_SV(po))
dd2155a4 393
b21dc031 394#define PAD_COMPNAME_TYPE(po) pad_compname_type(po)
dd2155a4
DM
395
396#define PAD_COMPNAME_OURSTASH(po) \
73d95100 397 (SvOURSTASH(PAD_COMPNAME_SV(po)))
dd2155a4 398
931b58fb 399#define PAD_COMPNAME_GEN(po) ((STRLEN)SvUVX(AvARRAY(PL_comppad_name)[po]))
dd2155a4 400
931b58fb 401#define PAD_COMPNAME_GEN_set(po, gen) SvUV_set(AvARRAY(PL_comppad_name)[po], (UV)(gen))
dd2155a4
DM
402
403
404/*
d77cdebf 405=for apidoc m|void|PAD_CLONE_VARS|PerlInterpreter *proto_perl|CLONE_PARAMS* param
dd2155a4
DM
406Clone the state variables associated with running and compiling pads.
407
408=cut
409*/
410
c5ab0850
DM
411/* NB - we set PL_comppad to null unless it points at a value that
412 * has already been dup'ed, ie it points to part of an active padlist.
413 * Otherwise PL_comppad ends up being a leaked scalar in code like
414 * the following:
415 * threads->create(sub { threads->create(sub {...} ) } );
416 * where the second thread dups the outer sub's comppad but not the
417 * sub's CV or padlist. */
f3548bdc 418
dd2155a4 419#define PAD_CLONE_VARS(proto_perl, param) \
253649d9 420 PL_comppad = av_dup(proto_perl->Icomppad, param); \
4608196e 421 PL_curpad = PL_comppad ? AvARRAY(PL_comppad) : NULL; \
dd2155a4
DM
422 PL_comppad_name = av_dup(proto_perl->Icomppad_name, param); \
423 PL_comppad_name_fill = proto_perl->Icomppad_name_fill; \
424 PL_comppad_name_floor = proto_perl->Icomppad_name_floor; \
dd2155a4
DM
425 PL_min_intro_pending = proto_perl->Imin_intro_pending; \
426 PL_max_intro_pending = proto_perl->Imax_intro_pending; \
427 PL_padix = proto_perl->Ipadix; \
428 PL_padix_floor = proto_perl->Ipadix_floor; \
429 PL_pad_reset_pending = proto_perl->Ipad_reset_pending; \
430 PL_cop_seqmax = proto_perl->Icop_seqmax;
e9a8c099
MHM
431
432/*
cc76b5cc
Z
433=for apidoc Am|PADOFFSET|pad_add_name_pvs|const char *name|U32 flags|HV *typestash|HV *ourstash
434
435Exactly like L</pad_add_name_pvn>, but takes a literal string instead
436of a string/length pair.
437
438=cut
439*/
440
441#define pad_add_name_pvs(name,flags,typestash,ourstash) \
442 Perl_pad_add_name_pvn(aTHX_ STR_WITH_LEN(name), flags, typestash, ourstash)
443
444/*
445=for apidoc Am|PADOFFSET|pad_findmy_pvs|const char *name|U32 flags
446
447Exactly like L</pad_findmy_pvn>, but takes a literal string instead
448of a string/length pair.
449
450=cut
451*/
452
453#define pad_findmy_pvs(name,flags) \
454 Perl_pad_findmy_pvn(aTHX_ STR_WITH_LEN(name), flags)
455
456/*
e9a8c099
MHM
457 * Local variables:
458 * c-indentation-style: bsd
459 * c-basic-offset: 4
14d04a33 460 * indent-tabs-mode: nil
e9a8c099
MHM
461 * End:
462 *
14d04a33 463 * ex: set ts=8 sts=4 sw=4 et:
e9a8c099 464 */