Commit Graph
103 Commits
Author SHA1 Message Date
Gustavo J. A. M. Carneiro 259bb357f1 Wrap C++ arithmetic operators 2008-10-06 15:36:44 +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 169d3c9497 Disable profiling during unit tests (but make it trivial to re-enable) 2008-10-04 22:50:06 +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 43b5953208 Now Container takes a container_type parameter instead of add_value_method, to make future tweaking of containers based on type easier and not require more API changes. 2008-08-27 15:39:22 +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 d09c8ac15f Generate __copy__ methods to allow copy.copy() to work on our class wrappers. 2008-08-19 15:18:54 +01:00
Gustavo J. A. M. Carneiro 311f18b98d Fix missing copy constructor that was not being generated into the python script. Add utility method to easily add a copy constructor to a class. 2008-08-19 14:39:50 +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
Gustavo J. A. M. Carneiro 0f581ea685 Allow reverse wrappers with container return value to return a list instead of container object 2008-08-16 23:14:47 +01:00
Gustavo J. A. M. Carneiro e5549bdbae Add container reverse wrappers unit tests 2008-08-16 23:02:26 +01:00
Gustavo J. A. M. Carneiro b6761ebac6 Paramters of a container parameter type now also accept a list instead of a proper container object 2008-08-16 18:34:08 +01:00
Gustavo J. A. M. Carneiro 573b217b4d Sequence constructor 2008-08-16 15:22:45 +01:00
Gustavo J. A. M. Carneiro b46277c37e Test container as parameter. 2008-08-15 15:05:24 +01:00
Gustavo J. A. M. Carneiro 3f97bd258e Initial support for std sequence containers (limited testing / support, for now) 2008-08-14 23:22:00 +01:00
Gustavo J. A. M. Carneiro c00f408eb4 Add tp_call support to the python API; corresponding gccxml support is TODO. 2008-08-12 15:52:49 +01:00
Gustavo J. A. M. Carneiro 5c57f3852b Templated functions tests and bug fixes. 2008-08-08 16:09:26 +01:00
Gustavo J. A. M. Carneiro 2e7450020d Implement null_ok and default_value for CppClassPtrParameter. Closes #252447. 2008-07-28 12:37:12 +01:00
Gustavo J. A. M. Carneiro f43874ef06 Bug #247036: cannot wrap an unamed enum 2008-07-27 17:21:03 +01:00
Gustavo J. A. M. Carneiro 13b6dc02e0 Bug #247059: API to wrap inner enums and classes is not intuitive 2008-07-27 17:00:41 +01:00
Gustavo J. A. M. Carneiro b8ccb8347b Add support for parameter default values specified via annotations. Closes LP#251343. 2008-07-25 19:05:16 +01:00
Gustavo J. A. M. Carneiro 946e7f1ee3 Use PyErr_Warn instead of PyErr_WarnEx in deprecations, for compatibility with Python 2.3 2008-07-22 16:34:43 +01:00
Gustavo J. A. M. Carneiro c54893328a Python 2.3 compatibility fixes 2008-07-22 16:30:01 +01:00
Gustavo J. A. M. Carneiro 6137f3916f Fix some more deprecations 2008-07-20 19:26:00 +01:00
Gustavo J. A. M. Carneiro b44e4da782 Make deprecations as errors easy to turn off temporarily. 2008-07-18 19:22:22 +01:00
Gustavo J. A. M. Carneiro 355ebb0665 For examples and unit tests, turn deprecation warnings into exceptions; fix cases where deprecations were being used. 2008-07-18 14:47:47 +01:00
Gustavo J. A. M. Carneiro b1cc858018 Scan for __attribute__((deprecated)), enable deprecation mode when found 2008-07-16 19:34:57 +01:00
Gustavo J. A. M. Carneiro f3a0c9a33c Module.add_typedef API, implemented only for C++ classes/structs for now. 2008-07-15 00:28:58 +01:00
Gustavo J. A. M. Carneiro 98cc09f0e0 Remove deprecated calls to write_preamble from examples/tests 2008-07-13 19:11:17 +01:00
Gustavo J. A. M. Carneiro 43822a325a New API: Module.add_struct. 2008-07-11 12:19:33 +01:00
Gustavo J. A. M. Carneiro da8b7c17ed Fixing bug #246069, did some bug fixing along the way (related to virtual method parent callers), before discovering the bug was invalid. 2008-07-09 11:30:36 +01:00
Gustavo J. A. M. Carneiro 49c62c8c03 Clean up the mess that became registering handlers for const types; add 'constness' to type handler codegeneration tests. 2008-07-03 18:22:31 +01:00
Gustavo J. A. M. Carneiro 108c696d03 Add a debug switch (-d) to enable debugger 2008-07-03 17:10:59 +01:00
Gustavo J. A. M. Carneiro 5bcc4ba3b6 Change one case of unit test using std::string to std::string const &, just for better testing.. 2008-07-03 15:18:48 +01:00
Gustavo J. A. M. Carneiro ef2c9d6251 Fix Bug #245097: Regression: Error 'declarated_t' object has no attribute 'base' 2008-07-03 15:06:48 +01:00
Mathieu Lacage 3d4b03f0dd Fix problem with class registration when an inner namespace class has a class defined in an outer namespace as base class. 2008-07-03 14:31:30 +01:00
Mathieu Lacage 613a4e98a4 Cleanups. 2008-07-03 14:27:28 +01:00
Gustavo J. A. M. Carneiro 8a890c4875 CppClass.add_output_stream() documentation and unit tests. 2008-07-02 11:32:02 +01:00
Gustavo J. A. M. Carneiro 6fe19f0ece Bug #242285: Impossible to use a float* parameter in a function or method to pass an array of floats. 2008-06-24 17:12:50 +01:00
Gustavo J. A. M. Carneiro 285f9f3d68 Experimental multi-section (split generated C code over multiple files) code 2008-06-24 01:23:54 +01:00
Gustavo J. A. M. Carneiro 8105bf95c5 Run all type strings through the newly added 'type normalization function' before every type registration and lookup.
This change can have noticeable impact, especially on type transformations, but is for the best.  Now the canonical string representation for 'Foo*' is 'Foo *', and for 'const Foo*' it is 'Foo const *'.
2008-06-15 15:15:58 +01:00
Gustavo J. A. M. Carneiro fac419d7d5 Add a C type parser and function to normalize type string representations. 2008-06-14 15:52:52 +01:00