home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / WWIV2.ZIP / VARS.H < prev    next >
C/C++ Source or Header  |  1992-12-16  |  5KB  |  152 lines

  1. /*****************************************************************************
  2.  
  3.                 WWIV Version 4
  4.                     Copyright (C) 1988-1993 by Wayne Bell
  5.  
  6. Distribution of the source code for WWIV, in any form, modified or unmodified,
  7. without PRIOR, WRITTEN APPROVAL by the author, is expressly prohibited.
  8. Distribution of compiled versions of WWIV is limited to copies compiled BY
  9. THE AUTHOR.  Distribution of any copies of WWIV not compiled by the author
  10. is expressly prohibited.
  11.  
  12.  
  13. *****************************************************************************/
  14.  
  15.  
  16. #ifndef _VARS_H_
  17. #define _VARS_H_
  18.  
  19.  
  20. #include <stdio.h>
  21. #include <io.h>
  22. #include <fcntl.h>
  23. #include <string.h>
  24. #include <stdlib.h>
  25. #include <sys\stat.h>
  26. #include <dos.h>
  27. #include <alloc.h>
  28. #include <time.h>
  29.  
  30.  
  31. #include "fcns.h"
  32.  
  33.  
  34. /****************************************************************************/
  35. #ifdef _DEFINE_GLOBALS_
  36.  
  37.  
  38. char *ctypes[] = {
  39.   "IBM PC (8088)",
  40.   "IBM AT (80286)",
  41.   "IBM 80386/80486",
  42.   "IBM PS/2",
  43.   "Apple 2",
  44.   "Apple Mac",
  45.   "Commodore Amiga",
  46.   "Commodore",
  47.   "Atari",
  48.   "Other",
  49.   0L,
  50. };
  51.  
  52. #define __EXTRN__
  53.  
  54.  
  55. /****************************************************************************/
  56. #else
  57. /****************************************************************************/
  58.  
  59.  
  60. extern char *ctypes[];
  61.  
  62. #define __EXTRN__ extern
  63.  
  64.  
  65. #endif
  66. /****************************************************************************/
  67.  
  68.  
  69. __EXTRN__ char ansistr[81], cdir[81], charbuffer[161], chatreason[81],
  70.                crttype, curspeed[81], dc[81], dcd[81], dszlog[81],
  71.                dtc[81], endofline[81], gatfn[81], irt[81], irt_name[81],
  72.                *languagedir, *net_data, *net_name, net_email_name[81],
  73.                newprompt[161], odc[81], *quotes_nrm, *quotes_ind,
  74.                search_pattern[81], *sp, str_no[20], str_pause[80],
  75.                str_quit[20], str_yes[20], tc[81], ver_no1[51],
  76.                ver_no2[51],wwiv_net_no[20], xdate[9], *xenviron[50];
  77.  
  78. __EXTRN__ unsigned char actsl, andwith, checksum;
  79.  
  80.  
  81. __EXTRN__ int abortext, already_on, ansiptr, arcling, async_irq, base,
  82.               bchanged, change_color, charbufferpointer, chatcall,
  83.               chatting, chat_file, checkit, configfile, curatr, curdir,
  84.               curdloads, curldir, curlsub, cursub, cur_lang, c_dir,
  85.               c_sub, daysmax, daysmin, defscreenbottom, dlf, do_event,
  86.               echo, edlf, endday, express, expressabort, flow_control,
  87.               fsenttoday, fwaiting, gat_section, global_handle,
  88.               global_xx, hangup, helpl, high_speed, hungup, ihelp,
  89.               incom, input_extern, in_extern, in_fsed, lastcon, lecho,
  90.               lines_listed, live_user, ltime, mailcheck, max_subs,
  91.               max_dirs, msgreadlogon, net_num, net_num_max, nextext,
  92.               noklevel, no_hangup, numbatch, numbatchdl, numchain,
  93.               numed, numextrn, numf, nummsgs, num_dirs, num_listed,
  94.               num_sec, num_subs, num_sys_list, oklevel, okmacro, okskey,
  95.               ok_modem_stuff, oldx, oldy, ooneuser, outcom,
  96.               questused[20], restoring_shrink, save_dos, screenbottom,
  97.               screenlen, screenlinest, smwcheck, statusfile,
  98.               sysop_alert, tempio, topdata, topline, two_color,
  99.               userfile, usernum, useron, use_workspace, using_modem,
  100.               wfc, x_only;
  101.  
  102. __EXTRN__ unsigned short com_speed, *csn_index, crc, *gat, modem_flag,
  103.                          modem_mode, modem_speed, net_sysnum;
  104.  
  105.  
  106. __EXTRN__ long *dir_dates, hanguptime1, last_time_c, nscandate, *sub_dates,
  107.                this_date, timelastchar1, quotes_nrm_l, quotes_ind_l;
  108.  
  109. __EXTRN__ unsigned long *qsc, *qsc_n, *qsc_q, *qsc_p;
  110.  
  111.  
  112. __EXTRN__ float batchtime;
  113.  
  114. __EXTRN__ double extratimecall, last_time, timeon, time_event, xtime;
  115.  
  116.  
  117. __EXTRN__ userrec thisuser;
  118. __EXTRN__ configrec syscfg;
  119. __EXTRN__ statusrec status;
  120. __EXTRN__ smalrec *smallist;
  121. __EXTRN__ subboardrec *subboards;
  122. __EXTRN__ directoryrec *directories;
  123. __EXTRN__ usersubrec *usub,*udir;
  124. __EXTRN__ postrec *msgs;
  125. __EXTRN__ screentype screensave;
  126. __EXTRN__ messagerec helps[50], menus[30],menus1[30],menus2[30];
  127. __EXTRN__ batchrec *batch;
  128. __EXTRN__ chainfilerec *chains;
  129. __EXTRN__ newexternalrec *externs, *over_intern;
  130. __EXTRN__ editorrec *editors;
  131. __EXTRN__ gfiledirrec *gfilesec;
  132. __EXTRN__ modem_info *modem_i;
  133. __EXTRN__ net_system_list_rec huge *csn;
  134. __EXTRN__ net_networks_rec *net_networks;
  135.  
  136. __EXTRN__ volatile int head,tail;
  137. __EXTRN__ volatile char buffer[max_buf];
  138.  
  139. __EXTRN__ void far *funcs[25];
  140. __EXTRN__ char far *scrn;
  141.  
  142. __EXTRN__ char far *point_shrink;
  143.  
  144.  
  145. /* from version.c */
  146. extern char *wwiv_version;
  147. extern char *wwiv_date;
  148. extern unsigned int wwiv_num_version;
  149.  
  150.  
  151. #endif
  152.