mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 12:03:41 +01:00
Declare mempool-routines as HIDDEN.
(Logical change 1.143)
This commit is contained in:
parent
bc2e45cb27
commit
b6adfb75c4
2 changed files with 8 additions and 8 deletions
|
@ -75,15 +75,15 @@ struct mempool
|
|||
/* Emergency allocation for one-time stuff that doesn't fit the memory
|
||||
pool model. A limited amount of memory is available in this
|
||||
fashion and once allocated, there is no way to free it. */
|
||||
extern void *sos_alloc (size_t size);
|
||||
extern HIDDEN void *sos_alloc (size_t size);
|
||||
|
||||
/* Initialize POOL for an object size of OBJECT_SIZE bytes. RESERVE
|
||||
is the number of objects that should be reserved for use under
|
||||
tight memory situations. If it is zero, mempool attempts to pick a
|
||||
reasonable default value. */
|
||||
extern void mempool_init (struct mempool *pool,
|
||||
extern HIDDEN void mempool_init (struct mempool *pool,
|
||||
size_t obj_size, size_t reserve);
|
||||
extern void *mempool_alloc (struct mempool *pool);
|
||||
extern void mempool_free (struct mempool *pool, void *object);
|
||||
extern HIDDEN void *mempool_alloc (struct mempool *pool);
|
||||
extern HIDDEN void mempool_free (struct mempool *pool, void *object);
|
||||
|
||||
#endif /* mempool_h */
|
||||
|
|
|
@ -40,7 +40,7 @@ static char sos_memory[SOS_MEMORY_SIZE];
|
|||
static char *sos_memp = sos_memory;
|
||||
static size_t pg_size = 0;
|
||||
|
||||
void *
|
||||
HIDDEN void *
|
||||
sos_alloc (size_t size)
|
||||
{
|
||||
char *mem;
|
||||
|
@ -135,7 +135,7 @@ expand (struct mempool *pool)
|
|||
add_memory (pool, mem, size, pool->obj_size);
|
||||
}
|
||||
|
||||
void
|
||||
HIDDEN void
|
||||
mempool_init (struct mempool *pool, size_t obj_size, size_t reserve)
|
||||
{
|
||||
if (pg_size == 0)
|
||||
|
@ -162,7 +162,7 @@ mempool_init (struct mempool *pool, size_t obj_size, size_t reserve)
|
|||
expand (pool);
|
||||
}
|
||||
|
||||
void *
|
||||
HIDDEN void *
|
||||
mempool_alloc (struct mempool *pool)
|
||||
{
|
||||
sigset_t saved_sigmask;
|
||||
|
@ -185,7 +185,7 @@ mempool_alloc (struct mempool *pool)
|
|||
return obj;
|
||||
}
|
||||
|
||||
void
|
||||
HIDDEN void
|
||||
mempool_free (struct mempool *pool, void *object)
|
||||
{
|
||||
sigset_t saved_sigmask;
|
||||
|
|
Loading…
Reference in a new issue