summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-03 07:36:31 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-03 07:36:31 +0000
commited22e8690ba1d53442f6de26308c1cfd7b59bf18 (patch)
tree7ced5a6377799802699977cef141773186b9caba /pack.c
parent4a2088a7742d1905a687df9add8d087629e0a327 (diff)
* pack.c (rb_utf8_to_uv), intern.h: Rename utf8_to_uv to
rb_utf8_to_uv and export. * re.c (str_ord): Backport String#ord from 1.9 (sort of); requested by Shinichiro Hamaji in [ruby-dev:37247]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pack.c b/pack.c
index 610cb30a0f..bd6546cd76 100644
--- a/pack.c
+++ b/pack.c
@@ -370,7 +370,6 @@ static void encodes _((VALUE,const char*,long,int));
static void qpencode _((VALUE,VALUE,long));
static int uv_to_utf8 _((char*,unsigned long));
-static unsigned long utf8_to_uv _((char*,long*));
/*
* call-seq:
@@ -1722,7 +1721,7 @@ pack_unpack(str, fmt)
long alen = send - s;
unsigned long l;
- l = utf8_to_uv(s, &alen);
+ l = rb_utf8_to_uv(s, &alen);
s += alen; len--;
rb_ary_push(ary, ULONG2NUM(l));
}
@@ -2054,8 +2053,8 @@ static const unsigned long utf8_limits[] = {
0x80000000, /* 7 */
};
-static unsigned long
-utf8_to_uv(p, lenp)
+unsigned long
+rb_utf8_to_uv(p, lenp)
char *p;
long *lenp;
{