aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
Commit message (Collapse)AuthorAgeFilesLines
...
* pyenum.{h|cpp} moved to sbkenum.{h|cpp}Hugo Parente Lima2012-03-086-10/+10
|
* Created utility function cast on AutoDecRef class.renatofilho2012-03-081-0/+6
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix function PySequenceToArgcArgv to support unicode strings.Hugo Parente Lima2012-03-082-19/+40
| | | | | | | Also fix some reference leaks. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Simplifies the generated code removing the use of std::auto_ptr.Hugo Parente Lima2012-03-081-3/+3
|
* Implemented support to conversion without memory allocation.renatofilho2012-03-082-14/+18
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fixed GilState and ThreadSave code generation.renatofilho2012-03-082-2/+7
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Removed unnecessary cast on copy function.renatofilho2012-03-081-1/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Release gil before call C++ function on virtual method.renatofilho2012-03-082-2/+7
| | | | | | | Fixes bug #423. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Added BindingManager::getAllPyObjects method.Hugo Parente Lima2012-03-082-6/+16
| | | | | | | This functions returns all PyObjects under the umbrella of BindingManager. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed Wrapper object parent invalidation process.renatofilho2012-03-081-16/+18
| | | | | | | Fixes bug #432. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix memory leak when someone tries to register a type already registered.Hugo Parente Lima2012-03-081-1/+5
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Removes Converter<char>, because the missuse of it causes memory leak .Hugo Parente Lima2012-03-081-9/+0
|
* Remove pydict ref leak on pyenum.cpp.Hugo Parente Lima2012-03-081-0/+1
|
* Fix reference leak when registering enum types.Hugo Parente Lima2012-03-081-1/+1
|
* Merge remote branch 'mainline/1.0'Hugo Parente Lima2012-03-081-2/+6
|\
| * Shiboken::showWrapperMap debug function now shows the refcount of held wrappers.Marcelo Lira2012-03-081-2/+6
| | | | | | | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* | Fixed namespace lookup during the class generation.renatofilho2012-03-081-1/+5
| | | | | | | | | | | | | | fixes bug #414. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* | Fix bug#272 - "__del__ never called by python"Hugo Parente Lima2012-03-081-33/+8
|/ | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Avoid possible race condition when destroying wrappers.Hugo Parente Lima2012-03-081-6/+7
|
* Implement generation support to target conversion.renatofilho2012-03-081-0/+4
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Optimize TypeResolver::getType function to avoid strcpy and misses on ↵Hugo Parente Lima2012-03-081-16/+19
| | | | | | | typeresolver hash. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Implement support to object list on ownserhsip functions.renatofilho2012-03-085-12/+40
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created a new rule to parent ownership.renatofilho2012-03-084-4/+68
| | | | | | | In the new rule if the child object is a Shiboken wrapper class, the object is not invalidade during the parent destructions, the binding manager will wait for object destructor to invalidade the wrapper. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Use a auxiliar pointer to do the things faster.renatofilho2012-03-081-11/+14
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2012-03-081-0/+8
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Created cmake option 'ENABLE_VERSION_SUFFIX' to use version on generated ↵sb-0.5.0Renato Filho2010-09-104-48/+2
| | | | | | | files to allow multiples version installed simultaneous. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Change the license boiler plates of all LGPL files removing the special ↵Hugo Parente Lima2010-09-0921-426/+174
| | | | | | | exception. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix bug#316 - "QAbstractItemModel.createIndex is broken"Hugo Parente Lima2010-09-011-3/+5
| | | | | | | | | | | | | | Use SbkNumber_Check instead of PyNumber_Check, because PyNumber_Check returns true for all user types. This commit also disable the generation of _Check macros and replaces all entries with Converter<T>::checkType. Those changes are on the same commit because SbkNumber_Check conflicts with a macro generated by "other" binding which binds a type named "Number". Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix the type resolver algorithm.Hugo Parente Lima2010-08-305-32/+91
| | | | | | | | | | | | | | | | | The new algorithm do the following: - Try to use type_info on the object the get the object real name. - Try to find a type resolver with the name returned by type_info. - If a type resolver was found, get the python type. - Else, ask binding manager to resolve the type walking on all possible subclasses found in the inheritance tree. The binding manager has a graph representing the class inheritance tree. Note: This commit break the libshiboken ABI, but not the API. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.araujo@openbossa.org>
* Generated original_name with "*" for object classes.Renato Filho2010-08-261-2/+6
| | | | | | | | Use base type original_name to derived classes. Fixes bug #311. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Move gilstate implementation to a sparated file.Renato Filho2010-08-253-3/+59
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Verify if the arg received on invalidateWrapper, is Py_None or NULL.Renato Filho2010-08-251-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Move ThreadStateSaver implementation from the header to a cpp file.Renato Filho2010-08-253-12/+72
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed CMake config file for libshiboken.Renato Filho2010-08-231-1/+1
|
* Fixed shiboken library name on windows.Hugo Parente Lima2010-08-201-2/+4
| | | | | | | It's now called shiboken.dll instead of libshiboken.dll. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fixed config file to work on windows.Renato Filho2010-08-201-1/+7
|
* Fixed install dir on windows.Renato Filho2010-08-201-1/+4
|
* Fix problems with dllimport/dllexport in some shiboken functions/variables.Hugo Parente Lima2010-08-193-18/+17
|
* Use CMake DEFINES to export symbols.Renato Filho2010-08-192-3/+3
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* fixed tests exported symbols.Renato Filho2010-08-181-6/+6
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Invalidate remaining instances when shutting downsb-0.4.0Lauro Neto2010-08-031-0/+8
| | | | | | | | | | | | Instead of using assert(), invalidate the remaining instances in ~BindingManager(). This will prevent them of trying to access it again. As the program is already finishing, the dangling C++ instances will be freed anyway. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
* Modified the void* converter to deal with all pointers as coming from Python.Marcelo Lira2010-08-031-14/+5
| | | | | | This is the common case, for the situation when C++ returns a never before seen void pointer it'll be necessary to write custom code to deal with the result.
* Objects of the BaseWrapper type must call a deallocator.Marcelo Lira2010-08-031-1/+1
| | | | | A BaseWrapper object must clean the used resources (e.g. remove the C++ pointer to Python wrapper mapping) when dying.
* Uses insert to append items to std::list.Renato Filho2010-08-021-1/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed reference leak on shiboken make tuple.Renato Filho2010-07-292-13/+21
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Dealloc dict object on wrapper destructor.Renato Filho2010-07-291-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Create a new copy from object when convert from PyObject to const ref.Renato Filho2010-07-271-1/+12
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* BindingManager destructor now asserts if the wrapper map is empty.Marcelo Lira2010-07-271-0/+11
| | | | | | | | | | | | | The assertion is only used in debug mode. The duck punching test was altered to avoid failing when run with debug. Check the duck punching test file for a better explanation. Also added a debug helper method "showWrapperMap" to the binding manager, it shows the contents of the C pointer to Python wrapper mapping. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Fix char* converterRenato Filho2010-07-271-1/+25
| | | | | | | | Fix tests. Created warnning about return last ref of python object. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug #252.Luciano Wolf2010-07-201-0/+4
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>