swig/SWIG/Lib
Marcelo Matus dc061e30f1 Better mapping of char[ANY] in python, including embedded
null chars, which are allowed in C++ and python, and proper
sizes:

  you can use a shorter string to assign a char[6]:

     x = "he\0l"  -> x := {'h','e',0,'l',0, 0}

  but you always get back in python the original size:

   x := {'h','i','0','0',0, 0} -> "hi\0\0\0\0"

Better mapping of (char*)0, now you get a None in the python
side, and using None, you get a (char*)0, just like
all the other C++ pointers. Before (char*)0 was mapped
into python as "", or as seg. faults.

Better mapping of "", which is not None nor (char*)0.

Added more tests using primitive types with simple templates.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-25 09:45:18 +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 Better mapping of char[ANY] in python, including embedded 2004-01-25 09:45:18 +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