From a7cb7b041125ac8c03ba1a2d1ea15dd0f9f5a953 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 16 Dec 2024 20:54:19 -0500 Subject: [PATCH] adjustment to test_cuik.c --- test/c_library/test_cuik.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/c_library/test_cuik.c b/test/c_library/test_cuik.c index 81ccabf..d452edf 100644 --- a/test/c_library/test_cuik.c +++ b/test/c_library/test_cuik.c @@ -20,24 +20,26 @@ int main() ((gen_Macro){ txt("FOR_SUCC"), MT_Statement, MF_Functional }) )); - gen_CodeBody h_passes = gen_parse_file("Cuik/tb/opt/passes.h\n"); + gen_CodeBody h_passes = gen_parse_file("Cuik/tb/opt/passes.h"); for (gen_Code code = gen_iterator(CodeBody, h_passes, code)) switch (code->Type) { + case CT_Function_Fwd: case CT_Function: - gen_log_fmt("%S:\t%S params: %S return type: %S\n" + gen_log_fmt("%S:\t%S RETURN_TYPE: %S PARAMS:%S\n" , gen_codetype_to_str(code->Type) , code->Name - , gen_strbuilder_to_str( gen_params_to_strbuilder( (gen_CodeParams) code->Params)) , gen_strbuilder_to_str( gen_typename_to_strbuilder((gen_CodeTypename) code->ReturnType)) + , gen_strbuilder_to_str( gen_params_to_strbuilder( (gen_CodeParams) code->Params)) ); break; case CT_Variable: - gen_log_fmt("%S:\t%S Type: %S\n", gen_codetype_to_str(code->Type), code->Name, code->ValueType); + gen_log_fmt("%S:\t%S Type:%S\n", gen_codetype_to_str(code->Type), code->Name, code->ValueType); break; + case CT_Struct_Fwd: case CT_Struct: case CT_Typedef: - gen_log_fmt("%S:\t%S\n", gen_codetype_to_str(code->Type), code->Name); + gen_log_fmt("%S: %S\n", gen_codetype_to_str(code->Type), code->Name); break; }