diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2014-02-02 14:43:45 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2014-02-02 19:40:38 +0100 |
| commit | 4ce1deacfd4e5440cc82237ebc5fafbaeea64763 (patch) | |
| tree | 7ff4664819704fd890d3e5ea95349c8500f9c4c7 /firmware/include/core_alloc.h | |
| parent | d66346789ccdf685a6720a739b88f194f56a60e2 (diff) | |
| download | rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.zip rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.tar.gz rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.tar.bz2 rockbox-4ce1deacfd4e5440cc82237ebc5fafbaeea64763.tar.xz | |
buflib: Properly support allocations without any name, to avoid wasting space
in micro-allocation scenarios.
Change-Id: I97a065bcfba8e0fda9b1670445e839e267c769c8
Diffstat (limited to 'firmware/include/core_alloc.h')
| -rw-r--r-- | firmware/include/core_alloc.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/firmware/include/core_alloc.h b/firmware/include/core_alloc.h index 095cb5d..67fe99d 100644 --- a/firmware/include/core_alloc.h +++ b/firmware/include/core_alloc.h @@ -17,6 +17,7 @@ bool core_shrink(int handle, void* new_start, size_t new_size); int core_free(int handle); size_t core_available(void); size_t core_allocatable(void); +const char* core_get_name(int handle); #ifdef DEBUG void core_check_valid(void); #endif @@ -43,10 +44,4 @@ static inline void* core_get_data(int handle) return buflib_get_data(&core_ctx, handle); } -static inline const char* core_get_name(int handle) -{ - extern struct buflib_context core_ctx; - return buflib_get_name(&core_ctx, handle); -} - #endif /* __CORE_ALLOC_H__ */ |