summaryrefslogtreecommitdiff
path: root/source/kde/kdebindings/kdebindings-len-ptr-rfloat.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/kdebindings/kdebindings-len-ptr-rfloat.diff')
-rw-r--r--source/kde/kdebindings/kdebindings-len-ptr-rfloat.diff207
1 files changed, 0 insertions, 207 deletions
diff --git a/source/kde/kdebindings/kdebindings-len-ptr-rfloat.diff b/source/kde/kdebindings/kdebindings-len-ptr-rfloat.diff
deleted file mode 100644
index 0f2edc12..00000000
--- a/source/kde/kdebindings/kdebindings-len-ptr-rfloat.diff
+++ /dev/null
@@ -1,207 +0,0 @@
---- kdebindings-4.3.0/ruby/krossruby/rubyfunction.h.org 2008-07-29 05:47:40.000000000 -0600
-+++ kdebindings-4.3.0/ruby/krossruby/rubyfunction.h 2009-08-09 03:04:00.105143195 -0600
-@@ -88,11 +88,11 @@
- //#endif
- VALUE info = rb_gv_get("$!");
- VALUE bt = rb_funcall(info, rb_intern("backtrace"), 0);
-- VALUE message = RARRAY(bt)->ptr[0];
-+ VALUE message = RARRAY_PTR(bt)[0];
- fprintf(stderr,"%s: %s (%s)\n", STR2CSTR(message), STR2CSTR(rb_obj_as_string(info)), rb_class2name(CLASS_OF(info)));
-- for(int i = 1; i < RARRAY(bt)->len; ++i)
-- if( TYPE(RARRAY(bt)->ptr[i]) == T_STRING )
-- fprintf(stderr,"\tfrom %s\n", STR2CSTR(RARRAY(bt)->ptr[i]));
-+ for(int i = 1; i < RARRAY_LEN(bt); ++i)
-+ if( TYPE(RARRAY_PTR(bt)[i]) == T_STRING )
-+ fprintf(stderr,"\tfrom %s\n", STR2CSTR(RARRAY_PTR(bt)[i]));
- //ruby_nerrs++;
- return Qnil;
- }
---- kdebindings-4.3.0/ruby/krossruby/rubyobject.cpp.org 2008-06-18 06:41:05.000000000 -0600
-+++ kdebindings-4.3.0/ruby/krossruby/rubyobject.cpp 2009-08-08 21:55:21.209147733 -0600
-@@ -34,7 +34,7 @@
-
- VALUE info = rb_gv_get("$!");
- VALUE bt = rb_funcall(info, rb_intern("backtrace"), 0);
-- VALUE message = RARRAY(bt)->ptr[0];
-+ VALUE message = RARRAY_PTR(bt)[0];
-
- QString errormessage = QString("%1: %2 (%3)")
- .arg( STR2CSTR(message) )
-@@ -43,9 +43,9 @@
- fprintf(stderr, "%s\n", errormessage.toLatin1().data());
-
- QString tracemessage;
-- for(int i = 1; i < RARRAY(bt)->len; ++i) {
-- if( TYPE(RARRAY(bt)->ptr[i]) == T_STRING ) {
-- QString s = QString("%1\n").arg( STR2CSTR(RARRAY(bt)->ptr[i]) );
-+ for(int i = 1; i < RARRAY_LEN(bt); ++i) {
-+ if( TYPE(RARRAY_PTR(bt)[i]) == T_STRING ) {
-+ QString s = QString("%1\n").arg( STR2CSTR(RARRAY_PTR(bt)[i]) );
- Q_ASSERT( ! s.isNull() );
- tracemessage += s;
- fprintf(stderr, "\t%s", s.toLatin1().data());
-@@ -74,7 +74,7 @@
- ID functionId = rb_ary_entry(args, 1);
- VALUE arguments = rb_ary_entry(args, 2);
- Q_ASSERT( TYPE(arguments) == T_ARRAY );
-- return rb_funcall2(self, functionId, RARRAY(arguments)->len, RARRAY(arguments)->ptr);
-+ return rb_funcall2(self, functionId, RARRAY_LEN(arguments), RARRAY_PTR(arguments));
- }
-
- class RubyObject::Private
-@@ -112,8 +112,8 @@
- VALUE methods;
- const char* method;
- methods = rb_class_instance_methods(1, args, CLASS_OF(object));
-- for (int i = 0; i < RARRAY(methods)->len; i++) {
-- method = StringValuePtr(RARRAY(methods)->ptr[i]);
-+ for (int i = 0; i < RARRAY_LEN(methods); i++) {
-+ method = StringValuePtr(RARRAY_PTR(methods)[i]);
- krossdebug( QString("RubyObject::RubyObject() method=%1").arg( method ));
- d->calls << method;
- }
---- kdebindings-4.3.0/ruby/krossruby/rubyscript.cpp.org 2009-01-16 08:04:29.000000000 -0700
-+++ kdebindings-4.3.0/ruby/krossruby/rubyscript.cpp 2009-08-08 21:51:36.729148567 -0600
-@@ -47,7 +47,7 @@
-
- VALUE info = rb_gv_get("$!");
- VALUE bt = rb_funcall(info, rb_intern("backtrace"), 0);
-- VALUE message = RARRAY(bt)->ptr[0];
-+ VALUE message = RARRAY_PTR(bt)[0];
-
- QString errormessage = QString("%1: %2 (%3)")
- .arg( STR2CSTR(message) )
-@@ -56,9 +56,9 @@
- fprintf(stderr, "%s\n", errormessage.toLatin1().data());
-
- QString tracemessage;
-- for(int i = 1; i < RARRAY(bt)->len; ++i) {
-- if( TYPE(RARRAY(bt)->ptr[i]) == T_STRING ) {
-- QString s = QString("%1\n").arg( STR2CSTR(RARRAY(bt)->ptr[i]) );
-+ for(int i = 1; i < RARRAY_LEN(bt); ++i) {
-+ if( TYPE(RARRAY_PTR(bt)[i]) == T_STRING ) {
-+ QString s = QString("%1\n").arg( STR2CSTR(RARRAY_PTR(bt)[i]) );
- Q_ASSERT( ! s.isNull() );
- tracemessage += s;
- fprintf(stderr, "\t%s", s.toLatin1().data());
-@@ -361,7 +361,7 @@
- ID functionId = rb_ary_entry(args, 1);
- VALUE arguments = rb_ary_entry(args, 2);
- Q_ASSERT( TYPE(arguments) == T_ARRAY );
-- return rb_funcall2(self, functionId, RARRAY(arguments)->len, RARRAY(arguments)->ptr);
-+ return rb_funcall2(self, functionId, RARRAY_LEN(arguments), RARRAY_PTR(arguments));
- }
-
- QVariant RubyScript::callFunction(const QString& name, const QVariantList& args)
---- kdebindings-4.3.0/ruby/krossruby/rubyvariant.cpp.org 2008-11-19 03:17:32.000000000 -0700
-+++ kdebindings-4.3.0/ruby/krossruby/rubyvariant.cpp 2009-08-08 21:42:27.593112416 -0600
-@@ -487,7 +487,7 @@
- #endif
- QList<void*> list;
- if( TYPE(value) == T_ARRAY ) {
-- for(int i = 0; i < RARRAY(value)->len; i++)
-+ for(int i = 0; i < RARRAY_LEN(value); i++)
- if( void *ptr = VoidList::extractVoidStar(rb_ary_entry(value, i)) )
- list << ptr;
- }
---- kdebindings-4.3.0/ruby/krossruby/rubyvariant.h.org 2008-07-29 05:47:40.000000000 -0600
-+++ kdebindings-4.3.0/ruby/krossruby/rubyvariant.h 2009-08-09 02:51:01.845117051 -0600
-@@ -124,7 +124,7 @@
- case T_BIGNUM:
- return rb_big2int(value);
- case T_FLOAT:
-- return (int)(RFLOAT(value)->value);
-+ return (int)(RFLOAT_VALUE(value));
- default:
- break;
- }
-@@ -147,7 +147,7 @@
- case T_BIGNUM:
- return rb_big2uint(value);
- case T_FLOAT:
-- return (uint)(RFLOAT(value)->value);
-+ return (uint)(RFLOAT_VALUE(value));
- default:
- break;
- }
-@@ -226,7 +226,7 @@
- //return STR2CSTR( rb_inspect(value) );
- return QByteArray("");
- }
-- long length = LONG2NUM( RSTRING(value)->len );
-+ long length = LONG2NUM( RSTRING_LEN(value) );
- if( length < 0 )
- return QByteArray("");
- char* ca = rb_str2cstr(value, &length);
-@@ -261,7 +261,7 @@
- return l;
- }
- inline static QSize toVariant(VALUE value) {
-- if( TYPE(value) != T_ARRAY || RARRAY(value)->len != 2 ) {
-+ if( TYPE(value) != T_ARRAY || RARRAY_LEN(value) != 2 ) {
- rb_raise(rb_eTypeError, "QSize must be an array with 2 elements");
- return QSize();
- }
-@@ -280,7 +280,7 @@
- return l;
- }
- inline static QSizeF toVariant(VALUE value) {
-- if( TYPE(value) != T_ARRAY || RARRAY(value)->len != 2 ) {
-+ if( TYPE(value) != T_ARRAY || RARRAY_LEN(value) != 2 ) {
- rb_raise(rb_eTypeError, "QSizeF must be an array with 2 elements");
- return QSizeF();
- }
-@@ -300,7 +300,7 @@
- return l;
- }
- inline static QPoint toVariant(VALUE value) {
-- if( TYPE(value) != T_ARRAY || RARRAY(value)->len != 2 ) {
-+ if( TYPE(value) != T_ARRAY || RARRAY_LEN(value) != 2 ) {
- rb_raise(rb_eTypeError, "QPoint must be an array with 2 elements");
- return QPoint();
- }
-@@ -319,7 +319,7 @@
- return l;
- }
- inline static QPointF toVariant(VALUE value) {
-- if( TYPE(value) != T_ARRAY || RARRAY(value)->len != 2 ) {
-+ if( TYPE(value) != T_ARRAY || RARRAY_LEN(value) != 2 ) {
- rb_raise(rb_eTypeError, "QPointF must be an array with 2 elements");
- return QPointF();
- }
-@@ -340,7 +340,7 @@
- return l;
- }
- inline static QRect toVariant(VALUE value) {
-- if( TYPE(value) != T_ARRAY || RARRAY(value)->len != 4 ) {
-+ if( TYPE(value) != T_ARRAY || RARRAY_LEN(value) != 4 ) {
- rb_raise(rb_eTypeError, "QRect must be an array with 4 elements");
- return QRect();
- }
-@@ -362,7 +362,7 @@
- return l;
- }
- inline static QRectF toVariant(VALUE value) {
-- if( TYPE(value) != T_ARRAY || RARRAY(value)->len != 4 ) {
-+ if( TYPE(value) != T_ARRAY || RARRAY_LEN(value) != 4 ) {
- rb_raise(rb_eTypeError, "QRectF must be an array with 4 elements");
- return QRectF();
- }
-@@ -447,7 +447,7 @@
- return QStringList();
- }
- QStringList l;
-- for(int i = 0; i < RARRAY(value)->len; i++)
-+ for(int i = 0; i < RARRAY_LEN(value); i++)
- l.append( RubyType<QString>::toVariant( rb_ary_entry(value, i) ) );
- return l;
- }
-@@ -469,7 +469,7 @@
- return QVariantList();
- }
- QVariantList l;
-- for(int i = 0; i < RARRAY(value)->len; i++)
-+ for(int i = 0; i < RARRAY_LEN(value); i++)
- l.append( RubyType<QVariant>::toVariant( rb_ary_entry(value, i) ) );
- return l;
- }