summaryrefslogtreecommitdiff
path: root/src/os_mac_conv.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-08-30 21:55:26 +0000
committerBram Moolenaar <Bram@vim.org>2005-08-30 21:55:26 +0000
commitda2303d96b0f55d30e9b5b57d3459d5e1ea22ec2 (patch)
tree08f61aa2e9937f30bd141fd6509bc947e1d8a8fa /src/os_mac_conv.c
parentac6e65f88da446bc764ff13a23d854fd72ffedcf (diff)
downloadvim-git-da2303d96b0f55d30e9b5b57d3459d5e1ea22ec2.tar.gz
updated for version 7.0139v7.0139
Diffstat (limited to 'src/os_mac_conv.c')
-rw-r--r--src/os_mac_conv.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c
index c255e736d..fbce5770d 100644
--- a/src/os_mac_conv.c
+++ b/src/os_mac_conv.c
@@ -17,17 +17,6 @@
#include "vim.h"
#ifdef FEAT_MBYTE
-extern char_u *mac_string_convert __ARGS((char_u *ptr, int len, int *lenp, int fail_on_error, int from, int to, int *unconvlenp));
-extern int macroman2enc __ARGS((char_u *ptr, long *sizep, long real_size));
-extern int enc2macroman __ARGS((char_u *from, size_t fromlen, char_u *to, int *tolenp, int maxtolen, char_u *rest, int *restlenp));
-
-extern void mac_conv_init __ARGS((void));
-extern void mac_conv_cleanup __ARGS((void));
-extern char_u *mac_utf16_to_enc __ARGS((UniChar *from, size_t fromLen, size_t *actualLen));
-extern UniChar *mac_enc_to_utf16 __ARGS((char_u *from, size_t fromLen, size_t *actualLen));
-extern CFStringRef mac_enc_to_cfstring __ARGS((char_u *from, size_t fromLen));
-extern char_u *mac_precompose_path __ARGS((char_u *decompPath, size_t decompLen, size_t *precompLen));
-
static char_u *mac_utf16_to_utf8 __ARGS((UniChar *from, size_t fromLen, size_t *actualLen));
static UniChar *mac_utf8_to_utf16 __ARGS((char_u *from, size_t fromLen, size_t *actualLen));
@@ -114,7 +103,7 @@ mac_string_convert(ptr, len, lenp, fail_on_error, from_enc, to_enc, unconvlenp)
if (!CFStringGetBytes(cfstr, convertRange, to, NULL, FALSE, retval, buflen, NULL))
#endif
- if (!CFStringGetCString(cfstr, retval, buflen, to))
+ if (!CFStringGetCString(cfstr, (char *)retval, buflen, to))
{
CFRelease(cfstr);
if (fail_on_error)
@@ -140,14 +129,14 @@ mac_string_convert(ptr, len, lenp, fail_on_error, from_enc, to_enc, unconvlenp)
}
else
{
- if (!CFStringGetCString(cfstr, d, buflen - out, to))
+ if (!CFStringGetCString(cfstr, (char *)d, buflen - out, to))
{
*d++ = '?';
out++;
}
else
{
- i = strlen(d);
+ i = STRLEN(d);
d += i;
out += i;
}
@@ -162,7 +151,7 @@ mac_string_convert(ptr, len, lenp, fail_on_error, from_enc, to_enc, unconvlenp)
}
CFRelease(cfstr);
if (lenp != NULL)
- *lenp = strlen(retval);
+ *lenp = STRLEN(retval);
return retval;
}