mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 20:10:29 +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
4
third_party/dlmalloc/dlmalloc.h
vendored
4
third_party/dlmalloc/dlmalloc.h
vendored
|
@ -505,8 +505,8 @@ void mspace_inspect_all(mspace msp,
|
|||
void (*handler)(void*, void*, size_t, void*),
|
||||
void* arg);
|
||||
|
||||
void dlmalloc_atfork(void) hidden;
|
||||
void dlmalloc_abort(void) hidden;
|
||||
_Hide void dlmalloc_atfork(void);
|
||||
_Hide void dlmalloc_abort(void);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
10
third_party/musl/crypt.internal.h
vendored
10
third_party/musl/crypt.internal.h
vendored
|
@ -4,11 +4,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
hidden char *__crypt_des(const char *, const char *, char *);
|
||||
hidden char *__crypt_md5(const char *, const char *, char *);
|
||||
hidden char *__crypt_blowfish(const char *, const char *, char *);
|
||||
hidden char *__crypt_sha256(const char *, const char *, char *);
|
||||
hidden char *__crypt_sha512(const char *, const char *, char *);
|
||||
_Hide char *__crypt_des(const char *, const char *, char *);
|
||||
_Hide char *__crypt_md5(const char *, const char *, char *);
|
||||
_Hide char *__crypt_blowfish(const char *, const char *, char *);
|
||||
_Hide char *__crypt_sha256(const char *, const char *, char *);
|
||||
_Hide char *__crypt_sha512(const char *, const char *, char *);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
4
third_party/musl/crypt_des.internal.h
vendored
4
third_party/musl/crypt_des.internal.h
vendored
|
@ -9,8 +9,8 @@ struct expanded_key {
|
|||
uint32_t l[16], r[16];
|
||||
};
|
||||
|
||||
hidden void __des_setkey(const unsigned char *, struct expanded_key *);
|
||||
hidden void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
|
||||
_Hide void __des_setkey(const unsigned char *, struct expanded_key *);
|
||||
_Hide void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
|
||||
uint32_t, uint32_t, const struct expanded_key *);
|
||||
|
||||
#endif
|
||||
|
|
56
third_party/regex/tre.inc
vendored
56
third_party/regex/tre.inc
vendored
|
@ -56,8 +56,8 @@
|
|||
│ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. │
|
||||
│ │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/assert.h"
|
||||
#include "libc/mem/alg.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/regex/notice.inc"
|
||||
|
@ -81,27 +81,27 @@ typedef wchar_t tre_char_t;
|
|||
typedef wint_t tre_cint_t;
|
||||
#define TRE_CHAR_MAX 0x10ffff
|
||||
|
||||
#define tre_isalnum iswalnum
|
||||
#define tre_isalpha iswalpha
|
||||
#define tre_isblank iswblank
|
||||
#define tre_iscntrl iswcntrl
|
||||
#define tre_isdigit iswdigit
|
||||
#define tre_isgraph iswgraph
|
||||
#define tre_islower iswlower
|
||||
#define tre_isprint iswprint
|
||||
#define tre_ispunct iswpunct
|
||||
#define tre_isspace iswspace
|
||||
#define tre_isupper iswupper
|
||||
#define tre_isalnum iswalnum
|
||||
#define tre_isalpha iswalpha
|
||||
#define tre_isblank iswblank
|
||||
#define tre_iscntrl iswcntrl
|
||||
#define tre_isdigit iswdigit
|
||||
#define tre_isgraph iswgraph
|
||||
#define tre_islower iswlower
|
||||
#define tre_isprint iswprint
|
||||
#define tre_ispunct iswpunct
|
||||
#define tre_isspace iswspace
|
||||
#define tre_isupper iswupper
|
||||
#define tre_isxdigit iswxdigit
|
||||
|
||||
#define tre_tolower towlower
|
||||
#define tre_toupper towupper
|
||||
#define tre_strlen wcslen
|
||||
#define tre_strlen wcslen
|
||||
|
||||
/* Use system provided iswctype() and wctype(). */
|
||||
typedef wctype_t tre_ctype_t;
|
||||
#define tre_isctype iswctype
|
||||
#define tre_ctype wctype
|
||||
#define tre_ctype wctype
|
||||
|
||||
/* Returns number of bytes to add to (char *)ptr to make it
|
||||
properly aligned for the type. */
|
||||
|
@ -143,16 +143,16 @@ 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_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
|
||||
#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
|
||||
|
||||
/* Tag directions. */
|
||||
typedef enum { TRE_TAG_MINIMIZE = 0, TRE_TAG_MAXIMIZE = 1 } tre_tag_direction_t;
|
||||
|
@ -211,13 +211,13 @@ typedef struct tre_mem_struct {
|
|||
void **provided;
|
||||
} * tre_mem_t;
|
||||
|
||||
#define tre_mem_new_impl __tre_mem_new_impl
|
||||
#define tre_mem_new_impl __tre_mem_new_impl
|
||||
#define tre_mem_alloc_impl __tre_mem_alloc_impl
|
||||
#define tre_mem_destroy __tre_mem_destroy
|
||||
#define tre_mem_destroy __tre_mem_destroy
|
||||
|
||||
tre_mem_t tre_mem_new_impl(int provided, void *provided_block) hidden;
|
||||
tre_mem_t tre_mem_new_impl(int provided, void *provided_block) _Hide;
|
||||
void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block,
|
||||
int zero, size_t size) hidden;
|
||||
int zero, size_t size) _Hide;
|
||||
|
||||
/* 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. */
|
||||
hidden void tre_mem_destroy(tre_mem_t mem);
|
||||
_Hide void tre_mem_destroy(tre_mem_t mem);
|
||||
|
|
8
third_party/stb/internal.h
vendored
8
third_party/stb/internal.h
vendored
|
@ -5,14 +5,14 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
void stbi__YCbCr_to_RGB_row(unsigned char *, const unsigned char *,
|
||||
const unsigned char *, const unsigned char *,
|
||||
unsigned, unsigned) hidden;
|
||||
unsigned, unsigned) _Hide;
|
||||
int stbi__YCbCr_to_RGB_row$sse2(unsigned char *, const unsigned char *,
|
||||
const unsigned char *, const unsigned char *,
|
||||
unsigned) hidden;
|
||||
unsigned) _Hide;
|
||||
void stbi__idct_simd$sse(unsigned char *out, int out_stride,
|
||||
short data[64]) hidden;
|
||||
short data[64]) _Hide;
|
||||
void stbi__idct_simd$avx(unsigned char *out, int out_stride,
|
||||
short data[64]) hidden;
|
||||
short data[64]) _Hide;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
12
third_party/xed/x86ild.greg.c
vendored
12
third_party/xed/x86ild.greg.c
vendored
|
@ -102,12 +102,12 @@ asm(".include \"libc/disclaimer.inc\"");
|
|||
#define XED_LF_UIMMv_IMM_WIDTH_OSZ_NONTERM_IMMUNE_REXW_EOSZ_l2(X) \
|
||||
xed_set_uimmv_imm_width_eosz(X, kXed.OSZ_NONTERM_IMMUNE_REXW_EOSZ)
|
||||
|
||||
extern const uint32_t xed_prefix_table_bit[8] hidden;
|
||||
extern const uint8_t xed_imm_bits_2d[2][256] hidden;
|
||||
extern const uint8_t xed_has_modrm_2d[XED_ILD_MAP2][256] hidden;
|
||||
extern const uint8_t xed_has_sib_table[3][4][8] hidden;
|
||||
extern const uint8_t xed_has_disp_regular[3][4][8] hidden;
|
||||
extern const uint8_t xed_disp_bits_2d[XED_ILD_MAP2][256] hidden;
|
||||
extern const uint32_t xed_prefix_table_bit[8] _Hide;
|
||||
extern const uint8_t xed_imm_bits_2d[2][256] _Hide;
|
||||
extern const uint8_t xed_has_modrm_2d[XED_ILD_MAP2][256] _Hide;
|
||||
extern const uint8_t xed_has_sib_table[3][4][8] _Hide;
|
||||
extern const uint8_t xed_has_disp_regular[3][4][8] _Hide;
|
||||
extern const uint8_t xed_disp_bits_2d[XED_ILD_MAP2][256] _Hide;
|
||||
|
||||
static const struct XedDenseMagnums {
|
||||
unsigned vex_prefix_recoding[4];
|
||||
|
|
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