Commit graph

2,744 commits

Author SHA1 Message Date
William S Fulton
093dc60d2d Fix garbage line number and empty file name reporting for some '}' or ')' error messages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-16 13:56:50 +00:00
William S Fulton
6dd4f362b3 Testcase correction for missing virtual destructor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-16 08:38:22 +00:00
William S Fulton
87ee6da365 Make php example C90 compliant
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-15 23:56:27 +00:00
William S Fulton
6f819d1cd1 Detect mono C# compiler on newer linux distributions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-15 23:41:01 +00:00
Klaus Kämpf
94fb7629f4 Apply patch 3530444
Class#methods and Class#constants returns array of symbols
from Ruby 1.9 on



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-15 16:16:40 +00:00
William S Fulton
ca61d10d9b Temporary workaround for testcase failing in PHP
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-15 12:46:04 +00:00
Klaus Kämpf
23771ef027 Ruby: Replace all occurences of STR2CSTR macro with calls to StringValuePtr
STR2CSTR was deprecated in Ruby since years and got finally removed
in Ruby 1.9


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-14 15:48:31 +00:00
Klaus Kämpf
eab417a3a1 Ruby 1.9: Add current dir to load path when running Ruby
Ruby 1.9 changes the default load path to _not_ include the current
directory. This breaks running the test cases.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-14 14:07:32 +00:00
William S Fulton
04b60a1508 CFFI - Fix some string constants are incorrect
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-14 08:00:22 +00:00
William S Fulton
2939f181f1 Add Android install options for optional storage to SD Card
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-14 07:12:35 +00:00
William S Fulton
ba575159f6 Add runtime test for %implicitconv
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-08 10:37:04 +00:00
Karl Wette
18ef95083d octave: prevent writing to history file when running tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-28 20:23:17 +00:00
Karl Wette
e60ae2d81d octave: Simplified module loading.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-28 20:22:56 +00:00
William S Fulton
4e8d81750d Add test added a short while back
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:20:47 +00:00
William S Fulton
b40f678115 Tweak test so it works if test-suite is run using -copyctor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:17:55 +00:00
William S Fulton
f6229d4b73 Fix director typemap searching so that a typemap specified with a name will be correctly matched. Previously the name was ignored during the typemap search. Implemented by ensuring the 'type' attribute in the Node is set up correctly and using the usual Swig_typemap_lookup on the Node.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-27 17:37:34 +00:00
William S Fulton
c4e4b4b610 New director test highlighting a proble in Go
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-26 19:32:19 +00:00
William S Fulton
b17a77c6ea Support special variable expansion in %extend.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-11 19:28:02 +00:00
William S Fulton
2598a1daf2 Two additional special variable are expanded in %exception - $parentname
and $parentsymname

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13870 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-11 19:24:24 +00:00
Ian Lance Taylor
a42882dcee Adjust for change in the size of the Go type int. Until some time in
the future, require a -intgosize option when invoking SWIG.  Otherwise
there is no reliable way for us to know the size of int, and we need
to know.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-05 04:58:00 +00:00
William S Fulton
bc43673a86 Add new warning if an empty template declaration is used on a base class, minor docs improvement for empty template declarations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-14 22:25:35 +00:00
William S Fulton
323f841d93 Add a testcase for the Curiously Recurring Template Pattern - CRTP
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 20:15:03 +00:00
William S Fulton
f18d75f07e Android docs on examples update and cosmetic change to Android extend
example.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 19:03:24 +00:00
William S Fulton
b38722e8ee Apply patch for Java to fix direct use of a weak global reference in directors sometimes causing seg faults especially on Android.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 19:02:02 +00:00
William S Fulton
608d43f0f9 Add text streamer to Android example to replace missing stdout
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 18:55:52 +00:00
William S Fulton
9e34a0d376 Add Android runtime example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 18:54:25 +00:00
William S Fulton
72fc742f88 Add extend example for Android
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-13 18:52:56 +00:00
William S Fulton
593c708a78 Fix (char *STRING, size_t LENGTH) typemaps to accept NULL string
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-07 06:07:20 +00:00
Joseph Wang
b9570501aa Call gcc for C in R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-26 02:09:53 +00:00
Joseph Wang
e216963630 back out of previous change. There seem to be version dependent
changes in what gets printed out and previous change causes
double printing in earlier versions of R


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-20 15:54:36 +00:00
Joseph Wang
a6764a156c use print to output sprintf
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-18 13:53:47 +00:00
William S Fulton
049035ff3e Add discard and add methods to std::set and std::multiset wrappers so that pyabc.i can be used ensuring MutableSet is a valid abstract base class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13619 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-15 22:36:15 +00:00
William S Fulton
289b8bb269 Fix additio of assumeoverride testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 21:59:14 +00:00
William S Fulton
009c191430 Add assumeoverride feature option for Java directors to improve performance when it can be assumed that all methods are overridden by the Java derived classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 21:41:08 +00:00
Sylvestre Ledru
7dac1bc524 Fix somes typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 09:19:26 +00:00
William S Fulton
2d24ca37d1 Fix invalid code sometimes being generated for C# director methods with many arguments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 15:49:43 +00:00
William S Fulton
32071e8690 Restore previously broken tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-04 20:25:16 +00:00
William S Fulton
54726b9d09 Fix using declarations and templates. %template was putting the
instantiated template into the global namespace instead of the namespace
of the template definition. This fixes regression in swig-2.0.5 copying
the std::pair typemaps which occurs with a 'using std::pair'
declaration. This also fixes lots of other using declarations of
template problems (template forward declarations. combinations
using directives).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-04 20:24:22 +00:00
William S Fulton
6e6ce16e4e Fix using declarations combined with using directives with forward class
references.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-04 20:23:07 +00:00
William S Fulton
1ce0058256 Fix symbol table bug with combinations of using directives and using declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-25 06:36:29 +00:00
William S Fulton
7ec1e11604 Fix bug 3529601 - seg fault when a protected method has the director
feature but the parent class does not. Also fix similar problems with
the allprotected feature.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-29 22:02:43 +00:00
William S Fulton
55bda8f9f2 Fix seg fault attempting to warn about illegal destructors - introduced in rev 13111
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-28 06:20:45 +00:00
William S Fulton
184519b6a6 attempt to fix test again
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 23:01:28 +00:00
William S Fulton
020e137347 test fix again
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 22:37:57 +00:00
William S Fulton
522382c05e test fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 22:20:22 +00:00
Karl Wette
a276c0b45a [octave] skip part of module_load test for older Octaves
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 21:18:50 +00:00
William S Fulton
76a115ea41 Test fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 18:42:32 +00:00
Olly Betts
7196e556a5 Fix SF#3528035, a regression introduced by the fix for SF#3428833.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 02:58:24 +00:00
Olly Betts
de9d01dbcd [PHP] Fix getters for template members. (SF#3428833)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:43:52 +00:00
Olly Betts
b32c70e244 Comment out use of call-time pass by reference, which has been deprecated for
ages, and is no longer supported by PHP 5.4.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:42:23 +00:00