… | |
… | |
130 | |
130 | |
131 | static unordered_vector<attachable *> mortals; |
131 | static unordered_vector<attachable *> mortals; |
132 | MTH static void check_mortals (); |
132 | MTH static void check_mortals (); |
133 | |
133 | |
134 | enum { |
134 | enum { |
135 | F_DESTROYED = 0x01, |
135 | F_DESTROYED = 0x01, |
|
|
136 | F_DEBUG_TRACE = 0x02, |
136 | }; |
137 | }; |
137 | |
138 | |
138 | // object is delete'd after the refcount reaches 0 |
139 | // object is delete'd after the refcount reaches 0 |
139 | mutable int ACC (RW, refcnt); |
140 | mutable int ACC (RW, refcnt); |
140 | int ACC (RW, flags); |
141 | int ACC (RW, flags); |
… | |
… | |
340 | |
341 | |
341 | struct object_thawer |
342 | struct object_thawer |
342 | { |
343 | { |
343 | SV *text; // text part |
344 | SV *text; // text part |
344 | AV *av; // perl part |
345 | AV *av; // perl part |
|
|
346 | int linenum; |
345 | char *line; // current beginning of line |
347 | char *line; // current beginning of line |
346 | char *last_keyword, *last_value; |
348 | char *last_keyword, *last_value; |
347 | const char *name; |
349 | const char *name; |
348 | |
350 | |
349 | operator bool () { return !!text; } |
351 | operator bool () { return !!text; } |
… | |
… | |
377 | void get (uint16 &i) { i = get_sint32 (); } |
379 | void get (uint16 &i) { i = get_sint32 (); } |
378 | void get (sint32 &i) { i = get_sint32 (); } |
380 | void get (sint32 &i) { i = get_sint32 (); } |
379 | |
381 | |
380 | void get (uint32 &i) { i = get_sint64 (); } |
382 | void get (uint32 &i) { i = get_sint64 (); } |
381 | void get (sint64 &i) { i = get_sint64 (); } |
383 | void get (sint64 &i) { i = get_sint64 (); } |
382 | }; |
|
|
383 | |
384 | |
|
|
385 | bool parse_error (keyword kw, const char *type = 0, const char *name = 0, bool skip = true); |
|
|
386 | }; |
|
|
387 | |
|
|
388 | //TODO: remove |
384 | char *fgets (char *s, int n, object_thawer &thawer); |
389 | char *fgets (char *s, int n, object_thawer &thawer); |
385 | |
390 | |
386 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
391 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
387 | |
392 | |
388 | struct coroapi { |
393 | struct coroapi { |