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.117 2001/06/08 14:26:41 mast Exp $"); + RCSID("$Id: mapping.c,v 1.118 2001/06/27 00:01:33 mast 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:1862: Inside #if defined(PIKE_DEBUG)
   fatal("Mapping ->prev->next != mapping.\n");    }else{    if(first_mapping != m)    fatal("Mapping ->prev == 0 but first_mapping != mapping.\n");    }       if(md->valrefs <0)    fatal("md->valrefs < 0\n");       if(md->hardlinks <0) -  fatal("md->valrefs < 0\n"); +  fatal("md->hardlinks < 0\n");       if(md->refs < md->valrefs+1)    fatal("md->refs < md->valrefs+1\n");       if(md->valrefs < md->hardlinks) -  fatal("md->refs < md->valrefs+1\n"); +  fatal("md->valrefs < md->hardlinks\n");       if(md->hashsize < 0)    fatal("Assert: I don't think he's going to make it Jim.\n");       if(md->size < 0)    fatal("Core breach, evacuate ship!\n");       if(md->num_keypairs < 0)    fatal("Starboard necell on fire!\n");   
pike.git/src/mapping.c:2159: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG   unsigned gc_touch_all_mappings(void)   {    unsigned n = 0;    struct mapping *m;    if (first_mapping && first_mapping->prev)    fatal("Error in mapping link list.\n");    for (m = first_mapping; m; m = m->next) {    debug_gc_touch(m); -  debug_gc_touch(m->data); +     n++;    if (m->next && m->next->prev != m)    fatal("Error in mapping link list.\n");    }    return n;   }   #endif      void gc_check_all_mappings(void)   {