Change the field names returned from dfhack.internal.getMemRanges()

'end' is a lua keyword, so it cannot be used conveniently.
develop
Alexander Gavrilov 2012-06-14 20:32:23 +04:00
parent 9469f27559
commit 94dfdb486d
1 changed files with 2 additions and 2 deletions

@ -1076,9 +1076,9 @@ static int internal_getMemRanges(lua_State *L)
{
lua_newtable(L);
lua_pushnumber(L, (uint32_t)ranges[i].start);
lua_setfield(L, -2, "start");
lua_setfield(L, -2, "start_addr");
lua_pushnumber(L, (uint32_t)ranges[i].end);
lua_setfield(L, -2, "end");
lua_setfield(L, -2, "end_addr");
lua_pushstring(L, ranges[i].name);
lua_setfield(L, -2, "name");
lua_pushboolean(L, ranges[i].read);