home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / SBBS1B00.ZIP / XTRN.EXE / XTRN / SDK / XSDKVARS.C < prev    next >
C/C++ Source or Header  |  1992-08-31  |  3KB  |  74 lines

  1. /* XSDKVARS.C */
  2.  
  3. #include <time.h>
  4. #include "xsdkdefs.h"
  5.  
  6. #ifndef GLOBAL
  7. #define GLOBAL
  8. #endif
  9.  
  10. /*******************************/
  11. /* Global Variable Definitions */
  12. /*******************************/
  13. GLOBAL char     lncntr;             /* Line counter */
  14. GLOBAL char     tos;                /* Top of screen */
  15. GLOBAL char     curatr;
  16. GLOBAL char     mnehigh,            /* Colors for mnemonics */
  17.                 mnelow;
  18. GLOBAL uchar    sys_nodes,            /* Number of nodes on system */
  19.                 node_num;            /* Current node number */
  20. GLOBAL char     sys_name[41],        /* System name */
  21.                 sys_op[41],         /* System operator name */
  22.                 sys_guru[41];        /* System guru name */
  23. GLOBAL uint     timeleft;            /* Time left in seconds */
  24. GLOBAL char     ctrl_dir[45],        /* SBBS dirs */
  25.                 data_dir[45],
  26.                 node_dir[45];
  27. GLOBAL uint     user_number;        /* User's number */
  28. GLOBAL char     user_name[45],        /* User's name/alias */
  29.                 user_misc,            /* User's misc settings */
  30.                 user_rows,            /* User's rows per screen */
  31.                 user_ml,            /* User's main level */
  32.                 user_tl,            /* User's transfer level */
  33.                 user_sex,            /* User's sex */
  34.                 user_birth[9],        /* User's birthday */
  35.                 user_phone[13];     /* User's phone number */
  36. GLOBAL ulong    user_cdt;            /* User's credits */
  37.  
  38.                                     /* COM port registers: */
  39. GLOBAL uint     com_base,            /* COM base address */
  40.                 com_irq,            /* irq line number     */
  41.                 com_rate;              /* DTE rate in bps     */
  42. GLOBAL char      com_port;            /* Number of COM port  */
  43.  
  44.                                     /* Modem command strings */
  45. GLOBAL char     mdm_init[41],        /* Initialization */
  46.                 mdm_spec[41],        /* Special Initialization */
  47.                 mdm_term[41],        /* Terminal Initialization String */
  48.                 mdm_dial[41],         /* Dial    */
  49.                 mdm_offh[41],        /* Off hook    */
  50.                 mdm_answ[41],         /* Answer */
  51.                 mdm_misc;           /* Misc bits used for flags */
  52.  
  53. GLOBAL time_t    starttime;            /* Start time-stamp */
  54. GLOBAL char     wordwrap[81];        /* Wordwrap buffer */
  55. GLOBAL uint     sec_warn,            /* Seconds till inactivity warning */
  56.                 sec_timeout;        /* Seconds till disconnect */
  57.  
  58. GLOBAL int        nodefile;            /* File descriptor for NODE.DAB */
  59.  
  60. GLOBAL char     slbuf[SAVE_LINES][LINE_BUFSIZE+1]; /* Saved for redisplay */
  61. GLOBAL char     slatr[SAVE_LINES];    /* Starting attribute of each line */
  62. GLOBAL char     slcnt;            /* Number of lines currently saved */
  63. GLOBAL char     lbuf[LINE_BUFSIZE];/* Temp storage for each line output */
  64. GLOBAL int        lbuflen;        /* Number of characters in line buffer */
  65. GLOBAL char     latr;           /* Starting attribute of line buffer */
  66. GLOBAL uint     inDV;            /* DESQview version if running under DV */
  67. GLOBAL int        keybuftop,keybufbot;    /* Keyboard input buffer pointers */
  68. GLOBAL char     keybuf[KEY_BUFSIZE];    /* Keyboard input buffer */
  69. GLOBAL uint far *msr;            /* Last modem status register contents */
  70. GLOBAL char     **xtrn;         /* List of external program names */
  71. GLOBAL uint     total_xtrns;    /* Total number of external programs */
  72. GLOBAL uchar    lastnodemsg;    /* Last node to send a message to */
  73. GLOBAL uchar    name_len;        /* Length of name field in NAME.DAT */
  74.