From cfdb9907cb87d15eaab72ceefbfa42fd7a4c3127 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Sat, 11 May 2013 16:45:38 -0700 Subject: Synced with 3 months of Google-internal development. Major changes: - Got rid of all bytestream interfaces in favor of using regular handlers. - new Pipeline object represents a upb pipeline, does bump allocation internally to manage memory. - proto2 support now can handle extensions. --- bindings/lua/table.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bindings/lua/table.c') diff --git a/bindings/lua/table.c b/bindings/lua/table.c index 31b92d2..450730a 100644 --- a/bindings/lua/table.c +++ b/bindings/lua/table.c @@ -31,16 +31,16 @@ static void lupbtable_setnum(lua_State *L, int tab, const char *key, lua_setfield(L, tab - 1, key); } -static void lupbtable_pushval(lua_State *L, upb_value val, upb_ctype_t type) { +static void lupbtable_pushval(lua_State *L, _upb_value val, upb_ctype_t type) { switch (type) { case UPB_CTYPE_INT32: - lua_pushnumber(L, upb_value_getint32(val)); + lua_pushnumber(L, val.int32); break; case UPB_CTYPE_PTR: - lupb_def_pushwrapper(L, upb_value_getptr(val), NULL); + lupb_def_pushwrapper(L, val.ptr, NULL); break; case UPB_CTYPE_CSTR: - lua_pushstring(L, upb_value_getcstr(val)); + lua_pushstring(L, val.cstr); break; default: luaL_error(L, "Unexpected type: %d", type); -- cgit v1.2.3