home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / code / microema.sit / src / tty_windows.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-09  |  1.4 KB  |  74 lines  |  [TEXT/Earl]

  1. /*
  2.  *  uEmacs.h
  3.  *  Header file by Dave Burnard for use with Macintosh version of
  4.  *  microemacs.  Added to by Earle Horton for use with microemacs
  5.  *  3.8 and Lightspeed C compiler.
  6.  */
  7. #if    LSC
  8. #define p2cstr PtoCstr
  9. #define int16 short
  10. #define int32 long
  11. #endif
  12. #if MPW
  13. #define int16 short
  14. #define int32 long
  15. #define PtoCstr p2cstr
  16. #endif
  17. #define     NIL                0L
  18. #define     OK                0
  19. #define     ERR                -1
  20.  
  21. # define    windowID        128
  22. # define    MENUBASE        128    /* RSRC id base value */
  23.  
  24. # define    appleMenu        0    /* offset values from MENUBASE */
  25. # define    aboutMeItem        1
  26.  
  27. # define    fileMenu        1
  28.  
  29. # define    editMenu        2
  30. # define    undoItem        1
  31. # define    cutItem         3
  32. # define    copyItem        4
  33. # define    pasteItem        5
  34. # define    clearItem        6
  35.  
  36. # define    bufferMenu        3
  37. # define    commands1Menu        4
  38. # define    commands2Menu        5
  39. # define    commands3Menu        6
  40. # define    commands4Menu        7
  41. # define    lastMenu        commands4Menu
  42.  
  43. #define     uEmacsWindow    128
  44.  
  45.  
  46. #define     BEL            0x07        /* BEL character */
  47. #define     ESC            0x1B        /* ESC character */
  48.  
  49. #ifndef IS_64K_ROM
  50. #define IS_64K_ROM    ((*((int16 *) 0x28E) & 0xF000) == 0xF000)
  51. #endif
  52. #define ZoomDocProc (IS_64K_ROM ? 0 : 8)
  53.  
  54.  
  55. /* common defines for windowKind field of TTY_Windows */
  56. #define notInTTY_W        0
  57. #define CURS_IDLE        -1
  58. #define CURS_INVIS        0
  59. #define CURS_VIS        1
  60. #define CURS_HIDE        0
  61. #define CURS_SHOW        1
  62.  
  63. /* #define SCROLLBARWIDTH        16*/
  64. #define SCROLLBARWIDTH    13
  65.  
  66. #if LSC
  67. #define THEPORT thePort
  68. #define SCREENBITS screenBits
  69. #else
  70. #define THEPORT qd.thePort
  71. #define SCREENBITS qd.screenBits
  72. #endif
  73.  
  74.