aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Module reload test now considers .pyo files (in addition to .pyc ones).Marcelo Lira2012-03-081-1/+4
|
* SbkNumber_Check now makes use of PyNumber_Check.Marcelo Lira2012-03-081-1/+3
| | | | | | | Plus some provisions to handle old-style classes. Reviewed by Bruno Araújo <bruno.araujo@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added test to certify that old-style classes will not be accepted as numbers ↵Marcelo Lira2012-03-081-0/+76
| | | | (unless they are).
* Added a test to numpy scalar type being accepted as Python scalar.Marcelo Lira2012-03-081-0/+30
|
* Shows "unicode" instead of "PyUnicode" on error messages.Hugo Parente Lima2012-03-081-0/+2
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Add support to the remove attribute of reference-count tag.Hugo Parente Lima2012-03-081-6/+14
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 684 - "New-style signals does not accept signals with enums as ↵Hugo Parente Lima2012-03-083-9/+55
| | | | arguments."
* Fixed style of code on CppGenerator::writeReturnValueHeuristics method.Marcelo Lira2012-03-081-4/+4
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix string used in tp_name on inner types.Hugo Parente Lima2012-03-083-3/+9
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* The heuristics for return value parenting should be overridden by user changes.Marcelo Lira2012-03-081-9/+14
| | | | | | | | Whatever the user puts in the type system XML will take precedence over the generator heuristics. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Overloaded call decision now consider inheritance: inheritor is checked ↵Marcelo Lira2012-03-083-18/+29
| | | | | | | | | | before ancestor. A couple of ShibokenGenerator methods were made "const" to allow them to be called from OverloadDecisor. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Added test for overload decision situation involving inheritance.Marcelo Lira2012-03-083-1/+17
|
* Marked ObjectType and ObjectModel, from the sample test lib, as explicit.Marcelo Lira2012-03-082-2/+2
|
* Use action="set" instead of action="add" on reference-count tag.Hugo Parente Lima2012-03-082-2/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Implemented support to iterator function generation.Renato Araujo Oliveira Filho2012-03-082-2/+4
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed signal initialization for types with namespace and types definedRenato Araujo Oliveira Filho2012-03-081-9/+28
| | | | | | | | | by typedef. Fixes bug #657. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Don't write return heuristic when there's a parent tag with the returned ↵Hugo Parente Lima2012-03-081-6/+9
| | | | | | | object involved. Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Update apiextractor/generatorrunner dependency version.Renato Araujo Oliveira Filho2012-03-081-2/+2
|
* Replaced use from QList to QSet in children list.Renato Araujo Oliveira Filho2012-03-082-3/+3
| | | | | | | Patch from farsmo <farsmo@sogetthis.com> Reviewer: Hugo Parente <hugo.lima@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed Cmake files used to find the library after the installation.sb-1.0.0-beta5Renato Araujo Oliveira Filho2012-03-082-10/+11
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed a type on a warning about polymorphic-id-expression.Marcelo Lira2012-03-081-1/+1
| | | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 616 - "error compiling when public and private methods differ by the ↵Hugo Parente Lima2012-03-086-13/+83
| | | | | | | const-ness" Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix bug 655 - "bad re-implementations of QApplication.notify result in a ↵Hugo Parente Lima2012-03-081-1/+8
| | | | | | | SystemError" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Test bindings project files modified to use key/value pair text files.Marcelo Lira2012-03-086-50/+39
| | | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Test bindings now use project files instead of generator command line options.Marcelo Lira2012-03-084-19/+55
|
* Shiboken binary now responds to the "--version" argument.Marcelo Lira2012-03-085-5/+25
| | | | | The version command line argument was previously answered by GeneratorRunner. This commit also generally updates some CMake files.
* Added SHIBOKEN_BINARY variable to CMake config file.Marcelo Lira2012-03-083-2/+8
| | | | | | | | It points to the Shiboken generator executable so the users can use it instead of calling GeneratorRunner plus a parameter pointing to Shiboken generator module. Also fixed generator_location variable on shiboken.pc file.
* Replaced tabs with spaces on cmake file.Marcelo Lira2012-03-081-5/+4
|