diff options
author | Thomas Jarosch <tomj@simonv.com> | 2015-01-05 18:44:36 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2015-01-05 18:44:36 +0100 |
commit | fdd4aef34003587d7fd9ed754dd35ce901b639bf (patch) | |
tree | d129b8b8e587d4a1a7215c2226bfafe55f6dd643 /lib/skin_parser/skin_parser.c | |
parent | c907e127f8b1d267e91e82d28cdb210288852b82 (diff) | |
download | rockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.tar.gz rockbox-fdd4aef34003587d7fd9ed754dd35ce901b639bf.zip |
Make thirty functions static to reduce binary size
If any of those functions should be (unused) API functions,
they can easily be turned back once really needed.
Detected using a new cppcheck check that
uses the internal symbol database to catch
functions that are only used in the current file.
Change-Id: Ic2b1e5b8020b76397f11cefc4e205f3b7ac1f184
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r-- | lib/skin_parser/skin_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index a26e6ce474..b5ad023d0a 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c | |||
@@ -1142,7 +1142,7 @@ static struct skin_element* skin_parse_code_as_arg(const char** document) | |||
1142 | } | 1142 | } |
1143 | 1143 | ||
1144 | /* Memory management */ | 1144 | /* Memory management */ |
1145 | struct skin_element* skin_alloc_element() | 1145 | static struct skin_element* skin_alloc_element() |
1146 | { | 1146 | { |
1147 | struct skin_element* retval = (struct skin_element*) | 1147 | struct skin_element* retval = (struct skin_element*) |
1148 | skin_buffer_alloc(sizeof(struct skin_element)); | 1148 | skin_buffer_alloc(sizeof(struct skin_element)); |
@@ -1164,7 +1164,7 @@ struct skin_element* skin_alloc_element() | |||
1164 | * enough for any tag. params should be used straight away by the callback | 1164 | * enough for any tag. params should be used straight away by the callback |
1165 | * so this is safe. | 1165 | * so this is safe. |
1166 | */ | 1166 | */ |
1167 | struct skin_tag_parameter* skin_alloc_params(int count) | 1167 | static struct skin_tag_parameter* skin_alloc_params(int count) |
1168 | { | 1168 | { |
1169 | size_t size = sizeof(struct skin_tag_parameter) * count; | 1169 | size_t size = sizeof(struct skin_tag_parameter) * count; |
1170 | return (struct skin_tag_parameter*)skin_buffer_alloc(size); | 1170 | return (struct skin_tag_parameter*)skin_buffer_alloc(size); |
@@ -1176,7 +1176,7 @@ char* skin_alloc_string(int length) | |||
1176 | return (char*)skin_buffer_alloc(sizeof(char) * (length + 1)); | 1176 | return (char*)skin_buffer_alloc(sizeof(char) * (length + 1)); |
1177 | } | 1177 | } |
1178 | 1178 | ||
1179 | OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count) | 1179 | static OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count) |
1180 | { | 1180 | { |
1181 | return (OFFSETTYPE(struct skin_element*)*) | 1181 | return (OFFSETTYPE(struct skin_element*)*) |
1182 | skin_buffer_alloc(sizeof(struct skin_element*) * count); | 1182 | skin_buffer_alloc(sizeof(struct skin_element*) * count); |