Skip to content

Change names with leading underscores to be legal #23592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 87 commits into
base: blead
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
d770eaf
sbox32_hash.h: Use legal C symbol names
khwilliamson Aug 14, 2025
f29c4f4
util.c: Convert _SV_LOG_SERIAL_ARG to legal name
khwilliamson Aug 14, 2025
3e9cf0d
util.c: Convert _rand48_(mult|add) to legal names
khwilliamson Aug 14, 2025
773d37f
pad.h: Convert _PADNAME_BASE to legal name
khwilliamson Aug 14, 2025
210b2c1
pp.h: Convert _EXTEND_SAFE_N to legal name
khwilliamson Aug 14, 2025
6c30932
pp.h: Convert _EXTEND_NEEDS_GROW to legal name
khwilliamson Aug 14, 2025
88128bf
pack.c: Convert _action to legal name
khwilliamson Aug 14, 2025
c858038
class.c. Convert _arg to legal name
khwilliamson Aug 14, 2025
24c5820
class.c. Convert _nOnclAshIngNamE_ to legal name
khwilliamson Aug 14, 2025
2fb6a6b
hv_macro.h. Convert _shifted_octet to legal name
khwilliamson Aug 14, 2025
97934c3
hv_macro.h. Convert _dv to legal name
khwilliamson Aug 14, 2025
8073b93
regcomp_internal.h. Convert _FAIL to legal name
khwilliamson Aug 14, 2025
fc8ce87
regcomp_internal.h. Convert _WARN_HELPER to legal name
khwilliamson Aug 14, 2025
89e10cb
regexec.c. Convert _generic_GET_BREAK_VAL_CP_CHECKED to legal name
khwilliamson Aug 14, 2025
a1b520a
regexec.c. Convert _generic_GET_BREAK_VAL_CP_ to legal name
khwilliamson Aug 14, 2025
5904227
regexec.c. Convert _generic_GET_BREAK_VAL_UTF8_ to legal name
khwilliamson Aug 14, 2025
733f8e1
regexec.c. Convert _pm_setre to legal name
khwilliamson Aug 14, 2025
e6c1535
op_reg*.h. Convert _RXm_PMf_SHIFT_NEXT to legal name
khwilliamson Aug 14, 2025
0dff7f1
op_reg_common.h: Convert _RXf_PMf_CHARSET_SHIFT to legal name
khwilliamson Aug 14, 2025
09b3352
op_reg_common.h: Convert _RXf_PMf_COMPILETIME to legal name
khwilliamson Aug 14, 2025
316ad81
op_reg_common.h: Convert _o to legal name
khwilliamson Aug 14, 2025
df7a541
regexp.h: Convert _rerefcnt_inc to legal name
khwilliamson Aug 14, 2025
e829fe9
regexp.h: Convert _rerefcnt_dec to legal name
khwilliamson Aug 14, 2025
c41dc0e
regcomp.h: Convert _reg_trie_trans to legal name
khwilliamson Aug 14, 2025
5fd6dde
regcomp.h: Convert _reg_trie_trans_list_elem to legal name
khwilliamson Aug 14, 2025
9cfb741
regcomp.h: Convert _reg_trie_state to legal name
khwilliamson Aug 14, 2025
9b691af
regcomp.h: Convert _reg_trie_data to legal name
khwilliamson Aug 14, 2025
4252c1d
regcomp.h: Convert _reg_ac_data to legal name
khwilliamson Aug 14, 2025
d5893ed
regcomp_trie.c. Convert _eC to legal name
khwilliamson Aug 14, 2025
ac2e98e
Convert _byte_dump_string() to legal name
khwilliamson Aug 14, 2025
45130c8
gv.h: Convert _gvgp to legal name
khwilliamson Aug 14, 2025
98c6390
gv.h: Convert _gvflags to legal name
khwilliamson Aug 14, 2025
a8e85d3
gv.h: Convert _gvstash to legal name
khwilliamson Aug 14, 2025
b8f7e87
gv.h: Convert _gvname_hek to legal name
khwilliamson Aug 14, 2025
ca15ca6
gv.h: Convert _xhvnameu to legal name
khwilliamson Aug 14, 2025
8d876ed
perl.h: Convert _restore_LC_NUMERIC_function to legal name
khwilliamson Aug 14, 2025
2753662
perl.h: Convert _in_lc_numeric to legal name
khwilliamson Aug 14, 2025
67d4c7b
Convert _to_uni_fold_flags to legal name
khwilliamson Aug 14, 2025
9ff21fc
Convert _inverse_folds to legal name
khwilliamson Aug 14, 2025
6fb5eaa
Convert _toFOLD_utf8_flags to legal name
khwilliamson Aug 14, 2025
83e8589
Convert _tofold_latin1 to legal name
khwilliamson Aug 14, 2025
577f8c2
onvert _to_utf8_fold_flags to legal name
khwilliamson Aug 15, 2025
c4ecad1
Convert _to_utf8_lower_flags to legal name
khwilliamson Aug 15, 2025
8fb717c
Convert _to_upper_title_latin1 to legal name
khwilliamson Aug 14, 2025
b6575f8
Convert _to_utf8_title_flags to legal name
khwilliamson Aug 14, 2025
410b2ae
Convert _to_utf8_upper_flags to legal name
khwilliamson Aug 14, 2025
7559fc5
Convert _to_utf8_case to legal name
khwilliamson Aug 14, 2025
ccc9f7d
Convert _is_uni_perl_idstart to legal name
khwilliamson Aug 15, 2025
5ad4837
Convert _is_utf8_perl_idstart to legal name
khwilliamson Aug 15, 2025
7ec3b2b
Convert _is_uni_perl_idcont to legal name
khwilliamson Aug 15, 2025
41ae714
Convert _is_utf8_perl_idcont to legal name
khwilliamson Aug 15, 2025
c29e95a
Convert _is_uni_FOO to legal name
khwilliamson Aug 14, 2025
9d46c06
Convert _is_utf8_FOO to legal name
khwilliamson Aug 14, 2025
8d7a6ef
Convert _utf8_safe_assert to legal name
khwilliamson Aug 14, 2025
f25bcc5
Convert _toLOWER_utf8_flags to legal name
khwilliamson Aug 15, 2025
2b68963
Convert _toTITLE_utf8_flags to legal name
khwilliamson Aug 14, 2025
129def8
Convert _toUPPER_utf8_flags to legal name
khwilliamson Aug 14, 2025
73ced77
Convert _PERL_STRLEN_ROUNDUP_UNCHECKED to legal name
khwilliamson Aug 14, 2025
903cfdd
Convert _MEM_WRAP_NEEDS_RUNTIME_CHECK to legal name
khwilliamson Aug 14, 2025
52931b9
Convert _MEM_WRAP_WILL_WRAP to legal name
khwilliamson Aug 14, 2025
839416d
pp_ctl.c Convert _arg to legal name
khwilliamson Aug 14, 2025
75f7690
pp_ctl.c Convert _invoke_defer_block to legal name
khwilliamson Aug 14, 2025
1f754d6
sv.h Convert _crash to legal name
khwilliamson Aug 14, 2025
b1c1617
sv.h Convert _bonk to legal name
khwilliamson Aug 14, 2025
f566e0f
sv.h Convert _bmuseful to legal name
khwilliamson Aug 14, 2025
4d6fe64
sv.h Convert _lEnGtH to legal name
khwilliamson Aug 14, 2025
ed4d840
sv.h Convert _svpvx to legal name
khwilliamson Aug 14, 2025
115d548
sv.h Convert _svcur to legal name
khwilliamson Aug 14, 2025
1a4a721
sv.h Convert _svivx to legal name
khwilliamson Aug 14, 2025
5daafee
sv.h Convert _svrv to legal name
khwilliamson Aug 14, 2025
0e063e6
sv.h Convert _svmagic to legal name
khwilliamson Aug 14, 2025
57f93e1
sv.h Convert _svstash to legal name
khwilliamson Aug 14, 2025
1c66623
sv.h Convert _svuvx to legal name
khwilliamson Aug 14, 2025
b448c0d
sv.h Convert _svnvx to legal name
khwilliamson Aug 14, 2025
a6ed010
sv.h Convert _svtail to legal name
khwilliamson Aug 14, 2025
4b4cf80
sv.h Convert _svvalid to legal name
khwilliamson Aug 14, 2025
edc66c3
sv.h Convert _xivu to legal name
khwilliamson Aug 14, 2025
ebbf58a
Convert union _xmgu to legal name
khwilliamson Aug 14, 2025
0be52cf
sv.h Convert _xnvu to legal name
khwilliamson Aug 14, 2025
289bbd3
sv.h Convert _NV_BODYLESS_UNION to legal name
khwilliamson Aug 14, 2025
16f4774
sv.h Convert _SV_HEAD_DEBUG to legal name
khwilliamson Aug 14, 2025
22fc726
sv.h Convert _SV_HEAD_UNION to legal name
khwilliamson Aug 14, 2025
031e97d
sv.h Convert _SV_HEAD to legal name
khwilliamson Aug 14, 2025
385c057
Convert _XPVCV_COMMON to legal name
khwilliamson Aug 14, 2025
c741937
Convert _XPVCV_HEAD to legal name
khwilliamson Aug 14, 2025
d9f6189
Convert _XPVMG_HEAD to legal name
khwilliamson Aug 14, 2025
6295e86
dump.c: Convert _pv_display_for_dump to legal name
khwilliamson Aug 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion av.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

struct xpvav {
HV* xmg_stash; /* class package */
union _xmgu xmg_u;
union xmgu_ xmg_u;
SSize_t xav_fill; /* Index of last element present */
SSize_t xav_max; /* max index for which array has space */
SV** xav_alloc; /* pointer to beginning of C array of SVs */
Expand Down
4 changes: 2 additions & 2 deletions class.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ PP(pp_methstart)
}

static void
invoke_class_seal(pTHX_ void *_arg)
invoke_class_seal(pTHX_ void *arg_)
{
class_seal_stash((HV *)_arg);
class_seal_stash((HV *)arg_);
}

void
Expand Down
8 changes: 4 additions & 4 deletions cop.h
Original file line number Diff line number Diff line change
Expand Up @@ -1398,8 +1398,8 @@ See L<perlcall/LIGHTWEIGHT CALLBACKS>.
#define PUSH_MULTICALL_FLAGS(the_cv, flags) \
STMT_START { \
PERL_CONTEXT *cx; \
CV * const _nOnclAshIngNamE_ = the_cv; \
CV * const cv = _nOnclAshIngNamE_; \
CV * const nOnclAshIngNamE_ = the_cv; \
CV * const cv = nOnclAshIngNamE_; \
PADLIST * const padlist = CvPADLIST(cv); \
multicall_oldcatch = CATCH_GET; \
CATCH_SET(TRUE); \
Expand Down Expand Up @@ -1442,8 +1442,8 @@ See L<perlcall/LIGHTWEIGHT CALLBACKS>.

#define CHANGE_MULTICALL_FLAGS(the_cv, flags) \
STMT_START { \
CV * const _nOnclAshIngNamE_ = the_cv; \
CV * const cv = _nOnclAshIngNamE_; \
CV * const nOnclAshIngNamE_ = the_cv; \
CV * const cv = nOnclAshIngNamE_; \
PADLIST * const padlist = CvPADLIST(cv); \
PERL_CONTEXT *cx = CX_CUR(); \
assert(CxMULTICALL(cx)); \
Expand Down
4 changes: 2 additions & 2 deletions cv.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
/* This structure must match the beginning of XPVFM in sv.h */

struct xpvcv {
_XPV_HEAD;
_XPVCV_COMMON;
XPV_HEAD_;
XPVCV_COMMON_;
};

/*
Expand Down
8 changes: 4 additions & 4 deletions dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ S_append_flags(pTHX_ SV *sv, U32 flags, const struct flag_to_name *start,
PERL_PV_ESCAPE_NONASCII | PERL_PV_ESCAPE_DWIM \
| ((utf8) ? PERL_PV_ESCAPE_UNI : 0) )

#define _pv_display_for_dump(dsv, pv, cur, len, pvlim) \
#define pv_display_for_dump(dsv, pv, cur, len, pvlim) \
_pv_display_flags(aTHX_ dsv, pv, cur, len, pvlim, PERL_PV_ESCAPE_DWIM_ALL_HEX)

/*
Expand Down Expand Up @@ -2406,7 +2406,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
PTR2UV(ptr));
if (SvOOK(sv)) {
PerlIO_printf(file, "( %s . ) ",
_pv_display_for_dump(d, ptr - delta, delta, 0,
pv_display_for_dump(d, ptr - delta, delta, 0,
pvlim));
}
if (type == SVt_INVLIST) {
Expand All @@ -2415,7 +2415,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
_invlist_dump(file, level, " ", sv);
}
else {
PerlIO_printf(file, "%s", _pv_display_for_dump(d, ptr, SvCUR(sv),
PerlIO_printf(file, "%s", pv_display_for_dump(d, ptr, SvCUR(sv),
re ? 0 : SvLEN(sv),
pvlim));
if (SvUTF8(sv)) /* the 6? \x{....} */
Expand Down Expand Up @@ -2717,7 +2717,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
keypv = SvPV_const(keysv, len);
elt = HeVAL(he);

Perl_dump_indent(aTHX_ level+1, file, "Elt %s ", _pv_display_for_dump(d, keypv, len, 0, pvlim));
Perl_dump_indent(aTHX_ level+1, file, "Elt %s ", pv_display_for_dump(d, keypv, len, 0, pvlim));
if (SvUTF8(keysv))
PerlIO_printf(file, "[UTF8 \"%s\"] ", sv_uni_display(d, keysv, 6 * SvCUR(keysv), UNI_DISPLAY_QQ));
if (HvEITER_get(hv) == he)
Expand Down
38 changes: 19 additions & 19 deletions embed.fnc
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ p |OP * |build_infix_plugin \
|NN OP *lhs \
|NN OP *rhs \
|NN void *tokendata
EXp |const char *|_byte_dump_string \
EXp |const char *|byte_dump_string_ \
|NULLOK const U8 * const start \
|const STRLEN len \
|const bool format
Expand Down Expand Up @@ -1665,7 +1665,7 @@ p |void |init_uniprops
APRTdmp |char * |instr |NN const char *big \
|NN const char *little
Adp |U32 |intro_my
ERXp |Size_t |_inverse_folds |const UV cp \
ERXp |Size_t |inverse_folds_ |const UV cp \
|NN U32 *first_folds_to \
|NN const U32 **remaining_folds_to
: Used in perly.y
Expand Down Expand Up @@ -1719,11 +1719,11 @@ ATdip |bool |is_strict_utf8_string_loclen \
|STRLEN len \
|NULLOK const U8 **ep \
|NULLOK STRLEN *el
CRp |bool |_is_uni_FOO |const U8 classnum \
CRp |bool |is_uni_FOO_ |const U8 classnum \
|const UV c
CRp |bool |_is_uni_perl_idcont \
CRp |bool |is_uni_perl_idcont_ \
|UV c
CRp |bool |_is_uni_perl_idstart \
CRp |bool |is_uni_perl_idstart_ \
|UV c
ARTdip |Size_t |isUTF8_CHAR |NN const U8 * const s0 \
|NN const U8 * const e
Expand Down Expand Up @@ -1757,17 +1757,17 @@ ATdip |bool |is_utf8_fixed_width_buf_loclen_flags \
|NULLOK const U8 **ep \
|NULLOK STRLEN *el \
|const U32 flags
CRp |bool |_is_utf8_FOO |const U8 classnum \
CRp |bool |is_utf8_FOO_ |const U8 classnum \
|NN const U8 *p \
|NN const U8 * const e
ARTdip |bool |is_utf8_invariant_string_loc \
|NN const U8 * const s \
|STRLEN len \
|NULLOK const U8 **ep
CRp |bool |_is_utf8_perl_idcont \
CRp |bool |is_utf8_perl_idcont_ \
|NN const U8 *p \
|NN const U8 * const e
CRp |bool |_is_utf8_perl_idstart \
CRp |bool |is_utf8_perl_idstart_ \
|NN const U8 *p \
|NN const U8 * const e
ARTdmp |bool |is_utf8_string |NN const U8 *s \
Expand Down Expand Up @@ -3654,7 +3654,7 @@ Xiop |Stack_off_t|TOPMARK
Cmp |UV |to_uni_fold |UV c \
|NN U8 *p \
|NN STRLEN *lenp
Cp |UV |_to_uni_fold_flags \
Cp |UV |to_uni_fold_flags_ \
|UV c \
|NN U8 *p \
|NN STRLEN *lenp \
Expand All @@ -3668,26 +3668,26 @@ Cp |UV |to_uni_title |UV c \
Cp |UV |to_uni_upper |UV c \
|NN U8 *p \
|NN STRLEN *lenp
Cp |UV |_to_utf8_fold_flags \
Cp |UV |to_utf8_fold_flags_ \
|NN const U8 *p \
|NULLOK const U8 *e \
|NN U8 *ustrp \
|NULLOK STRLEN *lenp \
|U8 flags

Cp |UV |_to_utf8_lower_flags \
Cp |UV |to_utf8_lower_flags_ \
|NN const U8 *p \
|NULLOK const U8 *e \
|NN U8 *ustrp \
|NULLOK STRLEN *lenp \
|bool flags
Cp |UV |_to_utf8_title_flags \
Cp |UV |to_utf8_title_flags_ \
|NN const U8 *p \
|NULLOK const U8 *e \
|NN U8 *ustrp \
|NULLOK STRLEN *lenp \
|bool flags
Cp |UV |_to_utf8_upper_flags \
Cp |UV |to_utf8_upper_flags_ \
|NN const U8 *p \
|NULLOK const U8 *e \
|NN U8 *ustrp \
Expand Down Expand Up @@ -5119,7 +5119,7 @@ ETi |const char *|get_regex_charset_name \
|NN STRLEN * const lenp
#endif
#if defined(PERL_IN_PP_C) || defined(PERL_IN_UTF8_C)
p |UV |_to_upper_title_latin1 \
p |UV |to_upper_title_latin1_ \
|const U8 c \
|NN U8 *p \
|NN STRLEN *lenp \
Expand Down Expand Up @@ -5347,18 +5347,18 @@ Ep |SSize_t|study_chunk |NN RExC_state_t *pRExC_state \
|U32 depth \
|bool was_mutate_ok
# if defined(PERL_IN_REGCOMP_TRIE_C) && defined(DEBUGGING)
ES |void |dump_trie |NN const struct _reg_trie_data *trie \
ES |void |dump_trie |NN const struct reg_trie_data_ *trie \
|NULLOK HV *widecharmap \
|NN AV *revcharmap \
|U32 depth
ES |void |dump_trie_interim_list \
|NN const struct _reg_trie_data *trie \
|NN const struct reg_trie_data_ *trie \
|NULLOK HV *widecharmap \
|NN AV *revcharmap \
|U32 next_alloc \
|U32 depth
ES |void |dump_trie_interim_table \
|NN const struct _reg_trie_data *trie \
|NN const struct reg_trie_data_ *trie \
|NULLOK HV *widecharmap \
|NN AV *revcharmap \
|U32 next_alloc \
Expand Down Expand Up @@ -5583,7 +5583,7 @@ ERp |bool |is_grapheme |NN const U8 *strbeg \
#endif
#if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C) || \
defined(PERL_IN_UTF8_C)
ETXp |UV |_to_fold_latin1|const U8 c \
ETXp |UV |to_fold_latin1_|const U8 c \
|NN U8 *p \
|NN STRLEN *lenp \
|const unsigned int flags
Expand Down Expand Up @@ -6164,7 +6164,7 @@ RST |U8 |to_lower_latin1|const U8 c \
|NULLOK U8 *p \
|NULLOK STRLEN *lenp \
|const char dummy
S |UV |_to_utf8_case |const UV original \
S |UV |to_utf8_case_ |const UV original \
|NULLOK const U8 *p \
|NN U8 *ustrp \
|NN STRLEN *lenp \
Expand Down
32 changes: 16 additions & 16 deletions embed.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,6 @@
# define SvTRUE_nomg(a) Perl_SvTRUE_nomg(aTHX_ a)
# define SvUV(a) Perl_SvUV(aTHX_ a)
# define SvUV_nomg(a) Perl_SvUV_nomg(aTHX_ a)
# define _is_uni_FOO(a,b) Perl__is_uni_FOO(aTHX_ a,b)
# define _is_uni_perl_idcont(a) Perl__is_uni_perl_idcont(aTHX_ a)
# define _is_uni_perl_idstart(a) Perl__is_uni_perl_idstart(aTHX_ a)
# define _is_utf8_FOO(a,b,c) Perl__is_utf8_FOO(aTHX_ a,b,c)
# define _is_utf8_perl_idcont(a,b) Perl__is_utf8_perl_idcont(aTHX_ a,b)
# define _is_utf8_perl_idstart(a,b) Perl__is_utf8_perl_idstart(aTHX_ a,b)
# define _to_uni_fold_flags(a,b,c,d) Perl__to_uni_fold_flags(aTHX_ a,b,c,d)
# define _to_utf8_fold_flags(a,b,c,d,e) Perl__to_utf8_fold_flags(aTHX_ a,b,c,d,e)
# define _to_utf8_lower_flags(a,b,c,d,e) Perl__to_utf8_lower_flags(aTHX_ a,b,c,d,e)
# define _to_utf8_title_flags(a,b,c,d,e) Perl__to_utf8_title_flags(aTHX_ a,b,c,d,e)
# define _to_utf8_upper_flags(a,b,c,d,e) Perl__to_utf8_upper_flags(aTHX_ a,b,c,d,e)
# define amagic_call(a,b,c,d) Perl_amagic_call(aTHX_ a,b,c,d)
# define amagic_deref_call(a,b) Perl_amagic_deref_call(aTHX_ a,b)
# define apply_attrs_string(a,b,c,d) Perl_apply_attrs_string(aTHX_ a,b,c,d)
Expand Down Expand Up @@ -329,13 +318,19 @@
# define Perl_is_strict_utf8_string is_strict_utf8_string
# define Perl_is_strict_utf8_string_loc is_strict_utf8_string_loc
# define is_strict_utf8_string_loclen Perl_is_strict_utf8_string_loclen
# define is_uni_FOO_(a,b) Perl_is_uni_FOO_(aTHX_ a,b)
# define is_uni_perl_idcont_(a) Perl_is_uni_perl_idcont_(aTHX_ a)
# define is_uni_perl_idstart_(a) Perl_is_uni_perl_idstart_(aTHX_ a)
# define is_utf8_FF_helper_ Perl_is_utf8_FF_helper_
# define is_utf8_FOO_(a,b,c) Perl_is_utf8_FOO_(aTHX_ a,b,c)
# define Perl_is_utf8_char_buf is_utf8_char_buf
# define is_utf8_char_helper_ Perl_is_utf8_char_helper_
# define Perl_is_utf8_fixed_width_buf_flags is_utf8_fixed_width_buf_flags
# define Perl_is_utf8_fixed_width_buf_loc_flags is_utf8_fixed_width_buf_loc_flags
# define is_utf8_fixed_width_buf_loclen_flags Perl_is_utf8_fixed_width_buf_loclen_flags
# define is_utf8_invariant_string_loc Perl_is_utf8_invariant_string_loc
# define is_utf8_perl_idcont_(a,b) Perl_is_utf8_perl_idcont_(aTHX_ a,b)
# define is_utf8_perl_idstart_(a,b) Perl_is_utf8_perl_idstart_(aTHX_ a,b)
# define Perl_is_utf8_string is_utf8_string
# define is_utf8_string_flags Perl_is_utf8_string_flags
# define Perl_is_utf8_string_loc is_utf8_string_loc
Expand Down Expand Up @@ -804,9 +799,14 @@
# define sync_locale() Perl_sync_locale(aTHX)
# define taint_env() Perl_taint_env(aTHX)
# define taint_proper(a,b) Perl_taint_proper(aTHX_ a,b)
# define to_uni_fold_flags_(a,b,c,d) Perl_to_uni_fold_flags_(aTHX_ a,b,c,d)
# define to_uni_lower(a,b,c) Perl_to_uni_lower(aTHX_ a,b,c)
# define to_uni_title(a,b,c) Perl_to_uni_title(aTHX_ a,b,c)
# define to_uni_upper(a,b,c) Perl_to_uni_upper(aTHX_ a,b,c)
# define to_utf8_fold_flags_(a,b,c,d,e) Perl_to_utf8_fold_flags_(aTHX_ a,b,c,d,e)
# define to_utf8_lower_flags_(a,b,c,d,e) Perl_to_utf8_lower_flags_(aTHX_ a,b,c,d,e)
# define to_utf8_title_flags_(a,b,c,d,e) Perl_to_utf8_title_flags_(aTHX_ a,b,c,d,e)
# define to_utf8_upper_flags_(a,b,c,d,e) Perl_to_utf8_upper_flags_(aTHX_ a,b,c,d,e)
# define uiv_2buf Perl_uiv_2buf
# define unpackstring(a,b,c,d,e) Perl_unpackstring(aTHX_ a,b,c,d,e)
# define unshare_hek(a) Perl_unshare_hek(aTHX_ a)
Expand Down Expand Up @@ -1579,7 +1579,7 @@
# define lossless_NV_to_IV S_lossless_NV_to_IV
# endif
# if defined(PERL_IN_PP_C) || defined(PERL_IN_UTF8_C)
# define _to_upper_title_latin1(a,b,c,d) Perl__to_upper_title_latin1(aTHX_ a,b,c,d)
# define to_upper_title_latin1_(a,b,c,d) Perl_to_upper_title_latin1_(aTHX_ a,b,c,d)
# endif
# if defined(PERL_IN_PP_CTL_C)
# define check_type_and_open(a) S_check_type_and_open(aTHX_ a)
Expand Down Expand Up @@ -1719,14 +1719,14 @@
# define sv_derived_from_svpvn(a,b,c,d,e) S_sv_derived_from_svpvn(aTHX_ a,b,c,d,e)
# endif
# if defined(PERL_IN_UTF8_C)
# define _to_utf8_case(a,b,c,d,e,f,g,h,i) S__to_utf8_case(aTHX_ a,b,c,d,e,f,g,h,i)
# define check_locale_boundary_crossing(a,b,c,d) S_check_locale_boundary_crossing(aTHX_ a,b,c,d)
# define does_utf8_overflow S_does_utf8_overflow
# define isFF_overlong S_isFF_overlong
# define is_utf8_overlong S_is_utf8_overlong
# define new_msg_hv(a,b,c) S_new_msg_hv(aTHX_ a,b,c)
# define to_case_cp_list(a,b,c,d,e,f,g,h) S_to_case_cp_list(aTHX_ a,b,c,d,e,f,g,h)
# define to_lower_latin1 S_to_lower_latin1
# define to_utf8_case_(a,b,c,d,e,f,g,h,i) S_to_utf8_case_(aTHX_ a,b,c,d,e,f,g,h,i)
# define turkic_fc(a,b,c,d) S_turkic_fc(aTHX_ a,b,c,d)
# define turkic_lc(a,b,c,d) S_turkic_lc(aTHX_ a,b,c,d)
# define turkic_uc(a,b,c,d) S_turkic_uc(aTHX_ a,b,c,d)
Expand Down Expand Up @@ -1795,10 +1795,9 @@
# endif
# endif /* defined(PERL_CORE) */
# if defined(PERL_CORE) || defined(PERL_EXT)
# define _byte_dump_string(a,b,c) Perl__byte_dump_string(aTHX_ a,b,c)
# define _inverse_folds(a,b,c) Perl__inverse_folds(aTHX_ a,b,c)
# define append_utf8_from_native_byte Perl_append_utf8_from_native_byte
# define av_reify(a) Perl_av_reify(aTHX_ a)
# define byte_dump_string_(a,b,c) Perl_byte_dump_string_(aTHX_ a,b,c)
# define cntrl_to_mnemonic Perl_cntrl_to_mnemonic
# define current_re_engine() Perl_current_re_engine(aTHX)
# define cv_ckproto_len_flags(a,b,c,d,e) Perl_cv_ckproto_len_flags(aTHX_ a,b,c,d,e)
Expand All @@ -1808,6 +1807,7 @@
# define get_deprecated_property_msg Perl_get_deprecated_property_msg
# define get_prop_definition(a) Perl_get_prop_definition(aTHX_ a)
# define get_prop_values Perl_get_prop_values
# define inverse_folds_(a,b,c) Perl_inverse_folds_(aTHX_ a,b,c)
# define load_charnames(a,b,c,d) Perl_load_charnames(aTHX_ a,b,c,d)
# define mbtowc_(a,b,c) Perl_mbtowc_(aTHX_ a,b,c)
# define mg_find_mglob(a) Perl_mg_find_mglob(aTHX_ a)
Expand Down Expand Up @@ -1989,7 +1989,7 @@
# endif
# if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_REGEXEC_C) || \
defined(PERL_IN_UTF8_C)
# define _to_fold_latin1 Perl__to_fold_latin1
# define to_fold_latin1_ Perl_to_fold_latin1_
# endif
# if defined(PERL_IN_REGCOMP_C) || defined(PERL_IN_TOKE_C)
# define regcurly Perl_regcurly
Expand Down
40 changes: 20 additions & 20 deletions gv.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,31 @@ the need to cast the result to the appropriate type.

#if defined (DEBUGGING) && defined(PERL_USE_GCC_BRACE_GROUPS) && !defined(__INTEL_COMPILER)
# define GvGP(gv) \
((GP *)(*({GV *const _gvgp = (GV *) (gv); \
assert(SvTYPE(_gvgp) == SVt_PVGV || SvTYPE(_gvgp) == SVt_PVLV); \
assert(isGV_with_GP(_gvgp)); \
&((_gvgp)->sv_u.svu_gp);})))
((GP *)(*({GV *const gvgp_ = (GV *) (gv); \
assert(SvTYPE(gvgp_) == SVt_PVGV || SvTYPE(gvgp_) == SVt_PVLV); \
assert(isGV_with_GP(gvgp_)); \
&((gvgp_)->sv_u.svu_gp);})))
# define GvGP_set(gv,gp) \
{GV *const _gvgp = (GV *) (gv); \
assert(SvTYPE(_gvgp) == SVt_PVGV || SvTYPE(_gvgp) == SVt_PVLV); \
assert(isGV_with_GP(_gvgp)); \
(_gvgp)->sv_u.svu_gp = (gp); }
{GV *const gvgp_ = (GV *) (gv); \
assert(SvTYPE(gvgp_) == SVt_PVGV || SvTYPE(gvgp_) == SVt_PVLV); \
assert(isGV_with_GP(gvgp_)); \
(gvgp_)->sv_u.svu_gp = (gp); }
# define GvFLAGS(gv) \
(*({GV *const _gvflags = (GV *) (gv); \
assert(SvTYPE(_gvflags) == SVt_PVGV || SvTYPE(_gvflags) == SVt_PVLV); \
assert(isGV_with_GP(_gvflags)); \
&(GvXPVGV(_gvflags)->xpv_cur);}))
(*({GV *const gvflags_ = (GV *) (gv); \
assert(SvTYPE(gvflags_) == SVt_PVGV || SvTYPE(gvflags_) == SVt_PVLV); \
assert(isGV_with_GP(gvflags_)); \
&(GvXPVGV(gvflags_)->xpv_cur);}))
# define GvSTASH(gv) \
(*({ GV * const _gvstash = (GV *) (gv); \
assert(isGV_with_GP(_gvstash)); \
assert(SvTYPE(_gvstash) == SVt_PVGV || SvTYPE(_gvstash) >= SVt_PVLV); \
&(GvXPVGV(_gvstash)->xnv_u.xgv_stash); \
(*({ GV * const gvstash_ = (GV *) (gv); \
assert(isGV_with_GP(gvstash_)); \
assert(SvTYPE(gvstash_) == SVt_PVGV || SvTYPE(gvstash_) >= SVt_PVLV); \
&(GvXPVGV(gvstash_)->xnv_u.xgv_stash); \
}))
# define GvNAME_HEK(gv) \
(*({ GV * const _gvname_hek = (GV *) (gv); \
assert(isGV_with_GP(_gvname_hek)); \
assert(SvTYPE(_gvname_hek) == SVt_PVGV || SvTYPE(_gvname_hek) >= SVt_PVLV); \
&(GvXPVGV(_gvname_hek)->xiv_u.xivu_namehek); \
(*({ GV * const gvname_hek_ = (GV *) (gv); \
assert(isGV_with_GP(gvname_hek_)); \
assert(SvTYPE(gvname_hek_) == SVt_PVGV || SvTYPE(gvname_hek_) >= SVt_PVLV); \
&(GvXPVGV(gvname_hek_)->xiv_u.xivu_namehek); \
}))
# define GvNAME_get(gv) ({ assert(GvNAME_HEK(gv)); (char *)HEK_KEY(GvNAME_HEK(gv)); })
# define GvNAMELEN_get(gv) ({ assert(GvNAME_HEK(gv)); HEK_LEN(GvNAME_HEK(gv)); })
Expand Down
Loading
Loading