diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/CheckMentioned.py | 4 | ||||
-rw-r--r-- | scripts/Face.py | 3 |
2 files changed, 7 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 diff --git a/scripts/Face.py b/scripts/Face.py index e4001e47d..22c2943e6 100644 --- a/scripts/Face.py +++ b/scripts/Face.py @@ -37,6 +37,9 @@ def decodeParam(p): name = nv return type, name, value +def IsEnumeration(t): + return t[:1].isupper() + class Face: def __init__(self): |