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

@ -505,8 +505,8 @@ void mspace_inspect_all(mspace msp,
void (*handler)(void*, void*, size_t, void*),
void* arg);
_Hide void dlmalloc_atfork(void);
_Hide void dlmalloc_abort(void);
void dlmalloc_atfork(void);
void dlmalloc_abort(void);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */

View file

@ -348,13 +348,13 @@ typedef struct ThInfo {
#define Bcopy(x, y) \
memcpy(&x->sign, &y->sign, y->wds * sizeof(ULong) + 2 * sizeof(int))
_Hide extern const double __gdtoa_tens[];
_Hide extern const double __gdtoa_bigtens[];
_Hide extern const double __gdtoa_tinytens[];
_Hide extern const unsigned char __gdtoa_hexdig[];
_Hide extern const char *const __gdtoa_InfName[6];
_Hide extern const char *const __gdtoa_NanName[3];
_Hide extern const ULong __gdtoa_NanDflt_Q[4];
extern const double __gdtoa_tens[];
extern const double __gdtoa_bigtens[];
extern const double __gdtoa_tinytens[];
extern const unsigned char __gdtoa_hexdig[];
extern const char *const __gdtoa_InfName[6];
extern const char *const __gdtoa_NanName[3];
extern const ULong __gdtoa_NanDflt_Q[4];
Bigint *__gdtoa_Balloc(int, ThInfo **);
void __gdtoa_Bfree(Bigint *, ThInfo **);

View file

@ -9,8 +9,8 @@ struct expanded_key {
uint32_t l[16], r[16];
};
_Hide void __des_setkey(const unsigned char *, struct expanded_key *);
_Hide void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
void __des_setkey(const unsigned char *, struct expanded_key *);
void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
uint32_t, uint32_t, const struct expanded_key *);
#endif

View file

@ -143,13 +143,13 @@ struct tnfa_transition {
};
/* Assertions. */
#define ASSERT_AT_BOL 1 /* Beginning of line. */
#define ASSERT_AT_EOL 2 /* End of line. */
#define ASSERT_CHAR_CLASS 4 /* Character class in `class'. */
#define ASSERT_CHAR_CLASS_NEG 8 /* Character classes in `neg_classes'. */
#define ASSERT_AT_BOW 16 /* Beginning of word. */
#define ASSERT_AT_EOW 32 /* End of word. */
#define ASSERT_AT_WB 64 /* Word boundary. */
#define ASSERT_AT_BOL 1 /* Beginning of line. */
#define ASSERT_AT_EOL 2 /* End of line. */
#define ASSERT_CHAR_CLASS 4 /* Character class in `class'. */
#define ASSERT_CHAR_CLASS_NEG 8 /* Character classes in `neg_classes'. */
#define ASSERT_AT_BOW 16 /* Beginning of word. */
#define ASSERT_AT_EOW 32 /* End of word. */
#define ASSERT_AT_WB 64 /* Word boundary. */
#define ASSERT_AT_WB_NEG 128 /* Not a word boundary. */
#define ASSERT_BACKREF 256 /* A back reference in `backref'. */
#define ASSERT_LAST 256
@ -215,9 +215,9 @@ typedef struct tre_mem_struct {
#define tre_mem_alloc_impl __tre_mem_alloc_impl
#define tre_mem_destroy __tre_mem_destroy
tre_mem_t tre_mem_new_impl(int provided, void *provided_block) _Hide;
tre_mem_t tre_mem_new_impl(int provided, void *provided_block);
void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block,
int zero, size_t size) _Hide;
int zero, size_t size);
/* Returns a new memory allocator or NULL if out of memory. */
#define tre_mem_new() tre_mem_new_impl(0, NULL)
@ -245,4 +245,4 @@ void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block,
#endif /* TRE_USE_ALLOCA */
/* Frees the memory allocator and all memory allocated with it. */
_Hide void tre_mem_destroy(tre_mem_t mem);
void tre_mem_destroy(tre_mem_t mem);

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)) { \