From 56e18402300f730828204f5aa05eac9df7adfca3 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sat, 25 Apr 2020 01:07:14 -0400 Subject: fixed problem where local structs were named in c --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index ac039e9..b397804 100644 --- a/main.c +++ b/main.c @@ -8,7 +8,6 @@ /* @TODO: -local structs should not be named in C make sure global slices work allow `use ???;` if an error has already occurred if something gets included into a namespace, and its typing fails, the namespace should still be of type namespace, not ??? @@ -17,8 +16,7 @@ do we consistently handle x := &some_array_or_slice; x.len use - use with struct members (e.g. SuperPoint ::= struct { use p: Point; }) compile to a temp file, then move it if compilation succeeds -if you include something twice, it should #define one thing to the other -- it's okay because struct field can't contain __ - -> allow #force'd includes to namespaces +fix including something twice - just use the non-namespacey version if it exists or pick one namespace to use everywhere otherwise &void simplify eval macros with val_to_u/i64 #if should not create a block -- cgit v1.2.3