netSerial

serializer producing compact bitstreams
git clone https://noulin.net/git/netSerial.git
Log | Files | Refs | README | LICENSE

commit 61110c74afd3167eecb5384613047f90ec59654d
parent a3829964691443e3b355e50ea3d5d94aa70bb2d8
Author: Remy Noulin <loader2x@gmail.com>
Date:   Tue, 30 Apr 2019 19:41:17 +0200

add isCompiledWithCurrentLisheepyVersion

Diffstat:
MnetSerial.c | 5+++++
MnetSerial.h | 3+++
Mpackage.yml | 27+++++++++++----------------
3 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/netSerial.c b/netSerial.c @@ -5260,3 +5260,8 @@ internal smallJsont* deserialNetSerial(smallJsont *self, smallBytest *data) { } // vim: set expandtab ts=2 sw=2: + +bool checkLibsheepyVersionNetSerial(const char *currentLibsheepyVersion) { + return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION); +} + diff --git a/netSerial.h b/netSerial.h @@ -104,3 +104,6 @@ smallJsont* allocNetSerial(void); /* end class netSerial*/ // vim: set expandtab ts=2 sw=2: + +#define isNetSerialCompiledWithCurrentLisheepyVersion checkLibsheepyVersionNetSerial(LIBSHEEPY_VERSION) +bool checkLibsheepyVersionNetSerial(const char *currentLibsheepyVersion); diff --git a/package.yml b/package.yml @@ -1,28 +1,23 @@ --- name: netSerial - version: 0.0.6 - description: "network serializer with binary format more compact than the default serializer in smallJson" + version: 0.0.7 + description: network serializer with binary format more compact than the default serializer in smallJson bin: ./netSerial.c - #cflags: -DA -ggdb -std=gnu11 -fPIC -pipe - #lflags: -lpcre repository: type: git - url: git+https://github.com/RemyNoulin/netSerial.git + url: "git+https://github.com/RemyNoulin/netSerial.git" keywords: - serialization author: Remy license: MIT bugs: - url: https://github.com/RemyNoulin/netSerial/issues - homepage: https://github.com/RemyNoulin/netSerial#readme - # Test configuration: + url: "https://github.com/RemyNoulin/netSerial/issues" + homepage: "https://github.com/RemyNoulin/netSerial#readme" testBin: ./testNetSerial.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: + testCflags: "-ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra" + testLflags: "-lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic" memcheckBin: ./memcheckNetSerial.c - memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all - memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe - memcheckLflags: -rdynamic - #documentationCmd: # command for generating the documentation with spm doc - private: false # true for private package + memcheckCmd: "valgrind --leak-check=full --show-leak-kinds=all" + memcheckCflags: "-ggdb -std=gnu11 -fPIC -pipe" + memcheckLflags: "-rdynamic" + private: false