Commit Graph
494 Commits
Author SHA1 Message Date
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
Gustavo J. A. M. Carneiro 416f70d96d Define a separate ScanWarning category to be used by pybindgccxml.ModuleParser, to allow filtering warnings. 2008-06-08 14:26:26 +01:00
Gustavo J. A. M. Carneiro d4d5e80e00 [bug #237524] Avoid using const_cast and reinterpret_cast, use C-style casts instead, so that the generated code compiles with a pure C compiler. 2008-06-06 12:39:05 +01:00
Gustavo J. A. M. Carneiro a4ee62fc0b Support anonymous structures (LP#237054) 2008-06-03 23:40:02 +01:00
Gustavo J. A. M. Carneiro fa2d9369fa Finish support for int16_t / short int 2008-06-03 23:32:49 +01:00
Gustavo J. A. M. Carneiro 4f1fcc5472 bug fix 2008-06-03 23:31:58 +01:00
Gustavo J. A. M. Carneiro 69b8cc4ddc Implement the section.local_customizations_module option 2008-06-02 19:58:55 +01:00
Gustavo J. A. M. Carneiro 567e456d0e Use a proper PygenSection class instead of tuple, to denote section information 2008-06-02 19:46:59 +01:00
Gustavo J. A. M. Carneiro d85131349a Guard against code generation errors while adding a method object 2008-06-02 18:06:46 +01:00
Gustavo J. A. M. Carneiro e7754d038a HACKING file 2008-06-02 14:56:41 +01:00
Gustavo J. A. M. Carneiro 43a00b0a41 documentation work 2008-06-02 14:15:27 +01:00
Gustavo J. A. M. Carneiro 1c2134b7b4 Add gccxml-based variants to the 'a' example. 2008-06-02 14:06:06 +01:00
Gustavo J. A. M. Carneiro abfe0a2b34 Add support for splitting the generated python script into sections (python submodules) basedon on some criteria. 2008-06-01 22:53:36 +01:00
Gustavo J. A. M. Carneiro d3543281cf Don't use custom_name as basis for wrapper function name. 2008-05-31 12:52:08 +01:00
Gustavo J. A. M. Carneiro 884091cce6 Add the dummy methods to helper classes as well, so that unwrapped pure virtual methods are detected and the helper class disabled 2008-05-25 21:43:38 +01:00
Gustavo J. A. M. Carneiro c3ab54d71b bug fix 2008-05-25 21:18:51 +01:00
Gustavo J. A. M. Carneiro c375b5b878 Delayed binding of parameter and return value specifiers, and improved error handling. 2008-05-25 19:53:38 +01:00
Gustavo J. A. M. Carneiro 0495cc26f8 Filter out duplicated helper class constructors 2008-05-24 15:26:00 +01:00
Gustavo J. A. M. Carneiro ca9cafaeec Remove a couple of FIXME exceptions 2008-05-23 19:10:33 +01:00
Gustavo J. A. M. Carneiro a074fd5e77 Add a Module.after_forward_declarations code sink, for writing custom code that needs to go after the forward declarations but before the wrappers. 2008-05-23 15:56:06 +01:00
Gustavo J. A. M. Carneiro 5c426253fa Fix bug with duplicated #include directives being generated, each include times the number of submodules+1 2008-05-23 15:03:56 +01:00
Gustavo J. A. M. Carneiro a2f8ebcb25 Fix buggy CppMethod.matches_signature 2008-05-22 19:22:33 +01:00