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.26 1999/03/19 11:39:08 hubbe Exp $"); + RCSID("$Id: error.c,v 1.27 1999/03/20 22:24:30 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:430:    {    ERROR_COPY_SVALUE(bad_arg, got);    }else{    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, +  char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5))) + { +  INIT_ERROR(math); +  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))) + { +  INIT_ERROR(resource); +  ERROR_COPY(resource,howmuch); +  ERROR_STRUCT(resource,o)->resource_type=make_shared_string(resource_type); +  ERROR_DONE(generic); + } +    void init_error(void)   {   #define ERR_SETUP   #include "errors.h"   }      void cleanup_error(void)   {   #define ERR_CLEANUP   #include "errors.h"   }   #endif