From a28dd233181a4479bdd2d2fbdc37e3f3d2e3c4b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Thu, 23 Apr 1998 17:01:32 -0700
Subject: [PATCH] mapping_string_insert added

Rev: src/mapping.c:1.30
Rev: src/mapping.h:1.11
---
 src/mapping.c | 12 +++++++++++-
 src/mapping.h |  5 ++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/mapping.c b/src/mapping.c
index 9116bc609e..5354320a64 100644
--- a/src/mapping.c
+++ b/src/mapping.c
@@ -4,7 +4,7 @@
 ||| 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,6 +495,16 @@ struct svalue *low_mapping_string_lookup(struct mapping *m,
   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)
 {
diff --git a/src/mapping.h b/src/mapping.h
index 13c0c0a515..cd6b222fc6 100644
--- a/src/mapping.h
+++ b/src/mapping.h
@@ -5,7 +5,7 @@
 \*/
 
 /*
- * $Id: mapping.h,v 1.10 1998/03/28 15:12:50 grubba Exp $
+ * $Id: mapping.h,v 1.11 1998/04/24 00:01:32 hubbe Exp $
  */
 #ifndef MAPPING_H
 #define MAPPING_H
@@ -47,6 +47,9 @@ struct svalue *low_mapping_lookup(struct mapping *m,
 				  struct svalue *key);
 struct svalue *low_mapping_string_lookup(struct mapping *m,
 					 struct pike_string *p);
+void mapping_string_insert(struct mapping *m,
+			   struct pike_string *p,
+			   struct svalue *val);
 struct svalue *simple_mapping_string_lookup(struct mapping *m,
 					    char *p);
 void mapping_index_no_free(struct svalue *dest,
-- 
GitLab