Fix several bugs

This commit is contained in:
Nishi 2026-06-20 21:16:45 +09:00
commit ef900e7358
9 changed files with 24 additions and 15 deletions

View file

@ -162,6 +162,9 @@ typedef struct sj4context {
JREC* jrec_pool;
CLREC* clrec_free;
CLREC* clrec_pool;
DictFile* dictlink;
StdyFile* stdylink;
} Sj4Context;
#endif

View file

@ -8,8 +8,8 @@
#if defined(_MSC_VER)
#if defined(_MSC_VER) && _MSC_VER < 1900
static int __inline sj4_snprintf(char* buffer, size_t count, const char* fmt, ...){
int st;
static int __inline sj4_snprintf(char* buffer, size_t count, const char* fmt, ...) {
int st;
va_list va;
va_start(va, fmt);

View file

@ -241,8 +241,8 @@ int closedict(SJ4_CONTEXT DictFile*);
void lock_dict(DictFile*, int);
void unlock_dict(DictFile*, int);
int is_dict_locked(DictFile*);
StdyFile* openstdy(char*, char*);
int closestdy(StdyFile*);
StdyFile* openstdy(SJ4_CONTEXT char*, char*);
int closestdy(SJ4_CONTEXT StdyFile*);
int putstydic(SJ4_CONTEXT2);
int putcldic(SJ4_CONTEXT2);
int makedict(char*, int, int, int);