WIP Windows fix

This commit is contained in:
Nishi 2026-06-25 20:18:21 +09:00
commit 5d268b1f36
7 changed files with 64 additions and 21 deletions

View file

@ -1 +1,19 @@
#include <sj_ime.h>
#include <sj4ime.h>
#include <stdlib.h>
struct sj4ime {
Sj4Lib* lib;
};
Sj4Ime* sj4_ime(int charset, const char* dict) {
Sj4Ime* ime;
if((ime = calloc(1, sizeof(*ime))) == NULL) return NULL;
if((ime->lib = sj4_open(charset, dict)) == NULL) {
free(ime);
return NULL;
}
}