Skip to content

Commit

Permalink
Fix compilation of modpython.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sokolov committed Aug 21, 2011
1 parent b62c47c commit c2cc57c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/modpython/codegen.pl
Expand Up @@ -279,7 +279,7 @@
when ('bool') {
say $out "Py_BuildValue(\"l\", (long int)$a->{var});";
}
when (/^E/) {
when (/(?:^|::)E/) {
say $out "Py_BuildValue(\"i\", (int)$a->{var});";
}
default {
Expand Down
2 changes: 1 addition & 1 deletion modules/modpython/functions.in
Expand Up @@ -61,4 +61,4 @@ void OnServerCapResult(const CString& sCap, bool bSuccess)
EModRet OnTimerAutoJoin(CChan& Channel)
bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false

EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, EModuleType eType, bool& bSuccess, CString& sRetMsg)
EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg)

0 comments on commit c2cc57c

Please sign in to comment.