mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-30 06:20:28 +00:00
Rename hidden keyword to _Hide
This commit is contained in:
parent
251dcb07eb
commit
bf7843833f
112 changed files with 616 additions and 3290 deletions
2
third_party/zlib/inffast.internal.h
vendored
2
third_party/zlib/inffast.internal.h
vendored
|
@ -20,7 +20,7 @@ COSMOPOLITAN_C_START_
|
|||
*/
|
||||
#define INFLATE_FAST_MIN_OUTPUT 258
|
||||
|
||||
void inflate_fast(z_streamp strm, unsigned start) hidden;
|
||||
void inflate_fast(z_streamp strm, unsigned start) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
22
third_party/zlib/internal.h
vendored
22
third_party/zlib/internal.h
vendored
|
@ -13,18 +13,18 @@ COSMOPOLITAN_C_START_
|
|||
#define zmemcpy memmove
|
||||
#define z_const const
|
||||
|
||||
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned) hidden;
|
||||
void copy_with_crc(z_streamp, Bytef *, long) hidden;
|
||||
void crc_finalize(deflate_state *const) hidden;
|
||||
void crc_reset(deflate_state *const) hidden;
|
||||
uint32_t adler32_simd_(uint32_t, const unsigned char *, size_t) hidden;
|
||||
void crc_fold_init(deflate_state *const) hidden;
|
||||
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned) _Hide;
|
||||
void copy_with_crc(z_streamp, Bytef *, long) _Hide;
|
||||
void crc_finalize(deflate_state *const) _Hide;
|
||||
void crc_reset(deflate_state *const) _Hide;
|
||||
uint32_t adler32_simd_(uint32_t, const unsigned char *, size_t) _Hide;
|
||||
void crc_fold_init(deflate_state *const) _Hide;
|
||||
void crc_fold_copy(deflate_state *const, unsigned char *, const unsigned char *,
|
||||
long) hidden;
|
||||
unsigned crc_fold_512to32(deflate_state *const) hidden;
|
||||
void fill_window_sse(deflate_state *) hidden;
|
||||
void *zcalloc(void *, uInt, uInt) hidden;
|
||||
void zcfree(void *, void *) hidden;
|
||||
long) _Hide;
|
||||
unsigned crc_fold_512to32(deflate_state *const) _Hide;
|
||||
void fill_window_sse(deflate_state *) _Hide;
|
||||
void *zcalloc(void *, uInt, uInt) _Hide;
|
||||
void zcfree(void *, void *) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
4
third_party/zlib/treeconst.c
vendored
4
third_party/zlib/treeconst.c
vendored
|
@ -1,12 +1,12 @@
|
|||
/* header created automatically with -DGEN_TREES_H */
|
||||
#include "third_party/zlib/internal.h"
|
||||
|
||||
hidden const int kZlibBaseLength[LENGTH_CODES] = {
|
||||
_Hide const int kZlibBaseLength[LENGTH_CODES] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24,
|
||||
28, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 0,
|
||||
};
|
||||
|
||||
hidden const int kZlibBaseDist[D_CODES] = {
|
||||
_Hide const int kZlibBaseDist[D_CODES] = {
|
||||
0, 1, 2, 3, 4, 6, 8, 12, 16, 24,
|
||||
32, 48, 64, 96, 128, 192, 256, 384, 512, 768,
|
||||
1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576,
|
||||
|
|
6
third_party/zlib/zutil.internal.h
vendored
6
third_party/zlib/zutil.internal.h
vendored
|
@ -38,7 +38,7 @@ COSMOPOLITAN_C_START_
|
|||
define "local" for the non-static meaning of "static", for readability
|
||||
(compile with -Dlocal if your debugger can't find static symbols) */
|
||||
|
||||
extern const char *const z_errmsg[10] hidden; /* indexed by 2-zlib_error */
|
||||
extern const char *const z_errmsg[10] _Hide; /* indexed by 2-zlib_error */
|
||||
/* (size given to avoid silly warnings with Visual C++) */
|
||||
|
||||
#define ERR_MSG(err) z_errmsg[Z_NEED_DICT - (err)]
|
||||
|
@ -52,8 +52,8 @@ extern const char *const z_errmsg[10] hidden; /* indexed by 2-zlib_error */
|
|||
|
||||
/* Diagnostic functions */
|
||||
#ifdef ZLIB_DEBUG
|
||||
extern int z_verbose hidden;
|
||||
extern void z_error(const char *, int, char *) hidden;
|
||||
extern int z_verbose _Hide;
|
||||
extern void z_error(const char *, int, char *) _Hide;
|
||||
#define Assert(cond, msg) \
|
||||
{ \
|
||||
if (!(cond)) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue