#include #ifdef DMALLOC #include #endif #include "tcltk.h" #include "defines.h" #include "illist.h" #include "complete.h" #include "mytcl.h" #include "serverdcc.h" #include "window.h" #include "history.h" #include "network.h" #include "echo.h" #include "hash.h" #include "messages.h" #include "format.h" // The unique numbers for identifying items with int statusnum=0; int channum=0; int querynum=0; int chatnum=0; int acceptnum=0; int filenum=0; // The pathname to the current window char currentwindow[20]; // List of Windows in client ilist windows; // Global history list ilist history; int historyposition=-1; char *historycommand=0; // Formating and Location listings hash formats; hash activate; hash locations; int main(int argc, char **argv) { twindow window; int n; int foundi=0; int argc2=argc; char **argv2; #ifdef SOCKS // Socks Idenfication Call SOCKSinit(argv[0]); #endif if(!(argv2=(char **)malloc(argc*sizeof(char *)))) { fprintf(stderr,M_OUT_OF_MEMORY); exit(1); } for(n=0;n