home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2001 January
/
VPR0101A.BIN
/
OLS
/
TAR32053
/
tar32053.exe
/
SRC
/
DEFS.H
< prev
next >
Wrap
C/C++ Source or Header
|
1999-05-23
|
2KB
|
72 lines
//#ifndef __DEFCONF_H
//#include "defconf.h"
//#endif
/*
This file was hacked for kmtar PowerUpKit v3.7
at 1995-03-04.
by tantan SGL00213@niftyserve.or.jp
*/
typedef char bool;
#define YES 1
#define NO 0
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
#define AT 10
#define PC98 11
#define FM 12
#define global
#if LSI_C
#include <farstr.h>
#include <dos.h>
#define _far_malloc(a) farmalloc(a)
#define _far_realloc(a,b) farrealloc(a,b)
#define _far_memcpy(a,b,c) far_memcpy(a,b,c)
#define _far_strdup(a) lsi_far_strdup(a)
#define _far_strcmp(a,b) far_strcmp(a,b)
#define _far_strcpy(a,b) far_strcpy(a,b)
#define _far_strlen(a) far_strlen(a)
#define _far_free(a) farfree(a)
static char far *lsi_far_strdup(char far *str);
#elif defined(__GO32__) || TOWNS_GPP
#define far
#define _far_malloc(a) malloc(a)
#define _far_realloc(a,b) realloc(a,b)
#define _far_memcpy(a,b,c) memcpy(a,b,c)
#define _far_strdup(a) strdup(a)
#define _far_strcmp(a,b) strcmp(a,b)
#define _far_strcpy(a,b) strcpy(a,b)
#define _far_strlen(a) strlen(a)
#define _far_free(a) free(a)
#elif MSC
#ifdef WIN32
#define far
#define find_t _finddata_t
#define _dos_findfirst _findfirst
#define _dos_findnext _findnext
#endif
#define _far_malloc(a) _fmalloc((size_t)a)
#define _far_free(a) _ffree(a)
#define _far_realloc(a,b) _frealloc(a,(size_t)b)
#define _far_memcpy(a,b,c) _fmemcpy(a,b,c)
#define _far_strdup(a) _fstrdup(a)
#define _far_strcmp(a,b) _fstrcmp(a,b)
#define _far_strcpy(a,b) _fstrcpy(a,b)
#include <malloc.h>
#endif
#define UCH(c) ((unsigned char)(c))
#define isk1(c) ((0x81<=UCH(c)&&UCH(c)<=0x9F)||(0xE0<=UCH(c)&&UCH(c)<=0xFC))
#define isk2(c) ((0x40<=UCH(c)&&UCH(c)<=0x7E)||(0x80<=UCH(c)&&UCH(c)<=0xFC))
#define iskanji(c) isk1(c)
#define iskanji2(c) isk2(c)
#define iskana(c) (UCH(c) >= 0xa6 && UCH(c)< 0xe0)
#define MAXARG 1000 /* Use main.c and chkfname.c */
#ifdef WIN32
#define FNAME_BUF 300
#else
#define FNAME_BUF 100
#endif