Przeglądaj źródła

add .anonymous attribute for uci sections in lua

Felix 15 lat temu
rodzic
commit
4dc75cbcd4
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      lua/uci.c

+ 2 - 0
lua/uci.c

@@ -175,6 +175,8 @@ static void uci_push_section(lua_State *L, struct uci_section *s)
 	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);