Showing the changes to src/vm/module_reader.cpp (1 of 14 files). Show all
Unified · Split
| @@ -25,14 +25,14 @@ using namespace disvm::format; · 24 unmodified lines | |||
| 25 | namespace | 25 | namespace |
| 26 | { | 26 | { |
| 27 | // constants used in module processing | 27 | // constants used in module processing |
| 28 | struct module_constants | 28 | namespace module_constants |
| 29 | { | 29 | { |
| 30 | static const auto max_type_pointer_count = operand_t{ 128 * 1024 }; | 30 | const auto max_type_pointer_count = operand_t{ 128 * 1024 }; |
| 31 | static const auto no_error_handle_type_desc = operand_t{ -1 }; | 31 | const auto no_error_handle_type_desc = operand_t{ -1 }; |
| 32 | static const auto no_entry_pc = vm_pc_t{ -1 }; | 32 | const auto no_entry_pc = vm_pc_t{ -1 }; |
| 33 | static const auto vm_module_type_desc_number = std::size_t{ 0 }; | 33 | const auto vm_module_type_desc_number = std::size_t{ 0 }; |
| 34 | static const auto max_module_name_bytes = std::size_t{ 128 }; // Including null | 34 | const auto max_module_name_bytes = std::size_t{ 128 }; // Including null |
| 35 | static const auto array_address_stack_size = std::size_t{ 4 }; | 35 | const auto array_address_stack_size = std::size_t{ 4 }; |
| 36 | }; | 36 | }; |
| 37 | 37 | ||
| 38 | // enumeration for types in the data section | 38 | // enumeration for types in the data section |