swig/Lib
Marcelo Matus 3f1f31d1e8 Fix long long and other warnings.
Add the macros

%typemap_asfromcheck()
%typemap_asfrom()

that can be used to defined all the different typemaps
for types where the As/From/Check methods are provided.

All the basic type (int, char,...) typemaps are implemented
using them.

The std::string and std::complex<T> are reimplemented using
the new %typemap_asfrom/check macros too. This helps to complete
all the previously missing typemaps (consttab, varin, varout,..)
and also ilustrates how to define the As/From/Check methods
to use with the %typemap_asfrom/check macros.

As a byproduct, the C complex typemap was added, and the file

complex.i

can be used to load the complex support for either C or C++. The
original C++ std_complex.i is still there, and the corresponding C
ccomplex.i too, if they need to be included explicitly.

Also, the As/From methods are declared via %fragment, so, they
can be reused as needed, and only appear in the wrapped code if
they corresponding typemap is invoked, making the typemaps
and the entire code shorter and simpler.


Marcelo.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-28 01:30:13 +00:00
..
chicken Forgot #undefs, add python bad names, change names from 2003-12-12 06:15:46 +00:00
csharp restored the string kw, now it works fine 2004-01-13 01:38:07 +00:00
guile Added pack/unpack functions 2003-12-08 18:07:36 +00:00
java example correction 2004-01-21 21:24:46 +00:00
mzscheme Added pack/unpack functions 2003-12-08 18:07:36 +00:00
ocaml added ocaml keywords 2003-12-12 07:12:42 +00:00
perl5 Added pack/unpack functions 2003-12-08 18:07:36 +00:00
php4 Forgot #undefs, add python bad names, change names from 2003-12-12 06:15:46 +00:00
pike restored the string kw, now it works fine 2004-01-13 01:38:07 +00:00
python Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
ruby added defined 2003-12-12 08:25:10 +00:00
tcl *** empty log message *** 2003-12-12 18:29:00 +00:00
xml This file is deprecated - superceded by the pointer.i library. Bye bye! 2003-09-23 20:38:46 +00:00
_std_deque.i The great merge 2002-11-30 22:01:28 +00:00
allkw.swg added ocaml keywords 2003-12-12 07:12:42 +00:00
carrays.i Add Ruby support for item indexing in Lib/carrays.i. 2003-03-08 04:21:41 +00:00
cdata.i The great merge 2002-11-30 22:01:28 +00:00
cmalloc.i The great merge 2002-11-30 22:01:28 +00:00
common.swg Added Perl support for member pointers. Some reorganization of other runtime code 2003-11-28 20:56:17 +00:00
constraints.i The great merge 2002-11-30 22:01:28 +00:00
cpointer.i The great merge 2002-11-30 22:01:28 +00:00
cstring.i The great merge 2002-11-30 22:01:28 +00:00
exception.i added the SWIG_CATCH_STDEXCEPT macro to map stdexcept -> SWIG_exception 2004-01-13 01:41:19 +00:00
math.i The great merge 2002-11-30 22:01:28 +00:00
pointer.i The great merge 2002-11-30 22:01:28 +00:00
std_deque.i The great merge 2002-11-30 22:01:28 +00:00
stl.i Typemap for size_t applied to std::size_t 2003-08-17 11:52:31 +00:00
swig.swg swig -DSWIG_ALLKW was too ugly. Use -Wallkw instead. Reverting swig.swg 2003-12-12 06:12:29 +00:00
swigrun.i *** empty log message *** 2003-11-20 02:49:12 +00:00