pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:12:   #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"    - RCSID("$Id: error.c,v 1.43 2000/04/04 15:30:21 grubba Exp $"); + RCSID("$Id: error.c,v 1.44 2000/04/04 15:39:13 grubba 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:365:    base_sp, args, \    desc,foo)); \    va_end(foo)      #define ERROR_STRUCT(STRUCT,O) \    ((struct PIKE_CONCAT(STRUCT,_error_struct) *)((O)->storage + PIKE_CONCAT(STRUCT,_error_offset)))      #define ERROR_COPY(STRUCT,X) \    ERROR_STRUCT(STRUCT,o)->X=X    - #define ERROR_COPY_SVALUE(STRUCT,X) \ -  (X?assign_svalue_no_free( & ERROR_STRUCT(STRUCT,o)->X, X):((ERROR_STRUCT(STRUCT, o)->X.type = T_INTEGER), (ERROR_STRUCT(STRUCT, o)->X.subtype = 0), (ERROR_STRUCT(STRUCT, o)->X.u.integer = 0))) + #define ERROR_COPY_SVALUE(STRUCT,X) do { \ +  if (X) { \ +  assign_svalue_no_free( & ERROR_STRUCT(STRUCT,o)->X, X); \ +  } else { \ +  ERROR_STRUCT(STRUCT, o)->X.type = T_INT; \ +  ERROR_STRUCT(STRUCT, o)->X.subtype = 0; \ +  ERROR_STRUCT(STRUCT, o)->X.u.integer = 0; \ +  } \ +  } while (0)         #define ERROR_COPY_REF(STRUCT,X) \    add_ref( ERROR_STRUCT(STRUCT,o)->X=X )         void generic_error_va(struct object *o,    char *func,    struct svalue *base_sp, int args,    char *fmt,