several fixes

This commit is contained in:
Nishi 2026-09-23 10:17:59 +09:00
commit 08a811315b
3 changed files with 7 additions and 0 deletions

View file

@ -5,9 +5,12 @@
#include "sj_string.h"
#include <string.h>
#include <stdio.h>
#ifdef UCS
static u_int ucs_to_euc(u_int in) {
if(in == 0x3094) in = 0x30f4;
if(in <= 0xffff) {
const T_U2E_BITMAP_INDEX* b = &utf16_to_euc_jp_table[(in >> 8) & 0xff];

View file

@ -50,6 +50,8 @@ Sj4Ime* sj4_ime(int charset, const char* dict, Sj4ImePacket packet) {
ime->charset = charset;
ime->packet = packet;
return ime;
}
static int w_len(wchar_t* wc) {