diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-09 22:49:24 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-09 22:49:24 +0300 |
| commit | b7642dc9269b3b3525c08b170e01e0711577accf (patch) | |
| tree | d8b32a0749e79ddc79ce998a382ee7dc06f0a175 /util | |
| parent | 2955d9bcb8ae535e7f44a54363a6f30a6d16e271 (diff) | |
untested precednece lol
Diffstat (limited to 'util')
| -rw-r--r-- | util/dict.c | 1 | ||||
| -rw-r--r-- | util/dict.h | 3 | ||||
| -rw-r--r-- | util/util.h | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/util/dict.c b/util/dict.c index 56ed6c9..75fcf3b 100644 --- a/util/dict.c +++ b/util/dict.c @@ -1,6 +1,5 @@ #include <stdio.h> #include <stdlib.h> -#include <stdint.h> #include <string.h> #include "util/dict.h" diff --git a/util/dict.h b/util/dict.h index ecaf53a..109c07a 100644 --- a/util/dict.h +++ b/util/dict.h @@ -1,6 +1,9 @@ #ifndef DICT_H #define DICT_H +#include <stddef.h> +#include <stdint.h> + struct level { uint64_t bit_mask; uint64_t *token_masks; diff --git a/util/util.h b/util/util.h new file mode 100644 index 0000000..9dc29d8 --- /dev/null +++ b/util/util.h @@ -0,0 +1,12 @@ +#ifndef UTIL_H +#define UTIL_H + +#define IMPLEMENT_FUNCPTR(type, name, args) \ + type __##name args; \ + type (*name) args = __##name; \ + type __##name args + +#define X_TO_STR(s) #s, +#define X_TO_ENUM(s) s, + +#endif |
