Gustavo J. A. M. Carneiro
|
4e99f3ddf2
|
Implement some C++ class as return value reverse wrappers.
|
2007-06-16 19:59:23 +01:00 |
|
Gustavo J. A. M. Carneiro
|
f4c2cbfe41
|
Add -fno-strict-aliasing when compiling with gcc (required by Python).
|
2007-06-16 18:25:44 +01:00 |
|
Gustavo J. A. M. Carneiro
|
990ac8f6f6
|
Get static attribute setters finally working.
|
2007-06-16 18:20:44 +01:00 |
|
Gustavo J. A. M. Carneiro
|
4f28e14a1b
|
implement C++ class static attribute through a metaclass rather than descriptor; unfortunately static attribute setters are still not working for some reason.
|
2007-06-16 17:38:42 +01:00 |
|
Gustavo J. A. M. Carneiro
|
01ce730a43
|
Run examples/footest.py on waf check.
|
2007-06-11 19:32:33 +01:00 |
|
Gustavo J. A. M. Carneiro
|
094d666b28
|
Add code for static attribute setters, which unfortunately doesn't work due to Python limitations :-(
|
2007-06-10 23:43:30 +01:00 |
|
Gustavo J. A. M. Carneiro
|
bdbd7926dc
|
Generate setters for C++ class instance attributes.
|
2007-06-10 19:22:51 +01:00 |
|
Gustavo J. A. M. Carneiro
|
f5d218921a
|
C++ code reorganization, split into different files to make cppclass.py smaller.
|
2007-06-10 18:47:34 +01:00 |
|
Gustavo J. A. M. Carneiro
|
108ff9e583
|
ReturnValue s/retval/self.value/ fixes
|
2007-06-10 16:39:39 +01:00 |
|
Gustavo J. A. M. Carneiro
|
7f54d80279
|
Test all combinations of caller_owns_return and transfer_ownership.
|
2007-06-10 16:29:33 +01:00 |
|
Gustavo J. A. M. Carneiro
|
1afab01a94
|
tiny bug fix
|
2007-06-10 16:25:50 +01:00 |
|
Gustavo J. A. M. Carneiro
|
bf1d3ada64
|
improve tests to cover c++ class type handlers
|
2007-06-10 16:13:24 +01:00 |
|
Gustavo J. A. M. Carneiro
|
648cebc03b
|
Use the new ReturnValue.value attribute, instead of #define retval ... #undef hacks.
|
2007-06-10 15:06:49 +01:00 |
|
Gustavo J. A. M. Carneiro
|
98d2ac9a10
|
Define a 'value' attribute in ReturnValue objects, and use it instead of the
hardcoded 'retval' variable name.
|
2007-06-10 15:05:44 +01:00 |
|
Gustavo J. A. M. Carneiro
|
96989183b8
|
Fix Parameter implementations to use self.value instead of self.name where appropriate.
|
2007-06-10 14:00:47 +01:00 |
|
Gustavo J. A. M. Carneiro
|
11799bcf47
|
Fix missing self.declarations in CodeBlock.
|
2007-06-10 12:32:09 +01:00 |
|
Gustavo J. A. M. Carneiro
|
9dbfcfe7a1
|
Simplify set/get_value/lvalue. It's becoming way too complicated, and not possible to guarantee correct code. Better just to have a simple 'value' attribute for now, defaulting to the parameter name.
|
2007-06-10 12:28:46 +01:00 |
|
Gustavo J. A. M. Carneiro
|
0e2de63d05
|
Make CodeBlock have an associated DeclarationsScope, so that you can call declare_variable on it. Add [gs]et_l?value() methods to Parameter, to dissociate the value/lvalue of a parameter from its name. Actual type handlers still need to be fixed, though.
|
2007-06-09 22:18:21 +01:00 |
|
Gustavo J. A. M. Carneiro
|
f5bd95cde5
|
Add CodeBlock.indent/unindent methods (simple proxies to the code sink methods).
|
2007-06-09 14:45:14 +01:00 |
|
Gustavo J. A. M. Carneiro
|
7e856b3893
|
Update NEWS for new release.
0.4.0
|
2007-06-07 19:23:35 +01:00 |
|
Gustavo J. A. M. Carneiro
|
2db5dee8ef
|
Don't delete self->obj in the destructor if no usable constructor exists; prevents compilation error with singleton classes and private destructor.
|
2007-06-07 19:17:05 +01:00 |
|
Gustavo J. A. M. Carneiro
|
2d1a481594
|
More efficient attribute getters.
|
2007-06-07 18:45:16 +01:00 |
|
Gustavo J. A. M. Carneiro
|
588f2fd885
|
Refactor class registration and generation; fix C++ static attribute getter to make it work from the class itself.
|
2007-06-07 18:14:33 +01:00 |
|
Gustavo J. A. M. Carneiro
|
f8aed4cece
|
API for wrapping C++ instance and static attributes; implement getter for instance attribute; getter for static attributes not fully working yet. None of the setters implemented.
|
2007-06-07 17:14:07 +01:00 |
|
Gustavo J. A. M. Carneiro
|
fc2a6c258d
|
Fix -Wall -Wextra compiler warnings.
|
2007-06-07 12:34:17 +01:00 |
|
Gustavo J. A. M. Carneiro
|
7388b2d56d
|
fix compiler warnings
|
2007-06-07 12:00:17 +01:00 |
|
Gustavo J. A. M. Carneiro
|
b211d8ec0f
|
Enable more compiler warnings.
|
2007-06-07 11:55:41 +01:00 |
|
Gustavo J. A. M. Carneiro
|
a3639efe18
|
win32 build fixes
|
2007-06-07 11:38:45 +01:00 |
|
Gustavo J. A. M. Carneiro
|
f57af0bd74
|
Make sure the method flags are correct even when parameters added in write_method_call.
|
2007-06-06 18:02:51 +01:00 |
|
Gustavo J. A. M. Carneiro
|
4dc92b7874
|
Small refactoring of ForwardWrapperBase.generate_body to allow the generate_call() virtual method to add new parse parameters that were not previously declared.
|
2007-06-06 17:37:57 +01:00 |
|
Gustavo J. A. M. Carneiro
|
863b69908b
|
add assertion to detect when one constructor parameter is missing a name; add option to force forward wrappers to use PyArg_ParseTuple or PyArg_ParseTupleAndKeywords
|
2007-06-06 14:20:21 +01:00 |
|
Gustavo J. A. M. Carneiro
|
1991587af6
|
missing param name in double type handler
|
2007-06-06 14:19:06 +01:00 |
|
Gustavo J. A. M. Carneiro
|
82c77ee63e
|
Add support for C++ static methods.
|
2007-06-05 19:14:26 +01:00 |
|
Gustavo J. A. M. Carneiro
|
71104f0a34
|
Post-fix to 'add option to prefix global declarations with a name'.
|
2007-06-05 14:20:48 +01:00 |
|
Gustavo J. A. M. Carneiro
|
d04b6c7a0d
|
Add option to prefix global declarations with a name.
|
2007-06-05 14:15:00 +01:00 |
|
Gustavo J. A. M. Carneiro
|
972e18f122
|
Fix the type transformations API, implement transformations for C++ class pointer types, and add example.
|
2007-06-04 22:13:10 +01:00 |
|
Gustavo J. A. M. Carneiro
|
b39dbd9d46
|
Add basic infrastructure for type transformations
|
2007-06-04 18:19:27 +01:00 |
|
Gustavo J. A. M. Carneiro
|
6d131c4598
|
API change, to prepare for type handler transformations: Parameter('ctype', ...) becomes Parameter.new('ctype', ...), idem for ReturnValue.
|
2007-06-04 16:41:33 +01:00 |
|
Gustavo J. A. M. Carneiro
|
e6949fb84e
|
Add missing destructor in SomeObject; fixes all memory leaks reported by valgrind.
|
2007-06-04 14:36:13 +01:00 |
|
Gustavo J. A. M. Carneiro
|
ab05a13e92
|
fix class refcount impl.
|
2007-06-04 14:05:26 +01:00 |
|
Gustavo J. A. M. Carneiro
|
3a9255c9a7
|
safer tp_dealloc
|
2007-06-04 14:05:01 +01:00 |
|
Gustavo J. A. M. Carneiro
|
b13692cdbb
|
Fix Python 2.6 DeprecationWarning: object.__new__() takes no parameters.
|
2007-06-04 13:50:42 +01:00 |
|
Gustavo J. A. M. Carneiro
|
e34f4820b0
|
Add support for refence counted C++ classes.
|
2007-06-04 13:47:43 +01:00 |
|
Gustavo J. A. M. Carneiro
|
56958cd448
|
Add a new pybindgen.write_preamble() API, to write the #include <Python.h> and some other stuff needed to compile with Python < 2.5.
0.3.0
|
2007-06-03 23:09:11 +01:00 |
|
Gustavo J. A. M. Carneiro
|
eca95f54b4
|
Add a NEWS file, to summarise the project progress
|
2007-06-03 22:37:08 +01:00 |
|
Gustavo J. A. M. Carneiro
|
9275eb01ef
|
make the void return type not return an explicit Py_None, to prevent a bug hwere None is being returned as first element of tuple when there are out/inout parameters
|
2007-06-03 22:31:34 +01:00 |
|
Gustavo J. A. M. Carneiro
|
65cc53d115
|
implement pass class object by reference (one test case failing atm due to another bug)
|
2007-06-03 22:15:43 +01:00 |
|
Gustavo J. A. M. Carneiro
|
774d93d7af
|
workaround pylint stupidity
|
2007-06-03 19:28:59 +01:00 |
|
Gustavo J. A. M. Carneiro
|
d29767462a
|
add some unit tests for the built example
|
2007-06-03 19:14:59 +01:00 |
|
Gustavo J. A. M. Carneiro
|
7cecf0473b
|
fix bug: should not call PyArg_ParseTuple[AndKeywords] when there are no parameters
|
2007-06-03 19:03:34 +01:00 |
|