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
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