[Zlib-devel] [PATCH] One last proposal to eliminate .rc mismatches
William A. Rowe, Jr.
wrowe at rowe-clan.net
Wed May 3 15:38:08 EDT 2006
Rather than count on remembering to bump the .rc file, and other places
that need discrete numeric elements for the version number, I'd propose
the attached patch to define the zlib version elements -exactly once-,
and derive all other flavors of the version from that tag.
Note the rather messy nested stringization is required, or the result
is stringizing the names of the tokens rather than their value.
Because it's totally macro based, it works anywhere in C and for the
Microsoft resource compiler.
Please consider the advantage, the patch doesn't change the resulting
ZLIB_VERSION or ZLIB_VERNUM results. The patch even makes it impossible
to mismatch these two values.
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zlib-1.2.3-vc32-2005-rcver-floating.patch
Type: text/x-patch
Size: 2295 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20060503/d6d7f046/attachment.bin>
More information about the Zlib-devel
mailing list