Browse Subversion Repository
Diff of /trunk/teraterm/ttpcmn/ttcmn.c
Parent Directory
| Revision Log
| Patch
| 48 |
|
|
| 49 |
#include "compat_w95.h" |
#include "compat_w95.h" |
| 50 |
#include "tt_res.h" |
#include "tt_res.h" |
| 51 |
|
#include "ttcommon.h" |
| 52 |
#include "codeconv.h" |
#include "codeconv.h" |
| 53 |
|
|
| 54 |
// TMap を格納するファイルマッピングオブジェクト(共有メモリ)の名前 |
// TMap を格納するファイルマッピングオブジェクト(共有メモリ)の名前 |
| 1919 |
return i; |
return i; |
| 1920 |
} |
} |
| 1921 |
|
|
| 1922 |
|
// TODO: UTF-16から直接変換して出力する |
| 1923 |
|
int WINAPI CommTextOutW(PComVar cv, const wchar_t *B, int C) |
| 1924 |
|
{ |
| 1925 |
|
int CodePage = *cv->CodePage; |
| 1926 |
|
size_t mb_len; |
| 1927 |
|
int r; |
| 1928 |
|
char *mb_str = _WideCharToMultiByte(B, C, CodePage, &mb_len); |
| 1929 |
|
if (mb_str == NULL) { |
| 1930 |
|
r = 0; |
| 1931 |
|
} else { |
| 1932 |
|
r = CommTextOut(cv, mb_str, mb_len); |
| 1933 |
|
free(mb_str); |
| 1934 |
|
} |
| 1935 |
|
return r; |
| 1936 |
|
} |
| 1937 |
|
|
| 1938 |
|
// TODO: UTF-16から直接変換して出力する |
| 1939 |
|
int WINAPI CommTextEchoW(PComVar cv, const wchar_t *B, int C) |
| 1940 |
|
{ |
| 1941 |
|
int CodePage = *cv->CodePage; |
| 1942 |
|
size_t mb_len; |
| 1943 |
|
int r; |
| 1944 |
|
char *mb_str = _WideCharToMultiByte(B, C, CodePage, &mb_len); |
| 1945 |
|
if (mb_str == NULL) { |
| 1946 |
|
r = 0; |
| 1947 |
|
} else { |
| 1948 |
|
r = CommTextEcho(cv, mb_str, mb_len); |
| 1949 |
|
free(mb_str); |
| 1950 |
|
} |
| 1951 |
|
return r; |
| 1952 |
|
} |
| 1953 |
|
|
| 1954 |
int WINAPI CommBinaryEcho(PComVar cv, PCHAR B, int C) |
int WINAPI CommBinaryEcho(PComVar cv, PCHAR B, int C) |
| 1955 |
{ |
{ |
| 1956 |
int a, i, Len; |
int a, i, Len; |
|
|
Legend:
| Removed from v.7466 |
|
| changed lines |
| |
Added in v.7484 |
|
|
| |