summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'data.c')
-rw-r--r--data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.c b/data.c
index 6afb100..a30535a 100644
--- a/data.c
+++ b/data.c
@@ -161,3 +161,7 @@ static bool data_from_str(char const *str, DataType type, void *value) {
assert(0);
return false;
}
+
+static bool data_equal(DataType type, void const *a, void const *b) {
+ return memcmp(a, b, data_type_size(type)) == 0;
+}