diff options
author | Neil <nyamatongwe@gmail.com> | 2019-06-18 13:21:05 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-06-18 13:21:05 +1000 |
commit | 838b815992bc784e85120b9254c1c6299d4e0f1d (patch) | |
tree | d1b3e8be1f46c9e2024dd418001d8a5c18e3c9d0 /scripts/CheckMentioned.py | |
parent | f535791769ca4e89dc3deade86e1d893f5f31103 (diff) | |
download | scintilla-mirror-838b815992bc784e85120b9254c1c6299d4e0f1d.tar.gz |
Backport: Feature [feature-requests:#1297] 6: Support enumerated types in APIs.
Backport of changeset 7589:156d66aebfa1.
Diffstat (limited to 'scripts/CheckMentioned.py')
-rw-r--r-- | scripts/CheckMentioned.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/CheckMentioned.py b/scripts/CheckMentioned.py index 2694b7a49..379225fe1 100644 --- a/scripts/CheckMentioned.py +++ b/scripts/CheckMentioned.py @@ -65,6 +65,8 @@ def convertIFaceTypeToC(t): return "Sci_TextToFind *" elif t == "formatrange": return "Sci_RangeToFormat *" + elif Face.IsEnumeration(t): + return "int " return t + " " def makeParm(t, n, v): @@ -86,6 +88,8 @@ def makeSig(params): retType = params["ReturnType"] if retType in ["void", "string", "stringresult"]: retType = "" + elif Face.IsEnumeration(retType): + retType = "int" if retType: retType = " → " + retType |