- Subject: [slang-users] Version compare
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Mon, 14 May 2007 10:22:26 +0000 (UTC)
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)
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]