home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / wp_dtp / xdme1820.lha / XDME / globals.c < prev    next >
C/C++ Source or Header  |  1993-03-09  |  4KB  |  111 lines

  1.  
  2. /*
  3.  * GLOBALS.C
  4.  *
  5.  *    (C)Copyright 1987 by Matthew Dillon, All Rights Reserved
  6.  */
  7.  
  8. #include "defs.h"
  9.  
  10. Prototype LIST        DBase;
  11. Prototype ED      * Ep;
  12. Prototype struct Config default_config;
  13. Prototype struct GlobalFlags globalflags;
  14. Prototype long        Nsu;
  15. Prototype ubyte     CtlC;
  16. Prototype ubyte     Current[MAXLINELEN];
  17. Prototype ubyte     Deline[MAXLINELEN];
  18. Prototype ubyte     Space[32];
  19. Prototype Column    Clen;
  20. Prototype char      * Partial;
  21. Prototype char      * esc_partial;
  22. Prototype char      * String;
  23. Prototype Block     ActualBlock;
  24. Prototype ushort    ColumnPos[MAXLINELEN];
  25. Prototype ushort    RowPos[MAXROWS];
  26. Prototype ushort    Xsize;
  27. Prototype ushort    Ysize;
  28. Prototype ushort    XTbase;
  29. Prototype ushort    YTbase;
  30. Prototype ushort    Lines;
  31. Prototype ushort    Columns;
  32. Prototype ushort    Xbase;
  33. Prototype ushort    Ybase;
  34. Prototype ushort    Xpixs;
  35. Prototype ushort    Ypixs;
  36. Prototype ushort    LineDistance;
  37. Prototype ubyte   * av[];
  38. Prototype short     PageJump;
  39. Prototype char        RexxPortName[8];
  40. Prototype char        tmp_buffer[256];
  41. Prototype ushort    NumClicks;
  42. Prototype ULONG     LoopCont;
  43. Prototype ULONG     LoopBreak;
  44. Prototype ULONG     MacroRecord;
  45.  
  46.  
  47. Prototype struct IntuitionBase * IntuitionBase;
  48. Prototype struct GfxBase       * GfxBase;
  49. Prototype struct Library       * IconBase;
  50. Prototype struct Library       * AslBase;
  51. Prototype struct WBStartup     * Wbs;
  52.  
  53. ED  * Ep;            /* Current Window         */
  54. struct Config default_config;    /* Config-struct with default config */
  55. LIST  DBase;            /* Doubly linked list of Files     */
  56.  
  57. ubyte    Deline[MAXLINELEN];    /* last deleted line             */
  58. ubyte    Current[MAXLINELEN];    /* Current Line buffer and length     */
  59. ubyte    Space[32] = { 32,32,32,32, 32,32,32,32, 32,32,32,32, 32,32,32,32,
  60.               32,32,32,32, 32,32,32,32, 32,32,32,32, 32,32,32,32 };
  61.  
  62. Column    Clen;            /* Length of actual line */
  63. char  * Partial;        /* Partial command for communication w/ CF_PAR    */ /* PATCH_NULL change in function */
  64. char  * esc_partial;        /* Partial command line when executing ESCIMM    */ /* PATCH_NULL added */
  65. char  * String;         /* String Capture variable            */
  66.  
  67. Block ActualBlock;        /* The actual block */
  68.  
  69. ushort ColumnPos[MAXLINELEN];    /* Offset to a specific Position on screem */
  70. ushort RowPos[MAXROWS];
  71.  
  72. ushort Xsize,  Ysize;        /* font character sizes            */
  73. ushort Lines,  Columns;     /* character rows/cols available       */
  74. ushort Xbase,  Ybase;        /* offset pixel base for display       */
  75. ushort XTbase, YTbase;        /* used for text display           */
  76. ushort Xpixs,  Ypixs;        /* actual Right/Bottom pixels. Directly
  77.                    usable in RectFill() or ScrollRaster () */
  78. ushort LineDistance = 1;    /* empty space that goes between two lines
  79.                    of text on the screen */
  80.  
  81. ubyte * av[8];            /* Argument-array */
  82.  
  83. struct WBStartup     * Wbs;    /* Startup-Message from WB */
  84.  
  85. short    PageJump;        /* Amount in % for page/prop. gadget */
  86.  
  87. char RexxPortName[8];        /* Name of ARexx-Port */
  88.  
  89. char tmp_buffer[256];        /* This is a global buffer to prevent unusual
  90.                    stack-usage. DON'T CALL SUBROUTINES WHILE
  91.                    HOLDING IMPORTANT DATA IN IT ! */
  92.  
  93. ushort NumClicks;        /* number of button-presses within double-
  94.                    clicktime */
  95. ULONG LoopCont;
  96. ULONG LoopBreak;
  97. ULONG MacroRecord;
  98.  
  99. long    Nsu;            /* Used to disable screen updates. If != 0,
  100.                    we must not do any updates */
  101.  
  102. /* Flags */
  103.  
  104. struct GlobalFlags globalflags;
  105.  
  106. ubyte    CtlC;        /* Keycode for 'c'                              */
  107.  
  108. /* Version-Number :-) */
  109. const char * version = "$VER: XDME 1.82.08 (9.3.1993) by "
  110.                "digulla@rz-uxazs.fh-konstanz.de";
  111.