home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / YADME10.LHA / YADME10 / src / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-19  |  3.5 KB  |  145 lines

  1. /*
  2.  * DEFS.H
  3.  *
  4.  *      (C)Copyright 1987 by Matthew Dillon, All Rights Reserved
  5.  *
  6.  *      ARexx support added 03/19/88  -  Kim DeVaughn
  7.  *
  8.  */
  9.  
  10. #include <exec/types.h>
  11. #include <exec/memory.h>
  12. #include <exec/ports.h>
  13. #include <devices/inputevent.h>
  14. #include <libraries/dos.h>
  15. #include <libraries/dosextens.h>
  16. #include <intuition/intuition.h>
  17. #include <intuition/intuitionbase.h>
  18.  
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <string.h>
  22.  
  23. /* #define abs */
  24. #include <clib/exec_protos.h>
  25. #include <clib/graphics_protos.h>
  26. #include <clib/alib_protos.h>
  27. #include <clib/dos_protos.h>
  28. #include <clib/intuition_protos.h>
  29. #include <clib/icon_protos.h>
  30. #include <clib/diskfont_protos.h>
  31. #include <clib/console_protos.h>
  32.  
  33. /*
  34.  *  note: if you want Local routines to silently be global, simply
  35.  *  '#define Local' to nothing.
  36.  */
  37.  
  38. #define Prototype extern
  39. #define Local     static
  40.  
  41.  
  42. #define MAXTOGGLE   256
  43. #define QMOVE       (0x6B|0x80)
  44.  
  45. #define BLOCK_LINE 0
  46. #define BLOCK_CHARACTER 1
  47. #define BLOCK_VERTICAL 2
  48.  
  49. #define COLT(n)  (XTbase + (n) * Xsize)
  50. #define ROWT(n)  (YTbase + (n) * Ysize)
  51. #define COL(n)   (Xbase  + (n) * Xsize)
  52. #define ROW(n)   (Ybase  + (n) * Ysize)
  53.  
  54. /*
  55.  *  code compatibility... try to phase these usages out.
  56.  */
  57.  
  58. #define ARGS(args)  args
  59.  
  60. typedef unsigned char       ubyte;
  61. typedef unsigned short      uword;
  62. typedef unsigned long       ulong;
  63.  
  64. typedef struct MinNode      MNODE;
  65. typedef struct Node         NODE;
  66. typedef struct MinList      MLIST;
  67. typedef struct List         LIST;
  68. typedef struct MsgPort      PORT;
  69. typedef struct Window       WIN;
  70. typedef struct Message      MSG;
  71. typedef struct TextAttr     TA;
  72. typedef struct TextFont     FONT;
  73. typedef struct RastPort     RP;
  74. typedef struct IntuiMessage     IMESS;
  75. typedef struct IntuitionBase    IBASE;
  76. typedef struct Menu         MENU;
  77. typedef struct MenuItem     ITEM;
  78. typedef struct IntuiText    ITEXT;
  79.  
  80. typedef struct _ED {
  81.     MNODE Node;
  82.     struct Window *Win;
  83.     struct Gadget *PropGad;
  84.     FONT *Font;             /*  da font, da font!                   */
  85.     long Topline, Topcolumn;
  86.     long Line, Column;
  87.     long Lines, Maxlines;
  88.     ubyte **List;
  89.     ubyte Name[64];
  90.     ubyte Wtitle[130];
  91.     char Modified;
  92.     long  dirlock;          /* directory lock                       */
  93.     char iconmode;          /*  window in icon mode                 */
  94.  
  95.     /*
  96.      *  CONFIG INFORMATION
  97.      */
  98.  
  99.     char  BeginConfig;
  100.     ubyte Tabstop;
  101.     ubyte Margin;
  102.     char Insertmode;
  103.     char IgnoreCase;
  104.     char Wordwrap;
  105.     short WWCol;            /*  word wrap column                    */
  106.     short Winx;             /*  save state of non-icon window       */
  107.     short Winy;
  108.     short Winwidth;
  109.     short Winheight;
  110.     short IWinx, IWiny;     /*  save state of icon window           */
  111.     int   FGPen;
  112.     int   BGPen;
  113.     int   HGPen;
  114.     int   HGBGPen;          /* KL : Background color of highlighted region */
  115.     int   TPen;
  116.     short   ASLleft;        /* NEW: save position of ASL requester */
  117.     short   ASLtop;         /* NEW: save position of ASL requester */
  118.     short   ASLwidth;       /* NEW: save position of ASL requester */
  119.     short   ASLheight;      /* NEW: save position of ASL requester */
  120.     char  Fontname[64]; /* KL */
  121.     int   Fontsize;     /* KL */
  122.     char  EndConfig;
  123. } ED;
  124.  
  125. extern long  BSline, BEline;
  126. extern short BSchar, BEchar;
  127. extern ED    *BEp;
  128.  
  129.  
  130. #ifndef NULL
  131. #define NULL 0
  132. #endif
  133. #ifdef E
  134. #undef E
  135. #endif
  136.  
  137. extern MLIST DBase;
  138. extern MLIST PBase;
  139. extern ED    *Ep;
  140. extern IBASE *IntuitionBase;
  141.  
  142. #include "prog-protos.h"
  143.  
  144.  
  145.