aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add std::ostream& operator<<(std::ostream& out, PyObject* obj) to create ↵Hugo Lima2010-03-301-0/+13
| | | | better and easier debug messages.
* Fix setParent function when the child is a sequence object.Hugo Lima2010-03-301-2/+3
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
* Add SOVERSION to libshibokenHugo Lima2010-03-241-0/+1
| | | | | Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org>
* Shiboken generator and libshiboken now share the same version number.sb-0.2.0Hugo Lima2010-03-231-3/+3
| | | | | | | Version bumped to 0.2.0. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org>
* Remove duplicated definition of libshiboken_VERSION.Hugo Lima2010-03-231-1/+0
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org>
* Fixes Converter<void*>::toPython method.Marcelo Lira2010-03-231-0/+2
| | | | | | | | The void* converter transforms a C++ NULL pointer in a Python None. An unit test for this case was added as well. Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewed by Bruno Araújo <bruno.araujo@openbossa.org>
* Converter<T*>::toCpp specialization now converts None to NULL pointer first.Marcelo Lira2010-03-221-1/+3
| | | | | | With the recent changes to Converter's behaviour, in particular to isConvertible method, Converter<T*>::toCpp must deal with Py_None values first.
* Merge branch 'operator'Lauro Neto2010-03-221-1/+1
|\
| * Fix SbkBaseWrapper_Check castLauro Neto2010-03-221-1/+1
| |
* | Fix pkgconfig libdir variable with lib64/ or lib32/ directories.Hugo Lima2010-03-221-2/+2
|/ | | | | Reviewer: Bruno Araújo <bruno.araujo@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Speed up conversions of lists from python to c++ if the list classHugo Lima2010-03-181-0/+3
| | | | is binded by Shiboken (like QStringList).
* Added ObjectTypeReferenceConverter, so object-types can be used as references.Hugo Lima2010-03-181-0/+13
|
* Sequence conversion are made ONLY for python sequences.Hugo Lima2010-03-181-3/+7
| | | | | | Not for binded types implementing sequence protocol, otherwise this will cause a mess like QBitArray being accepted by someone expecting a QStringList.
* Added Shiboken::isShibokenType function to check is a object have a typeHugo Lima2010-03-181-0/+7
| | | | generated by Shiboken generator.
* Just try to reduce a bit the noise in source code caused by the use of ↵Hugo Lima2010-03-181-4/+2
| | | | templates.
* Add a default implementation for SbkType, so not binded types will return a ↵Hugo Lima2010-03-181-1/+4
| | | | | | | null pointer. Pro: Will be possible to write template functions to handle sequence conversions. Cons: We will not have an unresolved symbol when an error occur on generator.
* Move the checks to verify if an object is invalid to ↵Hugo Lima2010-03-181-2/+5
| | | | Shiboken::cppObjectIsInvalid function.
* Renamed templates used for conversions of containers.Hugo Lima2010-03-181-5/+5
|
* Changed the semantic of Converter<T>::isConvertible method.Hugo Lima2010-03-181-21/+70
| | | | | | | | | The new semantic is: Returns true when the type can be converted to T OR the type is T. The old semantic was: Returns true when the type can be converted to T and false if the type is T, however int and float converters did not follow this rule, because they used PyNumber_Check on their isConvertible implementation.
* Do not incref and decref the python dict reference on python to c++ conversions.Hugo Lima2010-03-181-5/+0
|
* Fix reference leak in StdPair converter.Hugo Lima2010-03-181-2/+2
|
* Merge branch 'master' into extensibleconversionsMarcelo Lira2010-03-043-23/+36
|\ | | | | | | | | | | | | | | | | Conflicts: cppgenerator.cpp libshiboken/basewrapper.cpp Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
| * Merge remote branch 'hugopl/typediscovery2'Hugo Lima2010-03-033-23/+36
| |\ | | | | | | | | | | | | Conflicts: libshiboken/conversions.h
| | * Init tb_base of SbkBaseWrapperType_Type on struct declaration instead ofHugo Lima2010-03-031-3/+1
| | | | | | | | | | | | | | | | | | | | | on initShiboken function. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org>
| | * Use polymorphic-id-expression to discover the correct type of a C++ object.Hugo Lima2010-03-023-20/+35
| | |
* | | Adds support for extensible converters for value type classes.Marcelo Lira2010-03-021-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Value type classes without implicit conversions use the default implementation provided by ValueTypeConverter. This commit updates ValueTypeConverter to check for extended conversions, since even a class without implicit conversions in one module could get some conversion operators in another. CppGenerator now writes 'isConvertible' calls to all object and value types checks leaving the door open to extended conversions.
* | | Wrapper meta type can now point to converter extensions.Marcelo Lira2010-03-022-1/+12
|/ / | | | | | | | | | | | | The SbkBaseWrapperType structure now stores pointers to functions that extend the type Converter methods 'isConvertible' and 'toCpp'. This is used when a module is extended by another module that defines a conversion operator for a class in the first module.
* / Refactored and documented base Converters.Marcelo Lira2010-03-021-59/+68
|/ | | | | | | | | | | | To improve legibility and understanding ConverterBase<T> was renamed to ValueTypeConverter<T>, and ConverterBase<T*> specialization is now an independent base converter ObjectTypeConverter<T>. Converter_CppEnum was renamed to EnumConverter. The HeaderGenerator and custom converters for the test bindings were updated accordingly. Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Rename SbkCreateWrapper to createWrapper, to follow our fuction naming ↵Hugo Lima2010-02-261-4/+4
| | | | | | conventions. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Do not get the pointer of SbkType<T> function, so the compiler doesn't needHugo Lima2010-02-262-7/+7
| | | | | | to implement this function (inlining it when needed). This safe amazings 8KiB from QtGui :-)