commit 5722eed14c4e9b62b052c20835206bf843954afd
parent 3cf1b4df68d92b6d8a7fe38dee882721530ab968
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 30 Apr 2019 19:42:10 +0200
add isCompiledWithCurrentLisheepyVersion
Diffstat:
3 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/package.yml b/package.yml
@@ -1,17 +1,16 @@
---
name: zrle
- version: 0.0.4
- description: "Compress zeros using Run Length Encoding"
+ version: 0.0.5
+ description: Compress zeros using Run Length Encoding
bin: ./zrle.c
- cflags: -O3 -std=gnu11 -fPIC -pipe
- #lflags: -lpcre
+ cflags: "-O3 -std=gnu11 -fPIC -pipe"
repository:
type: git
- url: git+https://github.com/RemyNoulin/zrle.git
+ url: "git+https://github.com/RemyNoulin/zrle.git"
keywords:
- utility
author: Remy Noulin
license: MIT
bugs:
- url: https://github.com/RemyNoulin/zrle/issues
- homepage: https://github.com/RemyNoulin/zrle#readme
+ url: "https://github.com/RemyNoulin/zrle/issues"
+ homepage: "https://github.com/RemyNoulin/zrle#readme"
diff --git a/zrle.c b/zrle.c
@@ -219,3 +219,8 @@ zrlebuft dezrle(void *buf, size_t len) {
return r;
}
+
+bool checkLibsheepyVersionZrle(const char *currentLibsheepyVersion) {
+ return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION);
+}
+
diff --git a/zrle.h b/zrle.h
@@ -12,3 +12,6 @@ typedef struct {
zrlebuft zrle(void *buf, size_t len);
zrlebuft dezrle(void *buf, size_t len);
+
+#define isZrleCompiledWithCurrentLisheepyVersion checkLibsheepyVersionZrle(LIBSHEEPY_VERSION)
+bool checkLibsheepyVersionZrle(const char *currentLibsheepyVersion);