pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:15:   #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.75 2001/08/15 22:58:36 mast Exp $"); + RCSID("$Id: error.c,v 1.76 2001/09/24 14:29:42 grubba Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)      /*    * Attempt to inhibit throwing of errors if possible.    * Used by exit_on_error() to avoid infinite sprintf() loops.    */   int Pike_inhibit_errors = 0;   
pike.git/src/error.c:307:    va_start(args,fmt);    va_error(fmt,args);    va_end(args);   }      PMOD_EXPORT DECLSPEC(noreturn) void debug_fatal(const char *fmt, ...) ATTRIBUTE((noreturn,format (printf, 1, 2)))   {    va_list args;    static int in_fatal = 0;    +  /* fprintf(stderr, "Raw error: %s\n", fmt); */ +     va_start(args,fmt);    /* Prevent double fatal. */    if (in_fatal)    {    (void)VFPRINTF(stderr, fmt, args);    do_abort();    }       in_fatal = 1;   #ifdef PIKE_DEBUG
pike.git/src/error.c:512:         DECLSPEC(noreturn) void generic_error_va(struct object *o,    char *func,    struct svalue *base_sp, int args,    char *fmt,    va_list foo)    ATTRIBUTE((noreturn))   {    char buf[8192]; -  struct pike_string *desc; -  struct array *backtrace; +     int i;      #ifdef HAVE_VSNPRINTF    vsnprintf(buf, sizeof(buf)-1, fmt, foo);   #else /* !HAVE_VSNPRINTF */    /* Sentinel that will be overwritten on buffer overflow. */    buf[sizeof(buf)-1] = '\0';       VSPRINTF(buf, fmt, foo);