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.69 by root, Tue Jan 22 15:53:01 2008 UTC vs.
Revision 1.70 by root, Fri Jan 25 18:09:23 2008 UTC

498 498
499/******************************************************************************/ 499/******************************************************************************/
500 500
501#ifdef DEBUG_SALLOC 501#ifdef DEBUG_SALLOC
502 502
503#define MAGIC 0xa1b2c35543deadL 503#define MAGIC 0xa1b2c35543deadLL
504 504
505void *g_slice_alloc (unsigned long size) 505void *g_slice_alloc (unsigned long size)
506{ 506{
507 unsigned long *p = (unsigned long *) (g_slice_alloc)(size + sizeof (unsigned long)); 507 unsigned long *p = (unsigned long *) (g_slice_alloc)(size + sizeof (unsigned long));
508 *p++ = size ^ MAGIC; 508 *p++ = size ^ MAGIC;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines