Commit graph

61 commits

Author SHA1 Message Date
Marcelo Matus
dade472fb2 fix for null-reference 1038359
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6672 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 02:49:10 +00:00
Marcelo Matus
994e796c87 add std_list (lluisp #1033399)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6671 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-05 02:32:26 +00:00
Marcelo Matus
43ff4e34d1 add patch 962168 for Multiple Inheritance problem, seems to be working fine
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 11:17:20 +00:00
John Lenz
0c57969c61 - Add SWIG_RUNTIME_VERSION to new type sharing code. This is for future-proof, if
the format of swig_type_info ever changes, this number should be incremented
- Add SWIG_LINK_RUNTIME and SWIG_STATIC_RUNTIME symbols to python
- Convert inline into SWIGINLINE


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 21:53:54 +00:00
Marcelo Matus
9bc6545ff0 fix default varin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 19:15:14 +00:00
William S Fulton
85b1bcfc47 removed redundant valuewrapper feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:19:14 +00:00
Marcelo Matus
9d9580639a add %typemap(varin) SWIGTYPE[], fix some typemaps to be safe for %apply
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6423 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 00:38:44 +00:00
Marcelo Matus
5a4369fd11 avoid to use SwigValueWrapper with std::string, just to keep the code cleaner and familiar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 00:35:16 +00:00
Marcelo Matus
38e568e602 fix lon long + apply + SwigValueWrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 09:49:24 +00:00
Marcelo Matus
3eed27bc54 fix in typemap for std_string + value wrapper
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-17 09:17:10 +00:00
John Lenz
75e462baa8 Removed ability to share type information by C linking
All type sharing happens through a global variable in the target language.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
John Lenz
6ed2f7e90e New way of sharing type information between modules for chicken, mzscheme,
ruby, tcl, and perl.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6332 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 22:43:41 +00:00
William S Fulton
88d782332a added %perlcode directive, patch from Fabrice Salvaire
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6157 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:16:19 +00:00
William S Fulton
ea94a4a0bd Patch from Ikegami Tsutomu to fix long long *OUTPUT and unsigned long long *OUTPUT typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6156 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:15:41 +00:00
William S Fulton
3a0d6f1a7e varin enum SWIGTYPE mods to handle unnamed enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6149 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-25 21:32:27 +00:00
William S Fulton
a5c694a978 missing throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 21:44:54 +00:00
Luigi Ballabio
13374b6a80 Fix in Perl out-typemap for std::vector (thanks to Josh Cherry)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-11 07:37:41 +00:00
Luigi Ballabio
f6a474cafa Enable Perl automatic stringification (see 2004/05/13 post from J.Slade)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5909 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 12:49:42 +00:00
Matthias Köppe
2eacba6ef9 New common runtime function SWIG_TypePrettyName.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-06 09:51:37 +00:00
Dave Beazley
09d0af6fea Added pack/unpack functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-08 18:07:36 +00:00
Dave Beazley
748462bb3e Fixed perl5.005 problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-04 19:14:14 +00:00
Luigi Ballabio
a07b071331 Fixed problem with std::vector<unsigned int>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-03 08:23:00 +00:00
Dave Beazley
1bb91ece90 Added Perl support for member pointers. Some reorganization of other runtime code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-28 20:56:17 +00:00
Dave Beazley
e4319e118e Fixed (char *STRING, int LENGTH) typemap to use STRLEN type.
Eliminates compiler warning.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-28 19:24:38 +00:00
William S Fulton
60c74da9c6 Added missing SWIGIMPORT to runtime library functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-25 21:15:15 +00:00
Dave Beazley
465eebfb32 [ 841074 ] better croaking (PATCH)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-25 17:06:56 +00:00
Luigi Ballabio
5e161fa7cd Char and unsigned-char specialization added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-19 08:38:27 +00:00
Dave Beazley
0b75c636c4 Added Swig_contract_assert
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-18 20:58:56 +00:00
Dave Beazley
445625dc0a *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-11 20:44:32 +00:00
Matthias Köppe
13f434304d 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.  The standard
	    functions are:
	     * SWIG_NewPointerObj (POINTER, TYPE, FLAGS)
	        -- Create an scripting object that represents a typed
		   pointer. FLAGS are language specific.
	     * SWIG_ConvertPtr (INPUT, RESULT, TYPE, FLAGS)
	        -- Get a pointer from the scripting object INPUT and
		   store it in the place RESULT.  When a type mismatch
		   occurs, return nonzero.
	     * SWIG_MustGetPtr (INPUT, TYPE, ARGNUM, FLAGS)
	        -- Get a pointer from the scripting object INPUT and
		   return it.  When a type mismatch occurs, throw an
		   exception.  If ARGNUM > 0, report it as the
		   argument number that has the type mismatch.
            [Guile]:    No changes.
	    [MzScheme]: No changes.
	    [Perl]:     Add the function SWIG_NewPointerObj.
		        The function SWIG_MakePtr is kept.
			The function SWIG_MustGetPtr is currently not
			supported.
	    [Python]:   Add the function SWIG_MustGetPtr.
	    [Ruby]:     Add the function SWIG_MustGetPtr.
	    [Tcl]:      Remove the "interp" argument of
		        SWIG_NewInstanceObj, SWIG_ConvertPtr,
		        SWIG_ConvertPacked, and SWIG_ConvertPtrFromString.
			The function SWIG_MustGetPtr is currently
			not supported.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:49:45 +00:00
Matthias Köppe
de27e32afb 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/SWIG@5242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:48:17 +00:00
Dave Beazley
77d05524a9 Fixed [ 827907 ] argout objects not being wrapped properly (PATH).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-29 19:43:38 +00:00
Dave Beazley
55a6ee7007 Fixed [ 826996 ] perl type checking ignores perl subclasses.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-29 19:02:44 +00:00
Dave Beazley
360eb281e8 Fixed [ 800012 ] ENTER macro from CORE/scope.h clashes with libc search.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5172 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-30 17:52:45 +00:00
Dave Beazley
ce52c68732 Fixed [ 811518 ] Casting ints to doubles (w/ solution?)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5168 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-30 17:35:18 +00:00
William S Fulton
22bcd64ccd Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names):
_SWIG_ConvertPtr and _SWIG_MakePtr


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-23 21:17:46 +00:00
Luigi Ballabio
768fa03144 Fixed Perl std::vector::at problem with gcc < 3.0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 08:19:27 +00:00
Dave Beazley
c5b153d169 Fixed [ 786394 ] Patch for generated perl code does not compile under RedHat9
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-01 18:13:33 +00:00
Luigi Ballabio
62741dd03e Typemap for size_t applied to std::size_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 11:52:31 +00:00
Dave Beazley
8564ddabf0 Improvements to array handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 16:16:00 +00:00
William S Fulton
8a54131cd2 Reduced number of occurrences of annoying warning to 1, as reported by Gerald Williams using perl-5.8.0 and GCC3 onwards on Cygwin:
In function `int SWIG_ConvertPtr(SV*, void**,  swig_type_info*, int)':
warning: cast to pointer from integer of different size


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-04 22:32:02 +00:00
Luigi Ballabio
dcb94e7d4a std::pair added (but not very much tested)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-10 12:42:42 +00:00
William S Fulton
a951a86659 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/SWIG@4843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:59:10 +00:00
Luigi Ballabio
a33c36b0a7 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-19 09:13:12 +00:00
Luigi Ballabio
7b977084c2 Specialized typemaps---some problems though
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4792 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-19 08:47:31 +00:00
Luigi Ballabio
7463cde52f Missing files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-08 13:02:58 +00:00
William S Fulton
6ab0796609 long long typemap mods for using with %apply by compilers that don't understand long long
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-10 19:50:14 +00:00
Dave Beazley
3bb10c5791 Long long typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4463 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-07 17:46:15 +00:00
William S Fulton
af3ec605e9 long long typemap mods for use with %apply
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-06 23:28:01 +00:00
Luigi Ballabio
9d50216d9c Support for std::map (thanks, Dave)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-27 10:05:55 +00:00