Branch: Tag:

2002-06-11

2002-06-11 17:41:36 by Martin Stjernholm <mast@lysator.liu.se>

Fixed overriding bug when a function has a prototype in front of an inherit
and a definition after it, and the inherit contains a function with the same
name that is overridden. Also did some cleanup and added a bit of output to
dump_program_desc.

Rev: src/encode.c:1.148
Rev: src/program.c:1.434
Rev: src/program.h:1.162

26:   #include "bignum.h"   #include "pikecode.h"    - RCSID("$Id: encode.c,v 1.147 2002/05/31 22:41:23 nilsson Exp $"); + RCSID("$Id: encode.c,v 1.148 2002/06/11 17:41:36 mast Exp $");      /* #define ENCODE_DEBUG */   
3517:    * identifiers, identifier_references    */    -  if (n < 0 || (n = override_identifier (&ref, id.name, 0)) < 0) { +  if (n < 0 || (n = override_identifier (&ref, id.name)) < 0) {    n = p->num_identifier_references;    add_to_identifier_references(ref);    }