pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:333:    prev = from->next;    from->next = next;    next = from;       if (md->flags & MAPPING_WEAK) {       switch(md->flags & MAPPING_WEAK) {    default:    Pike_fatal("Instable mapping data flags.\n");    case MAPPING_WEAK_INDICES: -  if (REFCOUNTED_TYPE(TYPEOF(from->ind)) && +  if (!REFCOUNTED_TYPE(TYPEOF(from->ind)) ||    (*from->ind.u.refs > 1)) {    goto keep_keypair;    }    break;    case MAPPING_WEAK_VALUES: -  if (REFCOUNTED_TYPE(TYPEOF(from->val)) && +  if (!REFCOUNTED_TYPE(TYPEOF(from->val)) ||    (*from->val.u.refs > 1)) {    goto keep_keypair;    }    break;    case MAPPING_WEAK:    /* NB: Compat: Unreference counted values are counted    * as multi-referenced here.    */    if ((!REFCOUNTED_TYPE(TYPEOF(from->ind)) ||    (*from->ind.u.refs > 1)) &&