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.29 1998/04/20 18:53:17 grubba Exp $"); + RCSID("$Id: mapping.c,v 1.30 1998/04/24 00:01:32 hubbe Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "language.h"   #include "error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"
pike.git/src/mapping.c:488:      struct svalue *low_mapping_string_lookup(struct mapping *m,    struct pike_string *p)   {    struct svalue tmp;    tmp.type=T_STRING;    tmp.u.string=p;    return low_mapping_lookup(m, &tmp);   }    + void mapping_string_insert(struct mapping *m, +  struct pike_string *p, +  struct svalue *val) + { +  struct svalue tmp; +  tmp.type=T_STRING; +  tmp.u.string=p; +  mapping_insert(m, &tmp, val); + } +    struct svalue *simple_mapping_string_lookup(struct mapping *m,    char *p)   {    struct pike_string *tmp;    if((tmp=findstring(p)))    return low_mapping_string_lookup(m,tmp);    return 0;   }      void mapping_index_no_free(struct svalue *dest,