Fix modperl and modpython compilation.

Also fix few string-related inconsistences.
This commit is contained in:
Alexey Sokolov
2012-08-15 00:38:23 +07:00
parent e06c3f5e88
commit 9fd4149d73
6 changed files with 25 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ using std::allocator;
%include <stl.i>
%include <std_list.i>
%include <std_set.i>
%include <std_deque.i>
%include "modpython/cstring.i"
%template(_stringlist) std::list<CString>;
@@ -67,11 +68,15 @@ using std::allocator;
%template(SModInfo) std::set<CModInfo>;
%template(SCString) std::set<CString>;
typedef std::set<CString> SCString;
%template(VCString) std::vector<CString>;
typedef std::vector<CString> VCString;
%template(PyMCString) std::map<CString, CString>;
%template(PyMStringVString) std::map<CString, VCString>;
class MCString : public std::map<CString, CString> {};
%template(PyModulesVector) std::vector<CModule*>;
%template(VListeners) std::vector<CListener*>;
%template(BufLines) std::deque<CBufLine>;
%template(VVString) std::vector<VCString>;
%typemap(in) CString& {
String* p;