aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Moved python detection to root CMakelist.Renato Filho2010-07-191-3/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Use correct python library in debug mode.Renato Filho2010-07-191-12/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix segfault when dealing with converter(void *).Luciano Wolf2010-07-141-1/+1
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Use list on keep reference map.Renato Filho2010-07-092-9/+52
| | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Create referenceMap on demand.Renato Filho2010-07-091-4/+14
| | | | | | | Implemented 'variable-name' support on 'reference-count' tag. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed ref leak on list cpp conversion.Renato Filho2010-07-091-1/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix Converter<bool>::toCpp, to correctly convert number to boolean values.Hugo Parente Lima2010-07-061-1/+1
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Store class orignal name to future use.Renato Filho2010-07-052-0/+3
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente <hugo.lima@openbossa.org>
* Fix bug#256 - "PySide does not support signals with containers."Hugo Parente Lima2010-06-292-1/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Fix cmake files used by other projects to detect Shiboken.Hugo Parente Lima2010-06-232-3/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug: "Debug build fails to run the tests (doesn't work) ↵Hugo Parente Lima2010-06-211-0/+11
| | | | | | | [_Py_AddToAllObjects: Assertion (...) failed]" Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Removed missing local include path for hash library.Renato Filho2010-06-181-2/+1
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Find installed google hash library.Renato Filho2010-06-181-1/+9
| | | | | Reviewers: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Create getType function on TypeResolver.Renato Filho2010-06-172-0/+30
| | | | | | | | This function allow the programmer discovery if a type is Object or Value type. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug#237 - "core dump when call wrong constructor inside of a class"Hugo Parente Lima2010-06-162-1/+36
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Shiboken::cppObjectIsInvalid(PyObject*) now returns false when the argument ↵Marcelo Lira2010-06-151-1/+1
| | | | | | is NULL. Because NULL objects aren't invalid Python wrappers.
* Fixed checkType of int and floating point converters.Hugo Parente Lima2010-06-101-2/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Automatically register all primitive types on TypeResover.Hugo Parente Lima2010-06-103-15/+15
| | | | | Reviewer: Renato Araújo <renato.araujo@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>