Branch: Tag:

2004-09-06

2004-09-06 11:43:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved diagnostics.

Rev: src/array.c:1.138
Rev: src/encode.c:1.187

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: array.c,v 1.137 2004/04/14 22:04:37 mast Exp $ + || $Id: array.c,v 1.138 2004/09/06 11:43:23 grubba Exp $   */      #include "global.h"
25:   #include "bignum.h"   #include "cyclic.h"    - RCSID("$Id: array.c,v 1.137 2004/04/14 22:04:37 mast Exp $"); + RCSID("$Id: array.c,v 1.138 2004/09/06 11:43:23 grubba Exp $");      PMOD_EXPORT struct array empty_array=   {
1038: Inside #if defined(PIKE_DEBUG)
   if(t & ~(v->type_field))    {    describe(v); -  Pike_fatal("Type field out of order!\n"); +  Pike_fatal("Type field out of order (old:0x%04x new:0x%04x)!\n", +  v->type_field, t);    }   #endif    v->type_field = t;