From 69240efd70fee399a5232ed995c383b154000a08 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 5 Jan 2008 11:30:31 +0000 Subject: BER is all very well, but it turns out that it's better to store the offset as either a byte (if <256), or a 0 byte with a STRLEN before. "better" in that the reading can be inlined, and even then the object code is smaller (function calls have space overhead). So goodbye Perl_sv_read_offset() and hello SvOOK_offset(). p4raw-id: //depot/perl@32838 --- proto.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'proto.h') diff --git a/proto.h b/proto.h index d276e3a0ce..5bbb5935a3 100644 --- a/proto.h +++ b/proto.h @@ -2355,9 +2355,6 @@ PERL_CALLCONV char* Perl_sv_pvutf8n_force(pTHX_ SV* sv, STRLEN* lp) PERL_CALLCONV char* Perl_sv_pvbyten_force(pTHX_ SV* sv, STRLEN* lp) __attribute__nonnull__(pTHX_1); -PERL_CALLCONV UV Perl_sv_read_offset(pTHX_ const SV *const sv) - __attribute__nonnull__(pTHX_1); - PERL_CALLCONV char* Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding) __attribute__nonnull__(pTHX_1) __attribute__nonnull__(pTHX_2); -- cgit v1.2.1