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.h | |
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.h')
-rw-r--r-- | lib/skin_parser/skin_parser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/skin_parser/skin_parser.h b/lib/skin_parser/skin_parser.h index c53896ca30..c59072594f 100644 --- a/lib/skin_parser/skin_parser.h +++ b/lib/skin_parser/skin_parser.h | |||
@@ -160,9 +160,9 @@ struct skin_element* skin_parse(const char* document, | |||
160 | struct skin_element* skin_parse(const char* document); | 160 | struct skin_element* skin_parse(const char* document); |
161 | #endif | 161 | #endif |
162 | /* Memory management functions */ | 162 | /* Memory management functions */ |
163 | struct skin_element* skin_alloc_element(void); | 163 | static struct skin_element* skin_alloc_element(void); |
164 | OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count); | 164 | static OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count); |
165 | struct skin_tag_parameter* skin_alloc_params(int count); | 165 | static struct skin_tag_parameter* skin_alloc_params(int count); |
166 | char* skin_alloc_string(int length); | 166 | char* skin_alloc_string(int length); |
167 | 167 | ||
168 | void skin_free_tree(struct skin_element* root); | 168 | void skin_free_tree(struct skin_element* root); |