[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] KDE/kdebindings/php/phpqt/src
From: Thomas Moenicke <tm () php-qt ! org>
Date: 2008-07-13 17:57:12
Message-ID: 1215971832.665681.16483.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 831963 by moenicke:
* adjusted refcounting for PHP 5.3, again
CCMAIL: kde-bindings@kde.org
M +5 -4 marshall_basetypes.h
--- trunk/KDE/kdebindings/php/phpqt/src/marshall_basetypes.h #831962:831963
@@ -23,6 +23,7 @@
#include "marshall_types.h"
#include "pDebug.h"
#include "context.h"
+#include "config.h"
template <class T> T* smoke_ptr(Marshall *m) { return (T*) m->item().s_voidp; }
@@ -158,7 +159,7 @@
PHPQt::unmapSmokePHPObject( m->var() );
PHPQt::unmapSmokePHPObject( o );
delete o;
- m->var()->refcount = 0;
+ m->var()->refcount__GC = 0;
}
return;
}
@@ -191,8 +192,8 @@
m->var()->value.obj.handle = o->handle();
m->var()->value.obj.handlers = &php_qt_handler;
m->var()->type = IS_OBJECT;
- m->var()->refcount = 2;
- m->var()->is_ref = 0;
+ m->var()->refcount__GC = 2;
+ m->var()->is_ref__GC = 0;
o->setZvalPtr( m->var() );
// PHPQt::setSmokePHPObject( o );
@@ -241,7 +242,7 @@
o->setAllocated(true);
if( Context::callType() == Context::VirtualMethodCall )
- m->var()->refcount = 1;
+ m->var()->refcount__GC = 1;
} // marshall_to_php
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic