Branch: Tag:

2009-11-20

2009-11-20 10:58:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Avoid generating unnecessary parent pointers for inherits and types.
Fixes [bug 2672 (#2672)].

Rev: src/docode.c:1.206
Rev: src/las.c:1.442
Rev: src/program.c:1.772

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: las.c,v 1.441 2009/11/19 18:49:29 grubba Exp $ + || $Id: las.c,v 1.442 2009/11/20 10:58:09 grubba Exp $   */      #include "global.h"
1207:    res->u.integer.a = parent_prog->id;    res->u.integer.b = i;    + #if 0    /* Don't do this if res about to get inherited, since the inherit won't    * be affected by later overloading of the inherited class in our parents.    */
1219:    state=state->previous;    }   /* } */ + #endif /* 0 */       return res;   #endif /* 0 */