William S Fulton
2c74c90430
Fix for gcc warning -Wunused-value without triggering -Wunused-parameter
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-07 06:06:00 +00:00
William S Fulton
5effbc386c
Apply patch #3517769 from Robin Stocker to fix compile error on MacRuby using RSTRING_PTR
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-14 16:18:04 +00:00
William S Fulton
347f2782d2
Fix missing stddef.h when %import of STL containers. Was causing compile failures witht g++-4.6.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-20 20:07:56 +00:00
William S Fulton
50693941c6
Fix #3475492 - iterating through std::vector wrappers of enumerations.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-13 07:10:24 +00:00
William S Fulton
58e74e8675
Rename python_kwargs testcase to kwargs_feature. Add kwargs_feature to Ruby and fix Ruby warnings when using kwargs feature. Add %kwargs macro for Ruby
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-06-13 17:38:08 +00:00
William S Fulton
f8270079eb
remove unused macro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-19 06:44:17 +00:00
William S Fulton
dfa13b658e
Fix import_stl testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-19 06:42:56 +00:00
William S Fulton
7d700cc999
patch #3176274 - Ruby typecheck typemap for time_t.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-13 22:19:46 +00:00
Olly Betts
28e277f8c5
Fix typo "the the" -> "the"
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-19 06:31:31 +00:00
Olly Betts
045066e802
Fix typo in comment
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-01 04:17:55 +00:00
William S Fulton
bb41eeb343
Fix potential name clashes with symbols in the Director class
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-27 20:55:24 +00:00
William S Fulton
f9caea4b29
Add SWIG_DIRECTOR_CAST recently added to languages needing it
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-10 00:04:28 +00:00
William S Fulton
4308dd03cf
SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:26:02 +00:00
William S Fulton
830de4d2f1
Various ruby-1.9.x compile fixes including patch from Nibble
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-13 16:59:41 +00:00
William S Fulton
12b89ff406
Apply patch from Patrick Bennett to fix RARRAY_LEN and RARRAY_PTR usage for Ruby 1.9.x
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-13 15:06:26 +00:00
William S Fulton
cb6e87d0e9
consistent inclusion of ruby.h
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-13 14:22:31 +00:00
William S Fulton
f309dc9262
gcc-4.4 warning fix for ruby
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-12 22:27:22 +00:00
Olly Betts
ab06b22bab
[Ruby] Improve support for Ruby 1.9 under GCC. Addresses part of SF#2859614.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-04 08:52:12 +00:00
William S Fulton
3932d02a2a
fix SWIG naming convention
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
William S Fulton
55170f0f88
Add Ruby missing methods for vector<bool> specialization
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 00:17:21 +00:00
Olly Betts
4e1763ba69
[Ruby] Undefine close and connect macros defined by Ruby API
...
headers as we don't need them and they can clash with C++ methods
being wrapped. Patch from Vit Ondruch in SF#2814430.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-30 11:50:14 +00:00
Olly Betts
45611ebd57
[Ruby] Fix to handle FIXNUM values greater than MAXINT passed for a double parameter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-26 01:49:33 +00:00
William S Fulton
ed68b295a0
undef bind for win32, problem reported by vondruch
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-11 21:01:55 +00:00
William S Fulton
e2679a6fd3
correct return type for PyUnicode_GetSize
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 19:20:51 +00:00
William S Fulton
cd43bd063d
Apply patch #2263850 to fix ruby/file.i ... rubyio.h filename change in ruby 1.9.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-23 22:29:07 +00:00
William S Fulton
67f5931952
Fix crashing in the Ruby reject method in the STL wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 20:45:32 +00:00
William S Fulton
9c323f4a70
Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-19 20:02:13 +00:00
William S Fulton
da8791792b
STL fixes when using %import rather than %include and the Solaris Workshop compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-07 21:33:19 +00:00
William S Fulton
a91e4906b5
Add newmemory parameter for SWIG_TypeCast
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 00:35:11 +00:00
Gonzalo Garramuno
c7ec8c691d
Made set_err false by default, as that gives a better overloaded
...
message. Unfortunately, in ruby we cannot concatenate exception
messages as in python.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-19 04:41:46 +00:00
Gonzalo Garramuno
b673832720
Added more backwards compatibility macros from ruby1.9.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-04 03:47:55 +00:00
Gonzalo Garramuno
6120c93fc6
Added a couple of new macros used in ruby1.9.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-02 21:41:50 +00:00
William S Fulton
e659f506f1
Fix fragments in Ruby for old typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10166 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-23 00:00:39 +00:00
William S Fulton
5bbdad6a30
fix comments about fragments - noticed by Josh Cherry
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-20 21:45:06 +00:00
Gonzalo Garramuno
f2f29c9ba5
Moved the std::pair< iterator, bool > typemap to std_set.i
...
where it belongs.
This solves the problem with swig conflicts (at least for now).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10071 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 22:12:56 +00:00
Gonzalo Garramuno
169a953991
Added fix for std::pair< iterator, bool >.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 16:39:05 +00:00
Gonzalo Garramuno
c568d170dc
Added an additional fix to std_set to handle erase
...
properly (sigh).
Fixed a comment in rubyiterators.swg.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-27 21:58:36 +00:00
Gonzalo Garramuno
7bc4e56614
Added new typemap and function to turn a
...
std::set<T>::iterator and std::multiset<T>::iterator
into a ruby const iterator so that the key value
cannot be changed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-27 21:41:22 +00:00
William S Fulton
c6b4403b40
remove dead code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 10:22:40 +00:00
William S Fulton
145c1f42b8
Fix invalid C
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 00:40:18 +00:00
William S Fulton
c01ba3666c
more signed / unsigned mismatch fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 00:31:01 +00:00
William S Fulton
bee6b6650f
signed / unsigned mismatch fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 00:23:58 +00:00
William S Fulton
fb6586ecdf
Fix unary minus warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 23:52:35 +00:00
William S Fulton
1c163430e3
Fixes global namespace pollution from Ruby\'s win32.h
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 23:45:44 +00:00
Gonzalo Garramuno
94a6b8ddb1
Revered _mSWIG to rubyhead.swg as some tests would fail.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:43:28 +00:00
Gonzalo Garramuno
d1defceb95
Moved _mSWIG to rubyrun.swg with all other static
...
variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:12:38 +00:00
Gonzalo Garramuno
8f6e08dcb5
Silly gcc was complaining about static initializers when
...
compiling in C.
Code was now moved to initialization and variables were
prefixed with swig_*.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 05:40:49 +00:00
Gonzalo Garramuno
bbd80cfa84
Moved some of the common checks for methods/procs and arity
...
to rubyrun.swg, as they are useful even for not stl stuff.
Added a fragment trait for marking STL containers, but this
fragment cannot be attached due to SWIG %template limitations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-24 05:46:55 +00:00
Gonzalo Garramuno
a1ed3e094a
Fixed C++ comment in potential C file.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-25 21:43:43 +00:00
Gonzalo Garramuno
aa84817ce0
Fixed typo.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-11 20:03:19 +00:00