home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / W / WWIVSOR.ZIP / VARS.H < prev    next >
C/C++ Source or Header  |  1995-04-25  |  6KB  |  196 lines

  1. /*****************************************************************************
  2.  
  3.                 WWIV Version 4
  4.                     Copyright (C) 1988-1995 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. #ifndef _VARS_H_
  16. #define _VARS_H_
  17.  
  18. #include <stdio.h>
  19. #include <io.h>
  20. #include <fcntl.h>
  21. #include <string.h>
  22. #include <stdlib.h>
  23. #include <sys\stat.h>
  24. #include <dos.h>
  25. #include <alloc.h>
  26. #include <time.h>
  27. #ifdef __OS2__
  28. #include "os2lib.h"
  29. #endif
  30.  
  31. #include "fcns.h"
  32.  
  33. /****************************************************************************/
  34. #ifdef _DEFINE_GLOBALS_
  35.  
  36. char *ctypes[] = {
  37.   "IBM PC (8088)",
  38.   "IBM AT (80286)",
  39.   "IBM 80386/80486",
  40.   "IBM PS/2",
  41.   "Apple 2",
  42.   "Apple Mac",
  43.   "Commodore Amiga",
  44.   "Commodore",
  45.   "Atari",
  46.   "Other",
  47.   0L,
  48. };
  49.  
  50. unsigned char *translate_letters[] = {
  51.   "abcdefghijklmnopqrstuvwxyzçäåéüöñ",
  52.   "ABCDEFGHIJKLMNOPQRSTUVWXYZÇÄÅÉÜÖÑ",
  53.   0L,
  54. };
  55.  
  56. unsigned char *valid_letters=
  57. "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZÇüéâäàåçêëèïîìÄÅÉÆôöòûùÿÖÜíóúñÑ";
  58.  
  59. #define __EXTRN__
  60.  
  61. /****************************************************************************/
  62. #else
  63. /****************************************************************************/
  64.  
  65. extern char *ctypes[];
  66. extern char *valid_letters;
  67. extern unsigned char *translate_letters[];
  68.  
  69. #define __EXTRN__ extern
  70.  
  71.  
  72. #endif
  73. /****************************************************************************/
  74.  
  75.  
  76. __EXTRN__ char ansistr[81], cdir[81], charbuffer[161], chatreason[81],
  77.                crttype, curspeed[81], dc[81], dcd[81], dszlog[81],
  78.                dtc[81], endofline[81], gatfn[81], irt[81], irt_name[205],
  79.                *languagedir, *net_data, *net_name, net_email_name[205],
  80.                newprompt[161], odc[81], *quotes_nrm, *quotes_ind,
  81.                search_pattern[81], *sp, str_no[20], str_pause[80],
  82.                str_quit[20], str_yes[20], tc[81], ver_no1[51],
  83.                ver_no2[51],wwiv_net_no[20], xdate[9], *xenviron[50],
  84.                dlfn[81],edlfn[81], nete[5], irt_sub[81];
  85.  
  86. __EXTRN__ unsigned char actsl, andwith, checksum;
  87.  
  88.  
  89. __EXTRN__ int abortext, already_on, ansiptr, async_irq, base,
  90.               change_color, charbufferpointer, chatcall,
  91.               chatting, chat_file, checkit, curatr, curdir,
  92.               curdloads, curldir, curlsub, cursub, cur_lang,
  93.               curconfdir, curconfsub, cur_lang_idx, c_dir, c_sub,
  94.               daysmax, daysmin, defscreenbottom, do_event, echo, emchg,
  95.               endday, express, expressabort, flow_control, fsenttoday,
  96.               fwaiting, gat_section, global_handle, global_xx, hangup, helpl,
  97.               high_speed, hungup, ihelp, incom, input_extern, in_extern,
  98.               in_fsed, lastcon, lecho, lines_listed, live_user, ltime,
  99.               mailcheck, max_subs, max_dirs, msgreadlogon, net_num,
  100.               net_num_max, net_type, noklevel, no_hangup, numbatch,
  101.               numbatchdl, numchain, numed, numextrn, numf, nummsgs,
  102.               num_dirs, num_languages, num_sec, num_subs,
  103.               num_sys_list, oklevel, okmacro, okskey, ok_modem_stuff,
  104.               oldx, oldy, ooneuser, outcom, questused[20],
  105.               restoring_shrink, save_dos, screenbottom, screenlen,
  106.               screenlinest, subchg, smwcheck, sysop_alert, tempio,
  107.               topdata, topline, two_color, usernum, useron,
  108.               use_workspace, using_modem, wfc, x_only,
  109.               instance,debuglevel,multitasker,tagging,tagptr,cursormove,
  110.               titled, abortext;
  111.  
  112. __EXTRN__ unsigned short com_speed, *csn_index, crc, *gat, modem_flag,
  113.                          modem_mode, modem_speed, net_sysnum, curloc, eflags;
  114.  
  115. __EXTRN__ unsigned int subconfnum, dirconfnum;
  116.  
  117. __EXTRN__ long hanguptime1, last_time_c, nscandate, this_date,
  118.                timelastchar1, quotes_nrm_l, quotes_ind_l,
  119.                mult_time, num_listed;
  120.  
  121. __EXTRN__ unsigned long *dir_dates, *sub_dates, g_flags;
  122.  
  123. __EXTRN__ unsigned long *qsc, *qsc_n, *qsc_q, *qsc_p;
  124.  
  125.  
  126. __EXTRN__ float batchtime;
  127.  
  128. __EXTRN__ double extratimecall, last_time, timeon, time_event, xtime;
  129.  
  130.  
  131. __EXTRN__ userrec thisuser;
  132. __EXTRN__ configrec syscfg;
  133. __EXTRN__ configoverrec syscfgovr;
  134. __EXTRN__ statusrec status;
  135. __EXTRN__ smalrec huge *smallist;
  136. __EXTRN__ subboardrec *subboards;
  137. __EXTRN__ directoryrec huge *directories;
  138. __EXTRN__ usersubrec *usub, *udir;
  139. __EXTRN__ userconfrec *uconfsub, *uconfdir;
  140. __EXTRN__ screentype screensave;
  141. __EXTRN__ messagerec helps[50], menus[30],menus1[30],menus2[30];
  142. __EXTRN__ batchrec *batch;
  143. __EXTRN__ tagrec *filelist;
  144. __EXTRN__ chainfilerec *chains;
  145. __EXTRN__ chainregrec *chains_reg;
  146. __EXTRN__ newexternalrec *externs, *over_intern;
  147. __EXTRN__ editorrec *editors;
  148. __EXTRN__ gfiledirrec *gfilesec;
  149. __EXTRN__ modem_info *modem_i;
  150. __EXTRN__ net_system_list_rec huge *csn;
  151. __EXTRN__ net_networks_rec *net_networks;
  152.  
  153. __EXTRN__ volatile int head,tail;
  154. __EXTRN__ volatile char buffer[MAX_BUF];
  155.  
  156. __EXTRN__ void far *funcs[25];
  157. __EXTRN__ char far *scrn;
  158.  
  159. __EXTRN__ char far *point_shrink;
  160.  
  161. __EXTRN__ languagerec *languages;
  162. __EXTRN__ char *cur_lang_name;
  163.  
  164. __EXTRN__ confrec far *subconfs, *dirconfs;
  165.  
  166. __EXTRN__ int iia;
  167.  
  168. __EXTRN__ long last_iia;
  169.  
  170. __EXTRN__ system_operation_rec sysinfo;
  171.  
  172. #ifdef __OS2__
  173. __EXTRN__ FILE *stdprn;
  174. __EXTRN__ HFILE PortHandle;
  175. __EXTRN__ TID RecvThreadID;
  176. #endif
  177.  
  178. /* from version.c */
  179. extern char *wwiv_version;
  180. extern char *wwiv_date;
  181. extern unsigned int wwiv_num_version;
  182.  
  183. /* RIP specific variables */
  184. __EXTRN__ int rmenu, rip_pause, end_submenu, autox, rip_ver, rip_popup;
  185. __EXTRN__ char rip, cleared, formery, smally, ripext[4], ripcode,
  186.                rip_subset, user_menus, ripdrive;
  187. __EXTRN__ ripmsgrec menus3[50],menusl[30];
  188.  
  189. #endif
  190.  
  191. /****************************************************************************/
  192.  
  193. #define CONF_SUBS 1
  194. #define CONF_DIRS 2
  195.  
  196.