Commit Graph
78 Commits
Author SHA1 Message Date
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
Gustavo J. A. M. Carneiro ccc2564d36 more c++ class as parameter/return handling 2007-06-03 18:09:59 +01:00
Gustavo J. A. M. Carneiro 96578567b9 C++ class constructor inheritance fixes. 2007-06-03 16:18:09 +01:00
Gustavo J. A. M. Carneiro a6d307ce2b complete the refactoring in the last commit 2007-06-03 15:35:00 +01:00
Gustavo J. A. M. Carneiro 1bfa64cf63 Refactor class methods to make them independent from the class until generation time. 2007-06-03 15:07:18 +01:00
Gustavo J. A. M. Carneiro 6df424d054 fix the 'extra version' number; it should be the last revision, not the revision corresponding to the last tag. 2007-06-03 14:43:41 +01:00
Gustavo J. A. M. Carneiro f738bceced c++ subclassing; c++ class forward parameter pass-by-value 2007-06-03 14:41:14 +01:00
Gustavo J. A. M. Carneiro eebacb19cb Add example interfaces to test a bunch of new stuff (c++ subclassing, class parameter handling) 2007-06-03 14:38:40 +01:00
Gustavo J. A. M. Carneiro df1dfd9f6d comment out debug print 2007-06-02 22:22:02 +01:00
Gustavo J. A. M. Carneiro d8dc454d95 cache bzr version information 2007-06-02 22:21:23 +01:00
Gustavo J. A. M. Carneiro db5cd27a5e don't install the example python module 2007-06-02 17:42:38 +01:00
Gustavo J. A. M. Carneiro bacec35be9 Add a README file 0.2.0 2007-06-02 17:27:53 +01:00