2003-11-14
2003-11-14 00:05:08 by Martin Stjernholm <mast@lysator.liu.se>
-
6f52406e65e24897b1b096aa92a5ba11c2b3285f
(9 lines)
(+7/-2)
[
Show
| Annotate
]
Branch: 7.9
Compile in debug checks only in rtldebug mode.
Rev: src/callback.c:1.34
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: callback.c,v 1.33 2002/12/11 21:20:13 mast Exp $
+ || $Id: callback.c,v 1.34 2003/11/14 00:05:08 mast Exp $
*/
#include "global.h"
11:
#include "pike_error.h"
#include "block_alloc.h"
- RCSID("$Id: callback.c,v 1.33 2002/12/11 21:20:13 mast Exp $");
+ RCSID("$Id: callback.c,v 1.34 2003/11/14 00:05:08 mast Exp $");
struct callback_list fork_child_callback;
82: Inside #if defined(PIKE_DEBUG)
struct callback *tmp;
for(tmp=foo->next;tmp && len2<=len;tmp=tmp->next)
{
+ #ifdef PIKE_DEBUG
if(tmp==foo)
Pike_fatal("Callback list is cyclic!!!\n");
-
+ #endif
}
}
len++;
174:
while(*ptr != l)
{
ptr=&(ptr[0]->next);
+ #ifdef PIKE_DEBUG
if(!*ptr)
{
/* We totally failed to find where we are in the linked list.. */
Pike_fatal("Callback linked list breakdown.\n");
}
-
+ #endif
}
*ptr=l->next;