aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Added Converter<T>::checkType.Hugo Parente Lima2010-06-091-0/+32
| | | | | | This method is needed because you can not call Converter<T>::isConvertible inside a Converter<Y>::isConvertible implementation, otherwise it'll create a 2-step implicit conversion.
* API fixes.Renato Filho2010-05-183-124/+138
| | | | | | | | | * Export enums without macro * Declare virtual destructor on all classes with virtual functions * Fix extern "C" declaration scope Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
* Created userdata on Python type object.Renato Filho2010-05-102-1/+45
| | | | | | | User type userdata to store metaobject information. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Fix SONAME, as proposed by Didier Raboud.Hugo Parente Lima2010-05-041-1/+2
|
* Update shiboken documentation.Luciano Wolf2010-05-031-1/+0
|
* Remove export macros from inlined classes.Thomas Berg2010-04-122-2/+2
| | | | | | | | | | | The GilState and ThreadStateSaver classes are purely inline, and should not be declared with dllexport/dllimport macros. The dllimport macro forces MSVC not to inline the classes in client code, which causes linker errors, since the symbols are not included in the shiboken dll. Reviewer: Hugo Parente <hugo.lima@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Add missing include for MVSC.Thomas Berg2010-04-121-0/+1
|
* Remove warnings about "deprecated conversion from string constant to 'char*'".Hugo Parente Lima2010-04-121-1/+1
| | | | | | | | These warnings are due to the Python C API using a char* as parameter when it should const char*. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Only convert None to a null pointer when there aren't conversions defined ↵Hugo Parente Lima2010-04-061-3/+4
| | | | | | | for it. Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
* Added enum meta type, this will ease you to known if a PyObject is a ↵Hugo Lima2010-04-053-0/+59
| | | | Shiboken enum.
* Added flag is_user_type to identify types created by the user which inherits ↵Hugo Lima2010-04-052-3/+14
| | | | | | binded types from binded types.
* Do not install all headers, just the necessary ones.Hugo Lima2010-03-301-4/+15
|
* SbkBaseWrapper_Dealloc_PrivateDtor renamed to deallocWrapperWithPrivateDtor.Hugo Lima2010-03-302-2/+2
|
* SbkBaseWrapper_clearReferences not exported anymore.Hugo Lima2010-03-303-10/+10
| | | | So it was moved to basewrapper private header.
* SbkBaseWrapper_keepReference renamed to keepReference.Hugo Lima2010-03-302-2/+2
| | | | The huge prefix was removed because we are already under Shiboken namespace.
* Class Shiboken::ParentInfo doesn't need to be exported.Hugo Lima2010-03-302-16/+18
| | | | It was moved to basewrapper private header.
* Add support for multiple inheritance involving more than one C++ object.Hugo Lima2010-03-306-38/+295
|
* Removed "Shibo" prefix from ShiboParent and ShiboChildrenList.Hugo Lima2010-03-303-11/+11
| | | | We are under Shiboken namespace, so there is no need for yet another prefix.
* Move all python2.5 compatibility code to a separate header.Hugo Lima2010-03-302-48/+89
|
* Use PyTuple_GET_SIZE instead of PyTuple_GetSize.Hugo Lima2010-03-301-1/+1
|
* SbkBaseWrapper_New gets a non-const void pointer instead of a const one.Hugo Lima2010-03-303-4/+4
| | | | The motivation is simple, we will change this pointer a lot, so it must not be const.
* Use a non-template function for Python object deallocation.Hugo Lima2010-03-302-13/+29
|
* On setParent, when the child is a sequence, do not always call setParent for ↵Hugo Lima2010-03-301-2/+9
| | | | | | all elements. Only do it if the sequence is a native Python sequence.