Branch: Tag:

2003-08-20

2003-08-20 16:31:44 by Martin Stjernholm <mast@lysator.liu.se>

Make a double-linked list of callable structs in debug mode so that they can
be identified.

Rev: src/constants.c:1.49
Rev: src/constants.h:1.32

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: constants.h,v 1.31 2003/05/31 01:14:27 mast Exp $ + || $Id: constants.h,v 1.32 2003/08/20 16:31:44 mast Exp $   */      #ifndef ADD_EFUN_H
31: Inside #if defined(PIKE_DEBUG)
   INT8 may_return_void;    long compiles;    long runs; +  struct callable *prev;   #endif    optimize_fun optimize;    docode_fun docode;    struct callable *next;   };    -  + #ifdef PIKE_DEBUG + /* We have a double-linked list in debug mode for identification +  * purposes. */ + extern struct callable *first_callable; + #endif +    /* Prototypes begin here */   PMOD_EXPORT struct mapping *get_builtin_constants(void);   void low_add_efun(struct pike_string *name, struct svalue *fun);