From c097b9f06c60a6ceee2314bdf2cf19723284f1a8 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Mon, 19 Apr 2021 21:24:07 -0500 Subject: [PATCH] marking things as incomplete --- src/onyxc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/onyxc.c b/src/onyxc.c index 5c819621..ab2dcd1b 100644 --- a/src/onyxc.c +++ b/src/onyxc.c @@ -36,6 +36,9 @@ static void emit_raw_data(OnyxCFile* c_file, ptr data, AstTyped* node) { case Ast_Kind_StrLit: { AstStrLit* sl = (AstStrLit *) node; + // :Incomplete this does not work because sl->addr is not the address in C. + // Need some way to encode &__stringXX + // // NOTE: This assumes the address and the length fields have been filled out // by emit_string_literal. u32* sdata = (u32 *) data; @@ -53,7 +56,7 @@ static void emit_raw_data(OnyxCFile* c_file, ptr data, AstTyped* node) { case Ast_Kind_Function: { AstFunction* func = (AstFunction *) node; - *((u32 *) data) = 0; // :Imcomplete + *((u32 *) data) = 0; // :Incomplete break; } -- 2.25.1