Branch: Tag:

2003-02-24

2003-02-24 13:42:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported identifier lookup fixes from Pike 7.5.

Rev: src/encode.c:1.160
Rev: src/program.c:1.469
Rev: src/program.h:1.173

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: encode.c,v 1.159 2003/02/17 19:31:41 mast Exp $ + || $Id: encode.c,v 1.160 2003/02/24 13:42:10 grubba Exp $   */      #include "global.h"
27:   #include "bignum.h"   #include "pikecode.h"    - RCSID("$Id: encode.c,v 1.159 2003/02/17 19:31:41 mast Exp $"); + RCSID("$Id: encode.c,v 1.160 2003/02/24 13:42:10 grubba Exp $");      /* #define ENCODE_DEBUG */   
2800:    debug_malloc_touch(dat);       debug_malloc_touch(p); -  { -  struct program *new_program_save=Pike_compiler->new_program; -  Pike_compiler->new_program=p; -  fsort((void *)p->identifier_index, -  p->num_identifier_index, -  sizeof(unsigned short),(fsortfun)program_function_index_compare); -  Pike_compiler->new_program=new_program_save; -  } +     -  +  fsort_program_identifier_index(p->identifier_index, +  p->identifier_index + +  p->num_identifier_index - 1, +  p); +     debug_malloc_touch(dat);    debug_malloc_touch(p);