pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.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: mapping.c,v 1.204 2008/06/25 16:15:43 grubba Exp $ + || $Id: mapping.c,v 1.205 2008/06/25 17:48:10 grubba Exp $   */      #include "global.h"   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"
pike.git/src/mapping.c:1816: Inside #if defined(PIKE_DEBUG)
   if(a->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");    if(b->data->refs <=0)    Pike_fatal("Zero refs in mapping->data\n");   #endif       if(a==b) return 1;       if (a->data == b->data) return 1;    -  if (a->data->flags || b->data->flags) return 0; +  /* If either is weak, they're different. */ +  if ((a->data->flags | b->data->flags) & MAPPING_WEAK) return 0;       check_mapping_for_destruct(a);    check_mapping_for_destruct(b);       if(m_sizeof(a) != m_sizeof(b)) return 0;       curr.pointer_a = a;    curr.pointer_b = b;    curr.next = p;