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

Comparing deliantra/server/include/cfperl.h (file contents):
Revision 1.51 by root, Tue Jan 23 03:56:45 2007 UTC vs.
Revision 1.54 by root, Sun Feb 11 01:38:48 2007 UTC

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);
164 165
165 HV *self; // CF+ perl self 166 HV *self; // CF+ perl self
166 AV *cb; // CF+ callbacks 167 AV *cb; // CF+ callbacks
167 shstr attach; // generic extension attachment information 168 shstr attach; // generic extension attachment information
168 169
170 void sever_self (); // sever this object from its self, if it has one.
169 void optimise (); // possibly save some memory by destroying unneeded data 171 void optimise (); // possibly save some memory by destroying unneeded data
170 172
171 attachable () 173 attachable ()
172 : flags (0), refcnt (0), self (0), cb (0), attach (0) 174 : flags (0), refcnt (0), self (0), cb (0), attach (0)
173 { 175 {
174 } 176 }
339 341
340struct object_thawer 342struct object_thawer
341{ 343{
342 SV *text; // text part 344 SV *text; // text part
343 AV *av; // perl part 345 AV *av; // perl part
346 int linenum;
344 char *line; // current beginning of line 347 char *line; // current beginning of line
345 char *last_keyword, *last_value; 348 char *last_keyword, *last_value;
346 const char *name; 349 const char *name;
347 350
348 operator bool () { return !!text; } 351 operator bool () { return !!text; }
376 void get (uint16 &i) { i = get_sint32 (); } 379 void get (uint16 &i) { i = get_sint32 (); }
377 void get (sint32 &i) { i = get_sint32 (); } 380 void get (sint32 &i) { i = get_sint32 (); }
378 381
379 void get (uint32 &i) { i = get_sint64 (); } 382 void get (uint32 &i) { i = get_sint64 (); }
380 void get (sint64 &i) { i = get_sint64 (); } 383 void get (sint64 &i) { i = get_sint64 (); }
381};
382 384
385 bool parse_error (keyword kw, const char *type = 0, const char *name = 0, bool skip = true);
386};
387
388//TODO: remove
383char *fgets (char *s, int n, object_thawer &thawer); 389char *fgets (char *s, int n, object_thawer &thawer);
384 390
385////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 391//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
386 392
387struct coroapi { 393struct coroapi {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines