From: Brendan Hansen Date: Tue, 20 Apr 2021 02:24:07 +0000 (-0500) Subject: marking things as incomplete X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=c097b9f06c60a6ceee2314bdf2cf19723284f1a8;p=onyx.git marking things as incomplete --- 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; }