Commit graph

1,858 commits

Author SHA1 Message Date
Gonzalo Garramuno
522403958e Added new tests.
Updated swig_gc interface to make it simpler.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 17:45:32 +00:00
Gonzalo Garramuno
fd79f15521 Added new swig_gc.rb file to obtain easy stats
from ruby's GC.
Updated newobject1_* tests to use it.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9695 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 17:29:11 +00:00
Gonzalo Garramuno
bbee2e374c Updated some tests to use swig_assert.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9694 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 15:54:50 +00:00
Gonzalo Garramuno
5be075f16f Added some runtime tests for ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 15:52:50 +00:00
Gonzalo Garramuno
928f12bd44 Updated swig_assert to optionally be more verbose
and report stack traces nicelly.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 15:50:35 +00:00
Gonzalo Garramuno
4b8d11d0e2 Fixed ruby's newobject1 and newobject2 demos.
Added swig_assert.rb and started using it in some tests.
Added my patches to ruby.cxx, rubyrun.swg, rubystrings.swg
and rubytracking.swg [see: sourceforge]



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 04:20:28 +00:00
William S Fulton
4f984a5f82 Change class name for Ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-27 21:12:36 +00:00
Olly Betts
660d1c8a55 Fix parsing of float constants with an exponent (e.g. 1e-02f) (bug #1699646).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-21 16:00:02 +00:00
Olly Betts
898e5f7f3d [Python] Fix lack of generation of docstrings when -O is used.
Also, fix generation of docstrings containing a double quote
character.  Patch from Richard Boulton in bug#1700146.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9684 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-20 01:16:31 +00:00
William S Fulton
da6027a918 add missing c# tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-18 09:47:01 +00:00
William S Fulton
fd03218011 pre, post, cshin, pgcppname attribute tests for javain/csin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9679 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:48:38 +00:00
Olly Betts
07ae5a2aca Don't treat `restrict' as a reserved identifier in C++ mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-16 16:42:00 +00:00
William S Fulton
6efec03cda add in global array variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-02 21:37:13 +00:00
William S Fulton
1f76e733a9 test %array_class and %array_functions of non primitive type added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9667 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-02 21:26:47 +00:00
William S Fulton
936b1b25ad test %apply pointer to ARRAYSOFCLASSES
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9655 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-19 21:29:48 +00:00
Mark Gossage
e38a14b2df Fixed bug in typemaps which caused derived_byvalue and rname test cases to fail.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9648 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-02-22 09:21:23 +00:00
William S Fulton
71c5f58bb3 Fix #1538522 and #1338527, forward templated class declarations without a name for the templated class parameters, such as: template <typename, class> class X;
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-25 23:50:04 +00:00
Mark Gossage
a997938b63 Added a lua specific carrays.i which adds the operator[] support.
modified the main code to make it not emit all the class member functions & accessors

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9642 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-22 04:59:16 +00:00
Mark Gossage
e545d7b957 fixed test case: dynamic_casts, exception_partial_info, li_std_string, size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-12 09:49:29 +00:00
Mark Gossage
bc08e0f335 making setting immutables an error
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9626 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-21 04:53:12 +00:00
William S Fulton
4b31a3ee50 add C# std::string and wchar typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9621 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-15 23:50:39 +00:00
William S Fulton
1164878896 test global
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-15 23:44:23 +00:00
John Lenz
6dda6f8321 Remove cvsignore files: this is stored on svn:igonre property now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +00:00
William S Fulton
97f3816161 add %extend for static member variables test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-29 21:56:03 +00:00
William S Fulton
c5a8c80883 64 bit portability warnings fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-24 22:41:17 +00:00
Dave Beazley
07fcd67072 updated links
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9577 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-23 13:33:27 +00:00
William S Fulton
6a4eaadc7f *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-20 21:34:47 +00:00
William S Fulton
d89fac038b On windows use .pyd instead of .dll - Python-2.5 no longer works with dlls
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-20 21:34:27 +00:00
William S Fulton
e1b7dc9de3 Use .pyd instead of .dll as Python-2.5 stops working with dlls
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9570 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-20 21:28:16 +00:00
Joseph Wang
91e3e97a7b change to make test suite pass R 2.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-19 05:04:44 +00:00
William S Fulton
fc311a4235 More %extend tests - especially derived classes and $self tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-13 22:32:42 +00:00
William S Fulton
970eef034b disable this test case for now - it doesn't work as the fix in director.swg breaks directors on some machines.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-13 22:14:54 +00:00
William S Fulton
61ecffd1ef warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9551 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-13 22:13:49 +00:00
William S Fulton
fc0b3acb6b Fix #1593291 - Smart pointers and inheriting from templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9542 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-10 23:14:37 +00:00
William S Fulton
23311ef735 Test operator pointer casts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-09 22:35:16 +00:00
William S Fulton
65c52f7c06 use $self special variable instead of self in %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-08 01:01:37 +00:00
William S Fulton
80f1901570 nested class method test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-08 00:59:17 +00:00
William S Fulton
79d20b127b New invalid cast exception added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-08 00:57:29 +00:00
William S Fulton
53bea0ddc9 fix module name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-04 10:29:50 +00:00
William S Fulton
3883cb262d test multiple calls for const string& return values
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9520 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-03 21:55:24 +00:00
William S Fulton
6f85d26376 copy test from java version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-03 21:54:25 +00:00
William S Fulton
b21e03617d replace code with warning that it does not work for UTL languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9517 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-02 18:46:12 +00:00
William S Fulton
41df99482a solaris warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9516 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-02 18:23:01 +00:00
William S Fulton
204dcb0b1c solaris warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-02 18:15:20 +00:00
William S Fulton
6330055dbe remove non-standard C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-02 09:04:55 +00:00
William S Fulton
dfad5a66ef vc++ warning suppression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-02 08:30:23 +00:00
William S Fulton
9f2e36214d *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-31 22:31:42 +00:00
William S Fulton
290dd7e956 runtime test for turning multiple inherited classes into Java interfaces
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9499 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-31 22:10:34 +00:00
William S Fulton
59f518a058 more nopgcpp tests (for const methods)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-31 22:06:52 +00:00
William S Fulton
ce9db25ff0 test %csmethodmodifiers for c#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-31 22:05:35 +00:00