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.152 2002/10/11 01:39:33 nilsson Exp $ + || $Id: mapping.c,v 1.153 2002/10/27 16:35:05 nilsson Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.152 2002/10/11 01:39:33 nilsson Exp $"); + RCSID("$Id: mapping.c,v 1.153 2002/10/27 16:35:05 nilsson 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:205:    default: md = &weak_both_empty_data; break;    }    }    add_ref(md);    m->data=md;   #ifdef MAPPING_SIZE_DEBUG    m->debug_size = md->size;   #endif   }    - /* This function allocates an empty mapping with room for 'size' values + /* This function allocates an empty mapping with initial room +  * for 'size' values.    */   PMOD_EXPORT struct mapping *debug_allocate_mapping(int size)   {    struct mapping *m;       m=alloc_mapping();       GC_ALLOC(m);       INITIALIZE_PROT(m);