ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/utils.C
(Generate patch)

Comparing deliantra/server/common/utils.C (file contents):
Revision 1.28 by root, Sat Dec 23 16:05:19 2006 UTC vs.
Revision 1.29 by root, Mon Dec 25 11:25:49 2006 UTC

544 return; 544 return;
545} 545}
546 546
547///////////////////////////////////////////////////////////////////////////// 547/////////////////////////////////////////////////////////////////////////////
548 548
549#if 0
550refcounted *refcounted::rc_first;
551
552refcounted::refcounted ()
553{
554 refcnt = 0;
555 rc_next = rc_first;
556 rc_first = this;
557}
558#endif
559
560refcounted::~refcounted ()
561{
562#if 0
563 assert (!rc_next);
564 assert (!refcnt);
565#endif
566}
567
568void *salloc_ (int n) throw (std::bad_alloc) 549void *salloc_ (int n) throw (std::bad_alloc)
569{ 550{
570 void *ptr = g_slice_alloc (n); 551 void *ptr = g_slice_alloc (n);
571 552
572 if (!ptr) 553 if (!ptr)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines