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
Quick verif to know if elements src and dst are found when set route.
[simgrid.git]
/
src
/
bindings
/
rubyDag
/
rb_SD_workstation.c
diff --git
a/src/bindings/rubyDag/rb_SD_workstation.c
b/src/bindings/rubyDag/rb_SD_workstation.c
index
6b81d1b
..
cdea23b
100644
(file)
--- a/
src/bindings/rubyDag/rb_SD_workstation.c
+++ b/
src/bindings/rubyDag/rb_SD_workstation.c
@@
-12,19
+12,21
@@
static void SD_workstation_free(SD_workstation_t wrk)
{
//NOTHING TO DO
}
+
// Workstation list
static VALUE rb_SD_workstation_list(VALUE class)
{
-
- int i,nb;
+
+ int i,
nb;
nb = SD_workstation_get_number();
VALUE workstation_list = rb_ary_new2(nb);
- for (i=0;i<nb;i++)
- {
- VALUE wrk = Qnil;
- wrk = Data_Wrap_Struct(class, 0, SD_workstation_free, SD_workstation_get_list()[i]);
- rb_ary_push(workstation_list,wrk);
-
+ for (i = 0; i < nb; i++) {
+ VALUE wrk = Qnil;
+ wrk =
+ Data_Wrap_Struct(class, 0, SD_workstation_free,
+ SD_workstation_get_list()[i]);
+ rb_ary_push(workstation_list, wrk);
+
}
return workstation_list;
}
@@
-37,10
+39,10
@@
static VALUE rb_SD_workstation_number(VALUE class)
}
// Workstation name
-static VALUE rb_SD_workstation_name(VALUE class,VALUE workstation)
+static VALUE rb_SD_workstation_name(VALUE class,
VALUE workstation)
{
- SD_workstation_t wk;
- Data_Get_Struct(workstation, SD_workstation_t, wk);
- return rb_str_new2(SD_workstation_get_name(wk));
-
-}
\ No newline at end of file
+ SD_workstation_t wk;
+ Data_Get_Struct(workstation, SD_workstation_t, wk);
+ return rb_str_new2(SD_workstation_get_name(wk));
+
+}