pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h: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$ +    */      #ifndef PIKE_ERROR_H   #define PIKE_ERROR_H      #ifdef CONFIGURE_TEST      #include <stdio.h>      static inline void Pike_fatal (const char *fmt, ...)
pike.git/src/pike_error.h:18:    va_start (args, fmt);    vfprintf (stderr, fmt, args);    abort();   }      #define Pike_error Pike_fatal      #else /* !CONFIGURE_TEST */      #include "global.h" -  - #ifdef HAVE_SETJMP_H +    #include <setjmp.h> - #undef HAVE_SETJMP_H - #endif +       #if defined(HAVE_SIGSETJMP) && defined(HAVE_SIGLONGJMP)   #define HAVE_AND_USE_SIGSETJMP   #define LOW_JMP_BUF sigjmp_buf   #define LOW_SETJMP(X) sigsetjmp(X, 0)   #define LOW_LONGJMP(X, Y) siglongjmp(X, Y)   #elif defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)   #define HAVE_AND_USE__SETJMP   #define LOW_JMP_BUF jmp_buf   #define LOW_SETJMP(X) _setjmp(X)
pike.git/src/pike_error.h:45:   /* Assume we have setjmp and longjmp, they are after all defined by ANSI C. */   #define HAVE_AND_USE_SETJMP   #define LOW_JMP_BUF jmp_buf   #define LOW_SETJMP(X) setjmp(X)   #define LOW_LONGJMP(X, Y) longjmp(X, Y)   #endif      #if 1   PMOD_EXPORT extern const char msg_fatal_error[];   #define Pike_fatal \ -  (fprintf(stderr,msg_fatal_error,__FILE__,__LINE__),debug_fatal) +  (fprintf(stderr,msg_fatal_error,__FILE__,(long)__LINE__),debug_fatal)   #else   /* This is useful when debugging assembler code sometimes... -Hubbe */   #define Pike_fatal \    (fprintf(stderr,"%s: Fatal error:\n",__FILE__ ":" DEFINETOSTR(__LINE__) ),debug_fatal)   #endif      #define pike_fatal_dloc \    (fprintf (stderr, msg_fatal_error, DLOC_ARGS), debug_fatal)      #ifndef NO_PIKE_SHORTHAND
pike.git/src/pike_error.h:117:    INT32 severity;    ONERROR *onerror;   #ifdef PIKE_DEBUG    int line;    const char *file;    int on_stack;   #endif   } JMP_BUF;      PMOD_EXPORT extern struct svalue throw_value; - extern int throw_severity; + PMOD_EXPORT extern int throw_severity;      #ifdef PIKE_DEBUG   PMOD_EXPORT extern const char msg_unsetjmp_nosync_1[];   PMOD_EXPORT extern const char msg_unsetjmp_nosync_2[];   #define UNSETJMP(X) do{ \    check_recovery_context(); \    OED_FPRINTF((stderr, "unsetjmp(%p) %s:%d\n", \    &(X), __FILE__, __LINE__)); \    if(Pike_interpreter.recoveries != &X) { \    if(Pike_interpreter.recoveries) \