mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-16 15:40:31 +00:00
Clean up more code
- Found some bugs in LLVM compiler-rt library - The useless LIBC_STUBS package is now deleted - Improve the overflow checking story even further - Get chibicc tests working in MODE=dbg mode again - The libc/isystem/ headers now have correctly named guards
This commit is contained in:
parent
afc58a8b41
commit
d7c79f43ef
294 changed files with 912 additions and 1208 deletions
8
third_party/zlib/deflate.c
vendored
8
third_party/zlib/deflate.c
vendored
|
@ -957,10 +957,10 @@ int ZEXPORT deflate(strm, flush)
|
|||
(s->gzhead->name == Z_NULL ? 0 : 8) +
|
||||
(s->gzhead->comment == Z_NULL ? 0 : 16)
|
||||
);
|
||||
put_byte(s, (Byte)(s->gzhead->time & 0xff));
|
||||
put_byte(s, (Byte)((s->gzhead->time >> 8) & 0xff));
|
||||
put_byte(s, (Byte)((s->gzhead->time >> 16) & 0xff));
|
||||
put_byte(s, (Byte)((s->gzhead->time >> 24) & 0xff));
|
||||
put_byte(s, (Byte)(s->gzhead->time_ & 0xff));
|
||||
put_byte(s, (Byte)((s->gzhead->time_ >> 8) & 0xff));
|
||||
put_byte(s, (Byte)((s->gzhead->time_ >> 16) & 0xff));
|
||||
put_byte(s, (Byte)((s->gzhead->time_ >> 24) & 0xff));
|
||||
put_byte(s, s->level == 9 ? 2 :
|
||||
(s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
|
||||
4 : 0));
|
||||
|
|
1
third_party/zlib/gz/gz.mk
vendored
1
third_party/zlib/gz/gz.mk
vendored
|
@ -24,7 +24,6 @@ THIRD_PARTY_ZLIB_GZ_A_DIRECTDEPS = \
|
|||
LIBC_NEXGEN32E \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
LIBC_STUBS \
|
||||
LIBC_SYSV \
|
||||
THIRD_PARTY_ZLIB
|
||||
|
||||
|
|
3
third_party/zlib/inflate.c
vendored
3
third_party/zlib/inflate.c
vendored
|
@ -331,7 +331,6 @@ struct inflate_state FAR *state;
|
|||
#include "libc/stdio/dprintf.h"
|
||||
#include "libc/calls/weirdtypes.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "third_party/musl/tempnam.h"
|
||||
|
@ -751,7 +750,7 @@ int flush;
|
|||
case TIME:
|
||||
NEEDBITS(32);
|
||||
if (state->head != Z_NULL)
|
||||
state->head->time = hold;
|
||||
state->head->time_ = hold;
|
||||
if ((state->flags & 0x0200) && (state->wrap & 4))
|
||||
CRC4(state->check, hold);
|
||||
INITBITS();
|
||||
|
|
1
third_party/zlib/trees.c
vendored
1
third_party/zlib/trees.c
vendored
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/fmt/fmt.h"
|
||||
#include "libc/mem/fmt.h"
|
||||
#include "libc/stdio/lock.internal.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
|
|
2
third_party/zlib/zlib.h
vendored
2
third_party/zlib/zlib.h
vendored
|
@ -171,7 +171,7 @@ typedef z_stream *z_streamp;
|
|||
*/
|
||||
typedef struct gz_header_s {
|
||||
int text; /* true if compressed data believed to be text */
|
||||
uLong time; /* modification time */
|
||||
uLong time_; /* modification time */
|
||||
int xflags; /* extra flags (not used when writing a gzip file) */
|
||||
int os; /* operating system */
|
||||
Bytef *extra; /* pointer to extra field or Z_NULL if none */
|
||||
|
|
3
third_party/zlib/zlib.mk
vendored
3
third_party/zlib/zlib.mk
vendored
|
@ -19,9 +19,8 @@ THIRD_PARTY_ZLIB_A_CHECKS = \
|
|||
THIRD_PARTY_ZLIB_A_DIRECTDEPS = \
|
||||
LIBC_INTRIN \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_SYSV \
|
||||
LIBC_STR \
|
||||
LIBC_STUBS
|
||||
LIBC_SYSV
|
||||
|
||||
THIRD_PARTY_ZLIB_A_DEPS := \
|
||||
$(call uniq,$(foreach x,$(THIRD_PARTY_ZLIB_A_DIRECTDEPS),$($(x))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue