A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for using lua platform files from C
[simgrid.git]
/
src
/
bindings
/
lua
/
lua_host.c
diff --git
a/src/bindings/lua/lua_host.c
b/src/bindings/lua/lua_host.c
index
46d9086
..
3084966
100644
(file)
--- a/
src/bindings/lua/lua_host.c
+++ b/
src/bindings/lua/lua_host.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010
, 2012-2015
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-50,7
+50,7
@@
static int l_host_get_by_name(lua_State * L)
{
const char *name = luaL_checkstring(L, 1);
XBT_DEBUG("Getting Host from name...");
{
const char *name = luaL_checkstring(L, 1);
XBT_DEBUG("Getting Host from name...");
- msg_host_t msg_host = MSG_
get_
host_by_name(name);
+ msg_host_t msg_host = MSG_host_by_name(name);
if (!msg_host) {
luaL_error(L, "null Host : MSG_get_host_by_name failed");
}
if (!msg_host) {
luaL_error(L, "null Host : MSG_get_host_by_name failed");
}
@@
-183,8
+183,8
@@
static int l_host_sleep(lua_State *L)
*/
static int l_host_destroy(lua_State *L)
{
*/
static int l_host_destroy(lua_State *L)
{
- msg_host_t ht = sglua_check_host(L, 1);
- __MSG_host_priv_free(MSG_host_priv(ht));
+
//
msg_host_t ht = sglua_check_host(L, 1);
+
//FIXME: not working..
__MSG_host_priv_free(MSG_host_priv(ht));
return 0;
}
return 0;
}