WIP Windows fix
This commit is contained in:
parent
5e3b8b3b12
commit
5d268b1f36
7 changed files with 64 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue