Fix global python modules.

This commit is contained in:
Alexey Sokolov
2011-08-10 01:04:58 +07:00
committed by Kyle Fuller
parent 76aaafd4d0
commit 0c9eae226e
4 changed files with 32 additions and 3 deletions

View File

@@ -73,6 +73,15 @@ namespace std {
}
}
%typemap(out) CString&, CString* {
if ($1) {
$result = CPyRetString::wrap(*$1);
} else {
$result = Py_None;
Py_INCREF(Py_None);
}
}
#define u_short unsigned short
#define u_int unsigned int
#include "../ZNCString.h"