pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:3922:    SET_SVAL(key, T_INT, NUMBER_NUMBER, integer, marker);       val = low_mapping_lookup(markers, &key);    if (!val) return NULL;       if (TYPEOF(*val) == PIKE_T_TYPE) {    return val->u.type;    }    return NULL;   } + #define lookup_marker(MAP, M) ((struct pike_type *)debug_malloc_pass(lookup_marker(debug_malloc_pass(MAP), M)))      static void store_marker(struct mapping *markers, int marker,    struct pike_type *value)   {    struct svalue key, val;       if (!markers || !marker) return;       SET_SVAL(key, T_INT, NUMBER_NUMBER, integer, marker);    SET_SVAL(val, T_TYPE, 0, type, value);    mapping_insert(markers, &key, &val);   } -  + #define store_marker(MAP, M, T) store_marker(debug_malloc_pass(MAP), M, debug_malloc_pass(T))      static void push_remap_markers(struct pike_type *t,    struct mapping *markers,    struct remap_state *remap,    enum pt_remap_flags flags)   {    if (!t || (!remap && !markers && !(flags & PT_FLAG_REMAP_EVAL_MARKERS))) {    push_finished_type(t);    return;    }