pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:97:    if(m->next) m->next->prev = m->prev;    if(first_mapping == m) first_mapping = 0;       free((char *)m);   }      static void order_mapping(struct mapping *m)   {    INT32 *order;    order = get_set_order(m->ind); +  if(!order) return;    m->ind = order_array(m->ind, order);    m->val = order_array(m->val, order);    free((char *)order);   }      struct mapping *mkmapping(struct array *ind, struct array *val)   {    struct mapping *m;    m=allocate_mapping(copy_array(ind), copy_array(val));    order_mapping(m);