From b9e58735fdc1540254877b1e508814fe16bdfc85 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 1 Apr 2019 19:36:02 +0200 Subject: [PATCH] :art: Introduce ScannerArg --- ast | 2 +- src/compile.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ast b/ast index 31cd8af5..65fbc27f 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 31cd8af5a79fe16e5b67fb8a456848eb99e24b05 +Subproject commit 65fbc27ff00cee3cfbef4aec8065b49c93f8cb3d diff --git a/src/compile.c b/src/compile.c index 0d1c481d..f45120df 100644 --- a/src/compile.c +++ b/src/compile.c @@ -60,7 +60,8 @@ static m_bool compiler_open(struct Compiler* c) { static m_bool check(struct Gwion_* gwion, struct Compiler* c) { CHECK_BB(compiler_open(c)) - CHECK_OB((c->ast = parse(gwion->st, c->name, c->file))) + struct ScannerArg_ arg = { c->name, c->file, gwion->st }; + CHECK_OB((c->ast = parse(&arg))) gwion->env->name = c->name; return type_engine_check_prog(gwion->env, c->ast); } -- 2.43.0