Neil Hodgson wrote:
Kein-Hong Man:
[snip]
If we put the versions in SciTE.h, the Lua extension can get the
version number from there and create a string constant in "scite".
Now look at the different formats of that version number in the two
files:
PRODUCTVERSION 1, 7, 2, 0
VALUE "FileVersion", "1.72\0"
AddStyledText(wsci, " 1.72\n", 1);
I don't know if the version of the preprocessor available with
resource compilers is capable of stringizing or arithmetic but if
someone else wants to try it...
Yes, I'm aware of the preprocessor requirements, pasting tokens
and stringizing. No problem with gcc, but some of the other older
compilers worries me. I'll try it out first before sending
anything in. Guess I might have to find Borland C++...
If turning tokens into strings isn't portable enough, at least we
can put version numbers into one single file, so the Lua extension
only need to include "scite.h"
Can't help with the docs, though, that will need a Python or Perl
script...
When I last investigated this it looked like it needed scripting to
handle the variety of cases. The version.txt file in the scintilla root
directory is a remnant of that investigation.
Can't help there, because I haven't gotten around coding Python
seriously, no problem with Perl, though...
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest