X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=map%2Fmlocal.h;fp=map%2Fmlocal.h;h=0000000000000000000000000000000000000000;hp=c422ec1c130e964b34900d08281b8e54d3d7be29;hb=9d72edf41ce3a2ddbbe2d44afc23ef5ec53339c3;hpb=d26bac75802a324ed98c8d3d88cfb9eb87b3b35a diff --git a/map/mlocal.h b/map/mlocal.h deleted file mode 100644 index c422ec1..0000000 --- a/map/mlocal.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef MLOCAL_H -#define MLOCAL_H - -#include "datatype.h" - -#define CAS_EXPECT_DOES_NOT_EXIST ( 0) -#define CAS_EXPECT_EXISTS (-1) -#define CAS_EXPECT_WHATEVER (-2) - -typedef void * (*map_alloc_t) (const datatype_t *); -typedef uint64_t (*map_cas_t) (void *, void *, uint64_t, uint64_t); -typedef uint64_t (*map_get_t) (void *, void *); -typedef uint64_t (*map_remove_t) (void *, void *); -typedef uint64_t (*map_count_t) (void *); -typedef void (*map_print_t) (void *); -typedef void (*map_free_t) (void *); - -typedef struct map_impl { - map_alloc_t alloc; - map_cas_t cas; - map_get_t get; - map_remove_t remove; - map_count_t count; - map_print_t print; - map_free_t free_; -} map_impl_t; - -#endif//MLOCAL_H