summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r--lib/skin_parser/skin_parser.c6
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 */
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);