The current source release of Scintilla (2.1.1) does not compile with Visual C++ 9.0 with /W4 specified, primarily due to mismatches with size_t vs int.
There is also a problem in the DllMain() function which does not initialise the C++ runtime properly, resulting in none of the language lexers being available at runtime.
Attached is a list of diffs we have applied to get the DLL build in both 32- and 64-bit modes. No rights reserved. 100% Public Domain.
We have taken the tack that explicitly downcasting size_t to int will be acceptable in the short term since most of Scintilla would not cope with text blocks that are 'size_t' long - ie, there are too many 'int' assumptions. However, where the size_t was only being used in a local scope, we've updated variables from int to size_t as appropriate, to try to minimise diffs.
Log in to post a comment.