Showing the changes to src/vm/sys/Sysmod.cpp (1 of 12 files). Show all
Unified · Split
| @@ -293,7 +293,7 @@ Sys_byte2char(vm_registers_t &r, vm_t &vm) · 292 unmodified lines | |||
| 293 | fp.ret->t2 = 0; | 293 | fp.ret->t2 = 0; |
| 294 | 294 | ||
| 295 | auto state = utf8::decode_state_t::accept; | 295 | auto state = utf8::decode_state_t::accept; |
| 296 | auto result = rune_t{}; | 296 | auto result = runtime::rune_t{}; |
| 297 | const auto buffer_len = buffer->get_length(); | 297 | const auto buffer_len = buffer->get_length(); |
| 298 | for (auto i = n; i < buffer_len; ++i) | 298 | for (auto i = n; i < buffer_len; ++i) |
| 299 | { | 299 | { |
| @@ -326,7 +326,7 @@ Sys_char2byte(vm_registers_t &r, vm_t &vm) · 26 unmodified lines | |||
| 326 | if (buffer == nullptr || n >= buffer->get_length()) | 326 | if (buffer == nullptr || n >= buffer->get_length()) |
| 327 | throw out_of_range_memory{}; | 327 | throw out_of_range_memory{}; |
| 328 | 328 | ||
| 329 | const auto rune = static_cast<rune_t>(fp.c); | 329 | const auto rune = static_cast<runtime::rune_t>(fp.c); |
| 330 | 330 | ||
| 331 | static_assert(Sys_UTFmax == sizeof(rune), "UTF max should be same size as rune"); | 331 | static_assert(Sys_UTFmax == sizeof(rune), "UTF max should be same size as rune"); |
| 332 | uint8_t buffer_local[Sys_UTFmax]; | 332 | uint8_t buffer_local[Sys_UTFmax]; |
| @@ -689,7 +689,7 @@ Sys_stream(vm_registers_t &r, vm_t &vm) · 356 unmodified lines | |||
| 689 | 689 | ||
| 690 | namespace | 690 | namespace |
| 691 | { | 691 | { |
| 692 | bool is_delim(const rune_t c, const vm_string_t &delim) | 692 | bool is_delim(const runtime::rune_t c, const vm_string_t &delim) |
| 693 | { | 693 | { |
| 694 | const auto max = delim.get_length(); | 694 | const auto max = delim.get_length(); |
| 695 | assert(max > 0); | 695 | assert(max > 0); |