diff options
author | Björn Stenberg <bjorn@haxx.se> | 2010-06-17 11:04:32 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2010-06-17 11:04:32 +0000 |
commit | f1a144a07772d5683d9e117c4639ad75235fd1bc (patch) | |
tree | a800b4b0133710df9c751c3f81df00fb71422388 /lib/skin_parser/skin_buffer.c | |
parent | db658d98401d23957c8fe88b4bd96ab184f0ffef (diff) | |
download | rockbox-f1a144a07772d5683d9e117c4639ad75235fd1bc.tar.gz rockbox-f1a144a07772d5683d9e117c4639ad75235fd1bc.zip |
Added skin_parser library to build system. Fixed some warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser/skin_buffer.c')
-rw-r--r-- | lib/skin_parser/skin_buffer.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/skin_parser/skin_buffer.c b/lib/skin_parser/skin_buffer.c index 8a5a47ddba..b0910976e2 100644 --- a/lib/skin_parser/skin_buffer.c +++ b/lib/skin_parser/skin_buffer.c | |||
@@ -29,22 +29,11 @@ | |||
29 | static unsigned char buffer[SKIN_BUFFER_SIZE]; | 29 | static unsigned char buffer[SKIN_BUFFER_SIZE]; |
30 | static unsigned char *buffer_front = NULL; /* start of the free space, | 30 | static unsigned char *buffer_front = NULL; /* start of the free space, |
31 | increases with allocation*/ | 31 | increases with allocation*/ |
32 | static size_t buf_size = SKIN_BUFFER_SIZE; | ||
33 | #endif | 32 | #endif |
34 | 33 | ||
35 | void skin_buffer_init(size_t size) | 34 | void skin_buffer_init(void) |
36 | { | 35 | { |
37 | #if 0 /* this will go in again later probably */ | 36 | #if defined(ROCKBOX) |
38 | if (buffer == NULL) | ||
39 | { | ||
40 | buf_size = SKIN_BUFFER_SIZE;/* global_settings.skin_buf_size */ | ||
41 | |||
42 | buffer = buffer_alloc(buf_size); | ||
43 | buffer_front = buffer; | ||
44 | buffer_back = bufer + buf_size; | ||
45 | } | ||
46 | else | ||
47 | #elif defined(ROCKBOX) | ||
48 | { | 37 | { |
49 | /* reset the buffer.... */ | 38 | /* reset the buffer.... */ |
50 | buffer_front = buffer; | 39 | buffer_front = buffer; |