This commit is contained in:
Nishi 2026-06-20 21:35:35 +09:00
commit 1076519311
5 changed files with 19 additions and 5 deletions

View file

@ -0,0 +1,8 @@
#ifndef __SJ_TYPES_H__
#define __SJ_TYPES_H__
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
#endif

View file

@ -42,9 +42,7 @@
#define RECURS
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
#include <sj_types.h>
typedef void (*VFunc)(
#ifndef SJ4_GLOBAL

View file

@ -40,6 +40,8 @@
#include "wchar16.h"
#include "sj_string.h"
#include <sj_types.h>
#define SPACE 0x20
#define TAB 0x09
#define EOL 0x0a

View file

@ -776,6 +776,8 @@ int sj_htok(wchar16_t* s1, wchar16_t* s2) {
*s1++ = c;
}
*s1 = (wchar16_t)'\0';
return 0;
}
int sj_ktoh(wchar16_t* s1, wchar16_t* s2) {
@ -790,4 +792,6 @@ int sj_ktoh(wchar16_t* s1, wchar16_t* s2) {
*s1++ = c;
}
*s1 = (wchar16_t)'\0';
return 0;
}

View file

@ -26,7 +26,7 @@ library() {
echo $i
if [ "$cmp" = "watcom" ]; then
owcc -Iinclude/sj4common /Iinclude/sj4compat -Iinclude/$N -bnt -c -o $i.obj $i || exit 1
owcc -Iinclude/sj4common -Iinclude/sj4compat -Iinclude/$N -bnt -c -o $i.obj $i || exit 1
elif [ "$cmp" = "msvc" ]; then
cl.exe /nologo /Iinclude/sj4common /Iinclude/sj4compat /Iinclude/$N /c /Fo$i.obj $i || exit 1
fi
@ -63,7 +63,9 @@ executable() {
fi
}
library sj4common
library sj4core
library sj4rkcv
executable sj4mkdic
executable sj4test sj4core.lib
executable sj4test "sj4common.lib sj4core.lib"