pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1:   /*   || 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: error.c,v 1.152 2008/03/29 01:29:47 mast Exp $ + || $Id: error.c,v 1.153 2008/03/29 11:50:56 mast Exp $   */      #define NO_PIKE_SHORTHAND   #include "global.h"   #include "svalue.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "interpret.h"   #include "stralloc.h"   #include "builtin_functions.h"
pike.git/src/error.c:532:      PMOD_EXPORT DECLSPEC(noreturn) void debug_va_fatal(const char *fmt, va_list args) ATTRIBUTE((noreturn))   {    static int in_fatal = 0;       /* fprintf(stderr, "Raw error: %s\n", fmt); */       /* Prevent double fatal. */    if (in_fatal)    { -  if (fmt) { -  va_list a; -  va_copy (a, args); /* FIXME: Assumes C99. */ -  (void)VFPRINTF(stderr, fmt, a); -  va_end (a); -  } +  if (fmt) (void)VFPRINTF(stderr, fmt, args);    do_abort();    }       in_fatal = 1;   #ifdef PIKE_DEBUG    if (d_flag) { -  + #ifdef HAVE_VA_COPY    if (fmt) {    va_list a; -  va_copy (a, args); /* FIXME: Assumes C99. */ +  va_copy (a, args);    (void)VFPRINTF(stderr, fmt, a);    va_end (a);    } -  + #endif    dump_backlog();    }   #endif       if (fmt) (void)VFPRINTF(stderr, fmt, args);       if(Pike_in_gc)    fprintf(stderr,"Pike was in GC stage %d when this fatal occured.\n",Pike_in_gc);    Pike_in_gc = GC_PASS_DISABLED;