… | |
… | |
166 | }; |
166 | }; |
167 | |
167 | |
168 | INTERFACE_CLASS(object_thawer) |
168 | INTERFACE_CLASS(object_thawer) |
169 | struct object_thawer |
169 | struct object_thawer |
170 | { |
170 | { |
|
|
171 | static bool errors_are_fatal; // true during server startup only |
|
|
172 | |
171 | char *line; // current beginning of line |
173 | char *line; // current beginning of line |
172 | SV *text; // text part |
174 | SV *text; // text part |
173 | AV *av; // perl part |
175 | AV *av; // perl part |
174 | int linenum; |
176 | int linenum; |
175 | keyword kw; |
177 | keyword kw; |
… | |
… | |
187 | void get (attachable *obj, int oid); |
189 | void get (attachable *obj, int oid); |
188 | |
190 | |
189 | // parse next line as keyword-value pair |
191 | // parse next line as keyword-value pair |
190 | MTH void next (); |
192 | MTH void next (); |
191 | |
193 | |
192 | // parse next line, as a single value - skips initial whitespace and comments |
194 | // parse next line, as a single value |
|
|
195 | // skips initial whitespace and comments |
|
|
196 | // and sets kw to KW_value on success. |
193 | MTH void next_line (); |
197 | MTH bool next_line (); |
194 | |
198 | |
195 | // skip the current key-value (usually fetch next line, for |
199 | // skip the current key-value (usually fetch next line, for |
196 | // multiline-fields, skips till the corresponding end-kw |
200 | // multiline-fields, skips till the corresponding end-kw |
197 | MTH void skip (); |
201 | MTH void skip (); |
198 | MTH void skip_block (); // skips till and over KW_end |
202 | MTH void skip_block (); // skips till and over KW_end |
… | |
… | |
234 | |
238 | |
235 | void delayed_deref (attachable *op, object_ptr &ptr, const_utf8_string ref); |
239 | void delayed_deref (attachable *op, object_ptr &ptr, const_utf8_string ref); |
236 | MTH void resolve_delayed_derefs (bool deref = true); |
240 | MTH void resolve_delayed_derefs (bool deref = true); |
237 | }; |
241 | }; |
238 | |
242 | |
239 | //TODO: remove |
|
|
240 | char *fgets (char *s, int n, object_thawer &thawer); |
|
|
241 | |
|
|
242 | #endif |
243 | #endif |
243 | |
244 | |