Initial work for templates. Mostly adopted from C#.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b0318dae69
commit
d6641336f8
2 changed files with 155 additions and 60 deletions
20
Lib/c/c.swg
20
Lib/c/c.swg
|
|
@ -51,12 +51,12 @@
|
|||
%typemap(proxy) SWIGTYPE ((&)[ANY]) "$1_basetype **"
|
||||
|
||||
%typemap(proxy) void [ANY][ANY], short [ANY][ANY], int [ANY][ANY], long [ANY][ANY], char [ANY][ANY], float [ANY][ANY], double [ANY][ANY] "$1_ltype"
|
||||
%typemap(proxy) SWIGTYPE "$1_ltype *"
|
||||
%typemap(proxy) SWIGTYPE * "$1_ltype "
|
||||
%typemap(proxy) SWIGTYPE & "$1_ltype"
|
||||
%typemap(proxy) SWIGTYPE [ANY][ANY], SWIGTYPE ** "/* whoa */ $1_ltype ***"
|
||||
%typemap(proxy) SWIGTYPE *[ANY] "/*ooooh*/ $1_ltype **"
|
||||
%typemap(proxy) SWIGTYPE *& "/* *& */ $1_ltype **"
|
||||
%typemap(proxy) SWIGTYPE "$resolved_type*"
|
||||
%typemap(proxy) SWIGTYPE * "$resolved_type*"
|
||||
%typemap(proxy) SWIGTYPE & "$resolved_type*"
|
||||
%typemap(proxy) SWIGTYPE [ANY][ANY], SWIGTYPE ** "/* whoa */ $resolved_type ***"
|
||||
%typemap(proxy) SWIGTYPE *[ANY] "/*ooooh*/ $resolved_type **"
|
||||
%typemap(proxy) SWIGTYPE *& "/* *& */ $resolved_type **"
|
||||
%typemap(proxy) enum SWIGTYPE "int"
|
||||
%typemap(proxy) enum SWIGTYPE &, enum SWIGTYPE * "int *"
|
||||
%typemap(proxy, fragment="fptr_decl", fragment="fptr_decl_proxy") SWIGTYPE (CLASS::*) "SWIG_CPP_FP"
|
||||
|
|
@ -437,10 +437,10 @@
|
|||
%typemap(proxycouttype) const double**, const double*[ANY], const double[ANY][ANY] "const double **"
|
||||
|
||||
// objects
|
||||
%typemap(proxycouttype) SWIGTYPE "$1_ltype *"
|
||||
%typemap(proxycouttype) SWIGTYPE * "/*aaaaaa*/$1_ltype"
|
||||
%typemap(proxycouttype) SWIGTYPE & "$1_ltype"
|
||||
%typemap(proxycouttype) SWIGTYPE *& "$1_ltype **"
|
||||
%typemap(proxycouttype) SWIGTYPE "$&resolved_type*"
|
||||
%typemap(proxycouttype) SWIGTYPE * "$resolved_type*"
|
||||
%typemap(proxycouttype) SWIGTYPE & "$resolved_type*"
|
||||
%typemap(proxycouttype) SWIGTYPE *& "$resolved_type**"
|
||||
%typemap(proxycouttype) SWIGTYPE [ANY] "/*SWIGTYPE [ANY]*/ $1_ltype **"
|
||||
%typemap(proxycouttype) SWIGTYPE * [ANY] "/*SWIGTYPE *[ANY] */ $1_ltype **"
|
||||
%typemap(proxycouttype) SWIGTYPE ** "/*SWIGTYPE ** */ $1_ltype **"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue