Commit graph

14,986 commits

Author SHA1 Message Date
Stefan Zager
76e7d01c4e Fixed %pythonnondynamic, as discussed on the swig-devel mailing list, message id 26787772
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-03 05:13:06 +00:00
William S Fulton
f24d1b99b1 Add in missing wrappers for friend functions for some target languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 23:06:40 +00:00
William S Fulton
12e1ce4d1a Better debugging info for C# test cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 22:56:58 +00:00
William S Fulton
52f26ffcd1 bump version to 2.0.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12570 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 23:01:55 +00:00
William S Fulton
a886b71a47 test case fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12567 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 22:21:08 +00:00
William S Fulton
9b60e3b7bb Add swig-2.0.3 release date and summary
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 21:50:23 +00:00
William S Fulton
e2fcd71e0c Apply patch #3239076 from Marie White fixing strings for R >= 2.7.0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 20:14:59 +00:00
William S Fulton
24d695a7a1 Apply patch #3248280 which adds better error messages when the incorrect number or type of arguments are passed to overloaded methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 19:15:19 +00:00
William S Fulton
60a1c5eed3 Apply patch 3224663 for Tcl - NULL value fixes and performance improvements for classes with many methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 18:57:42 +00:00
William S Fulton
d68b786b19 Cosmetic improvements in generated code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 23:25:52 +00:00
William S Fulton
b57a12fa21 Fix for a few affected target languages since last commit changed the way enum values that are type char are handled.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 23:25:14 +00:00
William S Fulton
b13ec94386 SF bug #3195112 - fix wrapping of enums that are type char
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 15:28:31 +00:00
Vadim Zeitlin
ae6aef5d8f Allow setting PCRE_{CFLAGS,LIBS} when building SWIG with PCRE.
These options can be used to override the values returned by pcre-config, e.g.
to build using a static PCRE library even if pcre-config prefers to use the
shared one by default.

Use the updated AX_PATH_GENERIC macro from autoconf archive which was fixed to
allow the options set by the user to override the ones returned by pcre-config
(in fact, pcre-config isn't even called at all if these options are set).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-20 23:24:32 +00:00
William S Fulton
c339c0b4f7 Add missing headers in generated STL wrappers to fix compilation with gcc-4.6
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-18 06:57:11 +00:00
William S Fulton
f5feb6cc24 Fix regression introduced in swig-2.0.2 where filenames with spaces were not found when used with %include and %import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-17 07:33:05 +00:00
David Nadlinger
7709e0303a [D] Added -d2 switch to usage information.
Previously, it was documented in the manual, but not present in the command line usage text.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 17:20:45 +00:00
David Nadlinger
ac375e90a8 [D] Whitespace cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 17:20:21 +00:00
Ian Lance Taylor
e63bc0ab13 Don't emit unused "fail" label.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 14:06:03 +00:00
William S Fulton
0554313887 Treat None as a Python keyword
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12542 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-16 07:39:17 +00:00
William S Fulton
89face5db1 Fix overloading when using const char[] and char[ANY] and const char[ANY]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-15 20:59:04 +00:00
William S Fulton
5f1c242f1a Apply patch #3212624 fixing std::map Keys property.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-15 07:30:18 +00:00
Olly Betts
72fc8be46c [PHP] Fix handling of overloaded methods/functions where some
return void and others don't - whether this worked or not depended 
on the order they were encountered in (SF#3208299).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 12:33:56 +00:00
Olly Betts
5d765893ed Simplify test-suite/overload_return_type.i (checked that it still fails before
the fix it's a regression test for) and added _runme.php for it.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 11:58:58 +00:00
Olly Betts
c61cc387bc Fix comment typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 09:49:27 +00:00
William S Fulton
a63d456f8a Remove redundant code highlighted by warnings in gcc-4.6
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 07:22:08 +00:00
David Nadlinger
dc5966ffa9 Mention D nspace support in CHANGES.current.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12535 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 22:05:33 +00:00
David Nadlinger
ce6516fb4c [D] nspace support.
As for C# and Java, this doesn't work for free functions/variables yet.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:32:26 +00:00
David Nadlinger
a63cde3827 [D] Removed "-noproxy" switch from usage text.
I forgot to remove it from the list when I stripped the (undocumented and untested) code paths for it, which was even before the merge to trunk.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:31:13 +00:00
David Nadlinger
fb538c1b5b [D] Avoid implicit cast warning when building for x86_64.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:30:51 +00:00
David Nadlinger
ff965c1aff [D] std.algorithm.indexOf() was deprecated, use countUntil() instead.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:30:21 +00:00
William S Fulton
6d7acd2615 linker fix for smart_pointer_template_const_overload testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:16:44 +00:00
William S Fulton
52e59d530d gcc-4.5 warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-12 21:37:35 +00:00
Olly Betts
669bc0e001 [PHP] Fix sharing of type information between multiple SWIG-wrapped modules (SF#3202463).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12528 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-12 01:38:27 +00:00
William S Fulton
c8b89bd075 Fix partial overloading warning messages appearing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-11 22:36:59 +00:00
William S Fulton
5f4d8c6112 Fix SF #3194294 - corner case bug when 'NULL' is used as the default value for a primitive type parameter in a method declaration.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-09 22:31:08 +00:00
William S Fulton
b69b793d8e Better consistency in usage display
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-09 21:42:38 +00:00
Olly Betts
24053d7789 [PHP] Don't use zend_error_noreturn() for cases where the function
returns void - now this issue can only matter if you have a function
or method which is directed and returns non-void.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 23:05:01 +00:00
Olly Betts
06e8329c48 No need to add . to LD_LIBRARY_PATH for PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 23:01:26 +00:00
Olly Betts
faf5f6524e CVS->SVN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 05:56:50 +00:00
Olly Betts
4fbb9e24d6 [PHP] Add casts to the typemaps for long long and unsigned long
long to avoid issues when they are used with shorter types via
%apply.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12520 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 04:06:54 +00:00
Olly Betts
571204c98f Fix typo which stopped %.test convenience helper from running multitests.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 03:14:24 +00:00
William S Fulton
084a3c7205 Run make beautify on python.cxx to fix code style to match style on szager-builtin branch
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12514 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-03 19:33:25 +00:00
William S Fulton
28af783d18 Templated smart pointers overloaded with both const and non const operator-> generated uncompilable code when the pointee was a class with either public member variables or static methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-02 22:30:05 +00:00
William S Fulton
a2ac60e7f3 Bump version to 2.0.3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 21:48:32 +00:00
William S Fulton
626773c3da Few corrections for swig-2.0.2 release announcement
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 21:43:05 +00:00
William S Fulton
9e4de2698f Release script tweaks to take account of yet more SF upload changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12508 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 21:00:10 +00:00
William S Fulton
a984b01cc5 Remove unnecessary header, which bizarrely broke the mingw build on linux
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 20:18:37 +00:00
William S Fulton
90847fb49e Solaris warnings/errors testcase fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 19:29:50 +00:00
William S Fulton
3974c39b69 Perl and vc++ warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 18:37:46 +00:00
William S Fulton
8660e59a5f Add swig-2.0.2 release date
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12503 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-20 15:10:47 +00:00