Remove _Hide keyword

It never did anything and isn't worthwhile as documentation.
This commit is contained in:
Justine Tunney 2023-07-24 08:31:54 -07:00
parent 4fb6cbc1fe
commit e0c2b91b3e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
131 changed files with 716 additions and 917 deletions

View file

@ -14,9 +14,9 @@ COSMOPOLITAN_C_START_
#elif defined(__aarch64__)
#define cpu_check_features zlib_cpu_check_features
_Hide extern int arm_cpu_enable_crc32;
_Hide extern int arm_cpu_enable_pmull;
_Hide void cpu_check_features(void);
extern int arm_cpu_enable_crc32;
extern int arm_cpu_enable_pmull;
void cpu_check_features(void);
#endif
COSMOPOLITAN_C_END_

View file

@ -20,7 +20,7 @@ COSMOPOLITAN_C_START_
*/
#define INFLATE_FAST_MIN_OUTPUT 258
void inflate_fast(z_streamp strm, unsigned start) _Hide;
void inflate_fast(z_streamp strm, unsigned start);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */

View file

@ -13,18 +13,18 @@ COSMOPOLITAN_C_START_
#define zmemzero bzero
#define zmemcpy memmove
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;
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned);
void copy_with_crc(z_streamp, Bytef *, long);
void crc_finalize(deflate_state *const);
void crc_reset(deflate_state *const);
uint32_t adler32_simd_(uint32_t, const unsigned char *, size_t);
void crc_fold_init(deflate_state *const);
void crc_fold_copy(deflate_state *const, unsigned char *, const unsigned char *,
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;
long);
unsigned crc_fold_512to32(deflate_state *const);
void fill_window_sse(deflate_state *);
void *zcalloc(void *, uInt, uInt);
void zcfree(void *, void *);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */

View file

@ -1,12 +1,12 @@
/* header created automatically with -DGEN_TREES_H */
#include "third_party/zlib/internal.h"
_Hide const int kZlibBaseLength[LENGTH_CODES] = {
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,
};
_Hide const int kZlibBaseDist[D_CODES] = {
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,

View file

@ -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] _Hide; /* indexed by 2-zlib_error */
extern const char *const z_errmsg[10]; /* 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] _Hide; /* indexed by 2-zlib_error */
/* Diagnostic functions */
#ifdef ZLIB_DEBUG
extern int z_verbose _Hide;
extern void z_error(const char *, int, char *) _Hide;
extern int z_verbose;
extern void z_error(const char *, int, char *);
#define Assert(cond, msg) \
{ \
if (!(cond)) { \