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.24 1997/11/08 01:34:41 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.25 1998/02/13 00:44:26 hubbe Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "language.h"   #include "error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"
pike.git/src/mapping.c:921: Inside #if defined(DEBUG)
      if(m->hashsize < 0)    fatal("Assert: I don't think he's going to make it Jim.\n");       if(m->size < 0)    fatal("Core breach, evacuate ship!\n");       if(m->size > (m->hashsize + 3) * AVG_LINK_LENGTH)    fatal("Pretty mean hashtable there buster!.\n");    -  if(m->size < (m->hashsize - 3) * MIN_LINK_LENGTH) -  fatal("Hashsize is too small for mapping.\n"); -  +     if(m->size > 0 && (!m->ind_types || !m->val_types))    fatal("Mapping type fields are... wrong.\n");       if(!m->hash && m->size)    fatal("Hey! where did my hashtable go??\n");      }      void check_all_mappings(void)   {