aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2009-03-29 08:49:19 +0100
committerAvatar Richard Brown <rbrown@exherbo.org> 2009-03-29 09:00:18 +0100
commita4399ab2510c2249599f63abb0b684d4753f8227 (patch)
tree1ee17dc449531ae6ef6b6ef503d930c8c79d2b51
parentd2c0eb0cc8b6d7a3482778d68599285123e3700b (diff)
downloadpaludis-a4399ab2510c2249599f63abb0b684d4753f8227.tar.gz
paludis-a4399ab2510c2249599f63abb0b684d4753f8227.tar.xz
change RARRAY->len RARRAY_LEN
-rw-r--r--ruby/dep_list.cc4
-rw-r--r--ruby/dep_spec.cc2
-rw-r--r--ruby/environment.cc2
-rw-r--r--ruby/paludis_ruby.cc2
4 files changed, 5 insertions, 5 deletions
diff --git a/ruby/dep_list.cc b/ruby/dep_list.cc
index 3ad32c3..118c1b0 100644
--- a/ruby/dep_list.cc
+++ b/ruby/dep_list.cc
@@ -917,7 +917,7 @@ namespace
rb_raise(rb_eTypeError, "Can't convert %s into Array", rb_obj_classname(d));
std::tr1::shared_ptr<DestinationsSet> destinations(new DestinationsSet);
- for (long i = 0 ; i < RARRAY(d)->len ; ++i)
+ for (long i = 0 ; i < RARRAY_LEN(d) ; ++i)
destinations->insert(value_to_repository(rb_ary_entry(d, i)));
std::tr1::shared_ptr<const SetSpecTree> sst(value_to_dep_tree<SetSpecTree>(da));
@@ -977,7 +977,7 @@ namespace
rb_raise(rb_eTypeError, "Can't convert %s into Array", rb_obj_classname(d));
std::tr1::shared_ptr<DestinationsCollection> destinations(new DestinationsCollection::Concrete);
- for (long i = 0 ; i < RARRAY(d)->len ; ++i)
+ for (long i = 0 ; i < RARRAY_LEN(d) ; ++i)
destinations->insert(value_to_repository(rb_ary_entry(d, i)));
return p->already_installed(*value_to_dep_spec(da), destinations) ? Qtrue : Qfalse;
diff --git a/ruby/dep_spec.cc b/ruby/dep_spec.cc
index 9613d60..60d47e7 100644
--- a/ruby/dep_spec.cc
+++ b/ruby/dep_spec.cc
@@ -944,7 +944,7 @@ namespace
Check_Type(argv[2], T_ARRAY);
UserPackageDepSpecOptions o;
- for (int i(0) ; i < RARRAY(argv[2])->len ; ++i)
+ for (int i(0) ; i < RARRAY_LEN(argv[2]) ; ++i)
{
VALUE entry(rb_ary_entry(argv[2], i));
Check_Type(entry, T_SYMBOL);
diff --git a/ruby/environment.cc b/ruby/environment.cc
index 50d9b91..baf836d 100644
--- a/ruby/environment.cc
+++ b/ruby/environment.cc
@@ -334,7 +334,7 @@ namespace
master_repository_name = StringValuePtr(argv[2]);
Check_Type(argv[3], T_ARRAY);
- for (int i(0) ; i < RARRAY(argv[3])->len ; ++i)
+ for (int i(0) ; i < RARRAY_LEN(argv[3]) ; ++i)
{
VALUE entry(rb_ary_entry(argv[3], i));
extra_repository_dirs->push_back(stringify(StringValuePtr(entry)));
diff --git a/ruby/paludis_ruby.cc b/ruby/paludis_ruby.cc
index 5895ba9..288d07b 100644
--- a/ruby/paludis_ruby.cc
+++ b/ruby/paludis_ruby.cc
@@ -522,7 +522,7 @@ MatchPackageOptions
paludis::ruby::value_to_match_package_options(VALUE v)
{
MatchPackageOptions o;
- for (int i(0) ; i < RARRAY(v)->len ; ++i)
+ for (int i(0) ; i < RARRAY_LEN(v) ; ++i)
{
VALUE entry(rb_ary_entry(v, i));
Check_Type(entry, T_SYMBOL);