[Zlib-devel] [PATCH] One last proposal to eliminate .rc mismatches

Andrei Polushin a-polushin at mail.ru
Wed May 3 23:44:09 EDT 2006


William A. Rowe, Jr. wrote:
> -#define ZLIB_VERSION "1.2.3"
> -#define ZLIB_VERNUM 0x1230
> +#define ZLIB_VERNUM_MAJOR  1
> +#define ZLIB_VERNUM_MINOR  2
> +#define ZLIB_VERNUM_MAINT  3
> +

By the way, comparing patches, the version is composed of four parts,
not three.

For example, the next version might be 1.2.3.1, thus the fourth number
is significant.


Also here

> +#define ZLIB_VERSION ZLIB_STRINGIZE_TOK( ZLIB_VERNUM_MAJOR ) \
> +                 "." ZLIB_STRINGIZE_TOK( ZLIB_VERNUM_MINOR ) \
> +                 "." ZLIB_STRINGIZE_TOK( ZLIB_VERNUM_MAINT )
> +
> +#define ZLIB_VERNUM ( ZLIB_VERNUM_MAJOR << 12 \
> +                    | ZLIB_VERNUM_MINOR <<  8 \
> +                    | ZLIB_VERNUM_MAINT <<  4 )


and here

> FILEVERSION ZLIB_VERNUM_MAJOR,ZLIB_VERNUM_MINOR,ZLIB_VERNUM_MAINT,0
> PRODUCTVERSION ZLIB_VERNUM_MAJOR,ZLIB_VERNUM_MINOR,ZLIB_VERNUM_MAINT,0

--
Andrei Polushin





More information about the Zlib-devel mailing list