swig/Lib/python
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
..
ccomplex.i Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
complex.i Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
complex_common.i Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
cstring.i Fixed [ 651355 ] Syntax error with cstring.i 2003-02-07 22:13:11 +00:00
defarg.swg *** empty log message *** 2000-01-12 02:55:03 +00:00
director.swg Lateral change to add runtime "reprotection" at the python 2003-12-11 01:59:12 +00:00
embed.i Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names): 2003-09-23 21:19:47 +00:00
embed15.i Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names): 2003-09-23 21:19:47 +00:00
fragments.i The great merge 2002-11-30 22:01:28 +00:00
Makefile.in The great merge 2002-11-30 22:01:28 +00:00
precommon.swg Added pack/unpack functions 2003-12-08 18:07:36 +00:00
pyprim.swg Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
pyrun.swg Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
python.swg Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
pythonkw.swg added 'self' 2004-01-15 09:04:27 +00:00
std_common.i fix mixed type 2004-01-20 20:46:31 +00:00
std_complex.i Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
std_deque.i The great merge 2002-11-30 22:01:28 +00:00
std_list.i Miscellaneous patches from users 2003-04-02 07:41:56 +00:00
std_map.i std::map ready for prime time (hopefully) 2003-03-11 15:38:02 +00:00
std_pair.i Fixed compilation problems, missing exception.i library. 2003-11-26 19:30:38 +00:00
std_string.i Fix long long and other warnings. 2004-01-28 01:30:13 +00:00
std_vector.i Char and unsigned-char specialization added 2003-11-19 08:38:27 +00:00
typemaps.i long long typemap mods for use with %apply 2003-03-06 23:28:01 +00:00