diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-10 07:02:38 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-10 07:02:38 +0000 |
commit | dfe13c55d349c8cc782995becdedd62551082672 (patch) | |
tree | c0554f0cd4de1bffa629f662539d3b0654f8b3f4 /doop.c | |
parent | 2aea9f8a7ec940891eef705f344a93a3b76154a2 (diff) | |
download | perl-dfe13c55d349c8cc782995becdedd62551082672.tar.gz |
various tweaks: fix signed vs. unsigned problems that prevented C++
builds; add sundry PERL_OBJECT scaffolding to get it to build; fix
lexical warning testsuite for win32
p4raw-id: //depot/perl@1777
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -42,7 +42,6 @@ do_trans(SV *sv, OP *arg) UV final; register UV uv; UV puv; - char *dst; register I32 from_utf = PL_op->op_private & OPpTRANS_FROM_UTF; register I32 to_utf = PL_op->op_private & OPpTRANS_TO_UTF; @@ -155,7 +154,7 @@ do_trans(SV *sv, OP *arg) } else { while (s < send) { - char tmpbuf[10]; + U8 tmpbuf[10]; uv_to_utf8(tmpbuf, *s); /* XXX suboptimal */ if (swash_fetch(rv, tmpbuf) < none) matches++; @@ -175,7 +174,7 @@ do_trans(SV *sv, OP *arg) if (svp) final = SvUV(*svp); - Newz(801, d, len * (bits >> 3) + 1, char); + Newz(801, d, len * (bits >> 3) + 1, U8); dst = d; puv = 0xfeedface; @@ -184,7 +183,7 @@ do_trans(SV *sv, OP *arg) if (from_utf) uv = swash_fetch(rv, s); else { - char tmpbuf[10]; + U8 tmpbuf[10]; uv_to_utf8(tmpbuf, *s); /* XXX suboptimal */ uv = swash_fetch(rv, tmpbuf); } @@ -233,7 +232,7 @@ do_trans(SV *sv, OP *arg) if (from_utf) uv = swash_fetch(rv, s); else { - char tmpbuf[10]; + U8 tmpbuf[10]; uv_to_utf8(tmpbuf, *s); /* XXX suboptimal */ uv = swash_fetch(rv, tmpbuf); } @@ -272,7 +271,7 @@ do_trans(SV *sv, OP *arg) s += UTF8SKIP(s); } } - sv_usepvn_mg(sv, dst, d - dst); + sv_usepvn_mg(sv, (char*)dst, d - dst); } return matches; } |