ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/freezethaw.h
(Generate patch)

Comparing deliantra/server/include/freezethaw.h (file contents):
Revision 1.1 by root, Thu Apr 15 04:02:38 2010 UTC vs.
Revision 1.4 by root, Thu Apr 15 06:05:52 2010 UTC

166}; 166};
167 167
168INTERFACE_CLASS(object_thawer) 168INTERFACE_CLASS(object_thawer)
169struct object_thawer 169struct 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
240char *fgets (char *s, int n, object_thawer &thawer);
241
242#endif 243#endif
243 244

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines