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.184 2005/09/10 02:15:45 grendel Exp $ + || $Id: mapping.c,v 1.185 2005/09/11 00:40:10 grendel 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:640: Inside #if defined(PIKE_DEBUG)
   }    else    {    debug_malloc_touch(m);    debug_malloc_touch(md);    }   #endif    md->flags = flags;   }    -  - /** This function inserts key:val into the mapping m. -  * Same as doing m[key]=val; in pike. -  * -  * @param overwrite how to deal with existing values@n -  * @b 0: Do not replace the value if the entry exists.@n -  * @b 1: Replace the value if the entry exists.@n -  * @b 2: Replace both the index and the value if the entry exists. -  */ +    PMOD_EXPORT void low_mapping_insert(struct mapping *m,    const struct svalue *key,    const struct svalue *val,    int overwrite)   {    unsigned INT32 h,h2;    struct keypair *k, **prev;    struct mapping_data *md, *omd;      #ifdef PIKE_DEBUG