[Kde-bindings] KDE/kdebindings/ruby/krossruby

Richard Dale Richard_Dale at tipitina.demon.co.uk
Wed Jun 4 17:27:39 UTC 2008


SVN commit 816731 by rdale:

* Removed the RARRAY_LEN macro as it doesn't compile with Ruby 1.8.5 or less
  But should we be supporting 1.8.5?

CCMAIL: kde-bindings at kde.org



 M  +1 -1      rubyobject.cpp  


--- trunk/KDE/kdebindings/ruby/krossruby/rubyobject.cpp #816730:816731
@@ -111,7 +111,7 @@
     VALUE methods;
     const char* method;
     methods = rb_class_instance_methods(1, args, CLASS_OF(object));
-    for (int i = 0; i < RARRAY_LEN(methods); i++) {
+    for (int i = 0; i < RARRAY(methods)->len; i++) {
         method = StringValuePtr(RARRAY(methods)->ptr[i]);
         krossdebug( QString("RubyObject::RubyObject() method=%1").arg( method ));
         d->calls << method;



More information about the Kde-bindings mailing list