summaryrefslogtreecommitdiff
path: root/perl_dmod
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-25 16:41:44 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-25 16:41:44 -0700
commit28b30ff302ed535b1e81902f06d24c9e9fe61c19 (patch)
tree80887a7f8fa0c602ccb6c88257dc6b41bf51e2b1 /perl_dmod
parent17e3a880453dc220e5a235df1e21dabfa89f1e8e (diff)
downloadvyatta-cfg-28b30ff302ed535b1e81902f06d24c9e9fe61c19.tar.gz
vyatta-cfg-28b30ff302ed535b1e81902f06d24c9e9fe61c19.zip
switch to unordered_map
Diffstat (limited to 'perl_dmod')
-rw-r--r--perl_dmod/Cstore/Cstore.xs7
-rw-r--r--perl_dmod/Cstore/typemap2
2 files changed, 4 insertions, 5 deletions
diff --git a/perl_dmod/Cstore/Cstore.xs b/perl_dmod/Cstore/Cstore.xs
index 4a726e7..ebef08f 100644
--- a/perl_dmod/Cstore/Cstore.xs
+++ b/perl_dmod/Cstore/Cstore.xs
@@ -25,7 +25,6 @@
#include <cstring>
#include <vector>
#include <string>
-#include <map>
/* currently use the UnionfsCstore implementation */
#include <cstore/unionfs/cstore-unionfs.hpp>
@@ -205,7 +204,7 @@ Cstore::cfgPathGetChildNodesStatus(STRVEC *vref)
PREINIT:
vector<string> arg_strvec;
CODE:
- map<string, string> ret_strstrmap;
+ Cstore::MapT<string, string> ret_strstrmap;
THIS->cfgPathGetChildNodesStatus(arg_strvec, ret_strstrmap);
OUTPUT:
RETVAL
@@ -263,7 +262,7 @@ Cstore::cfgPathGetChildNodesStatusDA(STRVEC *vref)
PREINIT:
vector<string> arg_strvec;
CODE:
- map<string, string> ret_strstrmap;
+ Cstore::MapT<string, string> ret_strstrmap;
THIS->cfgPathGetChildNodesStatusDA(arg_strvec, ret_strstrmap);
OUTPUT:
RETVAL
@@ -295,7 +294,7 @@ Cstore::getParsedTmpl(STRVEC *vref, bool allow_val)
PREINIT:
vector<string> arg_strvec;
CODE:
- map<string, string> ret_strstrmap;
+ Cstore::MapT<string, string> ret_strstrmap;
if (!THIS->getParsedTmpl(arg_strvec, ret_strstrmap, allow_val)) {
XSRETURN_UNDEF;
}
diff --git a/perl_dmod/Cstore/typemap b/perl_dmod/Cstore/typemap
index f1f6a82..6df545b 100644
--- a/perl_dmod/Cstore/typemap
+++ b/perl_dmod/Cstore/typemap
@@ -32,7 +32,7 @@ T_STRVEC_REF
T_STRSTRMAP_REF
HV *href = (HV *) sv_2mortal((SV *) newHV());
- map<string, string>::iterator it = ret_strstrmap.begin();
+ Cstore::MapT<string, string>::iterator it = ret_strstrmap.begin();
for (; it != ret_strstrmap.end(); ++it) {
const char *key = (*it).first.c_str();
const char *val = (*it).second.c_str();