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.18 1997/04/23 23:06:16 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.18.2.1 1997/05/10 12:56:55 hubbe Exp $");   #include "main.h"   #include "types.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "language.h"   #include "error.h"   #include "memory.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);   }    + struct svalue *low_mapping_int_lookup(struct mapping *m, +  INT32 p) + { +  struct svalue tmp; +  tmp.type=T_INT; +  tmp.u.integer=p; +  return low_mapping_lookup(m, &tmp); + } +    void mapping_index_no_free(struct svalue *dest,    struct mapping *m,    struct svalue *key)   {    struct svalue *p;       if((p=low_mapping_lookup(m,key)))    {    if(p->type==T_INT)    p->subtype=NUMBER_NUMBER;