diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-08-21 10:22:00 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-08-25 23:21:28 -0600 |
commit | 218282dfcfa77fc6f19c73eba96331bbd064f1f0 (patch) | |
tree | 4a6b0e0dd57b8a1aaaadbe80fb63c384a7c1dfab | |
parent | 41de4811adc75d5bdcab9665a1cc19816e43c703 (diff) | |
download | perl-218282dfcfa77fc6f19c73eba96331bbd064f1f0.tar.gz |
Comment out unused function
In looking at \X handling, I noticed that this function which is
intended for use in it, actually isn't used. This function may someday
be useful, so I'm leaving the source in.
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | embed.h | 1 | ||||
-rw-r--r-- | embedvar.h | 1 | ||||
-rw-r--r-- | intrpvar.h | 1 | ||||
-rw-r--r-- | proto.h | 6 | ||||
-rw-r--r-- | sv.c | 2 | ||||
-rw-r--r-- | utf8.c | 2 |
7 files changed, 4 insertions, 11 deletions
@@ -665,7 +665,7 @@ EXpR |bool |is_utf8_X_extend |NN const U8 *p EXpR |bool |is_utf8_X_prepend |NN const U8 *p EXpR |bool |is_utf8_X_non_hangul |NN const U8 *p EXpR |bool |is_utf8_X_L |NN const U8 *p -EXpR |bool |is_utf8_X_LV |NN const U8 *p +:not currently used EXpR |bool |is_utf8_X_LV |NN const U8 *p EXpR |bool |is_utf8_X_LVT |NN const U8 *p EXpR |bool |is_utf8_X_LV_LVT_V |NN const U8 *p EXpR |bool |is_utf8_X_T |NN const U8 *p @@ -856,7 +856,6 @@ #define av_reify(a) Perl_av_reify(aTHX_ a) #define current_re_engine() Perl_current_re_engine(aTHX) #define is_utf8_X_L(a) Perl_is_utf8_X_L(aTHX_ a) -#define is_utf8_X_LV(a) Perl_is_utf8_X_LV(aTHX_ a) #define is_utf8_X_LVT(a) Perl_is_utf8_X_LVT(aTHX_ a) #define is_utf8_X_LV_LVT_V(a) Perl_is_utf8_X_LV_LVT_V(aTHX_ a) #define is_utf8_X_T(a) Perl_is_utf8_X_T(aTHX_ a) diff --git a/embedvar.h b/embedvar.h index a2138ecdae..77109e73b5 100644 --- a/embedvar.h +++ b/embedvar.h @@ -354,7 +354,6 @@ #define PL_unlockhook (vTHX->Iunlockhook) #define PL_unsafe (vTHX->Iunsafe) #define PL_utf8_X_L (vTHX->Iutf8_X_L) -#define PL_utf8_X_LV (vTHX->Iutf8_X_LV) #define PL_utf8_X_LVT (vTHX->Iutf8_X_LVT) #define PL_utf8_X_LV_LVT_V (vTHX->Iutf8_X_LV_LVT_V) #define PL_utf8_X_T (vTHX->Iutf8_X_T) diff --git a/intrpvar.h b/intrpvar.h index d3fa7fa985..218679a9bf 100644 --- a/intrpvar.h +++ b/intrpvar.h @@ -631,7 +631,6 @@ PERLVAR(I, utf8_X_extend, SV *) PERLVAR(I, utf8_X_prepend, SV *) PERLVAR(I, utf8_X_non_hangul, SV *) PERLVAR(I, utf8_X_L, SV *) -PERLVAR(I, utf8_X_LV, SV *) PERLVAR(I, utf8_X_LVT, SV *) PERLVAR(I, utf8_X_T, SV *) PERLVAR(I, utf8_X_V, SV *) @@ -1770,12 +1770,6 @@ PERL_CALLCONV bool Perl_is_utf8_X_L(pTHX_ const U8 *p) #define PERL_ARGS_ASSERT_IS_UTF8_X_L \ assert(p) -PERL_CALLCONV bool Perl_is_utf8_X_LV(pTHX_ const U8 *p) - __attribute__warn_unused_result__ - __attribute__nonnull__(pTHX_1); -#define PERL_ARGS_ASSERT_IS_UTF8_X_LV \ - assert(p) - PERL_CALLCONV bool Perl_is_utf8_X_LVT(pTHX_ const U8 *p) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); @@ -13369,7 +13369,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, PL_utf8_X_prepend = sv_dup_inc(proto_perl->Iutf8_X_prepend, param); PL_utf8_X_non_hangul = sv_dup_inc(proto_perl->Iutf8_X_non_hangul, param); PL_utf8_X_L = sv_dup_inc(proto_perl->Iutf8_X_L, param); - PL_utf8_X_LV = sv_dup_inc(proto_perl->Iutf8_X_LV, param); + /*not currently used: PL_utf8_X_LV = sv_dup_inc(proto_perl->Iutf8_X_LV, param);*/ PL_utf8_X_LVT = sv_dup_inc(proto_perl->Iutf8_X_LVT, param); PL_utf8_X_T = sv_dup_inc(proto_perl->Iutf8_X_T, param); PL_utf8_X_V = sv_dup_inc(proto_perl->Iutf8_X_V, param); @@ -2264,6 +2264,7 @@ Perl_is_utf8_X_L(pTHX_ const U8 *p) #define SCount 11172 /* Length of block */ #define TCount 28 +#if 0 /* This routine is not currently used */ bool Perl_is_utf8_X_LV(pTHX_ const U8 *p) { @@ -2291,6 +2292,7 @@ Perl_is_utf8_X_LV(pTHX_ const U8 *p) && cp >= SBASE && cp < SBASE + SCount && (cp - SBASE) % TCount == 0); /* Only every TCount one is LV */ } +#endif bool Perl_is_utf8_X_LVT(pTHX_ const U8 *p) |