diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:21:18 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:21:18 +0100 |
| commit | 5be69e64cfd17b20c0c7fef3b3e2983cf69e8645 (patch) | |
| tree | 1e5241cc04aa7936c95521be4ad6aa817d4a9ab8 | |
| parent | 55991c396cddc8ec27182dc5cfe64fdef61da064 (diff) | |
fix types and use dep files
| -rw-r--r-- | Makefile | 12 | ||||
| -rw-r--r-- | src/hashm.h | 4 |
2 files changed, 12 insertions, 4 deletions
@@ -1,7 +1,11 @@ WORK_DIR = . SRC_DIR = $(WORK_DIR)/src -CSH_FLAGS = -O2 -g -Wall -Wextra -Werror -pedantic -I$(SRC_DIR) +CSH_FLAGS = \ + -O2 -g \ + -Wall -Wextra -Werror -pedantic \ + -MMD -MP \ + -I$(SRC_DIR) CC = clang CC_STD = -std=c11 @@ -50,6 +54,8 @@ OBJECTS := $(SOURCES:.cc=.o) OBJECTS := $(OBJECTS:.c=.o) OBJECTS += $(MI_OBJECT) +DEPS = $(OBJECTS:.o=.d) + LIBRARIES = -lwayland-client all: $(WAYCLOCK) @@ -77,4 +83,6 @@ $(WAYCLOCK): $(OBJECTS) .PHONY: clean clean: @$(RM) $(OBJECTS) $(WAYCLOCK) - @$(RM) $(MI_BUILD)
\ No newline at end of file + @$(RM) $(MI_BUILD) + +-include $(DEPS)
\ No newline at end of file diff --git a/src/hashm.h b/src/hashm.h index fb83391..e1ed720 100644 --- a/src/hashm.h +++ b/src/hashm.h @@ -14,7 +14,7 @@ template <typename K, typename V> struct hashentry_s { }; template <typename K, typename V> -inline i32 wayc_hashentry_hash(const void *item, uint64_t seed0, +inline u64 wayc_hashentry_hash(const void *item, uint64_t seed0, uint64_t seed1) { wayc_notnull(item); @@ -23,7 +23,7 @@ inline i32 wayc_hashentry_hash(const void *item, uint64_t seed0, } template <typename K, typename V> -inline bool wayc_hashentry_compare(const void *a, const void *b, void *udata) { +inline i32 wayc_hashentry_compare(const void *a, const void *b, void *udata) { (void)udata; wayc_notnull(a); |
