diff options
Diffstat (limited to 'utils/themeeditor/skin_parser.h')
-rw-r--r-- | utils/themeeditor/skin_parser.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/utils/themeeditor/skin_parser.h b/utils/themeeditor/skin_parser.h index d3821c0f9b..c15ba9da8d 100644 --- a/utils/themeeditor/skin_parser.h +++ b/utils/themeeditor/skin_parser.h | |||
@@ -26,14 +26,7 @@ | |||
26 | extern "C" | 26 | extern "C" |
27 | { | 27 | { |
28 | #endif | 28 | #endif |
29 | 29 | #include <stdlib.h> | |
30 | |||
31 | #define SKIN_MAX_MEMORY 1048576 | ||
32 | |||
33 | /******************************************************************** | ||
34 | ****** A global buffer will be used to store the parse tree ******* | ||
35 | *******************************************************************/ | ||
36 | extern char skin_parse_tree[]; | ||
37 | 30 | ||
38 | /******************************************************************** | 31 | /******************************************************************** |
39 | ****** Data Structures ********************************************* | 32 | ****** Data Structures ********************************************* |
@@ -98,8 +91,11 @@ struct skin_element | |||
98 | /* The line on which it's defined in the source file */ | 91 | /* The line on which it's defined in the source file */ |
99 | int line; | 92 | int line; |
100 | 93 | ||
101 | /* Text for comments and plaintext */ | 94 | /* Placeholder for element data |
102 | char* text; | 95 | * TEXT and COMMENT uses it for the text string |
96 | * TAG, VIEWPORT, LINE, etc may use it for post parse extra storage | ||
97 | */ | ||
98 | void* data; | ||
103 | 99 | ||
104 | /* The tag or conditional name */ | 100 | /* The tag or conditional name */ |
105 | struct tag_info *tag; | 101 | struct tag_info *tag; |
@@ -125,6 +121,7 @@ struct skin_element | |||
125 | struct skin_element* skin_parse(const char* document); | 121 | struct skin_element* skin_parse(const char* document); |
126 | 122 | ||
127 | /* Memory management functions */ | 123 | /* Memory management functions */ |
124 | char *skin_alloc(size_t size); | ||
128 | struct skin_element* skin_alloc_element(); | 125 | struct skin_element* skin_alloc_element(); |
129 | struct skin_element** skin_alloc_children(int count); | 126 | struct skin_element** skin_alloc_children(int count); |
130 | struct skin_tag_parameter* skin_alloc_params(int count); | 127 | struct skin_tag_parameter* skin_alloc_params(int count); |
@@ -132,6 +129,7 @@ char* skin_alloc_string(int length); | |||
132 | 129 | ||
133 | void skin_free_tree(struct skin_element* root); | 130 | void skin_free_tree(struct skin_element* root); |
134 | 131 | ||
132 | |||
135 | #ifdef __cplusplus | 133 | #ifdef __cplusplus |
136 | } | 134 | } |
137 | #endif | 135 | #endif |