goto error;
switch (n) {
+ case 4:
case 3:
ptr->option = luaL_checkstring(L, 3);
/* fall through */
goto error;
break;
default:
+ luaL_error(L, "invalid argument count");
goto error;
}
struct uci_element *e;
lua_newtable(L);
+ lua_pushboolean(L, s->anonymous);
+ lua_setfield(L, -2, ".anonymous");
lua_pushstring(L, s->type);
lua_setfield(L, -2, ".type");
lua_pushstring(L, s->e.name);