home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 January / VPR0101A.BIN / OLS / TAR32053 / tar32053.exe / SRC / DEFS.H < prev    next >
C/C++ Source or Header  |  1999-05-23  |  2KB  |  72 lines

  1. //#ifndef __DEFCONF_H
  2. //#include "defconf.h"
  3. //#endif
  4. /*
  5.    This file was hacked for kmtar PowerUpKit v3.7
  6.                                     at 1995-03-04.
  7.                                     by tantan SGL00213@niftyserve.or.jp 
  8. */
  9. typedef    char    bool;
  10. #define    YES    1
  11. #define    NO    0
  12. typedef unsigned short ushort;
  13. typedef unsigned int uint;
  14. typedef unsigned long ulong;
  15. #define AT 10
  16. #define PC98 11
  17. #define FM    12
  18.  
  19. #define    global
  20.  
  21. #if    LSI_C
  22.     #include    <farstr.h>
  23.     #include    <dos.h>
  24.     #define    _far_malloc(a)    farmalloc(a)
  25.     #define    _far_realloc(a,b)    farrealloc(a,b)
  26.     #define    _far_memcpy(a,b,c)    far_memcpy(a,b,c)
  27.     #define    _far_strdup(a)    lsi_far_strdup(a)
  28.     #define    _far_strcmp(a,b)    far_strcmp(a,b)
  29.     #define    _far_strcpy(a,b)    far_strcpy(a,b)
  30.     #define    _far_strlen(a)    far_strlen(a)
  31.     #define    _far_free(a)    farfree(a)
  32.     static char far *lsi_far_strdup(char far *str);
  33. #elif    defined(__GO32__) || TOWNS_GPP
  34.     #define    far
  35.     #define    _far_malloc(a)    malloc(a)
  36.     #define    _far_realloc(a,b)    realloc(a,b)
  37.     #define    _far_memcpy(a,b,c)    memcpy(a,b,c)
  38.     #define    _far_strdup(a)    strdup(a)
  39.     #define    _far_strcmp(a,b)    strcmp(a,b)
  40.     #define    _far_strcpy(a,b)    strcpy(a,b)
  41.     #define    _far_strlen(a)    strlen(a)
  42.     #define    _far_free(a)    free(a)
  43. #elif    MSC 
  44.     #ifdef    WIN32
  45.      #define  far
  46.      #define  find_t _finddata_t
  47.      #define  _dos_findfirst _findfirst
  48.      #define  _dos_findnext _findnext
  49.     #endif
  50.     #define    _far_malloc(a)    _fmalloc((size_t)a)
  51.     #define    _far_free(a)    _ffree(a)
  52.     #define    _far_realloc(a,b)    _frealloc(a,(size_t)b)
  53.     #define    _far_memcpy(a,b,c)    _fmemcpy(a,b,c)
  54.     #define    _far_strdup(a)    _fstrdup(a)
  55.     #define    _far_strcmp(a,b)    _fstrcmp(a,b)
  56.     #define    _far_strcpy(a,b)    _fstrcpy(a,b)
  57.     #include    <malloc.h>
  58. #endif
  59.  
  60. #define UCH(c)  ((unsigned char)(c))
  61. #define isk1(c) ((0x81<=UCH(c)&&UCH(c)<=0x9F)||(0xE0<=UCH(c)&&UCH(c)<=0xFC))
  62. #define isk2(c) ((0x40<=UCH(c)&&UCH(c)<=0x7E)||(0x80<=UCH(c)&&UCH(c)<=0xFC))
  63. #define    iskanji(c)    isk1(c)
  64. #define    iskanji2(c)    isk2(c)
  65. #define iskana(c)    (UCH(c) >= 0xa6 && UCH(c)< 0xe0)
  66. #define    MAXARG    1000   /* Use main.c and chkfname.c */
  67. #ifdef    WIN32
  68. #define FNAME_BUF  300
  69. #else
  70. #define FNAME_BUF  100
  71. #endif
  72.