From 569d42377296ae4facabb0341cac7347e5d1847b Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Fri, 21 Jul 2023 00:33:04 +0800 Subject: [PATCH] :memo: update --- src/nasal_codegen.cpp | 5 +++-- src/nasal_import.cpp | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nasal_codegen.cpp b/src/nasal_codegen.cpp index c161308..bd38dc7 100644 --- a/src/nasal_codegen.cpp +++ b/src/nasal_codegen.cpp @@ -1201,8 +1201,9 @@ void codegen::symbol_dump(std::ostream& out) const { for(const auto& domain : experimental_namespace) { out << "<" << domain.first << ">\n"; for(const auto& i : domain.second) { - out << " " << i << ": 0x"; - out << std::hex << global.at(i) << std::dec << "\n"; + out << " 0x" << std::setw(4) << std::setfill('0'); + out << std::hex << global.at(i) << std::dec << " "; + out << i << std::endl; } } } diff --git a/src/nasal_import.cpp b/src/nasal_import.cpp index 52e88ee..ed5d3d5 100644 --- a/src/nasal_import.cpp +++ b/src/nasal_import.cpp @@ -279,8 +279,6 @@ code_block* linker::load(code_block* root, u16 fileindex) { } auto tmp = import_regular_file((call_expr*)i); tree->add_expression(generate_module_definition(tmp)); - // link(tree, tmp); - // delete tmp; } // add root to the back of tree auto file_head = new file_info(