Branch: Tag:

1998-04-24

1998-04-24 00:01:32 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

mapping_string_insert added

Rev: src/mapping.c:1.30
Rev: src/mapping.h:1.11

4:   ||| 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"
495:    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)   {