pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.132 2001/09/01 01:45:51 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.133 2001/09/01 09:38:56 hubbe Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"
pike.git/src/mapping.c:1967: Inside #if defined(PIKE_DEBUG)
   if(md->size < 0)    fatal("Core breach, evacuate ship!\n");       if(md->num_keypairs < 0)    fatal("Starboard necell on fire!\n");       if(md->size > md->num_keypairs)    fatal("Pretty mean hashtable there buster!\n");       if(md->hashsize > md->num_keypairs) -  fatal("Pretty mean hashtable there buster (2)!\n"); +  fatal("Pretty mean hashtable there buster %d > %d (2)!\n",md->hashsize,md->num_keypairs);       if(md->num_keypairs > (md->hashsize + 3) * AVG_LINK_LENGTH)    fatal("Mapping from hell detected, attempting to send it back...\n");       if(md->size > 0 && (!md->ind_types || !md->val_types))    fatal("Mapping type fields are... wrong.\n");       num=0;    NEW_MAPPING_LOOP(md)    {