1 /************************************************************* 2 * $Id: data.h,v 1.4 2003/10/09 17:11:18 marcolz Exp $ 3 * 4 * data.h 5 * 6 */ 7 /******************************************************* 8 * Copyright (C) Doug Hay, 1991. 9 * Permission to use and abuse this code, as long 10 * as this copyright notice stays intact and with the 11 * code. No warranty implied. This code supplied as is. 12 *******************************************************/ 13 14 #ifndef INC_EIF_DATA_H 15 #define INC_EIF_DATA_H 16 17 #ifdef MAIN 18 #define vext 19 #define initint(name, val) int name = (val) 20 #define initany(type, name, val) type name = (val) 21 #else 22 #define vext extern 23 #define initint(name, val) extern int name 24 #define initany(type, name, val) extern type name 25 #endif 26 27 extern FILE *curout; 28 29 /* The global flags */ 30 vext control_struct cntl; 31 32 /* The current game */ 33 initint(game_number, -1); /* The number of the current game */ 34 initint(game_socket, -1); /* Socket of the current game */ 35 initint(game_time, 0); /* Connect time of current game */ 36 initint(game_btus, 0); /* BTU's of current game */ 37 vext char game_name[40]; /* Name of current game */ 38 vext char game_host[128]; 39 vext char game_port[8]; 40 vext char game_country[20]; 41 vext char game_rep[128]; 42 initint(game_wait, 120); /* Seconds to wait in read for data */ 43 vext int game_xsize, game_ysize; 44 vext int game_protocol; 45 vext char game_dataf[128]; 46 47 48 vext int Interrupt; /* True if we got a sig_int */ 49 vext int Pipe_Interrupt; /* True if we got a sig_pipe */ 50 51 52 #undef vext 53 54 #endif /* INC_EIF_DATA_H */ 55 56 /* vim:ts=8:ai:sw=8:syntax=c 57 */ 58