From fdd4aef34003587d7fd9ed754dd35ce901b639bf Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 5 Jan 2015 18:44:36 +0100 Subject: 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 --- lib/skin_parser/skin_parser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/skin_parser/skin_parser.h') 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, struct skin_element* skin_parse(const char* document); #endif /* Memory management functions */ -struct skin_element* skin_alloc_element(void); -OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count); -struct skin_tag_parameter* skin_alloc_params(int count); +static struct skin_element* skin_alloc_element(void); +static OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count); +static struct skin_tag_parameter* skin_alloc_params(int count); char* skin_alloc_string(int length); void skin_free_tree(struct skin_element* root); -- cgit v1.2.3