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