summaryrefslogtreecommitdiff
path: root/dist/IO
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-03-25 13:09:09 -0600
committerKarl Williamson <public@khwilliamson.com>2013-09-10 21:02:58 -0600
commit6f2d5cbcfe6275cad930b63e81bfd159b3964944 (patch)
treee0394a94a69d8e3922dffab69c5ea80399aef261 /dist/IO
parentc11b1469027c6226458c10ea61522ddcdbee226c (diff)
downloadperl-6f2d5cbcfe6275cad930b63e81bfd159b3964944.tar.gz
Use separate macros for byte vs uv Unicode
This removes a macro not yet even in a development release, and splits its calls into two classes: those where the input is a byte; and those where it can be any unsigned integer. The byte implementation avoids a function call on EBCDIC platforms.
Diffstat (limited to 'dist/IO')
-rw-r--r--dist/IO/IO.pm2
-rw-r--r--dist/IO/IO.xs2
2 files changed, 2 insertions, 2 deletions
diff --git a/dist/IO/IO.pm b/dist/IO/IO.pm
index 35aba10558..21583f5329 100644
--- a/dist/IO/IO.pm
+++ b/dist/IO/IO.pm
@@ -7,7 +7,7 @@ use Carp;
use strict;
use warnings;
-our $VERSION = "1.28";
+our $VERSION = "1.29";
XSLoader::load 'IO', $VERSION;
sub import {
diff --git a/dist/IO/IO.xs b/dist/IO/IO.xs
index c603456c30..5ae41aed2d 100644
--- a/dist/IO/IO.xs
+++ b/dist/IO/IO.xs
@@ -337,7 +337,7 @@ ungetc(handle, c)
croak("Negative character number in ungetc()");
v = SvUV(c);
- if (NATIVE_IS_INVARIANT(v) || (v <= 0xFF && !PerlIO_isutf8(handle)))
+ if (UVCHR_IS_INVARIANT(v) || (v <= 0xFF && !PerlIO_isutf8(handle)))
RETVAL = PerlIO_ungetc(handle, (int)v);
else {
U8 buf[UTF8_MAXBYTES + 1], *end;