libsheepy

C lib for handling text files, strings and json like data structure with an object oriented system
git clone https://spartatek.se/git/libsheepy.git
Log | Files | Refs | README | LICENSE

commit e7009dcd065b94bf5da7f1f7c612654cd331619e
parent 503dde2eeff3d1d7bbe082c862fcb8805edd9f57
Author: Remy Noulin <loader2x@gmail.com>
Date:   Thu,  4 Jun 2020 12:29:22 +0200

fix bug in delElemG for smallJson

release/libsheepy.h            | 2 +-
src/json/libsheepyCSmallJson.c | 6 ++++++
src/libsheepy.h                | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)

Diffstat:
Mrelease/libsheepy.h | 2+-
Msrc/json/libsheepyCSmallJson.c | 6++++++
Msrc/libsheepy.h | 2+-
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/release/libsheepy.h b/release/libsheepy.h @@ -96,7 +96,7 @@ // version accoring to the version package: Release.Major.minor.patch // https://noulin.net/version/file/README.md.html -#define LIBSHEEPY_VERSION "1.1.2" +#define LIBSHEEPY_VERSION "1.1.2.1" #ifndef SH_PREFIX #define SH_PREFIX(NAME) NAME diff --git a/src/json/libsheepyCSmallJson.c b/src/json/libsheepyCSmallJson.c @@ -1192,6 +1192,7 @@ double getNumSmallJsonG(smallJsont *self, const char *key); double getNumAtSmallJsonG(smallJsont *self, intmax_t index); smallJsont* delKeySmallJsonG(smallJsont *self, const char *key, int unused UNUSED); smallJsont* delSmallJsonG(smallJsont *self, intmax_t start, intmax_t end); +smallJsont* delElemSmallJsonG(smallJsont *self, const char *key); smallJsont* delElemIndexSmallJsonG(smallJsont *self, intmax_t index); smallJsont* prependSmallJsonG (smallJsont *self, baset *value); smallJsont* prependUndefinedSmallJsonG(smallJsont *self, void *value UNUSED); @@ -23808,6 +23809,11 @@ smallJsont* delSmallJsonG(smallJsont *self, intmax_t start, intmax_t end) { return(self->f->del(self, start, end)); } +smallJsont* delElemSmallJsonG(smallJsont *self, const char *key) { + + return(self->f->delElem(self,key)); +} + smallJsont* delElemIndexSmallJsonG(smallJsont *self, intmax_t index) { return(self->f->delElemIndex(self,index)); diff --git a/src/libsheepy.h b/src/libsheepy.h @@ -96,7 +96,7 @@ // version accoring to the version package: Release.Major.minor.patch // https://noulin.net/version/file/README.md.html -#define LIBSHEEPY_VERSION "1.1.2" +#define LIBSHEEPY_VERSION "1.1.2.1" #ifndef SH_PREFIX #define SH_PREFIX(NAME) NAME