home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / edef.h < prev    next >
C/C++ Source or Header  |  1998-04-22  |  7KB  |  158 lines

  1. /*
  2.  * $Id: edef.h,v 4.26 1998/04/22 23:53:24 mikes Exp $
  3.  *
  4.  * Program:    Global definitions and initializations
  5.  *
  6.  *
  7.  * Michael Seibel
  8.  * Networks and Distributed Computing
  9.  * Computing and Communications
  10.  * University of Washington
  11.  * Administration Builiding, AG-44
  12.  * Seattle, Washington, 98195, USA
  13.  * Internet: mikes@cac.washington.edu
  14.  *
  15.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16.  *
  17.  *
  18.  * Pine and Pico are registered trademarks of the University of Washington.
  19.  * No commercial use of these trademarks may be made without prior written
  20.  * permission of the University of Washington.
  21.  * 
  22.  * Pine, Pico, and Pilot software and its included text are Copyright
  23.  * 1989-1998 by the University of Washington.
  24.  * 
  25.  * The full text of our legal notices is contained in the file called
  26.  * CPYRIGHT, included with this distribution.
  27.  *
  28.  */
  29. /*    EDEF:        Global variable definitions for
  30.             MicroEMACS 3.2
  31.  
  32.             written by Dave G. Conroy
  33.             modified by Steve Wilhite, George Jones
  34.             greatly modified by Daniel Lawrence
  35. */
  36.  
  37. #ifndef    EDEF_H
  38. #define    EDEF_H
  39.  
  40. #ifdef    maindef
  41.  
  42. /* for MAIN.C */
  43.  
  44. /* initialized global definitions */
  45.  
  46. int     fillcol = 72;                   /* Current fill column          */
  47. int     userfillcol = -1;               /* Fillcol set from cmd line    */
  48. char    pat[NPAT];                      /* Search pattern        */
  49. char    rpat[NPAT];                     /* Replace pattern        */
  50. int    eolexist = TRUE;        /* does clear to EOL exist    */
  51. int    optimize = FALSE;        /* optimize flag(cf line speed)    */
  52. int    scrollexist = TRUE;        /* does insert line exist    */
  53. int    inschar = TRUE;            /* does insert character exist    */
  54. int    delchar = TRUE;            /* does delete character exist    */
  55. int     sgarbk = TRUE;                  /* TRUE if keyhelp garbaged     */
  56. int     sup_keyhelp = FALSE;            /* TRUE if keyhelp is suppressed*/
  57. int     mline_open = FALSE;             /* TRUE if message line is open */
  58. int    ComposerTopLine = 2;        /* TRUE if message line is open */
  59. int    ComposerEditing = FALSE;    /* TRUE if message line is open */
  60. int    revexist = FALSE;        /* does reverse video exist?    */
  61. char    modecode[] = "WCSEVO";        /* letters to represent modes    */
  62. long    gmode = MDWRAP;            /* global editor mode        */
  63. int     sgarbf  = TRUE;                 /* TRUE if screen is garbage    */
  64. int     mpresf  = FALSE;                /* TRUE if message in last line */
  65. int    clexec    = FALSE;        /* command line execution flag    */
  66. char   *alt_speller = NULL;        /* alt spell checking command   */
  67.  
  68. /* uninitialized global definitions */
  69. int     currow;                 /* Cursor row                   */
  70. int     curcol;                 /* Cursor column                */
  71. int     thisflag;               /* Flags, this command          */
  72. int     lastflag;               /* Flags, last command          */
  73. int     curgoal;                /* Goal for C-P, C-N            */
  74. char    opertree[NLINE+1];    /* operate within this tree     */
  75. WINDOW  *curwp;                 /* Current window               */
  76. BUFFER  *curbp;                 /* Current buffer               */
  77. WINDOW  *wheadp;                /* Head of list of windows      */
  78. BUFFER  *bheadp;                /* Head of list of buffers      */
  79. BUFFER  *blistp;                /* Buffer for C-X C-B           */
  80.  
  81. BUFFER  *bfind PROTO((char *, int, int)); /* Lookup a buffer by name */
  82. LINE    *lalloc PROTO((int));   /* Allocate a line              */
  83. int     km_popped;        /* menu popped up               */
  84. #if    defined(USE_TERMCAP) || defined(USE_TERMINFO) || defined(VMS)
  85. KBESC_T *kbesc;            /* keyboard esc sequence trie   */
  86. #endif /* USE_TERMCAP/USE_TERMINFO/VMS */
  87.  
  88. #else  /* maindef */
  89.  
  90. /* for all the other .C files */
  91.  
  92. /* initialized global external declarations */
  93.  
  94. extern  int     fillcol;                /* Fill column                  */
  95. extern  int     userfillcol;            /* Fillcol set from cmd line    */
  96. extern  char    pat[];                  /* Search pattern               */
  97. extern    char    rpat[];                 /* Replace pattern        */
  98. extern    int    eolexist;        /* does clear to EOL exist?    */
  99. extern    int    optimize;        /* optimize flag(cf line speed)    */
  100. extern    int    scrollexist;        /* does insert line exist    */
  101. extern    int    inschar;        /* does insert character exist    */
  102. extern    int    delchar;        /* does delete character exist    */
  103. extern  int     sgarbk;
  104. extern  int     sup_keyhelp;
  105. extern  int     mline_open;             /* Message line is open         */
  106. extern    int    ComposerTopLine;    /* TRUE if message line is open */
  107. extern    int    ComposerEditing;    /* TRUE if message line is open */
  108. extern    int    timeo;            /* how long we wait in GetKey    */
  109. extern    int    revexist;        /* does reverse video exist?    */
  110. extern    char    modecode[];        /* letters to represent modes    */
  111. extern    KEYTAB    keytab[];        /* key bind to functions table    */
  112. extern    KEYTAB    pkeytab[];        /* pico's function table    */
  113. extern    long    gmode;            /* global editor mode        */
  114. extern  int     sgarbf;                 /* State of screen unknown      */
  115. extern  int     mpresf;                 /* Stuff in message line        */
  116. extern    int    clexec;            /* command line execution flag    */
  117. extern    char   *alt_speller;        /* alt spell checking command   */
  118. /* initialized global external declarations */
  119. extern  int     currow;                 /* Cursor row                   */
  120. extern  int     curcol;                 /* Cursor column                */
  121. extern  int     thisflag;               /* Flags, this command          */
  122. extern  int     lastflag;               /* Flags, last command          */
  123. extern  int     curgoal;                /* Goal for C-P, C-N            */
  124. extern  char    opertree[];        /* operate within this tree     */
  125. extern  WINDOW  *curwp;                 /* Current window               */
  126. extern  BUFFER  *curbp;                 /* Current buffer               */
  127. extern  WINDOW  *wheadp;                /* Head of list of windows      */
  128. extern  BUFFER  *bheadp;                /* Head of list of buffers      */
  129. extern  BUFFER  *blistp;                /* Buffer for C-X C-B           */
  130.  
  131. extern  BUFFER  *bfind PROTO((char *, int, int)); /* Lookup a buffer by name */
  132. extern  LINE    *lalloc PROTO((int));   /* Allocate a line              */
  133. extern  int     km_popped;        /* menu popped up               */
  134. #ifdef    MOUSE
  135. extern    MENUITEM menuitems[];        /* key labels and functions */
  136. extern    MENUITEM *mfunc;        /* single generic function  */
  137. extern    mousehandler_t mtrack;        /* func used to track the mouse */
  138. #endif    /* MOUSE */
  139.  
  140. #if    defined(USE_TERMCAP) || defined(USE_TERMINFO) || defined(VMS)
  141. extern    KBESC_T *kbesc;            /* keyboard esc sequence trie   */
  142. #endif /* USE_TERMCAP/USE_TERMINFO/VMS */
  143.  
  144. #endif /* maindef */
  145.  
  146. /* terminal table defined only in TERM.C */
  147.  
  148. #ifndef    termdef
  149. #if    defined(VMS) && !defined(__ALPHA)
  150. globalref
  151. #else
  152. extern
  153. #endif /* VMS */
  154.        TERM    term;                   /* Terminal information.        */
  155. #endif /* termdef */
  156.  
  157. #endif    /* EDEF_H */
  158.