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
let's seal() the AS in lua too
[simgrid.git]
/
src
/
bindings
/
lua
/
lua_platf.cpp
diff --git
a/src/bindings/lua/lua_platf.cpp
b/src/bindings/lua/lua_platf.cpp
index
c20e7c4
..
e913618
100644
(file)
--- a/
src/bindings/lua/lua_platf.cpp
+++ b/
src/bindings/lua/lua_platf.cpp
@@
-32,7
+32,7
@@
static const luaL_Reg platf_functions[] = {
{"open", console_open},
{"close", console_close},
{"AS_open", console_AS_open},
- {"AS_
close", console_AS_close
},
+ {"AS_
seal", console_AS_seal
},
{"backbone_new", console_add_backbone},
{"host_link_new", console_add_host___link},
{"host_new", console_add_host},
@@
-530,17
+530,16
@@
int console_AS_open(lua_State *L) {
else if(!strcmp(mode,"none")) mode_int = A_surfxml_AS_routing_None;
else xbt_die("Don't have the model name '%s'",mode);
- s_sg_platf_AS_cbarg_t AS
= SG_PLATF_AS_INITIALIZER
;
+ s_sg_platf_AS_cbarg_t AS;
AS.id = id;
AS.routing = mode_int;
-
sg_platf_new_AS_begin(&AS);
return 0;
}
-int console_AS_
close
(lua_State *L) {
- XBT_DEBUG("
Clos
ing AS");
- sg_platf_new_AS_
end
();
+int console_AS_
seal
(lua_State *L) {
+ XBT_DEBUG("
Seal
ing AS");
+ sg_platf_new_AS_
seal
();
return 0;
}