Branch: Tag:

2007-10-24

2007-10-24 15:49:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Mark LFUNs as used.

Rev: src/program.c:1.628

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: program.c,v 1.627 2007/10/16 09:18:53 grubba Exp $ + || $Id: program.c,v 1.628 2007/10/24 15:49:26 grubba Exp $   */      #include "global.h"
2191:       /* Yes, it is supposed to start at 1 /Hubbe */    for(i=1;i<NUM_LFUNS;i++) { -  p->lfuns[i] = low_find_lfun(p, i); +  int id = p->lfuns[i] = low_find_lfun(p, i); +  if (id >= 0) { +  p->identifier_references[id].id_flags |= ID_USED;    } -  +  } +  for(;i < NELEM(lfun_names); i++) { +  int id = low_find_lfun(p, i); +  if (id >= 0) { +  p->identifier_references[id].id_flags |= ID_USED; +  } +  }       /* Set the PROGRAM_LIVE_OBJ flag by looking for destroy() and    * inherited PROGRAM_LIVE_OBJ flags. This is done at fixation time