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.43 by root, Fri Jan 19 22:24:10 2007 UTC vs.
Revision 1.44 by root, Thu Jan 25 03:54:44 2007 UTC

570 LOG (llevError, "fork abort: %s\n", msg); 570 LOG (llevError, "fork abort: %s\n", msg);
571} 571}
572 572
573void *salloc_ (int n) throw (std::bad_alloc) 573void *salloc_ (int n) throw (std::bad_alloc)
574{ 574{
575#ifdef PREFER_MALLOC
576 void *ptr = malloc (n);
577#else
575 void *ptr = g_slice_alloc (n); 578 void *ptr = g_slice_alloc (n);
579#endif
576 580
577 if (!ptr) 581 if (!ptr)
578 throw std::bad_alloc (); 582 throw std::bad_alloc ();
579 583
580 return ptr; 584 return ptr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines