From f0a2f53e300114575535de4f3057e022ac925ec8 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Fri, 21 Sep 2007 07:22:29 +0000 Subject: [PATCH] unicode --- common/arch.h | 1 + common/os_calls.c | 14 ++++++++++++++ common/os_calls.h | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/common/arch.h b/common/arch.h index 2f3c51a2..6e62f11a 100644 --- a/common/arch.h +++ b/common/arch.h @@ -76,5 +76,6 @@ typedef int ti32; typedef unsigned int tui32; typedef signed int tsi32; typedef long tbus; +typedef int twchar; #endif diff --git a/common/os_calls.c b/common/os_calls.c index bbbe5e73..65cc6206 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -1074,6 +1074,20 @@ g_pos(char* str, const char* to_find) return (pp - str); } +/*****************************************************************************/ +int APP_CC +g_mbstowcs(twchar* dest, const char* src, int n) +{ + return mbstowcs(dest, src, n); +} + +/*****************************************************************************/ +int APP_CC +g_wcstombs(char* dest, const twchar* src, int n) +{ + return wcstombs(dest, src, n); +} + /*****************************************************************************/ long APP_CC g_load_library(char* in) diff --git a/common/os_calls.h b/common/os_calls.h index 79c07093..4146c539 100644 --- a/common/os_calls.h +++ b/common/os_calls.h @@ -153,6 +153,10 @@ int APP_CC g_atoi(char* str); int APP_CC g_pos(char* str, const char* to_find); +int APP_CC +g_mbstowcs(twchar* dest, const char* src, int n); +int APP_CC +g_wcstombs(char* dest, const twchar* src, int n); long APP_CC g_load_library(char* in); int APP_CC