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

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.129 by root, Sun Jan 7 21:54:59 2007 UTC vs.
Revision 1.130 by root, Mon Jan 8 01:19:03 2007 UTC

104attachable::~attachable () 104attachable::~attachable ()
105{ 105{
106 assert (!(flags & F_BORROWED)); 106 assert (!(flags & F_BORROWED));
107} 107}
108 108
109int
110attachable::refcnt_cnt () const
111{
112 return refcnt + (self ? SvREFCNT (self) : 0);
113}
114
115void
109void attachable::optimise () 116attachable::optimise ()
110{ 117{
111 if (self 118 if (self
112 && SvREFCNT (self) == 1 119 && SvREFCNT (self) == 1
113 && !HvTOTALKEYS (self)) 120 && !HvTOTALKEYS (self))
114 { 121 {
165 172
166 flags |= F_DESTROYED; 173 flags |= F_DESTROYED;
167 do_destroy (); 174 do_destroy ();
168} 175}
169 176
177void
170void attachable::check_mortals () 178attachable::check_mortals ()
171{ 179{
172 for (int i = 0; i < mortals.size (); ) 180 for (int i = 0; i < mortals.size (); )
173 { 181 {
174 attachable *obj = mortals [i]; 182 attachable *obj = mortals [i];
175 183

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines