| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Reviewer: Renato Araújo <renato.araujo@openbossa.org>
|
| |
|
|
|
|
|
| |
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
|
| |
|
| |
|
|
|
|
|
| |
The method now checks native code injections instead of only target
language code.
|
|
|
|
|
|
|
| |
This method tries to build an AbstractMetaType from a string, it is
used by guessCPythonCheckFunction to better handle type replacements
identifying types already known by the type database for the currently
generated, instead of treating said replacements as mere blobs.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
ShibokenGenerator got the methods:
* QString extendedIsConvertibleFunctionName(TypeEntry*)
Returns the name of an extended "isConvertible" function.
* QString extendedToCppFunctionName(TypeEntry*)
Returns the name of an extended "toCpp" function.
|
|
|
|
|
|
| |
It returns all types from a previous module that could be generated
by a conversion operator defined in the current module, as well as
all the possible arguments for the conversion.
|
|
|
|
|
|
|
| |
Two methods with references to object type and value type pointers
were added to BlackBox test class just to check the compilation.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
The macros for casting a wrapper C++ void pointer to a specific
C++ pointer are no longer generated, converters are used instead.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
| |
The new method returns a flat list of all the given class' ancestors.
|
|
|
|
|
|
| |
AbstractMetaType.
This is needed by hash function writer.
|
| |
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
| |
PyNumber_Check or a more specific type check function.
- Promote bool type as a specialization of int, as we do with float.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
| |
It checks if an AbstractMetaType represents a C++ pair container.
Also updated code to make use of the new method.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
|
|
|
|
|
| |
It checks if an AbstractMetaType represents a C string.
Also updated code to make use of the new method.
|
|
|
|
|
|
|
| |
This will increase the binding size, so there's an option to disable
verbose error messages. "--disable-verbose-error-messages"
Reviewed by Renato Araújo <renato.filho@openbossa.org> and Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
| |
To access Sbk*Type variables from other modules, you need to use the array provided via CObjects.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
| |
ShibokenGenerator::needsReferenceCountControl checks the object
and all its ancestry for the need to support reference counting
control of other objects pointed by the present class.
|
|
|
|
|
|
| |
The new expressively named methods hasMethodsWithReferenceCountModifications
and needsReferenceCountControl returns boolean values to help generation
of code for reference counting support.
|
|
|
|
|
|
|
| |
Added the following self evident methods to ShibokenGenerator:
* QString cpythonGettersSettersDefinitionName(const AbstractMetaClass*);
* QString cpythonGetterFunctionName(const AbstractMetaField*);
* QString cpythonSetterFunctionName(const AbstractMetaField*);
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
| |
Argument removal and type modification no longer affects the generation
of virtual method signatures in the binding code.
|
|
|
|
| |
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
|
| |
class type, and %CPPSELF. by "<Class Type>::"
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org> and Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
|
|
| |
- Decref references returned by the python implemantation.
- Print error, if it happen on python code of an virtual function called from C++.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
Write an comment on start and ending of code injections.
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
| |
The function now recognises uses like "... new %TYPE(..." on code
injections as calls to the C++ function.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
If the method returns a pointer and there are no policies for the return type, the returned value is
considered child of the current object (self).
Reviewed by Renato Araújo <renato.filho@openbossa.org>
|
|
|
|
|
|
| |
C++ and have an
implementation in Python.
|
|
|
|
| |
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
generated.
|
|
|
|
|
|
| |
A type is convertible to char if it is a number or a 1-sized char.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
aliased type instead of just the first one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These are the methods added to ShibokenGenerator:
* classNeedsGetattroFunction(metaClass)
Returns true if a tp_getattro function should be generated for the
given class. At the moment the only criteria is that the class
has an overload with both static and non-static versions of a method.
* getMethodsWithBothStaticAndNonStaticMethods(metaClass)
Returns a list of methods of the given class where each one is part
of a different overload with both static and non-static method.
* cpythonMethodDefinitionName(metaFunc)
Returns the name of a method definition (a single method, i.e.
a PyMethodDef struct) for a given method.
* cpythonGetattroFunctionName(metaClass)
Returns the name of a 'tp_getattro' method for a given class.
|
|
|
|
| |
Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
| |
Now the variable is replaced by a C++ return variable instead of
getting the value directly from the PyObject.
|
|
|
|
|
|
|
| |
It checks if a meta type should be dereferenced by the Python method
wrapper passing it to C++.
ShibokenGenerator::shouldDereferenceArgumentPointer now calls the new
method.
|
|
|
|
|
|
|
|
|
|
|
| |
The previous behaviour was to pass the result, if any, straight to
the to-Python-converter method. Separating the C++ from the Python
part allows us to release the thread lock when calling C++ and taking
it back before calling the converter filled with Python calls.
Also renamed "retvalVariableName()" to the more meaninful name
"pythonReturnVariableName()" and added "cppReturnVariableName()".
Also updated the type system variable replacement to recognize "%0" as
"cppReturnVariableName()".
|
| |
|
|
|
|
|
|
| |
bindinded method names.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
| |
parameter.
|
|
|
|
|
|
|
| |
The C++ object instanciation was made in tp_init function instead of tp_new function. Now tp_new just
create a useless python object which will be filled in the tp_init function.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
|