Commit Graph
130 Commits
Author SHA1 Message Date
Gustavo J. A. M. Carneiro 477a2c66d5 Avoid 'unused parameter' warnings in Functions 2007-08-23 18:28:00 +01:00
Gustavo J. A. M. Carneiro 91845a99f5 Make the test_subclass_with_virtual_transfer_ptr a bit more comprehensive. 2007-08-23 18:17:28 +01:00
Gustavo J. A. M. Carneiro 3bd8444f3a Fix problems with invoking virtual methods after transfer of ownership to a C++ library. 2007-08-23 18:12:11 +01:00
Gustavo J. A. M. Carneiro dde8a99c29 Check that self->obj isn't NULL before probing its typeid in tp_traverse 2007-08-23 17:38:17 +01:00
Gustavo J. A. M. Carneiro f00dafb32b Add some more tests to check garbage collection (not only python wrapper but also C++ object) 2007-08-22 21:24:04 +01:00
Gustavo J. A. M. Carneiro d98e23078b Fix bad code indentation 2007-08-22 21:08:26 +01:00
Gustavo J. A. M. Carneiro e59f03261a Fix reference leak in user subclass 2007-08-22 20:02:47 +01:00
Gustavo J. A. M. Carneiro 536864b8bd Check that programmer doesn't add virtual methods to a class with subclassing disabled. 2007-08-22 19:39:00 +01:00
Gustavo J. A. M. Carneiro 0bf12ce266 Initial take on C++ virtual method support, with a python reference leak left unresolved 2007-08-22 19:22:18 +01:00
Gustavo J. A. M. Carneiro b969b9af80 break some too long lines 2007-08-21 12:20:42 +01:00
Gustavo J. A. M. Carneiro 152092b254 Add a garbage collection test 2007-08-19 17:52:12 +01:00
Gustavo J. A. M. Carneiro 7cd0467823 Implement allow_subclassing; fix PYBINDGEN_UNUSED usage. 2007-08-19 16:35:28 +01:00
Gustavo J. A. M. Carneiro e6cd9187b7 Add a allow_subclassing option to C++ classes, although it is not yet implemented. 2007-08-19 13:19:32 +01:00
Gustavo J. A. M. Carneiro ad42012956 fix missing compiler error message 2007-08-18 17:27:13 +01:00
Gustavo J. A. M. Carneiro bc69e7e825 Add a test case for the hidden subclass pointe return problem. 2007-08-18 15:27:37 +01:00
Gustavo J. A. M. Carneiro 885a4090f5 Fix bad placement of PYBINDGEN_UNUSED which doesn't compile with gcc 2.95 2007-08-18 14:45:45 +01:00
Gustavo J. A. M. Carneiro dcec55fb80 Write a dedicated pybindgen::TypeMap class to contain all the python-wrapper-from-typeinfo logic, and make it work for compilers without cxxabi.h 2007-08-18 14:44:42 +01:00
Gustavo J. A. M. Carneiro 871c5af470 Get doctests from pybindgen.module 2007-08-18 13:47:42 +01:00
Gustavo J. A. M. Carneiro b7e78713eb Add the API Module.declare_one_time_definition() 2007-08-18 13:47:07 +01:00
Gustavo J. A. M. Carneiro c74e5632dd Insert newlines between overloaded wrappers 2007-08-18 12:38:24 +01:00
Gustavo J. A. M. Carneiro dc44fb779b Fix CodeSink.writeln() inserting now two blank lines instead of one. 2007-08-18 12:35:34 +01:00
Gustavo J. A. M. Carneiro 65162d8d34 Fix a CodeSink bug causing empty lines to be discarded 2007-08-18 12:18:57 +01:00
Gustavo J. A. M. Carneiro c34d030715 fix waf dist to update version 0.6.0 2007-08-17 19:15:29 +01:00
Gustavo J. A. M. Carneiro 2448a9b6eb Update NEWS 2007-08-17 18:28:32 +01:00
Gustavo J. A. M. Carneiro e0cebb1ba7 Don't try to get version from bzr until after we know we must write a version.py file. 2007-08-17 18:26:52 +01:00
Gustavo J. A. M. Carneiro a1d1b04849 When performing C++ type narrowing, use abi::__si_class_type_info to search up in the single inheritance tree until a match is found. This allows type narrowing to still work as much as possible even in the presence of unregistered classes. 2007-08-17 18:16:46 +01:00
Gustavo J. A. M. Carneiro 50f404047b Move the generated typeid map variable to the top of the module, to allow early wrappers to refer to it. 2007-08-17 17:28:09 +01:00
Gustavo J. A. M. Carneiro 0c2708ddea Add support for calling methods with explicit template parameters. 2007-08-17 17:16:43 +01:00
Gustavo J. A. M. Carneiro 3e059a48e5 Implement the automatic-c++-return-type-narrowing blueprint. 2007-08-16 23:22:36 +01:00
Gustavo J. A. M. Carneiro 42e1ce5a6b Add Module.add_include API and Module.header member (codesink) 2007-08-16 23:20:41 +01:00
Gustavo J. A. M. Carneiro 411811200b Add support for overloaded C++ class constructors 2007-08-13 19:07:35 +01:00
Gustavo J. A. M. Carneiro 32bc7456a8 Add support for overloaded C++ class methods. 2007-08-13 17:57:47 +01:00
Gustavo J. A. M. Carneiro 9c63aa2654 Refactor OverloadedFunction to pave way to reusing the same code for overloading also methods and constructors 2007-08-13 15:52:50 +01:00
Gustavo J. A. M. Carneiro 4fab186d96 Add a bunch of comments to OverloadedFunction.generate, since that code was getting difficult to read. 2007-08-13 15:22:19 +01:00
Gustavo J. A. M. Carneiro 6a231d85eb Better handling of version.py 2007-08-13 14:46:36 +01:00
Gustavo J. A. M. Carneiro d7f4039eb2 Much improved parameter parsing error reporting of overloaded functions. 2007-06-18 22:11:58 +01:00
Gustavo J. A. M. Carneiro 7d9f987e48 Support overloaded functions. 2007-06-18 11:44:26 +01:00
Gustavo J. A. M. Carneiro 5e34f977fe Refactoring. 2007-06-17 13:32:59 +01:00
Gustavo J. A. M. Carneiro b5652aedb7 Add my other email address. 0.5.0 2007-06-16 20:58:00 +01:00
Gustavo J. A. M. Carneiro 0eaea51ee0 Update NEWS. 2007-06-16 20:57:18 +01:00
Gustavo J. A. M. Carneiro 363c031649 Support 'const' C++ attributes. 2007-06-16 20:38:49 +01:00
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