| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
for it.
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
|
|
|
|
| |
Shiboken enum.
|
|
|
|
|
|
| |
binded types
from binded types.
|
| |
|
| |
|
|
|
|
| |
So it was moved to basewrapper private header.
|
|
|
|
| |
The huge prefix was removed because we are already under Shiboken namespace.
|
|
|
|
| |
It was moved to basewrapper private header.
|
| |
|
|
|
|
| |
We are under Shiboken namespace, so there is no need for yet another prefix.
|
| |
|
| |
|
|
|
|
| |
The motivation is simple, we will change this pointer a lot, so it must not be const.
|
| |
|
|
|
|
|
|
| |
all elements.
Only do it if the sequence is a native Python sequence.
|
|
|
|
| |
better and easier debug messages.
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
|
|
|
|
|
| |
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org>
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
|
|
| |
Version bumped to 0.2.0.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
| |
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
With the recent changes to Converter's behaviour, in particular to
isConvertible method, Converter<T*>::toCpp must deal with Py_None
values first.
|
|\ |
|
| | |
|
|/
|
|
|
| |
Reviewer: Bruno Araújo <bruno.araujo@openbossa.org>
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
is binded by Shiboken (like QStringList).
|
| |
|
|
|
|
|
|
| |
Not for binded types implementing sequence protocol, otherwise this will
cause a mess like QBitArray being accepted by someone expecting a
QStringList.
|
|
|
|
| |
generated by Shiboken generator.
|
|
|
|
| |
templates.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Shiboken::cppObjectIsInvalid function.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
cppgenerator.cpp
libshiboken/basewrapper.cpp
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
|
| |\
| | |
| | |
| | |
| | | |
Conflicts:
libshiboken/conversions.h
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
on initShiboken function.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|/ /
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
conventions.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
| |
to implement this function (inlining it when needed).
This safe amazings 8KiB from QtGui :-)
|