This commit is contained in:
Nishi 2026-06-21 16:55:56 +09:00
commit 69776245a7
20 changed files with 59721 additions and 58907 deletions

View file

@ -85,10 +85,26 @@ Sj4Context* alloccontext(const char* dic) {
DictFile* dict;
DICTL* node;
ctx->work = calloc(1, sizeof(*ctx->work));
ctx->stdy = calloc(1, sizeof(*ctx->stdy));
if((ctx->work = calloc(1, sizeof(*ctx->work))) == NULL) {
free(ctx);
return NULL;
}
if((ctx->stdy = calloc(1, sizeof(*ctx->stdy))) == NULL) {
free(ctx->work);
free(ctx);
return NULL;
}
if((node = calloc(1, sizeof(*node))) == NULL) {
free(ctx->stdy);
free(ctx->work);
free(ctx);
return NULL;
}
node = calloc(1, sizeof(*node));
ctx->work->Jdictlist = node;
initwork(ctx);