/* allocate a spare slot and store the name in that slot */
off = pad_add_name(name, len,
- is_our ? pad_add_OUR :
- PL_parser->in_my == KEY_state ? pad_add_STATE : 0,
+ is_our ? padadd_OUR :
+ PL_parser->in_my == KEY_state ? padadd_STATE : 0,
PL_parser->in_my_stash,
(is_our
/* $_ is always in main::, even with our */
SvOURSTASH_set(namesv, ourstash);
SvREFCNT_inc_simple_void_NN(ourstash);
}
- else if (flags & pad_add_STATE) {
+ else if (flags & padadd_STATE) {
SvPAD_STATE_on(namesv);
}
PERL_ARGS_ASSERT_PAD_ADD_NAME;
- if (flags & ~(pad_add_OUR|pad_add_STATE|pad_add_NO_DUP_CHECK))
+ if (flags & ~(padadd_OUR|padadd_STATE|padadd_NO_DUP_CHECK))
Perl_croak(aTHX_ "panic: pad_add_name illegal flag bits 0x%" UVxf,
(UV)flags);
sv_setpv(namesv, name);
- if ((flags & pad_add_NO_DUP_CHECK) == 0) {
+ if ((flags & padadd_NO_DUP_CHECK) == 0) {
/* check for duplicate declaration */
- pad_check_dup(namesv, flags & pad_add_OUR, ourstash);
+ pad_check_dup(namesv, flags & padadd_OUR, ourstash);
}
offset = pad_add_name_sv(namesv, flags, typestash, ourstash);
dVAR;
SV **svp;
PADOFFSET top, off;
- const U32 is_our = flags & pad_add_OUR;
+ const U32 is_our = flags & padadd_OUR;
PERL_ARGS_ASSERT_PAD_CHECK_DUP;
ASSERT_CURPAD_ACTIVE("pad_check_dup");
- assert((flags & ~pad_add_OUR) == 0);
+ assert((flags & ~padadd_OUR) == 0);
if (AvFILLp(PL_comppad_name) < 0 || !ckWARN(WARN_MISC))
return; /* nothing to check */
new_offset
= pad_add_name_sv(new_namesv,
- (SvPAD_STATE(*out_name_sv) ? pad_add_STATE : 0),
+ (SvPAD_STATE(*out_name_sv) ? padadd_STATE : 0),
SvPAD_TYPED(*out_name_sv)
? SvSTASH(*out_name_sv) : NULL,
SvOURSTASH(*out_name_sv)
/* flags for pad_add_name. SVf_UTF8 will also be valid in the future. */
-# define pad_add_OUR 0x01 /* our declaration. */
-# define pad_add_STATE 0x02 /* state declaration. */
-# define pad_add_NO_DUP_CHECK 0x04 /* skip warning on dups. */
+# define padadd_OUR 0x01 /* our declaration. */
+# define padadd_STATE 0x02 /* state declaration. */
+# define padadd_NO_DUP_CHECK 0x04 /* skip warning on dups. */
#endif