pike.git / src / pike_error.h

version» Context lines:

pike.git/src/pike_error.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: pike_error.h,v 1.4 2000/12/05 21:08:20 per Exp $ +  * $Id: pike_error.h,v 1.5 2000/12/16 05:03:34 marcus Exp $    */   #ifndef ERROR_H   #define ERROR_H      #include "machine.h"      #ifdef HAVE_SETJMP_H   #include <setjmp.h>   #undef HAVE_SETJMP_H   #endif
pike.git/src/pike_error.h:62:    ptrdiff_t stack_pointer;    ptrdiff_t mark_sp;    INT32 severity;    ONERROR *onerror;   #ifdef PIKE_DEBUG    int line;    char *file;   #endif   } JMP_BUF;    - extern struct svalue throw_value; + PMOD_EXPORT extern struct svalue throw_value;   extern int throw_severity;      #ifdef PIKE_DEBUG   #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) \    fatal("UNSETJMP out of sync! (last SETJMP at %s:%d)!\n",Pike_interpreter.recoveries->file,Pike_interpreter.recoveries->line); \
pike.git/src/pike_error.h:161: Inside #if defined(PIKE_DEBUG) && 0
  #if defined(PIKE_DEBUG) && 0   /* Works, but probably not interresting for most people    * /grubba 1998-04-11    */   #define PIKE_ERROR(NAME, TEXT, SP, ARGS) new_error(NAME, TEXT, SP, ARGS, __FILE__, __LINE__);   #else   #define PIKE_ERROR(NAME, TEXT, SP, ARGS) new_error(NAME, TEXT, SP, ARGS, NULL, 0);   #endif /* PIKE_DEBUG */      /* Prototypes begin here */ - void check_recovery_context(void); + PMOD_EXPORT void check_recovery_context(void);   PMOD_EXPORT void pike_gdb_breakpoint(void);   PMOD_EXPORT JMP_BUF *init_recovery(JMP_BUF *r DEBUG_LINE_ARGS);   PMOD_EXPORT DECLSPEC(noreturn) void pike_throw(void) ATTRIBUTE((noreturn));   PMOD_EXPORT void push_error(char *description);   PMOD_EXPORT DECLSPEC(noreturn) void low_error(const char *buf) ATTRIBUTE((noreturn));   void va_error(const char *fmt, va_list args) ATTRIBUTE((noreturn));   PMOD_EXPORT DECLSPEC(noreturn) void new_error(const char *name, const char *text, struct svalue *oldsp,    INT32 args, const char *file, int line) ATTRIBUTE((noreturn));   PMOD_EXPORT void exit_on_error(void *msg);   PMOD_EXPORT void fatal_on_error(void *msg);
pike.git/src/pike_error.h:184:   void f_error_cast(INT32 args);   void f_error_index(INT32 args);   void f_error_describe(INT32 args);   void f_error_backtrace(INT32 args);   void DECLSPEC(noreturn) generic_error_va(struct object *o,    char *func,    struct svalue *base_sp, int args,    char *fmt,    va_list foo)    ATTRIBUTE((noreturn)); - void DECLSPEC(noreturn) generic_error( + PMOD_EXPORT void DECLSPEC(noreturn) generic_error(    char *func,    struct svalue *base_sp, int args,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5))); - void DECLSPEC(noreturn) index_error( + PMOD_EXPORT void DECLSPEC(noreturn) index_error(    char *func,    struct svalue *base_sp, int args,    struct svalue *val,    struct svalue *ind,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 6, 7))); - void DECLSPEC(noreturn) bad_arg_error( + PMOD_EXPORT void DECLSPEC(noreturn) bad_arg_error(    char *func,    struct svalue *base_sp, int args,    int which_arg,    char *expected_type,    struct svalue *got,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 7, 8))); - void DECLSPEC(noreturn) math_error( + PMOD_EXPORT void DECLSPEC(noreturn) math_error(    char *func,    struct svalue *base_sp, int args,    struct svalue *number,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 5, 6))); - void DECLSPEC(noreturn) resource_error( + PMOD_EXPORT void DECLSPEC(noreturn) resource_error(    char *func,    struct svalue *base_sp, int args,    char *resource_type,    size_t howmuch,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 6, 7))); - void DECLSPEC(noreturn) permission_error( + PMOD_EXPORT void DECLSPEC(noreturn) permission_error(    char *func,    struct svalue *base_sp, int args,    char *permission_type,    char *desc, ...) ATTRIBUTE((noreturn, format(printf, 5, 6))); - void wrong_number_of_args_error(char *name, int args, int expected); + PMOD_EXPORT void wrong_number_of_args_error(char *name, int args, int expected);   void init_error(void);   void cleanup_error(void);   /* Prototypes end here */      #define fatal \    fprintf(stderr,"%s:%d: Fatal error:\n",__FILE__,__LINE__),debug_fatal      /* Some useful error macros. */