• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/unzip60/wince/

Lines Matching refs:pG

171 static void FreeGlobals(Uz_Globs *pG);
187 static int GetFileTimes(Uz_Globs *pG, FILETIME *pftCreated,
199 int UZ_EXP UzpMessagePrnt2(zvoid *pG, uch *buffer, ulg size, int flag);
200 int UZ_EXP UzpInput2(zvoid *pG, uch *buffer, int *size, int flag);
201 int UZ_EXP CheckForAbort2(zvoid *pG, int fnflag, ZCONST char *zfn,
228 Uz_Globs *pG = InitGlobals(szZipFile);
229 if (!pG) {
233 pG->UzO.vflag = 1; // verbosely: list directory (for WIN32 it is 0 or 1)
234 pG->process_all_files = TRUE; // improves speed
246 result = process_zipfiles(pG);
265 if ((result != PK_EXCEPTION) && pG->zipfn && *pG->zipfn) {
266 strcpy(g_szZipFile, pG->zipfn);
270 FreeGlobals(pG);
288 Uz_Globs *pG = InitGlobals(szZipFile);
289 if (!pG) {
307 hThread = CreateThread(NULL, 0, ExtractOrTestFilesThread, pG, 0,
314 hThread = (HANDLE)_beginthreadex(NULL, 0, ExtractOrTestFilesThread, pG, 0,
328 FreeGlobals(pG);
348 Uz_Globs *pG = InitGlobals(szZipFile);
349 if (!pG) {
353 pG->UzO.zflag = TRUE; // display the zipfile comment
362 result = process_zipfiles(pG);
373 FreeGlobals(pG);
435 // Create our global structure - pG
439 if (!pG) {
447 // used by WINMAIN.CPP to access it (without using the pG construction).
450 // Store a global pointer to our USERFUNCTIONS structure in pG so that
452 pG->lpUserFunctions = &g_uf;
455 pG->message = UzpMessagePrnt2;
456 pG->input = UzpInput2;
457 pG->mpause = UzpMorePause;
458 pG->statreportcb = CheckForAbort2;
459 pG->lpUserFunctions->replace = UzpReplace;
460 pG->lpUserFunctions->sound = UzpSound;
461 pG->lpUserFunctions->SendApplicationMessage = SendAppMsg;
462 pG->lpUserFunctions->SendApplicationMessage_i32 = NULL;
465 pG->decr_passwd = UzpPassword;
470 pG->UzO.C_flag = FALSE;
472 // Allocate and store the ZIP file name in pG->zipfn
473 if (!(pG->zipfnPtr = new char[FILNAMSIZ])) {
474 FreeGlobals(pG);
477 pG->zipfn = pG->zipfnPtr;
478 strcpy(pG->zipfn, szZipFile);
480 // Allocate and store the ZIP file name in pG->zipfn. This needs to done
483 if (!(pG->wildzipfnPtr = new char[FILNAMSIZ])) {
484 FreeGlobals(pG);
487 pG->wildzipfn = pG->wildzipfnPtr;
488 strcpy(pG->wildzipfn, szZipFile);
490 return pG;
494 static void FreeGlobals(Uz_Globs *pG)
497 if (pG->zipfnPtr) {
498 delete[] pG->zipfnPtr;
499 pG->zipfnPtr = pG->zipfn = NULL;
503 if (pG->wildzipfnPtr) {
504 delete[] pG->wildzipfnPtr;
505 pG->wildzipfnPtr = pG->wildzipfn = NULL;
525 Uz_Globs *pG = (Uz_Globs*)lpv;
529 pG->extract_flag = TRUE;
534 pG->UzO.uflag = TRUE;
538 pG->UzO.overwrite_all = TRUE;
542 pG->UzO.overwrite_none = TRUE;
546 pG->UzO.overwrite_all = FALSE;
547 pG->UzO.overwrite_none = FALSE;
548 pG->UzO.uflag = FALSE;
553 pG->UzO.jflag = !g_pExtractInfo->fRestorePaths;
556 pG->UzO.tflag = TRUE;
560 pG->filespecs = g_pExtractInfo->dwFileCount;
561 pG->pfnames = g_pExtractInfo->szFileList;
564 pG->process_all_files = TRUE;
589 g_pExtractInfo->result = process_zipfiles(pG);
601 FreeGlobals(pG);
689 int UZ_EXP UzpMessagePrnt2(zvoid *pG, uch *buffer, ulg size, int flag)
711 if (g_pExtractInfo->uzFileOffset != (zusz_t)((Uz_Globs*)pG)->pInfo->offset) {
712 SetCurrentFile((Uz_Globs*)pG);
765 int UZ_EXP UzpInput2(zvoid *pG, uch *buffer, int *size, int flag)
772 void UZ_EXP UzpMorePause(zvoid *pG, const char *szPrompt, int flag)
778 int UZ_EXP UzpPassword(zvoid *pG, int *pcRetry, char *szPassword, int nSize,
814 int UZ_EXP CheckForAbort2(zvoid *pG, int fnflag, ZCONST char *zfn,
827 if (((int)((Uz_Globs *)pG)->outfile != 0) &&
828 ((int)((Uz_Globs *)pG)->outfile != -1)) {
928 g_pFileLast->dwAttributes = (pG->crec.external_file_attributes & 0xFF);
942 int win_fprintf(zvoid *pG, FILE *file, unsigned int dwCount, char far *buffer)
975 UzpMessagePrnt2(pG, (uch*)buffer, dwCount, 0);