mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31370 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7d61376ef8
commit
fdc29d0ea4
27 changed files with 39 additions and 10 deletions
|
@ -3,12 +3,13 @@
|
|||
#define __CORE_ALLOC_H__
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
#include "buflib.h"
|
||||
|
||||
/* All functions below are wrappers for functions in buflib.h, except
|
||||
* they have a predefined context
|
||||
*/
|
||||
void core_allocator_init(void);
|
||||
void core_allocator_init(void) INIT_ATTR;
|
||||
int core_alloc(const char* name, size_t size);
|
||||
int core_alloc_ex(const char* name, size_t size, struct buflib_callbacks *ops);
|
||||
int core_alloc_maximum(const char* name, size_t *size, struct buflib_callbacks *ops);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue