Commit graph

15,563 commits

Author SHA1 Message Date
Leif Middelschulte
b70b752883 Add constant pointers to 'in' typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-15 19:56:03 +00:00
Leif Middelschulte
41b3fcc1b6 Add constant pointers to 'ctype' typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13612 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-15 19:55:49 +00:00
Leif Middelschulte
1440b43690 Add constant pointers to 'proxy' typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13611 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-15 19:55:36 +00:00
Leif Middelschulte
a540f7199f Refactor 'cppouttype' to be split by type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13610 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-15 19:55:22 +00:00
Leif Middelschulte
dddc13377a Move to appropriate segment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13609 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-15 19:55:06 +00:00
Leif Middelschulte
88ffd102f3 Remove template specific typemaps. Leftover from the change to C# like template handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 16:22:30 +00:00
Leif Middelschulte
f50b903d64 Add wrapper typemap for "int *const &"
Fix proxy type of complex type (SWIGTYPE) references.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 16:22:02 +00:00
Leif Middelschulte
0dbfbb79ac use correct typemap for wrapper function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13603 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 16:21:36 +00:00
Leif Middelschulte
ed402ceb37 Don't delete variables twice.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-10 15:43:11 +00:00
Leif Middelschulte
78ccc8f228 Fix wrong headers inclusion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-10 14:50:18 +00:00
Leif Middelschulte
c81a3bd5ec Add typecast to silence compiler warnings caused by inheritance.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-10 14:50:04 +00:00
Leif Middelschulte
8538e6c1db Fix wrong type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-10 14:49:49 +00:00
Leif Middelschulte
a84787c273 Rename reference to C++ native types from 'atomic' to 'built_in'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-10 14:49:37 +00:00
Leif Middelschulte
56db1d6e4e Add C backend runtime implementation for basic C++ std::vector<int> test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13581 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-09 20:03:42 +00:00
Leif Middelschulte
c3236edf80 Add basic C++ test for std::vector instantiated with a native type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-09 20:03:22 +00:00
Leif Middelschulte
9619d7c618 Remove wrong typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-09 20:03:06 +00:00
Leif Middelschulte
333a842277 Type lookup of $1_ltype fails for templates, so use types directly. Add size_t as type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-09 20:02:47 +00:00
Leif Middelschulte
d272709899 Add C runtime test for corresponding C++ basic template test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13573 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-09 13:06:22 +00:00
Leif Middelschulte
2dac491434 Basic C++ test of very simple template class instantiation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-09 13:06:03 +00:00
Leif Middelschulte
698d1851c3 Add C runtime test for basic C++ template functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13568 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 16:06:56 +00:00
Leif Middelschulte
0a646835d2 Add basic C++ test for template functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13567 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 16:06:37 +00:00
Leif Middelschulte
a95e257fe8 unused variable--
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 16:06:23 +00:00
Leif Middelschulte
b6d00028bb Remove name_mangle approach. Broke template function names. Should work like classes, etc. based on "nspace" attribute of node, which is for some reason missing for this kind.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 16:06:09 +00:00
Leif Middelschulte
63b68eaafc Fix partialcheck of C backend.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13561 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 10:32:59 +00:00
Leif Middelschulte
725c7f395a remove debug printfs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-07 20:30:00 +00:00
Leif Middelschulte
d6641336f8 Initial work for templates. Mostly adopted from C#.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-07 20:18:21 +00:00
Leif Middelschulte
b0318dae69 Add test for 'natural' C++ std::string handling in C (char*).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13482 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-01 12:53:17 +00:00
Leif Middelschulte
0e75ebbc34 Update to reflect changes (additional typemaps) in the C backend.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-01 12:52:17 +00:00
Leif Middelschulte
44f4dd4dc0 Extend test to check dynamic binding of virtual methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-01 00:51:50 +00:00
Leif Middelschulte
130ae2cb26 Implement basic C++ exception test for C backend.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13479 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-31 21:15:33 +00:00
Leif Middelschulte
ffb2b6b73b Implement basic C++ virtual method test case for C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-31 21:08:39 +00:00
Leif Middelschulte
4dc9b5501c Add basic C++ test for virtual methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13477 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-31 21:05:16 +00:00
Leif Middelschulte
42681bd01d Fix unnecessary/wrong casts within proxy->wrapper call
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-30 10:47:37 +00:00
Leif Middelschulte
ea240fdde3 Rename cpp_atomic_* tests to cpp_basic_*
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-27 14:05:14 +00:00
Leif Middelschulte
f7b5211739 Add C implementation of test cpp_atomic_class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:23:53 +00:00
Leif Middelschulte
e9eaa05671 Add atomic test for C++ class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13421 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:23:39 +00:00
Leif Middelschulte
15e8b647a2 Add C implementation of test cpp_atomic_class_enum
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:23:27 +00:00
Leif Middelschulte
cff735b570 Add atomic test for C++ class embedded enum
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:23:14 +00:00
Leif Middelschulte
2080038170 Add C implementation of test cpp_atomic_class_method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13418 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:23:02 +00:00
Leif Middelschulte
f6bd496b76 Add atomic test for C++ class with a method
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:22:49 +00:00
Leif Middelschulte
f24ce340ff Add C implementation of test cpp_atomic_class_var_pub_member_atom
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:22:37 +00:00
Leif Middelschulte
cafa7e5995 Add atomic test for C++ class with a primitive/native type attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13415 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:22:21 +00:00
Leif Middelschulte
dbd8d3aabd Add C implementation of test cpp_atomic_class_var_pub_member_class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:22:08 +00:00
Leif Middelschulte
d276aec0d0 Add atomic test for C++ class with another class as attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:21:53 +00:00
Leif Middelschulte
cfc1a71b71 Add C implementation of test cpp_atomic_global_enum
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:21:35 +00:00
Leif Middelschulte
244e3370dd Add atomic test for C++ global enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:21:20 +00:00
Leif Middelschulte
7d3677a5c8 Add C implementation of test cpp_atomic_global_var_atom
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:21:03 +00:00
Leif Middelschulte
a2f104e3ca Add atomic test for C++ global atomic/native types variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13409 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:20:44 +00:00
Leif Middelschulte
48fe82841f Add C implementation of test cpp_atomic_global_var_class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13408 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:20:29 +00:00
Leif Middelschulte
a756a4f850 Add atomic test for C++ global class instance variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13407 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-26 20:20:14 +00:00