mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Revert whitespace fixes to third_party (#501)
This commit is contained in:
parent
d4000bb8f7
commit
9de3d8f1e6
365 changed files with 39190 additions and 39211 deletions
2
third_party/unzip/api.c
vendored
2
third_party/unzip/api.c
vendored
|
@ -519,7 +519,7 @@ int close_redirect(__G)
|
|||
a wildcard to be meaningful
|
||||
pattern = string to search for
|
||||
cmd = 0 - case-insensitive search
|
||||
1 - case-sensitive search
|
||||
1 - case-sensitve search
|
||||
2 - case-insensitive, whole words only
|
||||
3 - case-sensitive, whole words only
|
||||
SkipBin = if true, skip any files that have control
|
||||
|
|
2
third_party/unzip/envargs.c
vendored
2
third_party/unzip/envargs.c
vendored
|
@ -168,7 +168,7 @@ int envargs(Pargc, Pargv, envstr, envstr2)
|
|||
/* finally, add a NULL after the last arg, like Unix */
|
||||
*argv = (char *)NULL;
|
||||
|
||||
/* save the values and return, indicating success */
|
||||
/* save the values and return, indicating succes */
|
||||
*Pargv = argvect;
|
||||
*Pargc = argc;
|
||||
|
||||
|
|
8
third_party/unzip/extract.c
vendored
8
third_party/unzip/extract.c
vendored
|
@ -887,7 +887,7 @@ int extract_or_test_files(__G) /* return PK-type error code */
|
|||
|
||||
if ((filnum == 0) && error_in_archive <= PK_WARN) {
|
||||
if (num_skipped > 0L)
|
||||
error_in_archive = IZ_UNSUP; /* unsupported. compression/encryption */
|
||||
error_in_archive = IZ_UNSUP; /* unsupport. compression/encryption */
|
||||
else
|
||||
error_in_archive = PK_FIND; /* no files found at all */
|
||||
}
|
||||
|
@ -1643,9 +1643,9 @@ reprompt:
|
|||
UserStop();
|
||||
#endif
|
||||
} /* end for-loop (i: files in current block) */
|
||||
|
||||
|
||||
return error_in_archive;
|
||||
|
||||
|
||||
} /* end function extract_or_test_entrylistw() */
|
||||
|
||||
|
||||
|
@ -3239,7 +3239,7 @@ char *fnfilter(raw, space, size) /* convert name to safely printable form */
|
|||
* appear in filenames by itself. The following default definition
|
||||
* sets the replacement char to a question mark as the most common
|
||||
* "single char wildcard"; this setting should be overridden in the
|
||||
* appropriate system-specific configuration header when needed.
|
||||
* appropiate system-specific configuration header when needed.
|
||||
*/
|
||||
# define UZ_FNFILTER_REPLACECHAR '?'
|
||||
#endif
|
||||
|
|
2
third_party/unzip/fileio.c
vendored
2
third_party/unzip/fileio.c
vendored
|
@ -935,7 +935,7 @@ static int partflush(__G__ rawbuf, size, unshrink)
|
|||
if (size < G.apl_dbl_hdr_bytes)
|
||||
{
|
||||
/* Fewer bytes than needed to complete the AppleDouble
|
||||
* header. (Unlikely?) Move them to the AppleDouble
|
||||
* header. (Unlikely?) Move them to the AppleDouble
|
||||
* header buffer, adjust the byte counts, and resume
|
||||
* extraction.
|
||||
*/
|
||||
|
|
6
third_party/unzip/inflate.c
vendored
6
third_party/unzip/inflate.c
vendored
|
@ -207,7 +207,7 @@
|
|||
end-of-block. Note however that the static length tree defines
|
||||
288 codes just to fill out the Huffman codes. Codes 286 and 287
|
||||
cannot be used though, since there is no length base or extra bits
|
||||
defined for them. Similarly, there are up to 30 distance codes.
|
||||
defined for them. Similarily, there are up to 30 distance codes.
|
||||
However, static trees define 32 codes (all 5 bits) to fill out the
|
||||
Huffman codes, but the last two had better not show up in the data.
|
||||
7. Unzip can check dynamic Huffman blocks for complete code sets.
|
||||
|
@ -855,7 +855,7 @@ ZCONST unsigned near mask_bits[17] = {
|
|||
block. See the huft_build() routine.
|
||||
|
||||
Actually, the precautions mentioned above are not sufficient to
|
||||
prevent fetches of bits beyond the end of the last block in every
|
||||
prevent fetches of bits beyound the end of the last block in every
|
||||
case. When the last code fetched before the end-of-block code was
|
||||
a very short distance code (shorter than "distance-prefetch-bits" -
|
||||
"end-of-block code bits"), this last distance code fetch already
|
||||
|
@ -1351,7 +1351,7 @@ static int inflate_dynamic(__G)
|
|||
}
|
||||
#ifdef FIX_PAST_EOB_BY_TABLEADJUST
|
||||
/* Adjust the requested distance base table size so that a distance code
|
||||
fetch never tries to get bits behind an immediately following end-of-block
|
||||
fetch never tries to get bits behind an immediatly following end-of-block
|
||||
code. */
|
||||
bd = (dbits <= bl+1 ? dbits : bl+1);
|
||||
#else
|
||||
|
|
2
third_party/unzip/match.c
vendored
2
third_party/unzip/match.c
vendored
|
@ -418,7 +418,7 @@ int iswildw(pw) /* originally only used for stat()-bug workaround in */
|
|||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
|
||||
|
||||
} /* end function iswildw() */
|
||||
#endif /* defined(UNICODE_SUPPORT) && defined(WIN32_WIDE) */
|
||||
|
||||
|
|
8
third_party/unzip/process.c
vendored
8
third_party/unzip/process.c
vendored
|
@ -304,8 +304,8 @@ int process_zipfiles(__G) /* return PK-type error code */
|
|||
#endif /* IZ_CHECK_TZ && USE_EF_UT_TIME */
|
||||
|
||||
/* For systems that do not have tzset() but supply this function using another
|
||||
name (_tzset() or something similar), an appropriate "#define tzset ..."
|
||||
should be added to the system specific configuration section. */
|
||||
name (_tzset() or something similar), an appropiate "#define tzset ..."
|
||||
should be added to the system specifc configuration section. */
|
||||
#if (!defined(T20_VMS) && !defined(MACOS) && !defined(RISCOS) && !defined(QDOS))
|
||||
#if (!defined(BSD) && !defined(MTS) && !defined(CMS_MVS) && !defined(TANDEM))
|
||||
tzset();
|
||||
|
@ -2784,7 +2784,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
|
|||
structure (provided the z_utim pointer is not NULL).
|
||||
If a IZUNIX2 block is found or the IZUNIX block contains UID/GID fields,
|
||||
and the z_uidgid array pointer is valid (!= NULL), the owner info is
|
||||
transferred as well.
|
||||
transfered as well.
|
||||
The presence of an EF_TIME or EF_IZUNIX2 block results in ignoring all
|
||||
data from probably present obsolete EF_IZUNIX blocks.
|
||||
If multiple blocks of the same type are found, only the information from
|
||||
|
@ -3052,7 +3052,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
|
|||
? (dos_mdatetime == DOSTIME_MINIMUM)
|
||||
: (dos_mdatetime >= DOSTIME_2038_01_18);
|
||||
if (!ut_zip_unzip_compatible) {
|
||||
/* UnZip interprets mtime differently than Zip;
|
||||
/* UnZip interpretes mtime differently than Zip;
|
||||
without modtime: ignore complete UT field */
|
||||
flags &= ~0x0ff; /* no time_t times available */
|
||||
TTrace((stderr,
|
||||
|
|
10
third_party/unzip/unix.c
vendored
10
third_party/unzip/unix.c
vendored
|
@ -1572,7 +1572,7 @@ void version(__G)
|
|||
" (Silicon Graphics IRIX)",
|
||||
#else
|
||||
#ifdef sun
|
||||
# if defined(UNAME_P) && defined(UNAME_R) && defined(UNAME_S)
|
||||
# if defined(UNAME_P) && defined(UNAME_R) && defined(UNAME_S)
|
||||
" ("UNAME_S" "UNAME_R" "UNAME_P")",
|
||||
# else
|
||||
# ifdef sparc
|
||||
|
@ -1595,7 +1595,7 @@ void version(__G)
|
|||
# endif
|
||||
#else /* def sun */
|
||||
#ifdef __hpux
|
||||
# if defined(UNAME_M) && defined(UNAME_R) && defined(UNAME_S)
|
||||
# if defined(UNAME_M) && defined(UNAME_R) && defined(UNAME_S)
|
||||
" ("UNAME_S" "UNAME_R" "UNAME_M")",
|
||||
# else
|
||||
" (HP-UX)",
|
||||
|
@ -1730,7 +1730,7 @@ void version(__G)
|
|||
" (LynxOS)",
|
||||
#else
|
||||
#ifdef __APPLE__
|
||||
# if defined(UNAME_P) && defined(UNAME_R) && defined(UNAME_S)
|
||||
# if defined(UNAME_P) && defined(UNAME_R) && defined(UNAME_S)
|
||||
" ("UNAME_S" "UNAME_R" "UNAME_P")",
|
||||
# else
|
||||
# ifdef __i386__
|
||||
|
@ -1980,7 +1980,7 @@ void init_conversion_charsets()
|
|||
const char *local_charset;
|
||||
int i;
|
||||
|
||||
/* Make a guess only if OEM_CP not already set. */
|
||||
/* Make a guess only if OEM_CP not already set. */
|
||||
if(*OEM_CP == '\0') {
|
||||
local_charset = nl_langinfo(CODESET);
|
||||
for(i = 0; i < sizeof(dos_charset_map)/sizeof(CHARSET_MAP); i++)
|
||||
|
@ -1994,7 +1994,7 @@ void init_conversion_charsets()
|
|||
|
||||
/* Convert a string from one encoding to the current locale using iconv().
|
||||
* Be as non-intrusive as possible. If error is encountered during
|
||||
* conversion just leave the string intact. */
|
||||
* convertion just leave the string intact. */
|
||||
static void charset_to_intern(char *string, char *from_charset)
|
||||
{
|
||||
iconv_t cd;
|
||||
|
|
4
third_party/unzip/unix/Makefile
vendored
4
third_party/unzip/unix/Makefile
vendored
|
@ -888,12 +888,12 @@ linux_shlibz: unix_make
|
|||
lynx: unix_make
|
||||
$(MAKE) unzips CC=gcc CF="$(CF) -DLynx -DLYNX -DBSD -DUNIX"
|
||||
|
||||
# Macintosh MacOS X (Unix-compatible environment), using standard compiler
|
||||
# Macintosh MacOS X (Unix-compatible enviroment), using standard compiler
|
||||
macosx: unix_make
|
||||
$(MAKE) unzips CFLAGS="-O3 -Wall -DBSD" LF2=""
|
||||
$(STRIP) $(UNZIPS)
|
||||
|
||||
# Macintosh MacOS X (Unix-compatible environment), using gcc
|
||||
# Macintosh MacOS X (Unix-compatible enviroment), using gcc
|
||||
macosx_gcc: unix_make
|
||||
$(MAKE) unzips CC=gcc CFLAGS="-O3 -Wall -DBSD" LF2=""
|
||||
$(STRIP) $(UNZIPS)
|
||||
|
|
2
third_party/unzip/unix/Packaging/postinstall
vendored
2
third_party/unzip/unix/Packaging/postinstall
vendored
|
@ -5,7 +5,7 @@
|
|||
echo " "
|
||||
echo " "
|
||||
echo "Installation is complete. Now, you should add the following"
|
||||
echo "(or equivalent) commands to the appropriate initial user shell"
|
||||
echo "(or equivalnet) commands to the appropriate initial user shell"
|
||||
echo "scripts (such as .profile, .login, etc) -- "
|
||||
echo " "
|
||||
echo " For korn or bourne shell:"
|
||||
|
|
6
third_party/unzip/unxcfg.h
vendored
6
third_party/unzip/unxcfg.h
vendored
|
@ -210,13 +210,13 @@ typedef struct stat z_stat;
|
|||
|
||||
|
||||
#ifdef USE_ICONV_MAPPING
|
||||
# define MAX_CP_NAME 25
|
||||
|
||||
# define MAX_CP_NAME 25
|
||||
|
||||
# ifdef SETLOCALE
|
||||
# undef SETLOCALE
|
||||
# endif
|
||||
# define SETLOCALE(category, locale) setlocale(category, locale)
|
||||
|
||||
|
||||
# ifdef _ISO_INTERN
|
||||
# undef _ISO_INTERN
|
||||
# endif
|
||||
|
|
10
third_party/unzip/unzip.c
vendored
10
third_party/unzip/unzip.c
vendored
|
@ -1380,8 +1380,8 @@ static int setsignalhandler(__G__ p_savedhandler_chain, signal_type,
|
|||
|
||||
# endif /* REENTRANT && !NO_EXCEPT_SIGNALS */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
-------------------------------------------------------
|
||||
Command Line Options
|
||||
|
@ -2900,7 +2900,7 @@ static void help_extended(__G)
|
|||
" displays may be limited to a specific code page. Either way full UTF-8",
|
||||
" paths are generally restored on extraction where OS supports. Use -U",
|
||||
" to force use of escapes in extracted names. Use -UU to totally ignore",
|
||||
" Unicode. Unicode comments not yet fully supported.",
|
||||
" Unicode. Unicode comments not yet fully supported.",
|
||||
"",
|
||||
" \"New\" options -I and -O (from a patch that has been out there awhile)",
|
||||
" are used on UNIX to set the ISO and OEM code pages used for conversions.",
|
||||
|
@ -3101,7 +3101,7 @@ static void show_options(__G)
|
|||
strcpy(gr, "INF");
|
||||
else
|
||||
strcpy(gr, "? ");
|
||||
|
||||
|
||||
strcpy(sh, options[i].shortopt);
|
||||
strcat(sh, " ");
|
||||
sh[2] = '\0';
|
||||
|
@ -4832,7 +4832,7 @@ unsigned long get_option(__G__ option_group, pargs, argc, argnum, optchar, value
|
|||
|
||||
} else if (allow_arg_files && arg[0] == '@') {
|
||||
/* arg file */
|
||||
oERR(PK_PARAMS, no_arg_files_err);
|
||||
oERR(PK_PARMS, no_arg_files_err);
|
||||
#endif
|
||||
|
||||
} else {
|
||||
|
|
2
third_party/unzip/zipinfo.txt
vendored
2
third_party/unzip/zipinfo.txt
vendored
|
@ -65,7 +65,7 @@ ARGUMENTS
|
|||
|
||||
OPTIONS
|
||||
-1 list filenames only, one per line. This option excludes all
|
||||
others; headers, trailers and zipfile comments are never
|
||||
others; headers, trailers and zipfile comments are never
|
||||
printed. It is intended for use in Unix shell scripts.
|
||||
|
||||
-2 list filenames only, one per line, but allow headers (-h),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue