Commit graph

1,873 commits

Author SHA1 Message Date
Gonzalo Garramuno
8564ff90c0 Improved multimap, vector and set by rearranging
some methods.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 06:43:56 +00:00
Gonzalo Garramuno
163efb1923 Added set test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 06:43:10 +00:00
Gonzalo Garramuno
e7d8816016 Added set test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 06:42:52 +00:00
Gonzalo Garramuno
2fd7c775ea Added new li_std_map.i test to Makefile.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:50:06 +00:00
Gonzalo Garramuno
6647de3d16 Changed %trackobjects directive to %feature directive
in demo for languages that do not support it.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:46:46 +00:00
Gonzalo Garramuno
128386f928 Added li_std_map.i as a generic test.
This is the test borrowed from python and changed
to be made generic.
Added ruby's runme script for it too.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9734 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:45:21 +00:00
Gonzalo Garramuno
c0a7c7e081 Added proper each(), printing and other methods to map
and multimap.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 05:43:30 +00:00
Gonzalo Garramuno
aa3c28e230 Yet even better swig assert.
Added more tests to std::vector for map.
Added dup() function to containers.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9732 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 01:54:02 +00:00
Gonzalo Garramuno
293750eaea Moved the GC_VALUE class over to rubystdcommon
so that it will only get added when STL is used.

Documented swig_assert interface.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 01:21:26 +00:00
Gonzalo Garramuno
a100f16bbd Fixes to std_map and multimap. There's still a problem
of const correctness in the std swig STL library.  
Need to bring it up in the swig-devel list.

Added new functions to swig_assert.
Changed some tests to reflect these changes.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 01:08:17 +00:00
Gonzalo Garramuno
7c4d3d8bd8 An improvement to error reporting and
more tests added to std::vector.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9723 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 17:53:04 +00:00
Gonzalo Garramuno
806d9040c5 Updated CHANGES.current.
Fixed problems with insert() and unshift() functions in std::vector for ruby.
Updated Ruby documentation.
Improved swig_assert.rb.
Added "second" singleton to std_pair in ruby.
Modified two tests to follow the new STL stuff.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 09:45:10 +00:00
Gonzalo Garramuno
b2a45de097 Updated std::vector, std::pair tests.
Improved swig_gc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 06:37:41 +00:00
Gonzalo Garramuno
c1119d264a Improved the swig_gc.rb interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 23:52:22 +00:00
Gonzalo Garramuno
ca5f54f668 Made GC.stats report things only in verbose mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9717 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 23:41:56 +00:00
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