#include "const.h" #include "lochead.eng" #include "loctoup.eng" #include "global.c" #include "os.c" #include "rdwrfn.c" #include "others.c" #include "smallfn.c" #include "block.c" #include "getargs.c" #include "comment.c" #include "getopt.c" #include "extract.c" #include "somefn.c" #include "list.c" #include "compr.c" main(int Argc, char *Argv[]) { setbuf(stdout,NULL); InitCRC(); InitSomeVars(); if (signal(SIGINT,SIG_IGN)!=SIG_IGN) signal(SIGINT,ProcessSignal); if (signal(SIGTERM,SIG_IGN)!=SIG_IGN) signal(SIGTERM,ProcessSignal); #ifdef SIGBREAK if (signal(SIGBREAK,SIG_IGN)!=SIG_IGN) signal(SIGBREAK,ProcessSignal); #endif #ifdef _WIN_32 { int I; if (signal(SIGBREAK,SIG_IGN)!=SIG_IGN) signal(SIGBREAK,ProcessSignal); SetFileApisToOEM(); for (I=0;I=0) DestUnpSize-=Code; } free(TempMemory); TempMemory=NULL; } void ConvertPath(char *OutPath, char *InPath) { char TmpStr[NM],*OutPathPtr; if (InPath[0] && IsDriveDiv(InPath[1])) OutPathPtr=&InPath[2]; else OutPathPtr=InPath; if (OutPathPtr[0]=='.' && OutPathPtr[1]==CPATHDIVIDER) OutPathPtr++; if (OutPathPtr[0]=='.' && OutPathPtr[1]=='.' && OutPathPtr[2]==CPATHDIVIDER) OutPathPtr+=2; if (*OutPathPtr==CPATHDIVIDER) OutPathPtr++; strcpy(TmpStr,OutPathPtr); strcpy(OutPath,TmpStr); } void AskNextVol(void) { mprintf(MAskNextVol,ArcName); Ask(MContinueQuit); if (Choice==2) ErrExit(EEMPTY,USER_BREAK); }