diff options
author | Unknown <nyamatongwe@gmail.com> | 2013-08-07 19:19:03 +1000 |
---|---|---|
committer | Unknown <nyamatongwe@gmail.com> | 2013-08-07 19:19:03 +1000 |
commit | 156e9310843d056f654840c3c5e60be10eb6f7af (patch) | |
tree | b5276f41fb60227aaa1f9dc96dc009cb7e505bec /qt/ScintillaEdit/WidgetGen.py | |
parent | 70266f078a31ef29fa520ac5b3f530dc991cd5be (diff) | |
download | scintilla-mirror-156e9310843d056f654840c3c5e60be10eb6f7af.tar.gz |
Bindings in ScintillaEdit made to work on 64-bit Unix systems.
Diffstat (limited to 'qt/ScintillaEdit/WidgetGen.py')
-rw-r--r-- | qt/ScintillaEdit/WidgetGen.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qt/ScintillaEdit/WidgetGen.py b/qt/ScintillaEdit/WidgetGen.py index b53fe988c..dc39dacab 100644 --- a/qt/ScintillaEdit/WidgetGen.py +++ b/qt/ScintillaEdit/WidgetGen.py @@ -71,9 +71,13 @@ def checkTypes(name, v): def arguments(v, stringResult, options): ret = "" p1Type = cppAlias(v["Param1Type"]) + if p1Type == "int": + p1Type = "uptr_t" if p1Type: ret = ret + p1Type + " " + normalisedName(v["Param1Name"], options) p2Type = cppAlias(v["Param2Type"]) + if p2Type == "int": + p2Type = "sptr_t" if p2Type and not stringResult: if p1Type: ret = ret + ", " @@ -101,7 +105,9 @@ def printHFile(f, options): if feat in ["fun", "get", "set"]: if checkTypes(name, v): constDeclarator = " const" if feat == "get" else "" - returnType = cppAlias(v["ReturnType"]) + returnType = cppAlias(v["ReturnType"]) + if returnType == "int": + returnType = "sptr_t" stringResult = v["Param2Type"] == "stringresult" if stringResult: returnType = "QByteArray" @@ -130,6 +136,8 @@ def printCPPFile(f, options): constDeclarator = " const" if feat == "get" else "" featureDefineName = "SCI_" + name.upper() returnType = cppAlias(v["ReturnType"]) + if returnType == "int": + returnType = "sptr_t" stringResult = v["Param2Type"] == "stringresult" if stringResult: returnType = "QByteArray" |