pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:1:   /*   || 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: pike_types.c,v 1.252 2005/12/04 19:23:54 nilsson Exp $ + || $Id: pike_types.c,v 1.253 2006/01/20 17:50:51 grubba Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:3327:    }    else {    if (a->cdr == b->cdr)    return 1;    }       {    struct program *ap = id_to_program(CDR_TO_INT(a));    struct program *bp = id_to_program(CDR_TO_INT(b));    + #if 0 +  fprintf(stderr, +  "id_to_program(%d) ==> %p\n" +  "id_to_program(%d) ==> %p\n", +  CDR_TO_INT(a), ap, +  CDR_TO_INT(b), bp); + #endif /* 0 */ +     if (!ap || !bp) {    /* Shouldn't happen... */    /* fprintf(stderr, "ap:%p bp:%p\n", ap, bp); */    return 0;    }    if ((flags & LE_WEAK_OBJECTS) &&    (!TEST_COMPAT(7,4) || (!a->car))) {    implements_mode = 0; -  /* fprintf(stderr, "is_compat(%p, %p)\n", ap, bp); */ + #if 0 +  fprintf(stderr, " is_compat(%p(%d), %p(%d))\n", +  ap, ap->id, bp, bp->id); + #endif /* 0 */    return is_compatible(implements_a=ap, implements_b=bp);    }    implements_mode = 1; -  /* fprintf(stderr, "implements(%p, %p)\n", ap, bp); */ + #if 0 +  fprintf(stderr, " implements(%p(%d), %p(%d))\n", +  ap, ap->id, bp, bp->id); + #endif /* 0 */    return implements(implements_a=ap, implements_b=bp);    }    break;       case T_INT:    {    INT32 amin = CAR_TO_INT(a);    INT32 amax = CDR_TO_INT(a);       INT32 bmin = CAR_TO_INT(b);