hare

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

commit c15ce212f16de8dbfe4221b1f4bec7159129f956
parent 00b36bd06abd82c54b82108f9a0c4a0468fdd398
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 29 Sep 2023 22:20:01 -0400

hare::unit: pass around pointers

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/unit/process.ha | 4++--
Mhare/unit/scan.ha | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hare/unit/process.ha b/hare/unit/process.ha @@ -41,14 +41,14 @@ fn process_decl( case let ty: []ast::decl_type => abort(); // TODO case let fu: ast::decl_func => - return process_func(ctx, decl, fu); + return process_func(ctx, decl, &fu); }; }; fn process_func( ctx: *context, adecl: *ast::decl, - func: ast::decl_func, + func: *ast::decl_func, ) (decl | error) = { assert(func.attrs & ast::fndecl_attrs::TEST == 0); // TODO const afndecl = adecl.decl as ast::decl_func; diff --git a/hare/unit/scan.ha b/hare/unit/scan.ha @@ -39,14 +39,14 @@ fn scan_decl( case let ty: []ast::decl_type => abort(); // TODO case let fu: ast::decl_func => - return scan_func(ctx, decl, fu); + return scan_func(ctx, decl, &fu); }; }; fn scan_func( ctx: *context, decl: *ast::decl, - func: ast::decl_func, + func: *ast::decl_func, ) (void | types::deferred | error) = { assert(func.attrs & ast::fndecl_attrs::TEST == 0); // TODO const fntype = match (types::lookup(ctx.store, &func.prototype)) {