History

Various work for tool support in the VM. Update some type names (i.e. _t) and alter API signatures to be more consistent.

arr committed 10 years ago

Commit e5d3f861 parent bcb413516 files · +514 −45Browse files

Showing the changes to src/vm/sys/Sysmod.cpp (1 of 16 files). Show all

Unified · Split

src/vm/sys/Sysmod.cpp+3−3
@@ -292,21 +292,21 @@ Sys_byte2char(vm_registers_t &r, vm_t &vm) · 291 unmodified lines
292292 fp.ret->t1 = 0;
293293 fp.ret->t2 = 0;
294294
295− auto state = utf8::decode_state::accept;
295+ auto state = utf8::decode_state_t::accept;
296296 auto result = rune_t{};
297297 const auto buffer_len = buffer->get_length();
298298 for (auto i = n; i < buffer_len; ++i)
299299 {
300300 auto b = buffer->at<byte_t>(i);
301301 state = utf8::decode_step(state, result, b);
302− if (state == utf8::decode_state::accept)
302+ if (state == utf8::decode_state_t::accept)
303303 {
304304 fp.ret->t0 = result;
305305 fp.ret->t1 = (i - n) + 1; // Number of bytes consumed
306306 fp.ret->t2 = 1;
307307 return;
308308 }
309− else if (state == utf8::decode_state::reject)
309+ else if (state == utf8::decode_state_t::reject)
310310 {
311311 fp.ret->t1 = 1;
312312 return;