Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Shiboken::cppObjectIsInvalid(PyObject*) now returns false when the argument ↵ | Marcelo Lira | 2010-06-15 | 1 | -1/+1 |
| | | | | | | is NULL. Because NULL objects aren't invalid Python wrappers. | ||||
* | Fixed checkType of int and floating point converters. | Hugo Parente Lima | 2010-06-10 | 1 | -2/+2 |
| | | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org> | ||||
* | Automatically register all primitive types on TypeResover. | Hugo Parente Lima | 2010-06-10 | 3 | -15/+15 |
| | | | | | Reviewer: Renato Araújo <renato.araujo@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> | ||||
* | Added Converter<T>::checkType. | Hugo Parente Lima | 2010-06-09 | 1 | -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 Filho | 2010-05-18 | 3 | -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 Filho | 2010-05-10 | 2 | -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 Lima | 2010-05-04 | 1 | -1/+2 |
| | |||||
* | Update shiboken documentation. | Luciano Wolf | 2010-05-03 | 1 | -1/+0 |
| | |||||
* | Remove export macros from inlined classes. | Thomas Berg | 2010-04-12 | 2 | -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 Berg | 2010-04-12 | 1 | -0/+1 |
| | |||||
* | Remove warnings about "deprecated conversion from string constant to 'char*'". | Hugo Parente Lima | 2010-04-12 | 1 | -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 Lima | 2010-04-06 | 1 | -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 Lima | 2010-04-05 | 3 | -0/+59 |
| | | | | Shiboken enum. | ||||
* | Added flag is_user_type to identify types created by the user which inherits ↵ | Hugo Lima | 2010-04-05 | 2 | -3/+14 |
| | | | | | | binded types from binded types. | ||||
* | Do not install all headers, just the necessary ones. | Hugo Lima | 2010-03-30 | 1 | -4/+15 |
| | |||||
* | SbkBaseWrapper_Dealloc_PrivateDtor renamed to deallocWrapperWithPrivateDtor. | Hugo Lima | 2010-03-30 | 2 | -2/+2 |
| | |||||
* | SbkBaseWrapper_clearReferences not exported anymore. | Hugo Lima | 2010-03-30 | 3 | -10/+10 |
| | | | | So it was moved to basewrapper private header. | ||||
* | SbkBaseWrapper_keepReference renamed to keepReference. | Hugo Lima | 2010-03-30 | 2 | -2/+2 |
| | | | | The huge prefix was removed because we are already under Shiboken namespace. | ||||
* | Class Shiboken::ParentInfo doesn't need to be exported. | Hugo Lima | 2010-03-30 | 2 | -16/+18 |
| | | | | It was moved to basewrapper private header. | ||||
* | Add support for multiple inheritance involving more than one C++ object. | Hugo Lima | 2010-03-30 | 6 | -38/+295 |
| | |||||
* | Removed "Shibo" prefix from ShiboParent and ShiboChildrenList. | Hugo Lima | 2010-03-30 | 3 | -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 Lima | 2010-03-30 | 2 | -48/+89 |
| | |||||
* | Use PyTuple_GET_SIZE instead of PyTuple_GetSize. | Hugo Lima | 2010-03-30 | 1 | -1/+1 |
| | |||||
* | SbkBaseWrapper_New gets a non-const void pointer instead of a const one. | Hugo Lima | 2010-03-30 | 3 | -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 Lima | 2010-03-30 | 2 | -13/+29 |
| | |||||
* | On setParent, when the child is a sequence, do not always call setParent for ↵ | Hugo Lima | 2010-03-30 | 1 | -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 Lima | 2010-03-30 | 1 | -0/+13 |
| | | | | better and easier debug messages. | ||||
* | Fix setParent function when the child is a sequence object. | Hugo Lima | 2010-03-30 | 1 | -2/+3 |
| | | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> | ||||
* | Add SOVERSION to libshiboken | Hugo Lima | 2010-03-24 | 1 | -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.0 | Hugo Lima | 2010-03-23 | 1 | -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 Lima | 2010-03-23 | 1 | -1/+0 |
| | | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org> | ||||
* | Fixes Converter<void*>::toPython method. | Marcelo Lira | 2010-03-23 | 1 | -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 Lira | 2010-03-22 | 1 | -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 Neto | 2010-03-22 | 1 | -1/+1 |
|\ | |||||
| * | Fix SbkBaseWrapper_Check cast | Lauro Neto | 2010-03-22 | 1 | -1/+1 |
| | | |||||
* | | Fix pkgconfig libdir variable with lib64/ or lib32/ directories. | Hugo Lima | 2010-03-22 | 1 | -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 class | Hugo Lima | 2010-03-18 | 1 | -0/+3 |
| | | | | is binded by Shiboken (like QStringList). | ||||
* | Added ObjectTypeReferenceConverter, so object-types can be used as references. | Hugo Lima | 2010-03-18 | 1 | -0/+13 |
| | |||||
* | Sequence conversion are made ONLY for python sequences. | Hugo Lima | 2010-03-18 | 1 | -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 type | Hugo Lima | 2010-03-18 | 1 | -0/+7 |
| | | | | generated by Shiboken generator. | ||||
* | Just try to reduce a bit the noise in source code caused by the use of ↵ | Hugo Lima | 2010-03-18 | 1 | -4/+2 |
| | | | | templates. | ||||
* | Add a default implementation for SbkType, so not binded types will return a ↵ | Hugo Lima | 2010-03-18 | 1 | -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 Lima | 2010-03-18 | 1 | -2/+5 |
| | | | | Shiboken::cppObjectIsInvalid function. | ||||
* | Renamed templates used for conversions of containers. | Hugo Lima | 2010-03-18 | 1 | -5/+5 |
| | |||||
* | Changed the semantic of Converter<T>::isConvertible method. | Hugo Lima | 2010-03-18 | 1 | -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 Lima | 2010-03-18 | 1 | -5/+0 |
| | |||||
* | Fix reference leak in StdPair converter. | Hugo Lima | 2010-03-18 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' into extensibleconversions | Marcelo Lira | 2010-03-04 | 3 | -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 Lima | 2010-03-03 | 3 | -23/+36 |
| |\ | | | | | | | | | | | | | Conflicts: libshiboken/conversions.h | ||||
| | * | Init tb_base of SbkBaseWrapperType_Type on struct declaration instead of | Hugo Lima | 2010-03-03 | 1 | -3/+1 |
| | | | | | | | | | | | | | | | | | | | | | on initShiboken function. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org> |