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.176 2003/11/12 14:07:04 grubba Exp $ + || $Id: mapping.c,v 1.177 2004/03/16 14:09:23 mast Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.176 2003/11/12 14:07:04 grubba Exp $"); + RCSID("$Id: mapping.c,v 1.177 2004/03/16 14:09:23 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:2640: Inside #if defined(PIKE_DEBUG)
     void debug_dump_mapping(struct mapping *m)   {    fprintf(stderr, "Refs=%d, next=%p, prev=%p",    m->refs, m->next, m->prev);    if (((ptrdiff_t)m->data) & 3) {    fprintf(stderr, ", data=%p (unaligned)\n", m->data);    } else {    fprintf(stderr, ", flags=0x%x, size=%d, hashsize=%d\n",    m->data->flags, m->data->size, m->data->hashsize); -  fprintf(stderr, "Indices type field = "); +  fprintf(stderr, "Indices type field =");    debug_dump_type_field(m->data->ind_types);    fprintf(stderr, "\n"); -  fprintf(stderr, "Values type field = "); +  fprintf(stderr, "Values type field =");    debug_dump_type_field(m->data->val_types);    fprintf(stderr, "\n");    simple_describe_mapping(m);    }   }   #endif      int mapping_is_constant(struct mapping *m,    struct processing *p)   {