Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 83dde2c

Browse files
author
gek
committed
gitap
1 parent 15476f7 commit 83dde2c

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

astdump.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ static void astdump_printsymbol(symdecl* s,
7474
uint64_t indentlevel,
7575
int should_print_isfunction
7676
){
77-
char buf[80];
7877
fputs("\n",stdout);
7978
do_indent(indentlevel);
8079
if(s->t.is_function) fputs("fn ",stdout);
@@ -84,12 +83,12 @@ static void astdump_printsymbol(symdecl* s,
8483
if(s->is_impure_globals_or_asm) fputs("known-impure ",stdout);
8584
if(s->is_incomplete) fputs("incomplete ",stdout);
8685
if(s->cdata != NULL) fputs("has-cdata ",stdout);
87-
if(s->cdata_sz > 0){
88-
fputs("cdata_sz=",stdout);
89-
mutoa(buf, s->cdata_sz);
90-
fputs(buf,stdout);
91-
fputs(" ",stdout);
92-
}
86+
// if(s->cdata_sz > 0){
87+
// fputs("cdata_sz=",stdout);
88+
// mutoa(buf, s->cdata_sz);
89+
// fputs(buf,stdout);
90+
// fputs(" ",stdout);
91+
// }
9392
astdump_print_type(s->t, should_print_isfunction);
9493
fputs(s->name, stdout);
9594
}
@@ -433,6 +432,7 @@ void astdump(){
433432
do_indent(2);
434433
astdump_print_type(symbol_table[i]->fargs[j][0],1);
435434
}
436-
astdump_printscope(symbol_table[i]->fbody,4);
435+
if(symbol_table[i]->is_codegen == 0)
436+
astdump_printscope(symbol_table[i]->fbody,4);
437437
}
438438
}

featuretest.cbas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
//TEST 1: Can the metaprogramming library even compile?
3+
#include <meta>

library/stdmeta/knowl.hbas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ end
156156
//TODO: implement adding of types and type traits, as well as cloning props from
157157
//other types...
158158

159-
#__cbas_run_fn cg__INTERNAL__init_traitsystem ;
159+
__cbas_run_fn cg__INTERNAL__init_traitsystem ;
160160

161161

162162
//end of unit...

0 commit comments

Comments
 (0)