Neil Hodgson
unread,Sep 19, 2016, 6:17:50 AM9/19/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Scintilla mailing list
There are many minor differences between the interface file in Scintilla.iface and the documentation in ScintillaDoc.html. I’d like to harmonise these two files which will make reading more consistent and also allows for some automated checking and other tools such as extracting united information into other forms.
One difference is parameter names: one has “mask” and the other “eventMask” or “milliseconds” versus “periodMilliseconds”. I’d like to choose either one or the other or something better in each case. This may cause problems in downstream projects if the parameter names are being used, for example in a call like scintilla.SetModEventMask(mask=INSERTCHECK). Most languages have only positional parameters but others allow or prefer named parameters.
So, object if this type of change will be difficult for you.
*************************************************************
The set of types used in the documentation may be expanded to include some of those used in Scintilla.iface like “colour” or “position" instead of “int”.
Adding return types to the documentation may be worthwhile, possibly looking like “SCI_GETLEXER → int”.
A bug found while examining this is that Scintilla.iface has
get int GetPropertyInt=4010(string key,)
but the documentation shows an additional parameter
SCI_GETPROPERTYINT(const char *key, int default)
Neil