Gonzalo Garramuno
7d570676f5
Better autodocs.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 09:56:28 +00:00
Gonzalo Garramuno
f8ee6e65fe
Updated Ruby manual to enhance section on the STL.
...
Fixed inspect() method on map and rubycontainer
not using inspect to print out elements.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 06:58:55 +00:00
Gonzalo Garramuno
c6ece2bb93
Made autodoc ignore numinputs=0.
...
Added more typemap(doc) for documenting STL
and standard ruby methods.
Added missing RUBY_SELF typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 22:09:06 +00:00
Gonzalo Garramuno
d3945a4d40
Improved autodoc documentation for standard ruby methods
...
and for STL containers, using %feature instead of
hard-coding the stuff in ruby.cxx.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 20:37:21 +00:00
Gonzalo Garramuno
594483bbda
STL stream support for Ruby.
...
docstring and autodoc support for Ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 10:00:26 +00:00
Gonzalo Garramuno
cea5ba04fa
Fixed last test in std_set test suite that was
...
failing due to having been done with old hash sort.
Improved rubycontainer a little bit. Made GC_VALUE
sort an rb_protect function to prevent bad sorting
attempt of an Array against a String.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 01:28:21 +00:00
Gonzalo Garramuno
1b349d4749
Fixed a bug with argout values being incorrectly
...
returned when the first argout/returned element
was an array.
Made std::pair and container returned elements be
frozen (like tuples in python).
Added the std_containers.i test from python and
created a ruby runme file for it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 22:40:55 +00:00
Gonzalo Garramuno
3ccbac69aa
Fixed a problem with const correctness in new
...
adde std_pair.i functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 21:38:33 +00:00
Gonzalo Garramuno
68b52c4ee5
Added support for complex numbers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 10:37:09 +00:00
Gonzalo Garramuno
eb4817c9ee
Added select() function to sequences.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 10:08:24 +00:00
Gonzalo Garramuno
fd964ef50c
std::set is now Enumerable once again.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 10:00:14 +00:00
Gonzalo Garramuno
a6fa331dae
Fixed VALUE less compare function to be a good GC_VALUE
...
less compare function. This is used for hashing.
Moved the functor over to rubyclasses to avoid bloat
when GC_VALUE is not used.
Updated std::map test to check for equivalence.
Updated CHANGES.current a tad to move the STL
stuff as last and merge two feature updates as one.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 09:55:44 +00:00
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
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
8ea7856ef3
Improved GC_VALUE so it gets printed nicely
...
and works properly with std::pair.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9725 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 19:26:18 +00:00
Gonzalo Garramuno
6999e71c07
Several fixes to GC_VALUE, and map containers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 18:33:27 +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
8986650322
Typo fix.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 09:49:58 +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
a0b74a907e
Updated Ruby's STL to new framework.
...
Still need to add new tests for multimap,
multiset, list, etc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 06:36:55 +00:00
Gonzalo Garramuno
18a6b82541
Removed debugging info.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9716 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 23:00:50 +00:00
Gonzalo Garramuno
57cca3c3cb
Minor cleanup. Mode RUBY_INIT_STACK macro
...
definition to rubyhead.swg where all the backward
compatability macros are kept.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 22:56:18 +00:00
Gonzalo Garramuno
57c6fd2f39
Added missing SWIGINTERN to Ruby_Format_TypeError.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 22:40:41 +00:00
Gonzalo Garramuno
9a183f6cfc
Made Ruby_Format_TypeError() thread safe.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 22:26:30 +00:00
Gonzalo Garramuno
effab096e5
Added Ruby_Format_TypeError() function to format
...
swig type errors for ruby properly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9710 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:49:19 +00:00
Gonzalo Garramuno
a1c022562b
Replaced swig's common error macros to printout
...
ruby's index properly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9709 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:48:37 +00:00
Gonzalo Garramuno
4aea80fac4
Removed warnings about swig's tracking
...
variable when ruby -w was run.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9708 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:29:19 +00:00
Gonzalo Garramuno
4feaed41f0
Fixed typo for RUBY_EMBEDDED.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:12:48 +00:00
Gonzalo Garramuno
3dc18ec7ca
Added rubycontainer.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9705 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:42:27 +00:00
Gonzalo Garramuno
bf144023f5
Fixed reference to PyObject* in rubyfragments.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:41:42 +00:00
Gonzalo Garramuno
992dfbe848
Added rubyiterators.swg. Not sure if it will be kept.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9703 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:41:01 +00:00
Gonzalo Garramuno
b6a08f9ec7
Added support to avoid swig director type mismatch errors
...
on embedded ruby.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9702 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:39:52 +00:00
Gonzalo Garramuno
3b2294bf2f
Added rubystdcommon.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9701 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:38:24 +00:00
Gonzalo Garramuno
18f614364f
Improved ruby trackings across DSOs, removing the
...
need for -DSWIG_EXTERN.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9699 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 18:48:22 +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
8c989f8fe3
better director error message formatting
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-20 22:00:21 +00:00
Olly Betts
2f6a268e55
Support building with recent versions of the Ruby 1.9 development branch.
...
Fixes bug #1560092 .
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 21:39:09 +00:00
William S Fulton
949e220630
- explicitcall feature removed.
...
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:45:31 +00:00
Luigi Ballabio
2ba3707828
Fixes for std::pair typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-08-01 07:51:45 +00:00
Olly Betts
42e34e1308
Convert C++ std::string to and from ruby such that strings containing
...
zero bytes are handled correctly, as they are elsewhere.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-15 02:01:05 +00:00
Olly Betts
97e9837d46
Fix a typo.
...
[Patch recommit]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 18:56:46 +00:00
Marcelo Matus
52cfa52b83
fix docs, path provided by Olly
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-04-11 01:40:20 +00:00
Marcelo Matus
b84495613a
fix for old VC 6.0 and linking issue reported by Roy Sutton
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9039 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-27 21:39:49 +00:00
Luigi Ballabio
a02fee0e9e
Support for Ruby 1.6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-09 08:34:09 +00:00
William S Fulton
797317163a
cosmetics
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 22:02:54 +00:00
William S Fulton
8a31552220
Common template for head of each file detailing licence, distribution and authors information
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:45:17 +00:00
William S Fulton
49be05f4fd
Common template for head of each file detailing licence, distribution and authors information
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00