Branch: Tag:

2002-07-23

2002-07-23 13:23:04 by Martin Stjernholm <mast@lysator.liu.se>

Reverted the stricter object comparison introduced in 1.190 in a case
that probably caused a function prototype to mismatch itself between
the first and second passes.

Rev: src/pike_types.c:1.192

5:   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.191 2002/07/23 12:03:56 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.192 2002/07/23 13:23:04 mast Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"
2516:    if(a->cdr != b->cdr) return 0;    }else{    /* object(0 *) =? object(0 *) */ + #if 0 +  /* This is known to cause trouble in some cases when comparing +  * the same function prototype in the first and second passes +  * (got "Prototype doesn't match for function foo" even though +  * there was no other prototype for that function). /mast */    struct program *ap,*bp;    ap = id_to_program((ptrdiff_t)a->cdr);    bp = id_to_program((ptrdiff_t)b->cdr);    if (!is_compatible(ap, bp)) return 0; -  + #endif    break;    }    }