home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / HDX_BACK / HDX401.ATB / MYDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  2.6 KB  |  74 lines

  1. /* defs.h */
  2.  
  3.  
  4. #define    RESOURCEFILE    "BOOKFMT.RSC"    /* Resource file for main */
  5. #define OKFMT        "  Format Completed.    | |"
  6. #define CANTFMT            "Error Attempting Format."
  7. #define    WCAPFILE    "WINCAP"    /* name of winnie-cap file */
  8.  
  9. #define    MEGABYTE    2048L            /* 1Mb worth of blocks */
  10. #define MAXSECT        32760            /* max sector */
  11. #define    IBMMAXSECT    1114112            /* maxsect = spt x head x #cyl          */
  12. #define CLUSIZ        1024            /* size of a cluster in bytes */
  13.                                     /*         = 17  x 64   x 1024 = 1114112 */
  14. #define IBMSPT        17                /* sector per track of IBM is 17 */
  15. #define IBMMCYL       1024            /* max cylinder of IBM is 1024 */
  16. #define IBMMHEAD    64                /* max head of IBM hard disk driver */
  17. #define IBMHEAD      8                /* the head of IBM hard disk driver */
  18. #define    MAXPSIZ        ((32*MEGABYTE)-1)    /* 32Mb partition limit */
  19. #define    NAMSIZ        1024            /* max length of a name */
  20. #define DOS12        0x01            /* primary DOS 12 bit FAT */
  21. #define DOS16        0x04            /* primary DOS 16 bit FAT */
  22. #define SPC            2                /* sector per cluster */
  23. #define BPS         512L            /* bytes per sector */
  24. #define BPEN        2                /* bytes per entry */
  25. #define NUMEN       256                /* number of entries */
  26. #define BPDIR       32              /* byte per dirtory */
  27. #define ENPS        (BPS/BPDIR)     /* entries per sector */
  28. #define FAT12       341             /* BPS/1.5 = 341 */
  29. #define FAT16       256             /* BPS/2 = 256 */
  30. #define MB16        0x8000L         /* 16 mega bytes */
  31. #define MB32        0x10000L        /* 32 mega bytes */
  32. #define ROOTSECT    1L                /* the root sector is on sector */
  33. #define SCAN_BS     0                /* the flag for sortpart() use */
  34. #define USER_ED     1                /* the flag for sortpart() use */
  35. #define NO_EXT        -1                /* no extended partition */
  36. #define MAXBUFSECT    254                /* max # of sector for memory check */
  37.  
  38. #define WI_KIND        0        /* window to be opened on screen */
  39.  
  40. #define MAXPHYSDEVS    18        /* max #devs on DMA bus */
  41. #define    MAXLOGDEVS    14        /* max # logical devices */
  42. #define MAXPART        30        /* assume max # of IBM partitions are 30 */
  43. #define    NPARTS        4        /* #partitions in root block */
  44. #define    EXTRALOGD     100        /* define some more logical device for logmap */
  45.  
  46. #define    NULL    0L
  47. #define    LONG    long
  48. #define    WORD    int
  49. #define UWORD    unsigned int
  50. #define    BYTE    char
  51.  
  52. #define    SECTOR    LONG
  53.  
  54. #define    OFF        0
  55. #define ON        1
  56.  
  57. #define    NO        0
  58. #define YES        1
  59. #define NOMAX   2
  60.  
  61. #define    FALSE        0
  62. #define TRUE        1
  63.  
  64. #define    OK        0
  65. #define    ERROR        (-1)
  66. #define BAILOUT        (-2)
  67. #define MDMERR        (-3)    /* medium changed error */
  68.  
  69. #define ARROW_MOUSE    graf_mouse(ARROW, 0x0L)
  70. #define BEE_MOUSE    graf_mouse(HOURGLASS, 0x0L)
  71.  
  72. extern long gemdos();
  73. extern char *mymalloc();
  74.