summaryrefslogtreecommitdiff
path: root/bindings/lua/table.c
diff options
context:
space:
mode:
authorJosh Haberman <haberman@google.com>2013-05-11 16:45:38 -0700
committerJosh Haberman <haberman@google.com>2013-05-11 16:45:38 -0700
commitcfdb9907cb87d15eaab72ceefbfa42fd7a4c3127 (patch)
tree63f5d70ad64daeeb4ffc777c2c3afd50e2e281b1 /bindings/lua/table.c
parent7d3e2bd2c4cfd1296d1d6f996d7548de26540d41 (diff)
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.
Diffstat (limited to 'bindings/lua/table.c')
-rw-r--r--bindings/lua/table.c8
1 files changed, 4 insertions, 4 deletions
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback