Annotation of sbbs/sbbs2/sdk/xsdkvars.c, revision 1.1

1.1     ! root        1: /* XSDKVARS.C */
        !             2: 
        !             3: #include <time.h>
        !             4: #include <stdio.h>
        !             5: #include "xsdkdefs.h"
        !             6: 
        !             7: #ifndef GLOBAL
        !             8: #define GLOBAL
        !             9: #endif
        !            10: 
        !            11: /*******************************/
        !            12: /* Global Variable Definitions */
        !            13: /*******************************/
        !            14: GLOBAL char    lncntr;                         /* Line counter */
        !            15: GLOBAL char    tos;                            /* Top of screen */
        !            16: GLOBAL uchar   curatr;                         /* Current attribute */
        !            17: GLOBAL char    mnehigh,                        /* Colors for mnemonics */
        !            18:                                mnelow;
        !            19: GLOBAL uchar   sys_nodes,                      /* Number of nodes on system */
        !            20:                                node_num;                       /* Current node number */
        !            21: GLOBAL ulong   node_misc;                      /* Misc. node toggles */
        !            22: GLOBAL char    sys_name[41],           /* System name */
        !            23:                                sys_id[9],                      /* System QWK ID */
        !            24:                                sys_op[41],             /* System operator name */
        !            25:                                sys_guru[41];           /* System guru name */
        !            26: GLOBAL ushort  timeleft;                       /* Time left in seconds */
        !            27: GLOBAL char    ctrl_dir[128],          /* SBBS dirs */
        !            28:                                data_dir[128],
        !            29:                                node_dir[128],
        !            30:                                exec_dir[128],
        !            31:                                text_dir[128],
        !            32:                                temp_dir[128];
        !            33: GLOBAL uint    user_number;            /* User's number */
        !            34: GLOBAL char    user_name[45],          /* User's name/alias */
        !            35:                                user_misc,                      /* User's misc settings */
        !            36:                                user_rows,                      /* User's rows per screen */
        !            37:                                user_level,             /* User's main level */
        !            38:                                user_flags1[27],        /* User's flag set #1 */
        !            39:                                user_flags2[27],        /* User's flag set #2 */
        !            40:                                user_flags3[27],        /* User's flag set #3 */
        !            41:                                user_flags4[27],        /* User's flag set #4 */
        !            42:                                user_exempt[27],        /* User's exemptions */
        !            43:                                user_rest[27],          /* User's restrictions */
        !            44:                                user_sex,                       /* User's sex */
        !            45:                                user_birth[9],          /* User's birthday */
        !            46:                                user_phone[13],         /* User's phone number */
        !            47:                                user_address[31],       /* User's address */
        !            48:                                user_location[31],      /* User's location */
        !            49:                                user_zipcode[11],       /* User's zip/postal code */
        !            50:                                user_realname[26];      /* User's real name or company name */
        !            51: GLOBAL ulong   user_cdt,                       /* User's credits */
        !            52:                                user_dce;                       /* User's DCE rate */
        !            53: GLOBAL time_t  user_expire;            /* User's expiration date */
        !            54: 
        !            55:                                                                        /* COM port registers: */
        !            56: GLOBAL uint    com_base,                       /* COM base address */
        !            57:                                com_irq;                        /* irq line number         */
        !            58: GLOBAL ulong   com_rate;                       /* DTE rate in bps         */
        !            59: GLOBAL char    com_port;                       /* Number of COM port  */
        !            60: 
        !            61:                                                                        /* Modem command strings */
        !            62: GLOBAL char    mdm_init[64],           /* Initialization */
        !            63:                                mdm_spec[64],           /* Special Initialization */
        !            64:                                mdm_term[64],           /* Terminal Initialization String */
        !            65:                                mdm_dial[64],           /* Dial */
        !            66:                                mdm_offh[64],           /* Off hook */
        !            67:                                mdm_answ[64],           /* Answer */
        !            68:                 mdm_misc;           /* Misc bits used for flags */
        !            69: 
        !            70: GLOBAL time_t  starttime;                      /* Start time-stamp */
        !            71: GLOBAL char    wordwrap[81];           /* Wordwrap buffer */
        !            72: GLOBAL uint    sec_warn,                       /* Seconds till inactivity warning */
        !            73:                                sec_timeout;            /* Seconds till disconnect */
        !            74: GLOBAL char    timeleft_warn;          /* Minutes left warning */
        !            75: 
        !            76: GLOBAL int             nodefile;                       /* File descriptor for NODE.DAB */
        !            77: 
        !            78: GLOBAL char    slbuf[SAVE_LINES][LINE_BUFSIZE+1]; /* Saved for redisplay */
        !            79: GLOBAL char    slatr[SAVE_LINES];      /* Starting attribute of each line */
        !            80: GLOBAL char    slcnt;                  /* Number of lines currently saved */
        !            81: GLOBAL char    lbuf[LINE_BUFSIZE];/* Temp storage for each line output */
        !            82: GLOBAL int             lbuflen;                /* Number of characters in line buffer */
        !            83: GLOBAL char     latr;           /* Starting attribute of line buffer */
        !            84: GLOBAL uint    inDV;                   /* DESQview version if running under DV */
        !            85: GLOBAL int             keybuftop,keybufbot;    /* Keyboard input buffer pointers */
        !            86: GLOBAL char     keybuf[KEY_BUFSIZE];    /* Keyboard input buffer */
        !            87: GLOBAL uint far *msr;                  /* Last modem status register contents */
        !            88: GLOBAL char    **xtrn;                 /* List of external program names */
        !            89: GLOBAL uint    total_xtrns;    /* Total number of external programs */
        !            90: GLOBAL uchar   lastnodemsg;    /* Last node to send a message to */
        !            91: GLOBAL uchar   name_len;               /* Length of name field in NAME.DAT */
        !            92: GLOBAL char    aborted;                /* Aborted flag - if ctrl-c hit */
        !            93: GLOBAL uint    sysop_level;    /* Sysop Level */
        !            94: GLOBAL FILE    *con_fp;                /* Console file pointer (stdout/stderr) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.