[slang-users] Version compare
Jörg Sommer
joerg at alea.gnuu.de
Mon May 14 06:22:26 EDT 2007
Hi,
I want to add a workaround for SLang version before pre2.0.7-21. But how
do I check for those version?
#if (orelse {_slang_version < 20007}
{_slang_version == 20007 and strcmp(_slang_version_string, "pre", 3) == 0)})
workaround();
#else
real_code();
#endif
The whole version checking is very ugly, because "2.0.7" < "pre2.0.7" and
"pre2.0.7-4" > "pre2.0.7-21". It would be nice to have a
_slang_pre_version that contains the prerelease version number: e.g. for
pre2.0.7-21 _slang_version is 20007 and _slang_pre_version is 21.
But how can I check with the current versioning scheme for pre2.0.7-21?
Bye, Jörg.
--
Erfahrung heißt gar nichts. Man kann seine Sache auch 35 Jahre schlecht
machen.
(Kurt Tucholsky)
More information about the slang-users-l
mailing list