pike.git / src / svalue.h

version» Context lines:

pike.git/src/svalue.h:419:    ((PIKE_TYPEOF(*(X)) == PIKE_T_OBJECT && !(X)->u.object->prog) || \    (PIKE_TYPEOF(*(X)) == PIKE_T_FUNCTION && \    PIKE_SUBTYPEOF(*(X)) != FUNCTION_BUILTIN \    && (!(X)->u.object->prog \    || ((X)->u.object->prog == pike_trampoline_program \    && !((struct pike_trampoline *)(X)->u.object->storage) \    ->frame->current_object->prog \    && PIKE_SUBTYPEOF(*(X)) == \    QUICK_FIND_LFUN(pike_trampoline_program, LFUN_CALL)))))    - #define check_destructed(S) \ -  do{ \ -  struct svalue *_s=(S); \ -  if(IS_DESTRUCTED(_s)) { \ -  free_object(_s->u.object); \ -  SET_SVAL(*_s, PIKE_T_INT, \ -  NUMBER_DESTRUCTED, \ -  integer, 0); \ -  } \ -  }while(0) -  +    /* var MUST be a variable!!! */   #define safe_check_destructed(var) do{ \    if(IS_DESTRUCTED(var)) \    var=&svalue_int_zero; \    }while(0)      /* FIXME: Is this actually used for functions? */   #define check_short_destructed(U,T) \   do{ \    union anything *_u=(U); \
pike.git/src/svalue.h:742:   #define clear_svalues(X,Y) low_clear_svalues((X),(Y),NUMBER_NUMBER)   #define clear_svalues_undefined(X,Y) low_clear_svalues((X),(Y),NUMBER_UNDEFINED)      #define really_free_short_svalue(U, TYPE) do { \    union anything *any_ = (U); \    debug_malloc_touch (any_->ptr); \    really_free_short_svalue_ptr (&any_->ptr, (TYPE)); \    } while (0)      /* Prototypes begin here */ + PMOD_EXPORT void check_destructed(struct svalue *s);   PMOD_EXPORT void really_free_short_svalue_ptr(void **s, TYPE_T type);   PMOD_EXPORT void really_free_svalue(struct svalue *s);   PMOD_EXPORT void do_free_svalue(struct svalue *s);   PMOD_EXPORT void debug_free_svalues(struct svalue *s, size_t num, INT32 type_hint DMALLOC_LINE_ARGS);   PMOD_EXPORT void debug_free_mixed_svalues(struct svalue *s, size_t num, INT32 type_hint DMALLOC_LINE_ARGS);   PMOD_EXPORT TYPE_FIELD assign_svalues_no_free(struct svalue *to,    const struct svalue *from,    size_t num,    TYPE_FIELD type_hint);   PMOD_EXPORT TYPE_FIELD assign_svalues(struct svalue *to,