Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7450 48e7efb5...
authorcoldpeace <coldpeace@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Apr 2010 07:50:00 +0000 (07:50 +0000)
committercoldpeace <coldpeace@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Apr 2010 07:50:00 +0000 (07:50 +0000)
src/bindings/lua/simgrid_lua.c

index c68ee53..07832fc 100644 (file)
@@ -282,24 +282,11 @@ static int Host_number(lua_State *L) {
   return 1;
 }
 
-static int Host_table(lua_State *L)
-{
-       // FIXME
-       int nb = MSG_get_host_number();
-    m_host_t *msg_hosts = MSG_get_host_table();
-    m_host_t *lua_hosts = (m_host_t*)lua_newuserdata(L,sizeof(m_host_t)*nb);
-    *lua_hosts = msg_hosts;
-
-    lua_newtable (L);
-    // TODO : fill the table <ith hosts
-    return 1;
-}
 
 static const luaL_reg Host_methods[] = {
     {"getByName",   Host_get_by_name},
     {"name",           Host_get_name},
     {"number",         Host_number},
-    {"list",           Host_table},
     {0,0}
 };