Concord - C Discord API library
A Discord API wrapper library written in C
|
Go to the source code of this file.
Macros | |
#define | CWARE_LIBCHASH_VERSION "x.0.0" |
#define | CHASH_INITIAL_SIZE 10 |
#define | CHASH_RESIZE(size) ((size) * 1.3) |
#define | CHASH_LOAD_THRESHOLD 0.8 |
#define | CHASH_COUNTER_TYPE int |
#define | CHASH_KEY_FIELD key |
#define | CHASH_VALUE_FIELD value |
#define | CHASH_STATE_FIELD state |
#define | CHASH_BUCKETS_FIELD buckets |
#define | CHASH_LENGTH_FIELD length |
#define | CHASH_CAPACITY_FIELD capacity |
#define | CHASH_UNFILLED 0 |
#define | CHASH_FILLED 1 |
#define | CHASH_TOMBSTONE 2 |
#define | chash_string_hash(key, hash) |
#define | chash_string_compare(cmp_a, cmp_b) (strcmp((cmp_a), (cmp_b)) == 0) |
#define | chash_default_init(bucket, _key, _value) |
#define | __chash_abs(x) ((x) < 0 ? (x) * - 1 : (x)) |
#define | __chash_hash(mod, _key, namespace) |
#define | __chash_probe(hashtable, _key, namespace) |
#define | __chash_probe_to_unfilled(mod, _key, buffer, namespace) |
#define | __chash_resize(hashtable, namespace) |
#define | __chash_assert_nonnull(func, ptr) |
#define | __chash_init(hashtable, namespace) |
#define | chash_init(hashtable, namespace) |
#define | chash_init_stack(hashtable, buffer, _length, namespace) |
#define | chash_assign(hashtable, _key, _value, namespace) |
#define | chash_lookup(hashtable, _key, storage, namespace) |
#define | chash_delete(hashtable, _key, namespace) |
#define | chash_contains(hashtable, _key, storage, namespace) |
#define | chash_lookup_bucket(hashtable, _key, storage, namespace) |
#define | __chash_free(hashtable, namespace) |
#define | chash_free(hashtable, namespace) |
#define | chash_is_full(hashtable, namespace) (((hashtable)->CHASH_LENGTH_FIELD) == ((hashtable)->CHASH_CAPACITY_FIELD)) |
#define | chash_iter(hashtable, index, _key, _value) |
#define | chash_skip(hashtable, index) |
#define CWARE_LIBCHASH_VERSION "x.0.0" |
#define CHASH_INITIAL_SIZE 10 |
#define CHASH_RESIZE | ( | size | ) | ((size) * 1.3) |
#define CHASH_LOAD_THRESHOLD 0.8 |
#define CHASH_COUNTER_TYPE int |
#define CHASH_KEY_FIELD key |
#define CHASH_VALUE_FIELD value |
#define CHASH_STATE_FIELD state |
#define CHASH_BUCKETS_FIELD buckets |
#define CHASH_LENGTH_FIELD length |
#define CHASH_CAPACITY_FIELD capacity |
#define CHASH_UNFILLED 0 |
#define CHASH_FILLED 1 |
#define CHASH_TOMBSTONE 2 |
#define chash_string_hash | ( | key, | |
hash | |||
) |
#define chash_string_compare | ( | cmp_a, | |
cmp_b | |||
) | (strcmp((cmp_a), (cmp_b)) == 0) |
#define chash_default_init | ( | bucket, | |
_key, | |||
_value | |||
) |
#define __chash_abs | ( | x | ) | ((x) < 0 ? (x) * - 1 : (x)) |
#define __chash_hash | ( | mod, | |
_key, | |||
namespace | |||
) |
#define __chash_probe | ( | hashtable, | |
_key, | |||
namespace | |||
) |
#define __chash_probe_to_unfilled | ( | mod, | |
_key, | |||
buffer, | |||
namespace | |||
) |
#define __chash_resize | ( | hashtable, | |
namespace | |||
) |
#define __chash_assert_nonnull | ( | func, | |
ptr | |||
) |
#define __chash_init | ( | hashtable, | |
namespace | |||
) |
#define chash_init | ( | hashtable, | |
namespace | |||
) |
#define chash_init_stack | ( | hashtable, | |
buffer, | |||
_length, | |||
namespace | |||
) |
#define chash_assign | ( | hashtable, | |
_key, | |||
_value, | |||
namespace | |||
) |
#define chash_lookup | ( | hashtable, | |
_key, | |||
storage, | |||
namespace | |||
) |
#define chash_delete | ( | hashtable, | |
_key, | |||
namespace | |||
) |
#define chash_contains | ( | hashtable, | |
_key, | |||
storage, | |||
namespace | |||
) |
#define chash_lookup_bucket | ( | hashtable, | |
_key, | |||
storage, | |||
namespace | |||
) |
#define __chash_free | ( | hashtable, | |
namespace | |||
) |
#define chash_free | ( | hashtable, | |
namespace | |||
) |
#define chash_is_full | ( | hashtable, | |
namespace | |||
) | (((hashtable)->CHASH_LENGTH_FIELD) == ((hashtable)->CHASH_CAPACITY_FIELD)) |
#define chash_iter | ( | hashtable, | |
index, | |||
_key, | |||
_value | |||
) |
#define chash_skip | ( | hashtable, | |
index | |||
) |