Ver1.0 && address and alignment support && better console log

This commit is contained in:
2025-08-07 20:20:48 +08:00
parent e8ec3b1530
commit 6d7f030f03
8 changed files with 1533 additions and 1310 deletions
+711 -811
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -11,8 +11,8 @@ type_node *type_list_head = nullptr;
// 宏定义列表
define_node *define_list_head = nullptr;
// 源文件列表
file_node *source_file_list_head = nullptr;
// 源文件及头文件列表
file_node *source_and_header_file_list_head = nullptr;
// 文件列表
FILE *input_reference_A2L_file = nullptr;
+24 -7
View File
@@ -13,25 +13,42 @@ extern "C"
int main(int argc, char *argv[])
{
printf("\n\n");
log_printf(LOG_SYS_INFO, "SrcToA2L Ver1.0");
log_printf(LOG_SYS_INFO, "Auther: LuChiChick");
log_printf(LOG_SYS_INFO, "%s\n%s\n%s\n\n", "Open source links:",
" ├─Github: https://git.luchichick.cn/LuChiChick/SrcToA2L",
" └─Personal Git System: https://git.luchichick.cn/LuChiChick/SrcToA2L");
log_printf(LOG_SYS_INFO, "Start argument solve.\n\n");
// 处理输入部分
solve_args(argc, argv);
printf("\n\n");
// 进行宏定义解析
printf("\n\n");
log_printf(LOG_SYS_INFO, "Start constant value definition solve.\n\n");
solve_defines();
printf("\n\n");
// 进行类型解析
printf("\n\n");
log_printf(LOG_SYS_INFO, "Start compound type definition solve.\n\n");
solve_types();
// 处理中间件
printf("\n\n");
log_printf(LOG_SYS_INFO, "Start calibration and measurement solve.\n\n");
solve_middleware();
// 处理最终输出
solve_A2L_output();
if (input_reference_A2L_file != nullptr)
{
printf("\n\n");
log_printf(LOG_SYS_INFO, "Start merging middleware into reference A2L file.\n\n");
solve_A2L_output();
}
print_log(LOG_SUCCESS, "Done.\nVer0.3");
log_printf(LOG_SYS_INFO, "Done.");
clean_and_exit(0);
return 0;
}
}
+722 -408
View File
File diff suppressed because it is too large Load Diff