linkedList

type-safe double linked lists
git clone https://noulin.net/git/linkedList.git
Log | Files | Refs | README | LICENSE

commit 4aec3dbdfc44f2feb4fc1eb639b49ef04d835434
parent 408cbcc6699a9f95ae3454a9851f69866a72cd3d
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sat,  4 May 2019 12:20:07 +0200

check only head in isEmpty macro

if there is no head then the list is empty

linkedList.h  | 2 +-
linkedListe.h | 2 +-
package.yml   | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

Diffstat:
MlinkedList.h | 2+-
MlinkedListe.h | 2+-
Mpackage.yml | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/linkedList.h b/linkedList.h @@ -90,7 +90,7 @@ /** * is list empty */ -#define llistIsEmpty(name) ((name)->head == NULL and (name)->last == NULL) +#define llistIsEmpty(name) ((name)->head == NULL) /** * push element to list (only allocates node) diff --git a/linkedListe.h b/linkedListe.h @@ -166,7 +166,7 @@ /** * is list empty */ -#define llisteIsEmpty(name) ((name)->head == NULL and (name)->last == NULL) +#define llisteIsEmpty(name) ((name)->head == NULL) /** * push element to list (only allocates node) diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: linkedList - version: 0.0.3 + version: 0.0.4 description: "double linked lists" bin: ./linkedList.h #cflags: -DA -ggdb -std=gnu11 -fPIC -pipe