Commit Graph

69 Commits

Author SHA1 Message Date
Gustavo J. A. M. Carneiro 40e90b93c2 Check for stdint.h; if not found use Paul Hsieh's pstdint.h. 2010-02-16 15:40:49 +00:00
Gustavo J. A. M. Carneiro 39db96d5b2 Add missing 'throw' modifiers as needed to method signatures in helper classes 2010-02-14 11:57:12 +00:00
Gustavo J. A. M. Carneiro 56475d27f8 Experimental support for multiple-inheritance. GccXml scanning part not done yet. 2010-01-30 22:01:22 +00:00
Gustavo J. A. M. Carneiro 121c1898d0 Add annotation support for instance attributes, and test pointer instance attribute. 2010-01-20 18:15:50 +00:00
Gustavo J. A. M. Carneiro 225436e711 Wrap enum pointer params 2010-01-19 11:00:21 +00:00
Gustavo J. A. M. Carneiro cdbc237f3a Wrap non-virtual protected methods as well 2010-01-17 18:01:42 +00:00
Gustavo J. A. M. Carneiro fdf3481ef3 Add return_internal_reference option support, similar to boost::python. 2009-12-02 15:02:38 +00:00
Gustavo J. A. M. Carneiro bd0e3c329f Implement reference_existing_object also for Class& return values 2009-12-01 15:12:59 +00:00
Gustavo J. A. M. Carneiro b1c86c27d9 fix memleak in test code 2009-11-21 22:11:37 +00:00
Gustavo J. A. M. Carneiro 2c6532cd65 Now the 'custodian' option only manages the lifecycle of the python wrapper, not the contained C++ object. To manage the C++ object, now 'transfer_ownership', 'caller_owns_return', or the new 'reference_existing_object', must be given in addition to 'custodian'. 2009-11-21 21:49:47 +00:00
Gustavo J. A. M. Carneiro 3bd577d87d Lots of custodian=xxx bug fixes 2009-11-03 18:30:18 +00:00
Gustavo J. A. M. Carneiro 9864c52786 Don't postpone scanning class due to implicit target not registered if the target is not a user class. 2009-10-25 15:57:51 +00:00
Gustavo J. A. M. Carneiro 8bec9ac902 Bug 450255: Invalid 'cannot generate a constructor' case 2009-10-21 18:30:48 +01:00
Gustavo J. A. M. Carneiro 3b51acd664 Add test case for bug #436154 2009-09-30 18:34:58 +01:00
Gustavo J. A. M. Carneiro 1294522f2a Add foreign_cpp_namespace option to CppException, and tests using std::exception. 2009-08-27 12:28:00 +01:00
Gustavo J. A. M. Carneiro 3fa347aad4 gccxml-scanning for exceptions and throw modifiers, semi-automatic, with help of annotation 2009-08-24 14:46:05 +01:00
Gustavo J. A. M. Carneiro d0f8984663 catch exceptions in constructors 2009-08-23 19:27:23 +01:00
Gustavo J. A. M. Carneiro 262c88f846 catch exceptions in method calls too 2009-08-23 19:16:42 +01:00
Gustavo J. A. M. Carneiro 1fcb8501e8 Add API to basically wrap C++ exceptions and catch them in free function calls. 2009-08-23 19:05:43 +01:00
Gustavo J. A. M. Carneiro 814d648c02 one more test 2009-08-22 23:54:07 +01:00
Gustavo J. A. M. Carneiro 2d11f154b5 New API to add container iteration powers to wrapped C++ classes. gccxml-scanning part missing. 2009-08-21 19:24:33 +01:00
Gustavo J. A. M. Carneiro 5182f445a2 Add unit test for int* out parameter 2009-08-20 11:59:22 +01:00
Gustavo J. A. M. Carneiro 12926ef525 Add unit test for unary minus 2009-08-16 15:01:43 +01:00
Gustavo J. A. M. Carneiro 6fb7893729 #401742 numeric operators with non-class right operand need more polish 2009-07-27 15:49:22 +01:00
Gustavo J. A. M. Carneiro f5a5182ff2 add pure+protected virtual method test 2009-07-16 17:39:02 +01:00
Gustavo J. A. M. Carneiro 487ca5cab6 Fix warning: ‘class xpto’ has virtual functions but non-virtual destructor 2009-07-12 14:58:22 +01:00
Gustavo J. A. M. Carneiro f209739270 sequence protocol unit tests 2009-07-07 16:16:56 +01:00
Gustavo J. A. M. Carneiro 7c54658a57 merge 2009-07-07 12:09:04 +01:00
Gustavo J. A. M. Carneiro 117b44b8f9 Add unit tests for inplace numeric operators 2009-07-07 11:51:28 +01:00
Gustavo J. A. M. Carneiro 4621de8d5b After passing object reference to python code, do not use the copy constructor if the class has none. 2009-06-30 14:27:17 +01:00
Gustavo J. A. M. Carneiro 4ba1009c57 Add a unit test with virtual method and a inout object ref parameter 2009-06-28 16:59:59 +01:00
Gustavo J. A. M. Carneiro f3f4e7df9c Implement support for enum reference parameters 2009-05-28 12:12:12 +01:00
Gustavo J. A. M. Carneiro 4afd533b9f Better support for typedefs 2009-04-29 18:47:36 +01:00
Gustavo J. A. M. Carneiro 7cfde86812 Add rudimentary support for std::map containers. 2009-04-27 18:17:21 +01:00
Gustavo J. A. M. Carneiro 9f3a4be4ab Fix -Wextra warnings 2008-12-31 18:02:51 +00:00
Gustavo J. A. M. Carneiro 34cf5869ec Partial support for pointer-to-container parameters 2008-12-10 12:11:45 +00:00
Gustavo J. A. M. Carneiro 73bce2deef Fix compiler warnings 2008-11-18 14:43:38 +00:00
Gustavo J. A. M. Carneiro a12ae4c5d3 Check for anonymous types when wrapping member variables, and skip them for now, as they cause bad code to be generated. 2008-10-15 18:13:10 +01:00
Gustavo J. A. M. Carneiro b0336e7f06 Getting ready to support numeric operators... 2008-10-05 18:51:17 +01:00
Gustavo J. A. M. Carneiro dad9e231b8 Add support for wrapping binary comparison operators 2008-10-04 22:52:39 +01:00
Gustavo J. A. M. Carneiro 20b51a7f92 Add a unit test for scanning/wrapping output reference to container parameter (e.g.std::vector<std::string> &outVec) 2008-10-04 17:26:23 +01:00
Gustavo J. A. M. Carneiro f8b5d2ba03 Scan for containers in class attributes, and assorted fixes 2008-09-15 16:10:36 +01:00
Gustavo J. A. M. Carneiro a143441eac Revamp type matching system and const handling, is_const becomes deprecated.
Now types are specified with consts inside the type string, is_const is deprecated.  The ctypeparser utility module, previously only used to canonicalize type strings, is used more extensively throughout pybindgen to provide type traits and type manipulation, where needed.  gccxml type traits no longer used as consequence.
2008-09-02 11:06:24 +01:00
Gustavo J. A. M. Carneiro 4e41b8c02e Scanning of anonymous containers is now disabled by default, due to a bug in gccxml and the problems it causes. 2008-08-29 14:39:43 +01:00
Gustavo J. A. M. Carneiro 4302316a3c Filter out mapping containers for now; use the correct method to add a value for each container type, not always push_back. 2008-08-27 00:18:20 +01:00
Gustavo J. A. M. Carneiro 5877205b99 Add optional 'wrapper registry' support, which allows one-to-one mapping between C++ object and Python wrapper, so that two wrappers can be safely compared with the 'is' operator. 2008-08-22 15:44:35 +01:00
Gustavo J. A. M. Carneiro a92f6868cc Add to unit tests APIs involding PyObject*, in order to test this type handler 2008-08-20 21:37:05 +01:00
Gustavo J. A. M. Carneiro 3c15d022a9 Add unit tests, fix a C++ object refcount leak. 2008-08-20 15:26:33 +01:00
Gustavo J. A. M. Carneiro bacb4d90b9 Add support for unnamed (not typedef) containers. Not gccxml support yet, though. 2008-08-17 18:41:48 +01:00
Gustavo J. A. M. Carneiro 17b63ea5eb Add typehandler for container ref parameter 2008-08-17 15:44:51 +01:00