summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.h
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-05 18:44:36 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-05 18:44:36 +0100
commitfdd4aef34003587d7fd9ed754dd35ce901b639bf (patch)
treed129b8b8e587d4a1a7215c2226bfafe55f6dd643 /lib/skin_parser/skin_parser.h
parentc907e127f8b1d267e91e82d28cdb210288852b82 (diff)
downloadrockbox-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.h6
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,
160struct skin_element* skin_parse(const char* document); 160struct skin_element* skin_parse(const char* document);
161#endif 161#endif
162/* Memory management functions */ 162/* Memory management functions */
163struct skin_element* skin_alloc_element(void); 163static struct skin_element* skin_alloc_element(void);
164OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count); 164static OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count);
165struct skin_tag_parameter* skin_alloc_params(int count); 165static struct skin_tag_parameter* skin_alloc_params(int count);
166char* skin_alloc_string(int length); 166char* skin_alloc_string(int length);
167 167
168void skin_free_tree(struct skin_element* root); 168void skin_free_tree(struct skin_element* root);