Luigi Ballabio
09ec4edb93
Char and unsigned-char specialization added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-19 08:38:27 +00:00
Logan Johnson
edf8fc96ce
Added Ruby module runtime support for SWIG_contract_assert() macro.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-17 20:24:13 +00:00
Logan Johnson
db6a5a9f0b
Fixed some errors in the template specialization for std_vector.i on
...
vectors of "pointer to T".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-12 21:24:55 +00:00
Matthias Köppe
bcf828af88
Use the preprocessor to rename external functions of the SWIG runtime
...
API to follow the naming convention SWIG_<language>_<function>. This
should allow linking more than one interpreter into a program.
Unify the pointer-conversion runtime API.
[Ruby]: Add the function SWIG_MustGetPtr.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 14:34:51 +00:00
Matthias Köppe
02110ce67b
Use the preprocessor to rename external functions of the SWIG runtime
...
API to follow the naming convention SWIG_<language>_<function>. This
should allow linking more than one interpreter into a program.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:48:17 +00:00
Luigi Ballabio
aa3302379e
Specialization for vector<T*>
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5157 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-24 11:35:50 +00:00
William S Fulton
b9df93083f
Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names):
...
__get_self()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-23 21:21:51 +00:00
William S Fulton
9ecbd6f614
- Compliance with ISO/IEC 14882:1998(E) 17.4.3.1.2 -> eg double underscores removed
...
- Potential member variable and method name clashes remove by preceding with 'swig'
- consistent use of C++ booleans for the swig_disown flag across and within the modules that use this it in director code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5139 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 22:55:17 +00:00
William S Fulton
f569dd135d
__DIRECTOR__ renamed Swig::Director
...
SWIG_DIRECTOR_EXCEPTION renamed Swig::DirectorException (similarly for derived classes)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 20:13:42 +00:00
William S Fulton
69d79e0674
typemap name changes:
...
inv => directorin
outv => directorout
argoutv => directorargout
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 23:52:28 +00:00
William S Fulton
6e052aeb1d
First round of director mods
...
- Removed asserts
- The unused __DIRECTOR__ base class default constructor removed. I've used the conventional approach of having no default constructor rather than a private one (declaring it private doesn't serve any useful purpose when this constructor is not wanted).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5132 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-20 15:11:38 +00:00
Logan Johnson
6d0079f4e6
Fix for the std_pair.i library file for Ruby.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-19 22:03:57 +00:00
Logan Johnson
9ce85f45a3
Add (and use) the SWIG_POINTER_EXCEPTION and SWIG_POINTER_DISOWN flags
...
for the Ruby runtime support. Have not actually implemented support for
"disowning" Ruby pointers yet.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-19 18:47:27 +00:00
Luigi Ballabio
10138e60b9
Typemap for size_t applied to std::size_t
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 11:52:31 +00:00
Logan Johnson
af81134fde
Correct macro name in Lib/ruby/std_pair.i; was "specialize_std_map_on_both",
...
should be "specialize_std_pair_on_both".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-28 14:20:24 +00:00
Luigi Ballabio
8c35d20048
std::pair added (but not very much tested)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-10 12:42:42 +00:00
Logan Johnson
615ff6cc1b
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-04 23:36:13 +00:00
Logan Johnson
997070860e
Modified how the SWIG_DIRECTOR_EXCEPTION class (and its subclasses) are
...
implemented for the Ruby module. Now the SWIG_DIRECTOR_EXCEPTION object
stores a reference to the Ruby exception instance.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 17:54:53 +00:00
Logan Johnson
6db7df0733
Fixed array typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 22:13:52 +00:00
Logan Johnson
7740019f91
Added include of <assert.h> for Ruby's director.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 19:35:15 +00:00
William S Fulton
c3b517df76
Removed varin typemaps for SWIGTYPE[] (dimensionless arrays).
...
These were useless as they just produced a setter that gave a runtime error.
Exposes some missing varin SWIGTYPE[ANY] typemaps - they show up in the test-suite.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:59:10 +00:00
Luigi Ballabio
418ed3416b
Added correct (I hope) typechecking for native scripting objects
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-22 13:01:44 +00:00
Logan Johnson
184da7430f
A little more work on the Ruby support for C++ polymorphism. Exception
...
handling almost works...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-29 16:08:16 +00:00
Logan Johnson
c0a9e0d223
Add inv and outv Ruby typemaps for std::string.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-26 00:00:19 +00:00
Logan Johnson
3e7037351a
Made a change to the type-checking code in SWIG_ConvertPtr() for the Ruby
...
module, so that the new multiple-inheritance support code will work.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4708 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-25 20:00:46 +00:00
Logan Johnson
183be41892
Initial changes for limited MI support in Ruby (still under construction!)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-25 17:38:42 +00:00
Logan Johnson
d9d068ca1a
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-17 23:49:17 +00:00
Logan Johnson
0af3e7f14f
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-16 22:44:05 +00:00
Logan Johnson
432bd404c6
Additional fixes for Ruby 1.8 compatibility.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-16 22:35:50 +00:00
Logan Johnson
961b144d29
Replaced all occurrences of the deprecated STR2CSTR() in Ruby code with
...
the new StringValuePtr().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-15 17:14:18 +00:00
Logan Johnson
94d41ca55a
Comment out Ruby code for "fail" tag.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4560 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-17 16:52:37 +00:00
Logan Johnson
edd3bac431
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-11 21:34:14 +00:00
Luigi Ballabio
471f1d43d8
std::map ready for prime time (hopefully)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-11 15:38:02 +00:00
William S Fulton
abb4c8b64c
long long typemap rewrite for compilers that don't understand long long
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-10 22:41:28 +00:00
Logan Johnson
e87f381b3a
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4469 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-07 18:37:04 +00:00
Logan Johnson
1823d6f715
Added missing 'long long' and 'unsigned long long' typemaps for Ruby's
...
typemaps.i file.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-07 15:24:38 +00:00
William S Fulton
9f8a23ca5a
long long typemap mods for use with %apply
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-06 23:28:01 +00:00
Luigi Ballabio
34521b3eb6
Support for std::map (thanks, Dave)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-27 10:05:55 +00:00
Logan Johnson
212275f45d
Add range checking for NUM2USHRT macro, per SF Bug #675353 .
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-25 19:22:36 +00:00
William S Fulton
079829c86a
SWIGTYPE & varin typemap fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-11 21:24:40 +00:00
Dave Beazley
5e5d35c199
Partial fix of [ 675353 ] rubyhead.swg: missing cast at NUM2USHRT.
...
Lyle, can you take a look at this:
http://sourceforge.net/tracker/index.php?func=detail&aid=675353&group_id=1645&atid=101645
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-07 22:10:14 +00:00
Luigi Ballabio
9e382dd1d8
Allow objects to be modified during iteration (and minor method name change)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-01-29 13:05:45 +00:00
Luigi Ballabio
be4e37e548
A global stl.i works just as well
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-01-17 12:44:47 +00:00
Dave Beazley
516036631c
The great merge
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00
Masaki Fukushima
6c052b692b
Added -feature to ruby/Makefile.swig template
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@1027 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2001-02-25 16:07:49 +00:00
Masaki Fukushima
404d161742
Check_Type() added to FILE* typemap
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@1026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2001-02-25 11:22:42 +00:00
Masaki Fukushima
feb39b0fd2
Many bug fixes to Ruby module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-18 13:32:29 +00:00
Masaki Fukushima
f19e6cc4df
a few bug fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 17:11:15 +00:00
Dave Beazley
2af607dcf6
Major fixes to pointer libraries
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 19:25:15 +00:00
Dave Beazley
3ef3086b5a
Changed _swig_type_info to swig_type_info
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@799 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-02 16:25:50 +00:00