From a339cff87fc98859e58df8dbc9f9c15a06ed3530 Mon Sep 17 00:00:00 2001 From: "Alejandro W. Sior" Date: Mon, 23 Jan 2023 20:46:04 +0100 Subject: cook: bug fixes with arguments --- test/.build | 7 +++---- test/hai.c | 5 ++--- test/hai.h | 5 ++--- 3 files changed, 7 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/.build b/test/.build index b7c10e0..ded9352 100644 --- a/test/.build +++ b/test/.build @@ -1,5 +1,4 @@ -objects = this.c.cc( - 'hai.c' +this.objects = this.c.cc.gen( + 'hai.c', + include_dirs = this.include_dirs ) - -this.object = this.c.lib('test', objects) diff --git a/test/hai.c b/test/hai.c index 7791fbb..752cd40 100644 --- a/test/hai.c +++ b/test/hai.c @@ -1,6 +1,5 @@ #include -int main() { - printf("Hello world!\n"); - return 0; +int hai() { + return 42; } diff --git a/test/hai.h b/test/hai.h index da27064..00eba1a 100644 --- a/test/hai.h +++ b/test/hai.h @@ -1,4 +1,3 @@ -void hai(); +int hai(); - -// test \ No newline at end of file +// test -- cgit v1.2.3