Commit Graph
613 Commits
Author SHA1 Message Date
Gustavo J. A. M. Carneiro bd5d8205c1 Don't leave the type registration order completely undefined; we may want to generate python scripts to become version controlled, and random order leads to spurious diffs as the scanning is done in different machines. 2008-10-02 17:28:14 +01:00
Gustavo J. A. M. Carneiro 32c6811c65 Change the default value of enable_anonymous_containers to True; it has been tested already, and disabling it doesn't really completely fix the cygwin problems. 2008-09-27 15:21:58 +01:00
Gustavo J. A. M. Carneiro ed7bbebb5a Fix stl container bad iterator usage in some cases (e.g. std::string). 2008-09-24 17:01:16 +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 21967a7371 Fix a std::map wrapper registry--erase the same key twice--that caused problems in win32 (mingw) 2008-09-09 12:09:30 +01:00
Gustavo J. A. M. Carneiro 5c86ea5dfc Don't use copy.deepcopy; it is buggy on some Python versions. 2008-09-05 16:44:58 +01:00
Mathieu Lacage b691d94de4 Typo. 2008-09-04 14:09:07 +01:00
Gustavo J. A. M. Carneiro 8126ba895a python 2.4 + gcc 4.2 fix 2008-09-04 14:07:52 +01:00
Gustavo J. A. M. Carneiro 30bfe7c371 If generating output string stream operator for a class, add the dependency includes <ostream> and <sstream> to the module 2008-09-03 11:59:10 +01:00
Gustavo J. A. M. Carneiro a05fcef850 Adapt example to new API 2008-09-02 11:42:24 +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 9f87c19f90 Add option to disable pygccxml support 2008-08-31 15:04:11 +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 992e902fad Let's face it: generating tp_hash was just a hack; disabled because it's no longer needed. 2008-08-27 15:43:58 +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 76c9a1476d Don't try to read annotations for artificial declarations. 2008-08-27 15:05:17 +01:00
Gustavo J. A. M. Carneiro 424e92557a typo 2008-08-27 13:05:19 +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
Mathieu Lacage dfc43ab9a6 Add parenthesis to make g++ 4.1 happy when parsing container iterator code. 2008-08-26 22:15:59 +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 02bbd782a8 Only enable the copy constructor if is public. 2008-08-19 15:27:12 +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 20d58453b1 Default value for tp_dictoffset should be 0, not NULL. 2008-08-19 12:44:43 +01:00
Gustavo J. A. M. Carneiro 72da33c8c4 Missing typecast to PyObject in Py_VISIT argument. 2008-08-19 12:34:55 +01:00
Gustavo J. A. M. Carneiro ef7e4f5bf8 fix double initialization of the main section code sink 2008-08-18 15:46:19 +01:00
Gustavo J. A. M. Carneiro 2b469ec4e1 fix getting pygen sink for builtin types 2008-08-18 15:33:43 +01:00
Gustavo J. A. M. Carneiro 6f9ab19220 gccxml-scan all containers used by the APIs (methods and functions). 2008-08-18 13:20:07 +01:00
Gustavo J. A. M. Carneiro fd4a72abe0 Add some debug code. 2008-08-18 12:38:44 +01:00
Gustavo J. A. M. Carneiro 0757dc04b6 refactoring 2008-08-17 22:56:44 +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 6f01ecaff2 Small simplification (use converter function) 2008-08-16 23:20:42 +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 509e3bd607 Refactoring to generate most of the constainer construction logic as a type convertion function, for easier reuse in type handlers. 2008-08-16 18:13:05 +01:00
Gustavo J. A. M. Carneiro 573b217b4d Sequence constructor 2008-08-16 15:22:45 +01:00
Gustavo J. A. M. Carneiro f1488055aa Add API to generate python-to-C convertion functions. 2008-08-16 14:44:08 +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 7c8ee0ceb1 operator() support in gccxml scanner 2008-08-12 17:06:43 +01:00
Gustavo J. A. M. Carneiro 14e2975c33 When checking for output stream operators, match agains operator name as well, not just expected parameter/return types. 2008-08-12 16:21:57 +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 6d97fbf2f3 Clarify custom_name vs custom_template_method_name in the api docs. 2008-08-12 15:16:22 +01:00
Gustavo J. A. M. Carneiro 49d5821a27 Remove leftover debug code 2008-08-08 18:56:31 +01:00
Gustavo J. A. M. Carneiro ff031bfcda Factor out the generation of the type structure away from cppclass into a separate class PyTypeObject, for better code reuse. 2008-08-08 18:54:21 +01:00
Gustavo J. A. M. Carneiro e716ffe780 Fix bad PY_VERSION_HEX values. 2008-08-08 17:24:28 +01:00