swig/Lib
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
..
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 more on uniforming and 'securing' the typemap declarations 2004-01-24 00:43:47 +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