diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-11-11 10:55:27 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-11-11 10:55:27 +0000 |
commit | e8c9c9d4ce82614b4d0361228e3acb9ed1d4ddf0 (patch) | |
tree | 8cde39d8f8918770b0dff75b1dbfadbd0f7ed70c /sv.h | |
parent | 31c72c81d58f35758d79ae5790bfaf21252bb22e (diff) | |
download | perl-e8c9c9d4ce82614b4d0361228e3acb9ed1d4ddf0.tar.gz |
Inline sv_cmp() and sv_cmp_locale() as macros wrapping their flags variants.
We can't move Perl_sv_cmp() and Perl_sv_cmp_locale() to mathoms.c, as they
are referenced by function pointer in pp_sort.c - pointers which require the
specific current calling signature.
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1848,6 +1848,8 @@ mg.c:1024: warning: left-hand operand of comma expression has no effect #define sv_2uv(sv) sv_2uv_flags(sv, SV_GMAGIC) #define sv_2nv(sv) sv_2nv_flags(sv, SV_GMAGIC) #define sv_eq(sv1, sv2) sv_eq_flags(sv1, sv2, SV_GMAGIC) +#define sv_cmp(sv1, sv2) sv_cmp_flags(sv1, sv2, SV_GMAGIC) +#define sv_cmp_locale(sv1, sv2) sv_cmp_locale_flags(sv1, sv2, SV_GMAGIC) #define sv_collxfrm(sv, nxp) sv_cmp_flags(sv, nxp, SV_GMAGIC) #define sv_2bool(sv) sv_2bool_flags(sv, SV_GMAGIC) #define sv_insert(bigstr, offset, len, little, littlelen) \ |