Lines Matching defs:GLOBAL

81 #  ifdef GLOBAL         /* used in Amiga system headers, maybe others too */
82 # undef GLOBAL
84 # define GLOBAL(g) g
86 # define GLOBAL(g) G.g
126 temp = ((unsigned)GLOBAL(keys[2]) & 0xffff) | 2;
137 GLOBAL(keys[0]) = CRC32(GLOBAL(keys[0]), c);
138 GLOBAL(keys[1]) += GLOBAL(keys[0]) & 0xff;
139 GLOBAL(keys[1]) = GLOBAL(keys[1]) * 134775813L + 1;
141 register int keyshift = (int)(GLOBAL(keys[1]) >> 24);
142 GLOBAL(keys[2]) = CRC32(GLOBAL(keys[2]), keyshift);
156 GLOBAL(keys[0]) = 305419896L;
157 GLOBAL(keys[1]) = 591751049L;
158 GLOBAL(keys[2]) = 878082192L;
391 Trace((stdout, "\n[incnt = %d]: ", GLOBAL(incnt)));
395 GLOBAL(pInfo->encrypted) = FALSE;
403 GLOBAL(pInfo->encrypted) = TRUE;
405 if (GLOBAL(newzip)) { /* this is first encrypted member in this zipfile */
406 GLOBAL(newzip) = FALSE;
408 if (!GLOBAL(key)) {
409 if ((GLOBAL(key) = (char *)malloc(strlen(passwrd)+1)) ==
412 strcpy(GLOBAL(key), passwrd);
413 GLOBAL(nopwd) = TRUE; /* inhibit password prompting! */
415 } else if (GLOBAL(key)) { /* get rid of previous zipfile's key */
416 free(GLOBAL(key));
417 GLOBAL(key) = (char *)NULL;
422 if (GLOBAL(key)) {
425 else if (GLOBAL(nopwd))
427 } else if ((GLOBAL(key) = (char *)malloc(IZ_PWLEN+1)) == (char *)NULL)
433 r = (*G.decr_passwd)((zvoid *)&G, &n, GLOBAL(key), IZ_PWLEN+1,
434 GLOBAL(zipfn), GLOBAL(filename));
436 free (GLOBAL(key));
437 GLOBAL(key) = NULL;
441 *GLOBAL(key) = '\0'; /* We try the NIL password, ... */
447 GLOBAL(nopwd) = TRUE; /* inhibit any further PW prompt! */
472 if ((key_translated = malloc(strlen(GLOBAL(key)) + 1)) == (char *)NULL)
475 r = testkey(__G__ h, STR_TO_CP1(key_translated, GLOBAL(key)));
478 r = testkey(__G__ h, GLOBAL(key));
485 if ((key_translated = malloc(strlen(GLOBAL(key)) + 1)) == (char *)NULL)
489 r = testkey(__G__ h, STR_TO_CP2(key_translated, GLOBAL(key)));
493 r = testkey(__G__ h, STR_TO_CP3(key_translated, GLOBAL(key)));
505 r = testkey(__G__ h, GLOBAL(key));
539 GLOBAL(lrec.crc32), GLOBAL(pInfo->crc),
540 GLOBAL(pInfo->ExtLocHdr) ? "true":"false"));
542 GLOBAL(incnt),
543 GLOBAL(cur_zipfile_bufstart)+(GLOBAL(inptr)-GLOBAL(inbuf))));
551 (ush)(c | (b<<8)), (ush)(GLOBAL(lrec.crc32) >> 16),
552 ((ush)GLOBAL(lrec.last_mod_dos_datetime) & 0xffff))));
553 if ((ush)(c | (b<<8)) != (GLOBAL(pInfo->ExtLocHdr) ?
554 ((ush)GLOBAL(lrec.last_mod_dos_datetime) & 0xffff) :
555 (ush)(GLOBAL(lrec.crc32) >> 16)))
560 b, (ush)(GLOBAL(lrec.crc32) >> 24),
561 ((ush)GLOBAL(lrec.last_mod_dos_datetime) >> 8) & 0xff));
562 if (b != (GLOBAL(pInfo->ExtLocHdr) ?
563 ((ush)GLOBAL(lrec.last_mod_dos_datetime) >> 8) & 0xff :
564 (ush)(GLOBAL(lrec.crc32) >> 24)))
568 for (n = (long)GLOBAL(incnt) > GLOBAL(csize) ?
569 (int)GLOBAL(csize) : GLOBAL(incnt),
570 p = GLOBAL(inptr); n--; p++)