]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Open up develop branch for non-stable commits.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 20 May 2021 18:51:51 +0000 (20:51 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 12 Jun 2021 09:41:17 +0000 (11:41 +0200)
Replace ZLIBNG_VERNUM with a larger one with space for more accurate information.
Replace ZLIBNG_VER_SUBREVISION with ZLIBNG_VER_MODIFIED and ZLIBNG_VER_STATUS.

Makefile.in
test/example.c
zlib-ng.h
zlib.h
zutil.c

index 0dd656d644e8f8f77a80352d32277608bc986747..28d637470ecce76897d3871fe57a732eac4ee55d 100644 (file)
@@ -29,7 +29,7 @@ TEST_LIBS=$(LIBNAME1).a
 LDSHARED=$(CC)
 LDSHAREDFLAGS=-shared
 
-VER=2.0.4
+VER=2.1.0.devel
 VER1=2
 
 STATICLIB=$(LIBNAME1).a
index 97ca0029b939f9b3c22dcd641f2063a42f60ce46..8a8905dd5b4b2314d497ec98eaca506ea7d513a0 100644 (file)
@@ -1016,8 +1016,8 @@ int main(int argc, char *argv[]) {
         fprintf(stderr, "warning: different zlib version\n");
     }
 
-    printf("zlib version %s = 0x%04x, compile flags = 0x%lx\n",
-            PREFIX2(VERSION), PREFIX2(VERNUM), PREFIX(zlibCompileFlags)());
+    printf("zlib-ng version %s = 0x%08lx, compile flags = 0x%lx\n",
+            ZLIBNG_VERSION, ZLIBNG_VERNUM, PREFIX(zlibCompileFlags)());
 
     compr    = (unsigned char*)calloc((unsigned int)comprLen, 1);
     uncompr  = (unsigned char*)calloc((unsigned int)uncomprLen, 1);
index 2a078385fcdd9bc1a362b3a565dc74e79499707b..36750cf1d7694743b395984be097126e75884f7c 100644 (file)
--- a/zlib-ng.h
+++ b/zlib-ng.h
 extern "C" {
 #endif
 
-#define ZLIBNG_VERSION "2.0.4"
-#define ZLIBNG_VERNUM 0x2040
+#define ZLIBNG_VERSION "2.1.0.devel"
+#define ZLIBNG_VERNUM 0x02010000L   /* MMNNRRMS: major minor revision status modified */
 #define ZLIBNG_VER_MAJOR 2
-#define ZLIBNG_VER_MINOR 0
-#define ZLIBNG_VER_REVISION 4
-#define ZLIBNG_VER_SUBREVISION 0
+#define ZLIBNG_VER_MINOR 1
+#define ZLIBNG_VER_REVISION 0
+#define ZLIBNG_VER_STATUS 0         /* 0=devel, 1-E=beta, F=Release */
+#define ZLIBNG_VER_MODIFIED 0       /* non-zero if modified externally from zlib-ng */
 
 /*
     The 'zlib' compression library provides in-memory compression and
diff --git a/zlib.h b/zlib.h
index 0b443423378a7a26f04cbdfd928e9f7e2051a45c..6852dc67bcff992daecbeebea96451836d56e1e0 100644 (file)
--- a/zlib.h
+++ b/zlib.h
 extern "C" {
 #endif
 
-#define ZLIBNG_VERSION "2.0.4"
-#define ZLIBNG_VERNUM 0x2040
+#define ZLIBNG_VERSION "2.1.0.devel"
+#define ZLIBNG_VERNUM 0x02010000L   /* MMNNRRMS: major minor revision status modified */
 #define ZLIBNG_VER_MAJOR 2
-#define ZLIBNG_VER_MINOR 0
-#define ZLIBNG_VER_REVISION 4
-#define ZLIBNG_VER_SUBREVISION 0
+#define ZLIBNG_VER_MINOR 1
+#define ZLIBNG_VER_REVISION 0
+#define ZLIBNG_VER_STATUS 0         /* 0=devel, 1-E=beta, F=Release */
+#define ZLIBNG_VER_MODIFIED 0       /* non-zero if modified externally from zlib-ng */
 
 #define ZLIB_VERSION "1.2.11.zlib-ng"
 #define ZLIB_VERNUM 0x12bf
diff --git a/zutil.c b/zutil.c
index b38dc45a91c44f53d7c8364affe7973a76503e6d..74d75243534cc37595b5249442fa8dba4fd6129f 100644 (file)
--- a/zutil.c
+++ b/zutil.c
@@ -21,7 +21,7 @@ z_const char * const PREFIX(z_errmsg)[10] = {
 };
 
 const char zlibng_string[] =
-    " zlib-ng 2.0.4 forked from zlib";
+    " zlib-ng 2.1.0.devel forked from zlib";
 
 #ifdef ZLIB_COMPAT
 const char * Z_EXPORT zlibVersion(void) {