summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/skin_parser.c6
-rw-r--r--lib/skin_parser/skin_parser.h6
-rw-r--r--lib/skin_parser/skin_scan.c4
-rw-r--r--lib/skin_parser/skin_scan.h4
4 files changed, 10 insertions, 10 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 */
1145struct skin_element* skin_alloc_element() 1145static 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 */
1167struct skin_tag_parameter* skin_alloc_params(int count) 1167static 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
1179OFFSETTYPE(struct skin_element*)* skin_alloc_children(int count) 1179static 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);
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);
diff --git a/lib/skin_parser/skin_scan.c b/lib/skin_parser/skin_scan.c
index f93606d54d..c5ce595ddd 100644
--- a/lib/skin_parser/skin_scan.c
+++ b/lib/skin_parser/skin_scan.c
@@ -89,7 +89,7 @@ void skip_tag(const char** document)
89 skip_enumlist(document); 89 skip_enumlist(document);
90} 90}
91 91
92void skip_arglist(const char** document) 92static void skip_arglist(const char** document)
93{ 93{
94 if(**document == ARGLISTOPENSYM) 94 if(**document == ARGLISTOPENSYM)
95 (*document)++; 95 (*document)++;
@@ -106,7 +106,7 @@ void skip_arglist(const char** document)
106 (*document)++; 106 (*document)++;
107} 107}
108 108
109void skip_enumlist(const char** document) 109static void skip_enumlist(const char** document)
110{ 110{
111 if(**document == ENUMLISTOPENSYM) 111 if(**document == ENUMLISTOPENSYM)
112 (*document)++; 112 (*document)++;
diff --git a/lib/skin_parser/skin_scan.h b/lib/skin_parser/skin_scan.h
index 6281582b88..b1f842b8ce 100644
--- a/lib/skin_parser/skin_scan.h
+++ b/lib/skin_parser/skin_scan.h
@@ -31,8 +31,8 @@ extern "C"
31/* Scanning functions */ 31/* Scanning functions */
32void skip_tag(const char** document); 32void skip_tag(const char** document);
33void skip_comment(const char** document); 33void skip_comment(const char** document);
34void skip_arglist(const char** document); 34static void skip_arglist(const char** document);
35void skip_enumlist(const char** document); 35static void skip_enumlist(const char** document);
36char* scan_string(const char** document); 36char* scan_string(const char** document);
37int scan_int(const char** document); 37int scan_int(const char** document);
38int check_viewport(const char* document); /* Checks for a viewport declaration */ 38int check_viewport(const char* document); /* Checks for a viewport declaration */