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
6bed15279e
Added two #ifdef guards to allow replacing some
...
of the exception error macros.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9711 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:50:08 +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
e6611209f6
[PHP5] Fix how zend_throw_exception() is called (bug #1700785 ).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9673 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-16 15:13:45 +00:00
Olly Betts
fb2e4b580d
Define SWIGTEMPLATEDISAMBIGUATOR to template for aCC (reported on
...
swig-user that this is needed).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-10 14:14:52 +00:00
John Lenz
1396dffb68
add SWIG_fail to SWIG_expcetion macro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-25 17:40:56 +00:00
William S Fulton
74aa9cef17
Apply patch 1631987 - Java typemap for bool INOUT fails on big-endian machines
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9656 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-21 21:00:21 +00:00
William S Fulton
36759b3303
ARRAYSOFCLASSES and ARRAYSOFENUMS fix so that they can be applied to pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9652 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-16 23:37:15 +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
Mark Gossage
93496ba199
Patch #1598063 Typo in typemaps.i
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-23 01:38:53 +00:00
Mark Gossage
571a84c9e7
removed reference to contributers
...
Patch #1640862 (malloc.h to stdlib.h)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9643 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-23 01:29:00 +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
0cbba6842b
Added typemap throws for std::string*, typemap for SWIGTYPE DYNAMIC, changed the existing throws typemap to throw a string instead of making a copy of the object
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-12 09:51:04 +00:00
Mark Gossage
515e846e2a
Added more STL (more exceptions, map, size_t), fixed test case: conversion_ns_template.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-26 10:15:35 +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
e284fcbf02
remove csvarin/csvarout typemaps which will never be used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9625 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-20 23:11:09 +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
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
Dave Beazley
b08ba52851
Removed nested macros. Simplification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-30 22:56:12 +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
Mark Gossage
9ba3f0399e
update to typemap for object by value, to make it c89 compliant
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-14 05:03:20 +00:00
William S Fulton
5f3de79560
Remove DetachCurrentThread patch from 08/11/2006 - it causes segfaults on some systems
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-13 22:15:53 +00:00
Olly Betts
e19603cb51
Improve how/when we define Py_ssize_t to match the way the python developers
...
recommend, so that it works if the user includes headers from something like
numpy which also defines Py_ssize_t.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-12 01:33:58 +00:00
Mikel Bancroft
be61c5347b
[allegrocl] see CHANGES.current.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9528 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-07 19:34:18 +00:00
William S Fulton
860daa4499
InvalidCastException added for throwing from unmanaged code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-04 00:21:28 +00:00
William S Fulton
c464743104
directorout const string& fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-03 21:57:27 +00:00
Art Yerkes
8ad7605f16
Sorry i haven't been here in a while.
...
camlp4 bug was caught by Michael Ethier <methier@cgr.harvard.edu>
- director.swg: fix a typo
- ocamldec.swg, ocaml.swg: new macros
- ac_compare_version.m4: arty's own more liberally licensed version compare
autoconf macro.
- configure.in: use version_compare and make swigp4.ml generated by
configure based on ocaml version. This is due to an incompatible change
in camlp4.
- ocaml.cxx: use new return macros in the right places
(returning non-value)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-03 07:28:42 +00:00
John Lenz
206e5c64af
Patch from Chris Shoemaker to clean up some warnings in the guile module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9492 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-30 04:44:46 +00:00
Mark Gossage
2af7e4b447
added support for native methods & member function pointers.
...
fixed test cases arrays_dimensionless & cpp_basic. Added new example (functor).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-24 06:26:48 +00:00
William S Fulton
24af2d1b11
consistent directout typemaps for all languages - $result used instead of $1 in C# and Java now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-20 22:54:14 +00:00
William S Fulton
cff71a3716
Fixes for %apply char *, char[], char[ANY] to other types, like unsigned char
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-19 21:35:19 +00:00
William S Fulton
ff75eef478
const size_t& typemaps added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-17 21:43:40 +00:00
John Lenz
56904f30d0
- Fix SF bug 1573892
...
- Minor change to chicken to make it work with version 2.5rc1
- add externaltest to chicken and guile modules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 08:19:27 +00:00
Mark Gossage
5149b7b4f3
fixed several test cases
...
added long long support
changed typemaps to use SWIG_ConvertPtr rather than SWIG_MustGetPointer
started spliting lua.swg into smaller parts to make it neater
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-14 07:15:52 +00:00
William S Fulton
1be9e42787
Avoid potential race conditions on the Dispose() method
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 23:10:18 +00:00
William S Fulton
4ad8d458d2
Avoid potential race conditions on the delete() method
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 21:36:06 +00:00
Olly Betts
ba768a2ecc
Reapply the valid half of my previous patch (which fixes the case I
...
just added to the testsuite and doesn't break anything else).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9440 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 00:04:41 +00:00
William S Fulton
ddec395582
Revert last change, it breaks the test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9437 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 22:42:47 +00:00
William S Fulton
51662d55f3
Fix #1238798 - Directors using unsigned long long or any other type
...
marshalled across the JNI boundary using a Java class (where the jni typemap
contains jobject).
Fix variable name clash in unsigned long long directorin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 22:42:25 +00:00