aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Created test for bug #654.Renato Filho2012-03-081-1/+9
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Fixed enum repr, print functions.Renato Filho2012-03-081-13/+18
| | | | | | | fixes bug #654. Reviewer: Lauro Moura <lauro.neto@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Make use of the available and already allocated space for protocol ↵Marcelo Lira2012-03-082-134/+155
| | | | | | | | | | | | | | functiontions. The PyHeapTypeObject structure that is part of SbkObjectType already have allocated members for number, sequence, and mapping protocols, so let's use them. A tiny reduction in size ensues (I predict the modules will have 99.91% of their current size). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Bump version and update dependecy version required.Renato Filho2012-03-081-2/+2
|
* Don't create cyclic graphs when there are QString, PySequence and PyObjects ↵sb-1.0.2Hugo Parente Lima2012-03-081-1/+2
| | | | | | | involved into a single overload. Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Write graph info on temp dir when some a cyclic graph is found.Hugo Parente Lima2012-03-081-1/+10
|
* Overload decisor was improved to consider PySequences on modified function ↵Marcelo Lira2012-03-084-12/+116
| | | | | | | | | signatures. Unit tests were added as usual. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Renato Araujo <renato.filho@openbossa.org>
* Return false when a overload wasn't found on __eq__ and true when an ↵Hugo Parente Lima2012-03-082-3/+13
| | | | | | | overload wasn't found on __ne__. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Add tests for adding reverse operators.Hugo Parente Lima2012-03-082-0/+22
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug regarding to two overloads like: foo(char) and foo(const char*)Hugo Parente Lima2012-03-081-9/+14
| | | | | The overload decisor was unable to find the difference between them. This code was wrote by Setanta in an experimental branch, so kudos to him.
* Implemented generation code for mapping protocolRenato Filho2012-03-082-3/+95
| | | | | | | Fixex bug #743. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 723 - "Missing QAbstractFileEngine.read and ↵Hugo Parente Lima2012-03-081-2/+2
| | | | | | | QAbstractFileEngine.readLine" Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 823 - "Shiboken doesn't support function call overloads"Hugo Parente Lima2012-03-084-6/+27
|
* Remove GCC 4.6 warning on basewrapper.cpp and shibokengenerator.cppHugo Parente Lima2012-03-082-4/+2
| | | | | libshiboken/basewrapper.cpp:212:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] generator/shibokengenerator.cpp:1118:9: warning: variable ‘numArgs’ set but not used [-Wunused-but-set-variable]
* Avoid register Abstract types on QMetaTypes to avoid problems in QML.Renato Filho2012-03-081-1/+1
| | | | | | | Fix bug #814. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed 'operator--'.Renato Filho2012-03-081-1/+1
|
* Updated dependency version.Renato Filho2012-03-081-2/+2
|
* Implement support to operator++;Renato Filho2012-03-082-1/+9
| | | | | | | Fixes bug #688. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Added the type system variables %BEGIN_ALLOW_THREADS and %END_ALLOW_THREADS.Marcelo Lira2012-03-084-4/+31
| | | | | | | | | | Also moved the save and restore thread state lines to a macro in ShibokenGenerator header file. The type system variables documentation was updated accordingly. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed the argument conversion of modified virtual methods.Marcelo Lira2012-03-085-21/+161
| | | | | | | Wrong conversion code was being outputted to virtual method wrapper code when all arguments were removed. Unit tests were added as well.
* Added support for extra includes at module level.Marcelo Lira2012-03-081-3/+7
|
* Fix bug 801 - "Shiboken doesn't compile with G++ 4.6.0"Hugo Parente Lima2012-03-081-3/+3
|
* Version bump to 1.0.2Hugo Parente Lima2012-03-081-1/+1
|
* Expanded the tests that simulate QPainter::drawText even further.Marcelo Lira2012-03-082-0/+47
| | | | | | | | The purpose of this is to provide more and more test cases for the overload decisor. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Added unit tests to simulate the QPainter::drawText overloads.Marcelo Lira2012-03-086-2/+139
| | | | The classes Rect and RectF were added to help with the imitation.
* Added two more unit tests for the overload decisor.Marcelo Lira2012-03-082-1/+22
|
* Small refactor on Overload test.Marcelo Lira2012-03-081-21/+10
|
* Added test for bug 489.Marcelo Lira2012-03-083-0/+104
| | | | | | | http://bugs.pyside.org/show_bug.cgi?id=489 Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Check for old-style bases before calling tp_newsb-1.0.1Lauro Neto2012-03-081-10/+22
| | | | | | | | | | | | | Instead of creating the type instance and them checking for old-style base classes, check for them in the beginning. The later check was causing the new type object to "leak" and failing an assert in the garbage collector. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Tests for reverse operatorsLauro Neto2012-03-087-0/+204
| | | | | | | | | | | CPython calls nb_and with swapped arguments for reverse operators. This tests checks if the reverse operator raises NotImplementedError instead of TypeError when there isn't a valid reverse operator. Raising TypeError would cause the operator to fail.
* Reverse operators raise NotImplemented error.Lauro Neto2012-03-081-0/+13
| | | | | If it's a reverse operator and the OverloadDecisor fails, raise NotImplementedError instead of TypeError.
* Don't return a overload method if the object is dieing.Hugo Parente Lima2012-03-081-1/+3
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Set object returned by getter function child of the property owner.Hugo Parente Lima2012-03-081-0/+1
| | | | Doing this will invalidate the object then the property owner was deleted.
* Check for object validity on property getters and setters before using them.Hugo Parente Lima2012-03-081-0/+10
|
* Do nothing when trying to make an valid object valid twice.Hugo Parente Lima2012-03-081-1/+1
|
* Updated module reload test.Renato Filho2012-03-084-24/+16
| | | | | | | | | Avoid to load a module twice. Fixes bug #734. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed parentInfo cleanup.Renato Filho2012-03-081-3/+6
| | | | | | | Fixes bug #735. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 693 - "Heap corruption or double free reported on program exit"Hugo Parente Lima2012-03-083-1/+28
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug in TypeResolver::getType function.Hugo Parente Lima2012-03-081-2/+1
| | | | The function was always using a empty string.
* Created documentaion due to the limitation with old style class.Renato Filho2012-03-081-0/+38
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Register class names without namespaces to fix the mess in Qt signal type names.Hugo Parente Lima2012-03-081-2/+15
| | | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Use buffer instead of uchar on TypeError messages.Hugo Parente Lima2012-03-081-0/+3
|
* Check for class initialization on function Object.isValid.Renato Filho2012-03-082-16/+45
| | | | | | | Fix bug #696. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unittest for bug #704.Renato Filho2012-03-081-0/+61
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Avoid declar shiboken classes derived from old style objects.Renato Filho2012-03-081-0/+11
| | | | | | | Fixes bug #704. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Version bump to 1.0.1.Hugo Parente Lima2012-03-081-1/+1
|
* Fix bug 706 - "dataChanged signal raise an incorrect TypeError"Hugo Parente Lima2012-03-081-2/+12
| | | | | | | Now we directly call qRegisterType for all types. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Handles the situation properly when a custom code has a result value ↵sb-1.0.0Marcelo Lira2012-03-081-1/+2
| | | | | | | | | | | attribution. If a method has a custom code that attributes a value to the Python result variable, Shiboken should not generate code with attribution to the said variable. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added a check on CppGenerator::writeClassDefinition for when there's no ↵Marcelo Lira2012-03-081-1/+1
| | | | constructor for a class.
* The option "avoid protected hack" is now set via command line.sb-1.0.0-rc1Marcelo Lira2012-03-0810-273/+224
| | | | | | | | Instead of the old ugly way of compiling the behaviour forever using "#define". Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>