Branch: Tag:

2003-02-19

2003-02-19 01:57:34 by Marcus Comstedt <marcus@mc.pp.se>

MKREADSET: If elements e and e+1 have their places swapped, it doesn't
mean that there are overlapping ranges, just that the sort function is
unstable. It doesn't matter. Live with it.

Rev: src/opcodes.c:1.140

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: opcodes.c,v 1.139 2003/02/13 13:53:08 grubba Exp $ + || $Id: opcodes.c,v 1.140 2003/02/19 01:57:34 marcus Exp $   */      #include "global.h"
30:      #define sp Pike_sp    - RCSID("$Id: opcodes.c,v 1.139 2003/02/13 13:53:08 grubba Exp $"); + RCSID("$Id: opcodes.c,v 1.140 2003/02/19 01:57:34 marcus Exp $");      void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind)   {
1219:    order=get_switch_order(set->a); \    for(e=0;e<(size_t)set->a->size;e+=2) \    { \ -  if(order[e]+1 != order[e+1]) \ -  { \ +  if(order[e]+1 != order[e+1] && \ +  order[e+1]+1 != order[e]) \    free_array(set->a); \    set->a=0; \    free((char *)order); \