diff options
| author | LLLL Colonq <llll@colonq> | 2026-09-24 16:40:51 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-09-24 16:41:00 -0400 |
| commit | 394757c770ec871bdaf9d532940a575606ae3318 (patch) | |
| tree | 4064f3f0653bb66e0509c519d8f8c2082b73435f /pit/src/runtime/value.c | |
| parent | d7f85e314f40548c6840d987a3f4b556f2b7b7ff (diff) | |
pit: Add comments
Diffstat (limited to 'pit/src/runtime/value.c')
| -rw-r--r-- | pit/src/runtime/value.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pit/src/runtime/value.c b/pit/src/runtime/value.c index b32d154..6354f60 100644 --- a/pit/src/runtime/value.c +++ b/pit/src/runtime/value.c @@ -18,10 +18,13 @@ pit_value pit_value_new(pit_runtime *rt, enum pit_value_sort s, u64 data) { | (data & 0x1ffffffffffff); } +/* shallow equality - are these references to the same thing? */ bool pit_value_eq(pit_value a, pit_value b) { return a == b; } +/* deep equality - are all components of these structures equal, recursively? */ +/* TODO eliminate C recursion here */ bool pit_value_equal(pit_runtime *rt, pit_value a, pit_value b) { if (pit_value_sort(a) != pit_value_sort(b)) return false; switch (pit_value_sort(a)) { |
