diff options
Diffstat (limited to 'lib/skin_parser/skin_buffer.c')
-rw-r--r-- | lib/skin_parser/skin_buffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_buffer.c b/lib/skin_parser/skin_buffer.c index 94f2e3ba7d..5a9d4464b8 100644 --- a/lib/skin_parser/skin_buffer.c +++ b/lib/skin_parser/skin_buffer.c | |||
@@ -98,9 +98,17 @@ void skin_buffer_init(char* buffer, size_t size) | |||
98 | } | 98 | } |
99 | 99 | ||
100 | /* Allocate size bytes from the buffer */ | 100 | /* Allocate size bytes from the buffer */ |
101 | #ifdef DEBUG_SKIN_ALLOCATIONS | ||
102 | void* skin_buffer_alloc_ex(size_t size, char* debug) | ||
103 | { | ||
104 | void *retval = NULL; | ||
105 | printf("%d %s\n", size, debug); | ||
106 | #else | ||
101 | void* skin_buffer_alloc(size_t size) | 107 | void* skin_buffer_alloc(size_t size) |
102 | { | 108 | { |
103 | void *retval = NULL; | 109 | void *retval = NULL; |
110 | #endif | ||
111 | |||
104 | #ifdef USE_ROCKBOX_ALLOC | 112 | #ifdef USE_ROCKBOX_ALLOC |
105 | /* 32-bit aligned */ | 113 | /* 32-bit aligned */ |
106 | size = (size + 3) & ~3; | 114 | size = (size + 3) & ~3; |