Commit Graph
515 Commits
Author SHA1 Message Date
Mathieu Lacage dbbf842ed0 Expanded tutorial. 2008-07-11 11:49:56 +01:00
Gustavo J. A. M. Carneiro a7341fe7ea Clarify the custodian parameter of CppClassPtrParameter and CppClassPtrReturnValue 2008-07-11 11:31:25 +01:00
Gustavo J. A. M. Carneiro 72fcf9a0dd Patch the generated CSS file to highlight literal blocks 2008-07-11 11:09:13 +01:00
Gustavo J. A. M. Carneiro a3d6ea3000 Fix epydoc cross-ref 2008-07-11 11:08:52 +01:00
Gustavo J. A. M. Carneiro a351d1490a Documentation typo (thanks Mathieu) 2008-07-10 12:09:59 +01:00
Gustavo J. A. M. Carneiro f457d57675 BuildValueParameters.get_parameters now accepts optional force_tuple_creation parameter, to add () in the returned template, thus forcing a tuple to be always created. 2008-07-09 18:17:24 +01:00
Gustavo J. A. M. Carneiro 9998e16aa8 Fix CppMethod.clone bug (is_pure_virtual was not being copied) 2008-07-09 12:44:13 +01:00
Gustavo J. A. M. Carneiro c3a7d4490a Add a __str__ function to CppMethod, allowing to pretty-print a method description (great for debugging purposes). 2008-07-09 12:43:42 +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 a0934a1486 Add a module_file_base_name code generation option to toplevel modules 2008-07-06 17:54:47 +01:00
Gustavo J. A. M. Carneiro 0539390fe9 Implement uint32_t* parameter handler 2008-07-06 17:38:50 +01:00
Gustavo J. A. M. Carneiro 7c7fdb39ef Override the type_traits.has_public_destructor algorithm again.
I knew there was a reason for me having overridden it in the first place.  I just got the algorithm wrong the first time around.
2008-07-06 16:09:27 +01:00
Gustavo J. A. M. Carneiro bfbfcbdefe Fix protected constructor issues. 2008-07-06 15:53:04 +01:00
Gustavo J. A. M. Carneiro 3ee54f6ed8 Use pygccxml type_traits.has_public_destructor function instead of our own. 2008-07-06 15:51:11 +01:00
Gustavo J. A. M. Carneiro b809e6c15a Don't even try to generate code for CppDummyMethod's, they were never meant to generate code. 2008-07-06 14:54:23 +01:00
Gustavo J. A. M. Carneiro e1f813d97e Generate a tp_richcompare slot function for each type. For the time being it simply raises TypeError, just to avoid the trap of comparing objects when the default evil Python 2.x behaviour is to compare by wrapper pointer value. In the future, wrapping C++ comparison operators will be possible. 2008-07-06 12:57:37 +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 3623b67c43 Minor fixes 2008-07-02 11:31:32 +01:00
Gustavo J. A. M. Carneiro a2068d0789 s/operator_os/output_stream_operator/ (more readable) 2008-07-02 10:52:29 +01:00
Mathieu Lacage afbc756be3 Add support for scanning for output stream operator functions, and wrap them as tp_str of each class. 2008-07-02 10:45:56 +01:00
Gustavo J. A. M. Carneiro fe261114bc CppClassRefParameter should check if class is constructible only when the parameter has a default value. 2008-06-30 15:24:03 +01:00
Gustavo J. A. M. Carneiro 2cff12d6ad Handle uint64_t& 2008-06-30 14:54:56 +01:00
Gustavo J. A. M. Carneiro 32c278bec9 Missing transfer_ownership constructor parameter in integer pointer type handlers 2008-06-29 22:25:30 +01:00
Gustavo J. A. M. Carneiro 4f16275e75 Use patched pygccxml remove_xxx functions, to work around the problem of pygccxml removing the typedefs and returning the raw type (e.g. unsigned long int instead of uint64_t). 2008-06-29 22:23:22 +01:00
Gustavo J. A. M. Carneiro 855a3a52e2 Misc type handler changes to support detailed type traits. 2008-06-29 16:47:51 +01:00
Gustavo J. A. M. Carneiro 2e83a536dc Get detailed type traits for all types, not just C++ classes. For example, should now be able to remove 'const' from 'const int'. 2008-06-29 16:46:19 +01:00
Gustavo J. A. M. Carneiro 7850dfff7f Allow add custom methods/functions with wrapper_body=None, useful when the wrapper body is defined in another compilation unit. 2008-06-28 18:12: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 04d7e2cee7 Fix typo 2008-06-24 14:55:33 +01:00
Gustavo J. A. M. Carneiro 5a0c4a1715 Add support for a Module.body code sink 2008-06-24 13:08:04 +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 d6c55381b3 remove todo item already done 2008-06-20 12:43:36 +01:00
Gustavo J. A. M. Carneiro 75ae9506dd add 'unsigned short' aliases for uint16_t 2008-06-15 23:16:12 +01:00
Gustavo J. A. M. Carneiro 7d44256016 Add a CType.remove_modifiers() method 2008-06-15 23:13:24 +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 097b990eb0 missing const_casts; typo 2008-06-15 15:00:24 +01:00
Gustavo J. A. M. Carneiro 8160432e88 Handle parenthesis, so that function pointer types can be properly handled. 2008-06-14 21:34:38 +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
Gustavo J. A. M. Carneiro af17d8aaae Regarding [Bug 238455], check that char* types are being registered. 2008-06-09 10:46:29 +01:00
Gustavo J. A. M. Carneiro 7d5b1ebff1 Define stack_where_defined much earlier 2008-06-08 22:15:42 +01:00
Gustavo J. A. M. Carneiro fc23042b8e Add a 'stack_where_defined' to all added wrappers; this way it is possible, in the error handler, to tell the user exactly where is the code that causes the failure. 2008-06-08 22:02:42 +01:00
Gustavo J. A. M. Carneiro 7340e280ac Add support for a 'pygen_sink' annotation, applicable to anything, as a convenient way to generate a comment right before an API definition in generated python scripts. 2008-06-08 18:52:23 +01:00
Gustavo J. A. M. Carneiro 62ba4459e7 Check for annotations and run pre_scan hooks for enumerations also 2008-06-08 18:32:50 +01:00
Gustavo J. A. M. Carneiro 927f8c3f48 More detailed hierarchy of warnings categories. 2008-06-08 14:53:27 +01:00