From: Marcelo M. <mar...@us...> - 2005-10-31 09:46:29
|
Update of /cvsroot/swig/SWIG/Lib/typemaps In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31886 Modified Files: inoutlist.swg Log Message: docs and cosmetic fixes Index: inoutlist.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/typemaps/inoutlist.swg,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** inoutlist.swg 27 Oct 2005 10:35:38 -0000 1.4 --- inoutlist.swg 31 Oct 2005 09:46:18 -0000 1.5 *************** *** 234,263 **** #ifndef SWIG_INOUT_NODEF - #define %value_input_typemap(code,_a,_af,...) \ - %_value_input_typemap(%arg(code),%arg(_a), \ - %arg(_af),%arg(__VA_ARGS__)) ! #define %ptr_input_typemap(code,_a,_af,...) \ ! %_ptr_input_typemap(%arg(code),%arg(_a),%arg(_af), \ ! %arg(__VA_ARGS__)) ! #define %value_output_typemap(_f,_ff,...) \ ! %_value_output_typemap(%arg(_f),%arg(_ff),%arg(__VA_ARGS__)) ! #define %value_inout_typemap(...) %_value_inout_typemap(%arg(__VA_ARGS__)) ! #define %ptr_inout_typemap(...) %_ptr_inout_typemap(%arg(__VA_ARGS__)) #else /* You need to include typemaps.i */ ! #define %value_output_typemap(...) ! #define %value_input_typemap(...) ! #define %value_inout_typemap(...) ! #define %ptr_input_typemap(...) ! #define %ptr_inout_typemap(...) #endif /* SWIG_INOUT_DEFAULT */ ! %define %typemaps_inout(Code, AsValMeth, FromMeth, AsValFrag, FromFrag, Type...) %_value_input_typemap(%arg(Code), %arg(AsValMeth), --- 234,270 ---- #ifndef SWIG_INOUT_NODEF ! %define %value_input_typemap(code,asval_meth, asval_frag, Type...) ! %_value_input_typemap(%arg(code),%arg(asval_meth),%arg(asval_frag),%arg(Type)) ! %enddef ! %define %ptr_input_typemap(code,asval_meth,asval_frag,Type...) ! %_ptr_input_typemap(%arg(code),%arg(asval_meth),%arg(asval_frag),%arg(Type)) ! %enddef ! %define %value_output_typemap(from_meth,from_frag,Type...) ! %_value_output_typemap(%arg(from_meth),%arg(from_frag),%arg(Type)) ! %enddef ! ! #define %value_inout_typemap(Type...) %_value_inout_typemap(%arg(Type)) ! #define %ptr_inout_typemap(Type...) %_ptr_inout_typemap(%arg(Type)) #else /* You need to include typemaps.i */ ! #define %value_output_typemap(Type...) ! #define %value_input_typemap(Type...) ! #define %value_inout_typemap(Type...) ! #define %ptr_input_typemap(Type...) ! #define %ptr_inout_typemap(Type...) #endif /* SWIG_INOUT_DEFAULT */ ! /*---------------------------------------------------------------------- ! Front ends. ! ! use the following macros to define your own IN/OUTPUT/INOUT typemaps ! ! ------------------------------------------------------------------------*/ %define %typemaps_inout(Code, AsValMeth, FromMeth, AsValFrag, FromFrag, Type...) %_value_input_typemap(%arg(Code), %arg(AsValMeth), |