Index: trunk/extensions/NativePreprocessor/expand.c |
— | — | @@ -33,6 +33,8 @@ |
34 | 34 | void *parent; |
35 | 35 | }; |
36 | 36 | |
| 37 | +const struct str_ref empty_str = { NULL, 0, false }; |
| 38 | + |
37 | 39 | /* Call insertStripItem() in the parser object, and return the given |
38 | 40 | * zval, which shall be a string (or null) |
39 | 41 | */ |
Index: trunk/extensions/NativePreprocessor/nodes.h |
— | — | @@ -32,11 +32,11 @@ |
33 | 33 | |
34 | 34 | /* May contain childs: root_node, ext_node, name_node, heading_node (h?_node), template_node, tplarg_node, title_node, part_node, value_node */ |
35 | 35 | |
36 | | -const struct str_ref { |
| 36 | +struct str_ref { |
37 | 37 | char const* string; |
38 | 38 | int length; |
39 | 39 | bool allocated; |
40 | | -} empty_str = { NULL, 0, false }; |
| 40 | +}; |
41 | 41 | |
42 | 42 | extern inline void str_ref_free(struct str_ref* str) { |
43 | 43 | if ( str->allocated ) { |