#include #include #include #ifndef UNIX # include #endif extern char *strcpy(), *strchr(); #ifndef LSI_C # define is_upper(c) (isascii(c) && isupper(c)) # define is_alnum(c) (isascii(c) && isalnum(c)) # define is_print(c) (isascii(c) && isprint(c)) #else # define is_upper(c) isupper(c) # define is_alnum(c) isalnum(c) # define is_print(c) isprint(c) #endif #ifndef iskanji # define iskanji(c) \ (0x81 <= (unsigned)(c) && (unsigned)(c) <= 0x9f || \ 0xe0 <= (unsigned)(c) && (unsigned)(c) <= 0xfc) #endif #ifndef LSI_C # define fsetbin(fp) setmode(fileno(fp), O_BINARY) #endif #define MAXPATHLEN 128 #define DEFAULT_LEN 54 /* 出力の行長のデフォルト。hdr_data.cの comtdat1[n], comtdat2[n] の長さの 最大以上であること */ #define QSTRLEN 12 #define MAXOSIZE 65200L /* 0xFEB0 */