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 | ab38beeb9a31a5df65b6e2a41251ca36574065f3 (patch) | |
tree | 12f052b289b42751c2f4aa93e52e85fd35ad9569 /scripts/CheckMentioned.py | |
parent | ef5c1c95756e22cd8244c04f90d388fd122e76d6 (diff) | |
download | scintilla-mirror-ab38beeb9a31a5df65b6e2a41251ca36574065f3.tar.gz |
Feature [feature-requests:#1297] 6: Support enumerated types in APIs.
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 |