pike.git/
src/
mapping.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-04-24
1998-04-24 00:01:32 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
a28dd233181a4479bdd2d2fbdc37e3f3d2e3c4b9 (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
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) {