From: coldpeace Date: Wed, 24 Mar 2010 17:17:56 +0000 (+0000) Subject: fixing some privacy violation ( no more #include "msg/private.h") in ruby bindings... X-Git-Tag: SVN~381 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/89ad83fdc4abbd81ac53c60b9d1056ccb5486356 fixing some privacy violation ( no more #include "msg/private.h") in ruby bindings code git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7359 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/bindings/ruby/rb_msg_host.c b/src/bindings/ruby/rb_msg_host.c index 138f92219b..64f16b49ca 100644 --- a/src/bindings/ruby/rb_msg_host.c +++ b/src/bindings/ruby/rb_msg_host.c @@ -82,22 +82,16 @@ VALUE rb_host_process(VALUE class,VALUE ruby_process) // get all hosts VALUE rb_host_get_all_hosts(VALUE class) { - int index; - VALUE hosts_table; - VALUE rbHost; - m_host_t host; - - int count = xbt_fifo_size(msg_global->host); - m_host_t *table = (m_host_t *)xbt_fifo_to_array(msg_global->host); - hosts_table = rb_ary_new2(count); - - for (index=0;index