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.34 1999/04/17 13:47:16 grubba Exp $"); + RCSID("$Id: error.c,v 1.35 1999/05/02 08:11:39 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:73:    if(!recoveries)    fatal("No error recovery context.\n");      #ifdef PIKE_DEBUG    if(sp - evaluator_stack < recoveries->sp)    fatal("Stack error in error.\n");   #endif       while(fp != recoveries->fp)    { -  struct pike_frame *tmp=fp; +    #ifdef PIKE_DEBUG    if(!fp)    fatal("Popped out of stack frames.\n");   #endif -  fp = tmp->next; -  tmp->next=0; -  free_pike_frame(tmp); +  POP_PIKE_FRAME();    }       pop_n_elems(sp - evaluator_stack - recoveries->sp);    mark_sp = mark_stack + recoveries->mark_sp;       while(recoveries->onerror)    {    (*recoveries->onerror->func)(recoveries->onerror->arg);    recoveries->onerror=recoveries->onerror->previous;    }
pike.git/src/error.c:476:    INIT_ERROR(resource);    ERROR_COPY(resource,howmuch);    ERROR_STRUCT(resource,o)->resource_type=make_shared_string(resource_type);    ERROR_DONE(generic);   }      void permission_error(    char *func,    struct svalue *base_sp, int args,    char *permission_type, -  char *desc, ...) ATTRIBUTE((noreturn, format(printf, 2, 3))) +  char *desc, ...) ATTRIBUTE((noreturn, format(printf, 5, 6)))   {    INIT_ERROR(permission);    ERROR_STRUCT(permission,o)->permission_type=    make_shared_string(permission_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