pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:11:   #include "stralloc.h"   #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"    - RCSID("$Id: error.c,v 1.28 1999/03/23 02:51:07 marcus Exp $"); + RCSID("$Id: error.c,v 1.29 1999/03/23 16:22:06 hubbe 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:434:    ERROR_STRUCT(bad_arg,o)->got.type=T_INT;    ERROR_STRUCT(bad_arg,o)->got.subtype=NUMBER_UNDEFINED;    ERROR_STRUCT(bad_arg,o)->got.u.integer=0;    }    ERROR_DONE(generic);   }      void math_error(    char *func,    struct svalue *base_sp, int args, +  struct svalue *number,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5)))   {    INIT_ERROR(math); -  +  if(number) +  { +  ERROR_COPY_SVALUE(bad_arg, number); +  }else{ +  ERROR_STRUCT(bad_arg,o)->number.type=T_INT; +  ERROR_STRUCT(bad_arg,o)->number.subtype=NUMBER_UNDEFINED; +  ERROR_STRUCT(bad_arg,o)->number.u.integer=0; +  }    ERROR_DONE(generic);   }      void resource_error(    char *func,    struct svalue *base_sp, int args,    char *resource_type,    long howmuch,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 6, 7)))   {