blockFile

Save data in chunked in blocks in a file for creating databases
git clone https://noulin.net/git/blockFile.git
Log | Files | Refs | LICENSE

commit 3fe996cf5b6f64cba428dbce2292969a8b6518c4
parent 622a5af225700c73d0626cacc5af13079516630e
Author: Remy Noulin <loader2x@gmail.com>
Date:   Tue, 30 Apr 2019 19:40:16 +0200

add isCompiledWithCurrentLisheepyVersion

Diffstat:
MblockFile.c | 5+++++
MblockFile.h | 3+++
Mpackage.yml | 23+++++++----------------
3 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/blockFile.c b/blockFile.c @@ -650,3 +650,8 @@ internal bool loadBlockFile(blockFilet *self, void *closure, loadFBlockFileFt ca } /* TODO add method implementations */ + +bool checkLibsheepyVersionBlockFile(const char *currentLibsheepyVersion) { + return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION); +} + diff --git a/blockFile.h b/blockFile.h @@ -121,3 +121,6 @@ void registerMethodsBlockFile(blockFileFunctionst *f); blockFilet* allocBlockFile(char* filename); /* end class blockFile*/ + +#define isBlockFileCompiledWithCurrentLisheepyVersion checkLibsheepyVersionBlockFile(LIBSHEEPY_VERSION) +bool checkLibsheepyVersionBlockFile(const char *currentLibsheepyVersion); diff --git a/package.yml b/package.yml @@ -1,29 +1,20 @@ --- name: blockFile - version: 0.0.5 - description: "Save data in chunked in blocks in a file for creating databases" + version: 0.0.6 + description: Save data in chunked in blocks in a file for creating databases bin: ./blockFile.c - #cflags: -DA -ggdb -std=gnu11 -fPIC -pipe - #lflags: -lpcre repository: type: git - url: git+https://github.com/RemyNoulin/blockFile.git + url: "git+https://github.com/RemyNoulin/blockFile.git" keywords: - utility author: Remy license: MIT bugs: - url: https://github.com/RemyNoulin/blockFile/issues - homepage: https://github.com/RemyNoulin/blockFile + url: "https://github.com/RemyNoulin/blockFile/issues" + homepage: "https://github.com/RemyNoulin/blockFile" dependencies: - lz4: - # Test configuration: + lz4: "" testBin: ./testBlockFile.c - #testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra - #testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic - # Memcheck configuration: memcheckBin: ./testBlockFileMem.c - memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all --suppressions=valgrindSuppressions.cfg - #memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all --gen-suppressions=all - #memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe - #memcheckLflags: -rdynamic + memcheckCmd: "valgrind --leak-check=full --show-leak-kinds=all --suppressions=valgrindSuppressions.cfg"