home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / XDME / Src / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  3.5 KB  |  113 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 UBYTE   * Partial;
  21. Prototype UBYTE   * esc_partial;
  22. Prototype UBYTE   * String;
  23. Prototype Block     ActualBlock;
  24. Prototype UWORD     ColumnPos[MAXLINELEN];
  25. Prototype UWORD     RowPos[MAXROWS];
  26. Prototype UWORD     Xsize;
  27. Prototype UWORD     Ysize;
  28. Prototype UWORD     XTbase;
  29. Prototype UWORD     YTbase;
  30. Prototype UWORD     Lines;
  31. Prototype UWORD     Columns;
  32. Prototype UWORD     Xbase;
  33. Prototype UWORD     Ybase;
  34. Prototype UWORD     Xpixs;
  35. Prototype UWORD     Ypixs;
  36. Prototype UWORD     LineDistance;
  37. Prototype UBYTE   * av[];
  38. Prototype WORD        PageJump;
  39. Prototype UBYTE     RexxPortName[8];
  40. Prototype UBYTE     tmp_buffer[256];
  41. Prototype UWORD     NumClicks;
  42. Prototype ULONG     LoopCont;
  43. Prototype ULONG     LoopBreak;
  44. Prototype ULONG     MacroRecord;
  45.  
  46. Prototype const UBYTE *version; /* PATCH_NULL 27-07-94 */
  47.  
  48. Prototype struct IntuitionBase * IntuitionBase;
  49. Prototype struct GfxBase       * GfxBase;
  50. Prototype struct Library       * IconBase;
  51. Prototype struct Library       * AslBase;
  52. Prototype struct DosLibrary    * DOSBase;
  53. Prototype struct WBStartup     * Wbs;
  54.  
  55. ED  * Ep;            /* Current Editor            */
  56. struct Config default_config;    /* Config-struct with default config    */
  57. LIST  DBase;            /* Doubly linked list of Files        */
  58.  
  59. UBYTE    Deline[MAXLINELEN];    /* last deleted line            */
  60. UBYTE    Current[MAXLINELEN];    /* Current Line buffer and length    */
  61. UBYTE    Space[32] = { 32,32,32,32, 32,32,32,32, 32,32,32,32, 32,32,32,32,
  62.               32,32,32,32, 32,32,32,32, 32,32,32,32, 32,32,32,32 };
  63.  
  64. Column    Clen;            /* Length of actual line */
  65. UBYTE  * Partial;        /* Partial command for communication w/ CF_PAR    */ /* PATCH_NULL change in function */
  66. UBYTE  * esc_partial;        /* Partial command line when executing ESCIMM    */ /* PATCH_NULL added */
  67. UBYTE  * String;        /* String Capture variable            */
  68.  
  69. Block ActualBlock;        /* The actual block */
  70.  
  71. UWORD  ColumnPos[MAXLINELEN];    /* Offset to a specific Position on screem */
  72. UWORD  RowPos[MAXROWS];
  73.  
  74. UWORD  Xsize,  Ysize;        /* font character sizes            */
  75. UWORD  Lines,  Columns;     /* character rows/cols available       */
  76. UWORD  Xbase,  Ybase;        /* offset pixel base for display       */
  77. UWORD  XTbase, YTbase;        /* used for text display           */
  78. UWORD  Xpixs,  Ypixs;        /* actual Right/Bottom pixels. Directly
  79.                    usable in RectFill() or ScrollRaster () */
  80. UWORD  LineDistance = 1;    /* empty space that goes between two lines
  81.                    of text on the screen */
  82.  
  83. UBYTE * av[8];            /* Argument-array */
  84.  
  85. struct WBStartup     * Wbs;    /* Startup-Message from WB */
  86.  
  87. WORD   PageJump;        /* Amount in % for page/prop. gadget */
  88.  
  89. UBYTE RexxPortName[8];        /* Name of ARexx-Port */
  90.  
  91. UBYTE tmp_buffer[256];        /* This is a global buffer to prevent unusual
  92.                    stack-usage. DON'T CALL SUBROUTINES WHILE
  93.                    HOLDING IMPORTANT DATA IN IT ! */
  94.  
  95. UWORD  NumClicks;        /* number of button-presses within double-
  96.                    clicktime */
  97. ULONG LoopCont;
  98. ULONG LoopBreak;
  99. ULONG MacroRecord;
  100.  
  101. long    Nsu;            /* Used to disable screen updates. If != 0,
  102.                    we must not do any updates */
  103.  
  104. /* Flags */
  105.  
  106. struct GlobalFlags globalflags;
  107.  
  108. UBYTE    CtlC;        /* Keycode for 'c'                              */
  109.  
  110. /* Version-Number :-) */
  111. const UBYTE * version = "$VER: XDME " VERSION " (" VERDATE ") by "
  112.             "digulla@fh-konstanz.de";
  113.