Reuse 'ctype' typemap and remove 'proxycouttype' typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a894545c9a
commit
5aa23f9bdb
3 changed files with 4 additions and 35 deletions
27
Lib/c/c.swg
27
Lib/c/c.swg
|
|
@ -283,33 +283,6 @@ explicit_same_type_unconsted_all_primitive_types_but_void(couttype);
|
|||
%typemap(couttype, fragment="stdbool_inc") bool & "$1_basetype*"
|
||||
%typemap(couttype, fragment="stdbool_inc") const bool & "$1_basetype const *"
|
||||
|
||||
// typemaps for return values
|
||||
|
||||
// void
|
||||
%typemap(proxycouttype) void "void"
|
||||
%typemap(proxycouttype) void*, const void* "void *"
|
||||
// constant pointers
|
||||
%typemap(proxycouttype) void* * const "void* * const"
|
||||
%typemap(proxycouttype) const void* * const "const void* * const"
|
||||
|
||||
explicit_same_type_all_primitive_types_but_void(proxycouttype);
|
||||
|
||||
// objects
|
||||
%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 **"
|
||||
%typemap(proxycouttype) enum SWIGTYPE "int"
|
||||
%typemap(proxycouttype) enum SWIGTYPE &, enum SWIGTYPE * "int *"
|
||||
%typemap(proxycouttype, fragment="fptr_decl") SWIGTYPE (CLASS::*) "SWIG_CPP_FP"
|
||||
|
||||
%typemap(proxycouttype, fragment="stdbool_inc") bool, bool *, const bool, const bool * "$1_ltype"
|
||||
%typemap(proxycouttype, fragment="stdbool_inc") bool & "$1_basetype*"
|
||||
%typemap(proxycouttype, fragment="stdbool_inc") const bool & "$1_basetype const *"
|
||||
|
||||
same_action_all_primitive_types_but_void(out, "$result = $1;")
|
||||
|
||||
%typemap(out) void ""
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@ class string;
|
|||
%typemap(couttype) string * "char *"
|
||||
%typemap(couttype) string & "char *"
|
||||
%typemap(couttype) const string & "char *"
|
||||
%typemap(proxycouttype) string "char *"
|
||||
%typemap(proxycouttype) string * "char *"
|
||||
%typemap(proxycouttype) string & "char *"
|
||||
%typemap(proxycouttype) const string & "char *"
|
||||
%typemap(cppouttype, retobj="1") string "std::string*"
|
||||
%typemap(cppouttype) const string &, string *, string & "std::string*"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue