pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:68: Inside #if defined(PIKE_DEBUG)
     PMOD_EXPORT void check_recovery_context(void)   {    char foo;   #define TESTILITEST ((((char *)Pike_interpreter.recoveries)-((char *)&foo))*STACK_DIRECTION)    if(Pike_interpreter.recoveries &&    Pike_interpreter.recoveries->on_stack &&    TESTILITEST > 0) {    fprintf(stderr, "Recoveries is out biking (Pike_interpreter.recoveries=%p, Pike_sp=%p, %ld)!\n",    Pike_interpreter.recoveries, &foo, -  DO_NOT_WARN((long)TESTILITEST)); +  (long)TESTILITEST);    fprintf(stderr, "Last recovery was added at %s:%d\n",    Pike_interpreter.recoveries->file,    Pike_interpreter.recoveries->line);    push_int((ptrdiff_t)Pike_interpreter.recoveries);   /* if ((s = low_mapping_lookup(recovery_lookup, Pike_sp-1))) { */   /* fprintf(stderr, "Try also looking at %s.\n", (char*)s->u.integer); */   /* } */    pop_stack();    Pike_fatal("Recoveries is out biking (Pike_interpreter.recoveries=%p, C sp=%p, %ld)!\n",    Pike_interpreter.recoveries, &foo, -  DO_NOT_WARN((long)TESTILITEST)); +  (long)TESTILITEST);    }       /* Add more stuff here when required */   }   #endif      /*! @decl void _gdb_breakpoint()    *!    *! This function only exists so that it is possible to set a gdb    *! breakpoint on the function pike_gdb_breakpoint.
pike.git/src/error.c:1063:   }      /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void resource_error(    const char *func,    struct svalue *base_sp, int args,    const char *resource_type,    size_t howmuch_,    const char *desc, ...) ATTRIBUTE((noreturn))   { -  INT_TYPE howmuch = DO_NOT_WARN((INT_TYPE)howmuch_); +  INT_TYPE howmuch = (INT_TYPE)howmuch_;    INIT_ERROR(resource);    ERROR_COPY(resource, howmuch);    ERROR_STRUCT(resource,o)->resource_type=make_shared_string(resource_type);    ERROR_DONE(generic);   }      /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void permission_error(    const char *func,    struct svalue *base_sp, int args,