Add di's to ast_copy
This commit is contained in:
@@ -911,6 +911,7 @@ CORE_Static String
|
||||
compile_to_c_code() {
|
||||
pctx->time.code_generation = os_time();
|
||||
|
||||
#if 0
|
||||
int di = 0;
|
||||
For(pctx->ordered_decls) {
|
||||
for (Ast_Iter iter = iterate_depth_first(pctx->heap, it); iter.ast; next(&iter)) {
|
||||
@@ -960,10 +961,12 @@ compile_to_c_code() {
|
||||
}
|
||||
}
|
||||
String str = string_flatten(pctx->perm, &pctx->gen);
|
||||
printf("%s\n", str.str);
|
||||
printf("%s", str.str);
|
||||
pctx->gen.reset();
|
||||
di += 1;
|
||||
}
|
||||
printf("\n");
|
||||
#endif
|
||||
|
||||
prefixed_string_type = string_fmt(pctx->perm, "%QString", pctx->symbol_prefix);
|
||||
if (pctx->single_header_library_mode) {
|
||||
|
||||
Reference in New Issue
Block a user