Commit graph

13,044 commits

Author SHA1 Message Date
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
ab2f4590c6 Added new changes to list.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9712 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 20:50:36 +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
8931224836 Fixed incorrect outputing of free_* functions
when user had defined a new free function with
%freefunc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:44:23 +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
bbc118c076 Improved new ruby docs a little bit.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9700 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 18:49:01 +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
15393d5ead Updated "asvoid" to become "numoutputs" as documented.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 08:59:32 +00:00
Gonzalo Garramuno
b3b883f382 Added Ruby changes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9697 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 08:58:31 +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
Surendra Singhi
0ee9f91eb8 fixed closing paren
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-21 19:10:14 +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
Surendra Singhi
4beedd3f04 Fixed a bug with clos method, and generating constructors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-21 09:26:31 +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
8dd64805b9 Fix a couple of repeated typos:
"Creatng" -> "Creating"
"visa versa" -> "vice versa"


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-20 01:22:46 +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
Olly Betts
2d962ac1f2 SWIG does now support use of some constant expressions as template parameters
so update the documentation.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-18 16:24:46 +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
ca43827077 Minor html updates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:59:08 +00:00
William S Fulton
6010fcf9d6 csin and javain typemap improvements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:51:24 +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
William S Fulton
0090cac1d0 Add in pre, post and cshin attributes for the csin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9678 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:45:17 +00:00
William S Fulton
f63d3ad5ad Add in pre, post and pgcppname attributes for the javain typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9677 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:44:33 +00:00
William S Fulton
57b20069d9 comment fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-17 22:34:49 +00:00
Olly Betts
e891cd8393 Note the SF bug #
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9675 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-16 16:43:08 +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
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
2632bd0c3c Stop passing unused argument to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-15 23:22:29 +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
Olly Betts
8b9af6389b [PHP5] If ZTS is enabled, release <module>_globals_id in MSHUTDOWN
to avoid PHP interpreter crash on shutdown.  This solution was
suggested here: http://bugs.php.net/bug.php?id=40985


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-04 09:40:55 +00:00
Olly Betts
a5ac23e6d2 [PHP4] Add missing ZTS annotations to generated C++ wrapper code
to fix compilation failures when using ZTS enabled SWIG (Linux
distributions tend to disable ZTS, but notably the Windows build
uses it by default).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9669 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-03 15:56:36 +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
Surendra Singhi
85a3666f7c git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9666 626c5289-ae23-0410-ae9c-e8d60b6d4f22 2007-04-01 13:22:36 +00:00
Olly Betts
e90a095e77 Avoid generating '<:' token when using SwigValueWrapper<> on a type
which starts with '::' (patch #1690948).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9665 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-30 02:34:38 +00:00
Olly Betts
cf6e9f2743 Escape unescape < > & in HTML
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-03-26 01:26:44 +00:00