hashlist

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

commit a483a5f7af7bf684994b3a132ed510fbefc0cd5d
parent 6d17a10b62bfafca0454b13f03e91f9516b2c73f
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun, 23 Dec 2018 15:25:40 +0100

add missing suffix

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

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

diff --git a/hashlist.h b/hashlist.h @@ -164,7 +164,7 @@ scope valueTypeName##t* hashlistAddAfter##hashlistFuncSuffix(hashlistTypeName##t *hashlist, valueTypeName##t *node, valueTypeName##t value);\ scope valueTypeName##t* hashlistAddAfterKey##hashlistFuncSuffix(hashlistTypeName##t *hashlist, keyType key, valueTypeName##t value);\ scope valueTypeName##t* hashlistAddBefore##hashlistFuncSuffix(hashlistTypeName##t *hashlist, valueTypeName##t *node, valueTypeName##t value);\ - scope valueTypeName##t* hashlistAddBeforeKey(hashlistTypeName##t *hashlist, keyType key, valueTypeName##t value); + scope valueTypeName##t* hashlistAddBeforeKey##hashlistFuncSuffix(hashlistTypeName##t *hashlist, keyType key, valueTypeName##t value); #define hashlistFunctions(scope, hashlistTypeName, hashlistFuncSuffix, keyType, valueTypeName, hashType, valueMembers, functions /* declare the functions here */)\ functions;\ @@ -391,7 +391,7 @@ ret val;\ }\ /* Add new node before node for given key */\ - scope valueTypeName##t* hashlistAddBeforeKey(hashlistTypeName##t *hashlist, keyType key, valueTypeName##t value) {\ + scope valueTypeName##t* hashlistAddBeforeKey##hashlistFuncSuffix(hashlistTypeName##t *hashlist, keyType key, valueTypeName##t value) {\ valueTypeName##t *node = find##hashlistFuncSuffix(hashlist, key);\ ret hashlistAddBefore##hashlistFuncSuffix(hashlist, node, value);\ }\ diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: hashlist - version: 0.0.1 + version: 0.0.2 description: "random access double linked lists" bin: ./hashlist.h #cflags: -DA -ggdb -std=gnu11 -fPIC -pipe