From: William F. <wsf...@us...> - 2005-11-10 21:26:48
|
Update of /cvsroot/swig/SWIG/Lib/csharp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26177 Modified Files: csharp.swg Log Message: Fix so that all the const primitive reference types can be applied to other types Index: csharp.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/csharp/csharp.swg,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** csharp.swg 21 Oct 2005 10:43:40 -0000 1.46 --- csharp.swg 10 Nov 2005 21:26:40 -0000 1.47 *************** *** 130,150 **** /* primitive types by const reference */ ! %typemap(in) const bool & (bool temp) %{ temp = $input ? true : false; $1 = &temp; %} ! %typemap(in) const char & (char temp), ! const signed char & (signed char temp), ! const unsigned char & (unsigned char temp), ! const short & (short temp), ! const unsigned short & (unsigned short temp), ! const int & (int temp), ! const unsigned int & (unsigned int temp), ! const long & (long temp), ! const unsigned long & (unsigned long temp), const long long & ($*1_ltype temp), const unsigned long long & ($*1_ltype temp), ! const float & (float temp), ! const double & (double temp) %{ temp = ($*1_ltype)$input; $1 = &temp; %} --- 130,150 ---- /* primitive types by const reference */ ! %typemap(in) const bool & ($*1_ltype temp) %{ temp = $input ? true : false; $1 = &temp; %} ! %typemap(in) const char & ($*1_ltype temp), ! const signed char & ($*1_ltype temp), ! const unsigned char & ($*1_ltype temp), ! const short & ($*1_ltype temp), ! const unsigned short & ($*1_ltype temp), ! const int & ($*1_ltype temp), ! const unsigned int & ($*1_ltype temp), ! const long & ($*1_ltype temp), ! const unsigned long & ($*1_ltype temp), const long long & ($*1_ltype temp), const unsigned long long & ($*1_ltype temp), ! const float & ($*1_ltype temp), ! const double & ($*1_ltype temp) %{ temp = ($*1_ltype)$input; $1 = &temp; %} |