Skip to content

Commit abf629b

Browse files
committed
Make some private symbols private.
1 parent cace3a4 commit abf629b

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

arc.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ - (void)release;
107107
return tls;
108108
#endif
109109
}
110-
int count = 0;
111-
int poolCount = 0;
110+
static int count = 0;
111+
static int poolCount = 0;
112112
static inline void release(id obj);
113113

114114
/**

class_table.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ PRIVATE void objc_resolve_class_links(void)
311311
}
312312
} while (resolvedClass);
313313
}
314-
void __objc_resolve_class_links(void)
314+
PRIVATE void __objc_resolve_class_links(void)
315315
{
316316
static BOOL warned = NO;
317317
if (!warned)

eh_personality.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -533,19 +533,19 @@ struct thread_data
533533
#ifdef NO_PTHREADS
534534
static __thread struct thread_data thread_data;
535535
#else
536-
void clean_tls(void *td)
536+
static void clean_tls(void *td)
537537
{
538538
struct thread_data *data = td;
539539
}
540540

541541
static pthread_key_t key;
542-
void init_key(void)
542+
static void init_key(void)
543543
{
544544
pthread_key_create(&key, clean_tls);
545545
}
546546
#endif
547547

548-
struct thread_data *get_thread_data(void)
548+
static struct thread_data *get_thread_data(void)
549549
{
550550
#ifndef NO_PTHREADS
551551
static pthread_once_t once_control = PTHREAD_ONCE_INIT;
@@ -566,7 +566,7 @@ struct thread_data *get_thread_data(void)
566566
#endif
567567
}
568568

569-
struct thread_data *get_thread_data_fast(void)
569+
static struct thread_data *get_thread_data_fast(void)
570570
{
571571
#ifndef NO_PTHREADS
572572
struct thread_data *td = pthread_getspecific(key);

hash_table.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ typedef struct PREFIX(_table_struct)
116116
struct PREFIX(_table_cell_struct) *table;
117117
} PREFIX(_table);
118118

119-
struct PREFIX(_table_cell_struct) *PREFIX(alloc_cells)(PREFIX(_table) *table, int count)
119+
static struct PREFIX(_table_cell_struct) *PREFIX(alloc_cells)(PREFIX(_table) *table, int count)
120120
{
121121
# if defined(ENABLE_GC) && defined(MAP_TABLE_TYPES_BITMAP)
122122
return GC_CALLOC_EXPLICITLY_TYPED(count,
@@ -126,7 +126,7 @@ struct PREFIX(_table_cell_struct) *PREFIX(alloc_cells)(PREFIX(_table) *table, in
126126
# endif
127127
}
128128

129-
PREFIX(_table) *PREFIX(_create)(uint32_t capacity)
129+
static PREFIX(_table) *PREFIX(_create)(uint32_t capacity)
130130
{
131131
PREFIX(_table) *table = CALLOC(1, sizeof(PREFIX(_table)));
132132
# ifndef MAP_TABLE_NO_LOCK
@@ -143,7 +143,7 @@ PREFIX(_table) *PREFIX(_create)(uint32_t capacity)
143143
return table;
144144
}
145145

146-
void PREFIX(_initialize)(PREFIX(_table) **table, uint32_t capacity)
146+
static void PREFIX(_initialize)(PREFIX(_table) **table, uint32_t capacity)
147147
{
148148
#ifdef ENABLE_GC
149149
GC_add_roots(table, table+1);

protocol.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int protocol_hash(const struct objc_protocol *protocol)
3131
static protocol_table *known_protocol_table;
3232
mutex_t protocol_table_lock;
3333

34-
void init_protocol_table(void)
34+
PRIVATE void init_protocol_table(void)
3535
{
3636
protocol_initialize(&known_protocol_table, 128);
3737
INIT_LOCK(protocol_table_lock);

sarray2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const static SparseArray EmptyArray24 = { 24, 0, .data[0 ... 255] = (void*)&Empt
1818
#define base_shift 8
1919
#define base_mask ((1<<base_shift) - 1)
2020

21-
void *EmptyChildForShift(uint32_t shift)
21+
static void *EmptyChildForShift(uint32_t shift)
2222
{
2323
switch(shift)
2424
{

0 commit comments

Comments
 (0)