diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-02-14 12:31:44 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-02-14 16:32:51 +0000 |
commit | d931b1bedc59d4625c59047dfda2b1bd83ff9f71 (patch) | |
tree | b6df8c2182b2f94b636bf68a400342316d8039bb /proto.h | |
parent | 1c90055717b05b3f652bf543a46419001314c53e (diff) | |
download | perl-d931b1bedc59d4625c59047dfda2b1bd83ff9f71.tar.gz |
Convert Perl_sv_pos_u2b_proper() to Perl_sv_pos_u2b_flags().
Change from a value/return offset pointer to passing a Unicode offset, and
returning a byte offset. The optional length value/return pointer remains.
Add a flags argument, passed to SvPV_flags(). This allows the caller to
specify whether mg_get() should be called on sv.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3374,10 +3374,10 @@ PERL_CALLCONV void Perl_sv_pos_u2b(pTHX_ SV *const sv, I32 *const offsetp, I32 * #define PERL_ARGS_ASSERT_SV_POS_U2B \ assert(offsetp) -PERL_CALLCONV void Perl_sv_pos_u2b_proper(pTHX_ SV *const sv, STRLEN *const offsetp, STRLEN *const lenp) - __attribute__nonnull__(pTHX_2); -#define PERL_ARGS_ASSERT_SV_POS_U2B_PROPER \ - assert(offsetp) +PERL_CALLCONV STRLEN Perl_sv_pos_u2b_flags(pTHX_ SV *const sv, STRLEN uoffset, STRLEN *const lenp, U32 flags) + __attribute__nonnull__(pTHX_1); +#define PERL_ARGS_ASSERT_SV_POS_U2B_FLAGS \ + assert(sv) PERL_CALLCONV void Perl_sv_pos_b2u(pTHX_ SV *const sv, I32 *const offsetp) __attribute__nonnull__(pTHX_2); |