netSerial

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

commit 6298d5b593aaa96ef6deba1817a58ceea5328f26
parent 705937a99c75a4aa831366bb0fc58b6a70885b02
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun, 11 Aug 2019 08:15:13 +0200

call initiateAllocateSmallJson to initialize the container recycling system

netSerial.c | 8 ++++----
package.yml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)

Diffstat:
MnetSerial.c | 8++++----
Mpackage.yml | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/netSerial.c b/netSerial.c @@ -164,7 +164,7 @@ void registerMethodsNetSerial(smallJsonFunctionst *f) { void initiateAllocateNetSerialLevel0(smallJsont **self) { if (self) { - (*self) = malloc(sizeof(smallJsont)); + initiateG(self); // call initiateAllocateSmallJson to initialize the container recycling system if (*self) { initiateNetSerialLevel0(*self); } @@ -174,7 +174,7 @@ void initiateAllocateNetSerialLevel0(smallJsont **self) { void initiateAllocateNetSerialLevel1(smallJsont **self) { if (self) { - (*self) = malloc(sizeof(smallJsont)); + initiateG(self); // call initiateAllocateSmallJson to initialize the container recycling system if (*self) { initiateNetSerialLevel1(*self); } @@ -184,7 +184,7 @@ void initiateAllocateNetSerialLevel1(smallJsont **self) { void initiateAllocateNetSerialLevel2(smallJsont **self) { if (self) { - (*self) = malloc(sizeof(smallJsont)); + initiateG(self); // call initiateAllocateSmallJson to initialize the container recycling system if (*self) { initiateNetSerialLevel2(*self); } @@ -194,7 +194,7 @@ void initiateAllocateNetSerialLevel2(smallJsont **self) { void initiateAllocateNetSerial(smallJsont **self) { if (self) { - (*self) = malloc(sizeof(smallJsont)); + initiateG(self); // call initiateAllocateSmallJson to initialize the container recycling system if (*self) { initiateNetSerial(*self); } diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: netSerial - version: 0.0.10 + version: 0.0.11 description: network serializer with binary format more compact than the default serializer in smallJson bin: ./netSerial.c repository: