Commit graph

14,147 commits

Author SHA1 Message Date
Matevz Jekovec
e1b5d43cd8 Added C++0x support for 'extern' explicit template instantiation without the translation unit.
Added test cases.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11385 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-11 20:13:36 +00:00
Matevz Jekovec
72708ea173 Added support for C++0x static_assert().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 14:33:40 +00:00
Matevz Jekovec
ee8bebb668 Added support for custom string delimiters.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-28 19:35:05 +00:00
Matevz Jekovec
0f2786aa54 Added support for unicode strings and fixed support for wstrings.
Added test case cpp0x_raw_string_literals.i.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-28 14:51:10 +00:00
Matevz Jekovec
4946748164 Added test case for explicit conversion operators.
Some cosmetic fixes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 22:23:07 +00:00
Matevz Jekovec
d8012716ed Added constexpr keywords and CONSTEXPR terminal to Swig parser.
Added cpp0x_constexpr.i testcase.
Fixed compilation bug of cpp0x_template_double_brackets.i testcase.
Removed obsolete cpp0x_template_double_brackets_broken.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 21:48:48 +00:00
Matevz Jekovec
5fd3ccae18 Introduced new CXXFLAGS symbol for the compilation of test suite.
Added -std=c++0x to g++ compiler to enable compilation of the new C++0x tests.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 20:24:22 +00:00
Matevz Jekovec
1af6d8a1b0 Renamed template_double_brackets -> cpp0x_template_double_brackets.
Added CPP0X_TEST_CASES and CPP0X_TEST_BROKEN in common.mk.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-06 16:25:24 +00:00
Matevz Jekovec
2b4b1cc157 Added support for template double brackets for C++0x.
Added test cases.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-04 23:25:39 +00:00
William S Fulton
3e0fc9f7b9 minor format improvment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-29 17:44:20 +00:00
William S Fulton
4bfec466e8 trailing comma fix for ISOC89 compliance - patch from Ben Schmeckpeper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-29 17:42:49 +00:00
William S Fulton
baffa067dc minor formatting
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-27 23:39:46 +00:00
William S Fulton
69890f4957 add missing file omitted in earlier commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-27 22:55:14 +00:00
William S Fulton
096aaddfcf add test for $descriptor() macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-27 22:04:19 +00:00
William S Fulton
25bcb4d5e6 std::map C# improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 17:08:53 +00:00
William S Fulton
3ffdfee64a remove authors - these are in the CHANGES files and README files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 06:31:04 +00:00
William S Fulton
9361144964 Add copy constructor to std::map and make more efficient by passing keys and mapped type by reference instead of value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 06:28:20 +00:00
William S Fulton
7841adc675 Add std::vector copy constructor to proxy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-26 06:23:39 +00:00
William S Fulton
f3a70a1a03 Improve C# std::map tests to do the bulk of the testing on a map where the key and value types are different
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:53:20 +00:00
William S Fulton
07ed699ef3 use instead of self
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:11:45 +00:00
William S Fulton
30335a0198 std::map improvements based on patch from Yuval Baror
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-22 06:10:52 +00:00
Olly Betts
6ae7ce1cf1 Remove note which is no longer relevant.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-19 12:00:48 +00:00
Olly Betts
d2c38bb569 Snip nonsensical comment left over from cut and paste from other examples.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-19 11:54:40 +00:00
William S Fulton
b6c869be0f fix link
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-17 20:28:43 +00:00
Haoyu Bai
6c96148de5 fixed the wrong pointer value returned by SwigPyObject_repr()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-14 15:58:09 +00:00
Mikel Bancroft
88ffb89c2b [allegrocl] Minor tweak to improve wrapping in -nocwrap mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-14 00:35:17 +00:00
William S Fulton
267ffd6ce6 move std::multimap tests from li_std_map.i into new li_std_multimap.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-12 17:24:01 +00:00
William S Fulton
13cbd90553 Improved std::vector wrappers on the C# proxy side from Yuval Baror to implement IList<> instead of IEnumerable<> where possible.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-11 17:46:51 +00:00
William S Fulton
2b5560d267 minor formatting mod 2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-05 21:11:11 +00:00
William S Fulton
a16a599a43 minor formatting mod
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-05 21:03:25 +00:00
William S Fulton
083d106bc4 Add test for notderived attribute in csbase/javabase typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-01 06:26:42 +00:00
William S Fulton
410f7d5913 remove executable bits
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-05-01 06:21:56 +00:00
William S Fulton
90b1578d65 add test for optimal attribute in out typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-30 06:12:32 +00:00
Olly Betts
81f2687f60 Remove accidentally committed conflict marker.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-30 00:13:14 +00:00
Olly Betts
feb1e6de94 Remove two accidentally committed debug fprintf() calls.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 23:59:06 +00:00
William S Fulton
7e8d19cec0 Add the 'notderived' attribute to the javabase and csbase typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 17:58:32 +00:00
Olly Betts
1c91a4a9b9 int -> Py_ssize_t to fix 64 bit Python 3 failure to compile generated code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11195 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 13:43:23 +00:00
Haoyu Bai
e8aa9d8703 fix of unclear comment regarding Python 3 tp_compare removal
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:05:33 +00:00
Olly Betts
6d8ea4f7fa Fix comment typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 12:00:38 +00:00
Olly Betts
38f00d3544 [Python] Don't attempt to acquire the GIL in situations where we
know that it will already be locked.  This avoids some dead-locks
with mod_python (due to mod_python bugs which are apparently
unlikely to ever be fixed), and results in smaller wrappers which
run a little faster (in tests with Xapian on x86-64 Ubuntu 9.04,
the stripped wrapper library was 11% smaller and ran 2.7% faster).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 09:35:58 +00:00
William S Fulton
60f0c7e56b Fix #2753469 - bool &OUTPUT and bool *OUTPUT typemaps initialisation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-21 20:09:15 +00:00
William S Fulton
bd46f03b6f Fix #2746858 - C macro expression using floating point numbers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-09 17:51:59 +00:00
William S Fulton
4a1b29a394 fix ordering of chapters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11183 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-01 12:46:26 +00:00
William S Fulton
de9513b374 update .dll -> .pyd for python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11182 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-01 08:41:41 +00:00
William S Fulton
be73d28ad7 don't unnecessarily set swigCPtr to zero again if Dispose/delete called multiple times
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-31 12:23:47 +00:00
Olly Betts
084a168a0f printf(string) -> printf("%s", string)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-31 10:25:54 +00:00
Olly Betts
69afd6f1b8 Document the previous change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-30 02:49:13 +00:00
Olly Betts
64843143f1 The default out typemap for char[ANY] now returns up to a zero byte, or the end
of the array if there is no zero byte.  This is the same as Python does, and seems
more generally useful than the previous behaviour of returning the whole
contents of the array including any zero bytes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-30 02:22:14 +00:00
Olly Betts
c05ddc9d14 check::equal() now reports the values if they aren't equal.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-30 02:01:12 +00:00
Olly Betts
ed4d6ddec1 Some distros (e.g. frugalware) build PHP with --enable-safe-mode, so as we need
to explicitly disable it to avoid the testsuite failing with:

Warning: dl(): Dynamically loaded extensions aren't allowed when running in Safe Mode

Patch from Miklos Vajna.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-29 23:38:19 +00:00