summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-07-12 13:39:19 +0100
committerNicholas Clark <nick@ccl4.org>2010-07-12 13:46:23 +0100
commit9df83ffded21f5c1d01d1ef847c3447b6553810f (patch)
tree1991f07e53136227c824cb719a2c14fdd74a4a27 /proto.h
parent6ef2ab89d2567e144b289574a2e087dd7eec7894 (diff)
downloadperl-9df83ffded21f5c1d01d1ef847c3447b6553810f.tar.gz
Create S_assert_uft8_cache_coherent() with one copy of the cache panic code.
Replacing 4 copies of this debugging-only routine with 1 reduces source and object code size.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index f90c131611..1824377d3b 100644
--- a/proto.h
+++ b/proto.h
@@ -5855,6 +5855,12 @@ STATIC STRLEN S_sv_pos_b2u_midway(pTHX_ const U8 *const s, const U8 *const targe
#define PERL_ARGS_ASSERT_SV_POS_B2U_MIDWAY \
assert(s); assert(target); assert(end)
+STATIC void S_assert_uft8_cache_coherent(pTHX_ const char *const func, STRLEN from_cache, STRLEN real, SV *const sv)
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_4);
+#define PERL_ARGS_ASSERT_ASSERT_UFT8_CACHE_COHERENT \
+ assert(func); assert(sv)
+
STATIC char * S_F0convert(NV nv, char *const endbuf, STRLEN *const len)
__attribute__nonnull__(2)
__attribute__nonnull__(3);