hare

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

commit cc91bb81d7839b780804028123230ce4fabb880e
parent f3472426feebaa392ad15857ca0a455619faa976
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 14 May 2022 15:17:24 +0200

hare::types: createalias => newalias

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

Diffstat:
Mcmd/ioctlgen/main.ha | 2+-
Mhare/types/+test.ha | 4++--
Mhare/types/store.ha | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cmd/ioctlgen/main.ha b/cmd/ioctlgen/main.ha @@ -99,7 +99,7 @@ fn loadtype(store: *types::typestore) void = { }; const tdecl = tdecl[0]; const of = types::lookup(store, &tdecl._type)!; - types::createalias(store, tdecl.ident, of); + types::newalias(store, tdecl.ident, of); }; fn parseioctl(store: *types::typestore, d: dir, params: str) ioctl = { diff --git a/hare/types/+test.ha b/hare/types/+test.ha @@ -342,7 +342,7 @@ fn resolve( defer store_free(st); const of = lookup_builtin(st, ast::builtin_type::U64); - const al = createalias(st, ["myalias"], of); + const al = newalias(st, ["myalias"], of); assert(al.sz == 8); assert(al.align == 8); assert(al.flags == 0); @@ -364,7 +364,7 @@ fn resolve( assert((htype.repr as alias).secondary == null); const of = lookup_builtin(st, ast::builtin_type::U64); - const al = createalias(st, ["myalias"], of); + const al = newalias(st, ["myalias"], of); assert(htype.sz == 8); assert(htype.align == 8); assert(htype.flags == 0); diff --git a/hare/types/store.ha b/hare/types/store.ha @@ -55,7 +55,7 @@ export fn store_free(store: *typestore) void = { }; // Creates a new type alias. -export fn createalias( +export fn newalias( store: *typestore, ident: const ast::ident, of: const *_type,