hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 6b21ded13c950c343218abdac3e215a44b10488f
parent 96ced5c8c0e9619026e0c9343a257584a6d18230
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 29 Apr 2021 09:41:54 -0400

hare::types: add note regarding ABI compat

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mhare/types/hash.ha | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/hare/types/hash.ha b/hare/types/hash.ha @@ -46,6 +46,8 @@ fn write8(h: *hash::hash, u: u8) void = { // Returns the hash of a type. These hashes are deterministic and universally // unique: different computers will generate the same hash for the same type. export fn hash(t: *_type) u32 = { + // Note that this function should produce the same hashes as harec; see + // bootstrap harec:src/types.c:type_hash let hash = fnv::fnv32a(); defer hash::close(hash); write8(hash, type_storage(t));