pike.git/
src/
mapping.c
Branch:
Tag:
Non-build tags
All tags
No tags
1997-01-27
1997-01-27 01:21:35 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
14dae9eabafb8c1725b9ab8ee6a8d4b7f0e0c902 (
14
lines) (+
12
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
low_mapping_string_lookup added
Rev: src/mapping.c:1.10
Rev: src/mapping.h:1.3
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: mapping.c,v 1.
9
1996
/
12
/
05
01:
51
:
22
hubbe Exp $");
+
RCSID("$Id: mapping.c,v 1.
10
1997
/
01
/
27
01:
21
:
34
hubbe Exp $");
#include "main.h" #include "types.h" #include "object.h"
103:
/* This function allocates an empty mapping with room for 'size' values */
-
static
struct mapping *allocate_mapping(int size)
+
struct mapping *allocate_mapping(int size)
{ struct mapping *m;
465:
return 0; }
+
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_index_no_free(struct svalue *dest, struct mapping *m, struct svalue *key)