Commit 3e2bb26b authored by William Bundy's avatar William Bundy

rituals build 98

parent 61aa6615
git add --all
git commit -m "rituals build 97"
git commit -m "rituals build 98"
git push
git push github
96
1475270016.909398
97
1475270022.188685
......@@ -294,7 +294,7 @@ int main(int argc, char** argv)
printf("typedef struct %s %s;\n", s_head->name, s_head->name);
} while(s_head = s_head->next);
Struct_Def** all_structs = arena_push_array(Work_Arena, Struct_Def, lex.structs_count + 16);
s_head = structdef;
printf("enum Meta_Type\n {\n");
......@@ -302,7 +302,7 @@ int main(int argc, char** argv)
do {
if(s_head->name == NULL) continue;
start_temp_arena(Temp_Arena);
print_struct_names(s_head, -1, "Meta_Type", strlen("Meta_Type"), &meta_index_counter, Temp_Arena);
print_struct_names(s_head, -1, "Meta_Type", strlen("Meta_Type"), all_structs, &meta_index_counter, Temp_Arena);
end_temp_arena(Temp_Arena);
} while(s_head = s_head->next);
printf("};\n");
......
......@@ -793,9 +793,10 @@ void print_indent(int32 indent)
}
}
void print_struct_names(Struct_Def* def, isize index, char* prefix, isize prefix_len, isize* counter, Memory_Arena* arena)
void print_struct_names(Struct_Def* def, isize index, char* prefix, isize prefix_len, Struct_Def** all_structs, isize* counter, Memory_Arena* arena)
{
isize chars = 0;
all_structs[*counter] = def;
def->meta_index = *counter++;
if(index == -1) {
chars = printf("\t%.*s_%s,\n", prefix_len, prefix, def->name);
......
......@@ -2471,7 +2471,7 @@ prev_time src/rituals_win32.cpp /^usize current_time = 0, prev_time = 0;$/;" v
print_indent src/metaprogram/metaprogram_parser.cpp /^void print_indent(int32 indent)$/;" f
print_reflection_data src/metaprogram/metaprogram_parser.cpp /^void print_reflection_data(Struct_Def* def)$/;" f
print_struct src/metaprogram/metaprogram_parser.cpp /^void print_struct(Struct_Def* def, bool as_member_struct = false, int32 indent = 0)$/;" f
print_struct_names src/metaprogram/metaprogram_parser.cpp /^void print_struct_names(Struct_Def* def, isize index, char* prefix, isize prefix_len, isize* counter, Memory_Arena* arena)$/;" f
print_struct_names src/metaprogram/metaprogram_parser.cpp /^void print_struct_names(Struct_Def* def, isize index, char* prefix, isize prefix_len, Struct_Def** all_structs, isize* counter, Memory_Arena* arena)$/;" f
print_token src/metaprogram/metaprogram_parser.cpp /^void print_token(Token* t, Token* start)$/;" f
procedures_count src/metaprogram/metaprogram_parser.cpp /^ isize procedures_count;$/;" m struct:Lexer file:
progressive src/thirdparty/stb_image.h /^ int progressive;$/;" m struct:__anon6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment