pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:11:   #include "stralloc.h"   #include "builtin_functions.h"   #include "array.h"   #include "object.h"   #include "main.h"   #include "builtin_functions.h"   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "threads.h" + #include "gc.h"    - RCSID("$Id: error.c,v 1.44 2000/04/04 15:39:13 grubba Exp $"); + RCSID("$Id: error.c,v 1.45 2000/04/12 18:40:12 hubbe Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      JMP_BUF *recoveries=0;      #ifdef PIKE_DEBUG   void check_recovery_context(void)   {    char foo;
pike.git/src/error.c:525:    struct svalue *base_sp, int args,    char *permission_type,    char *desc, ...) ATTRIBUTE((noreturn, format(printf, 5, 6)))   {    INIT_ERROR(permission);    ERROR_STRUCT(permission,o)->permission_type=    make_shared_string(permission_type);    ERROR_DONE(generic);   }    + #ifdef PIKE_DEBUG + static void gc_check_throw_value(struct callback *foo, void *bar, void *gazonk) + { +  debug_gc_xmark_svalues(&throw_value,1," in the throw value"); + } + #endif +    void init_error(void)   {   #define ERR_SETUP   #include "errors.h" -  +  + #ifdef PIKE_DEBUG +  dmalloc_accept_leak(add_gc_callback(gc_check_throw_value,0,0)); + #endif   }      void cleanup_error(void)   {   #define ERR_CLEANUP   #include "errors.h"   }   #endif