swig/Lib/python
Marcelo Matus 7c6097b392 more on uniforming and 'securing' the typemap declarations
for primitive types.

Finally, you can safetly write:

%apply int {enum Hello};
%apply long {size_t};
%apply int {MyIntClass};

or using references

%apply const int& {const enum Hello&};
%apply const long& {const size_t&};
%apply const int& {MyIntClass&};

and all the primitive typemaps(in, out, directorin, directorout,
constcode, throws, varin, varout) are safetly applied to the
desired types (including the proper conversions when needed).

In fact, the python.swg file now has no typemap
defined for enums, and only use the %apply directives
as above.

Now the primitive_types.i extensive test runs properly.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5683 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-24 00:43:47 +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
pyrun.swg more on uniforming and 'securing' the typemap declarations 2004-01-24 00:43:47 +00:00
python.swg more on uniforming and 'securing' the typemap declarations 2004-01-24 00:43:47 +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 small error fixes 2004-01-20 20:51:46 +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 __DIRECTOR__ renamed Swig::Director 2003-09-22 20:13:42 +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