Restore _Complex as standalone type
This commit is contained in:
parent
1adc7dac5d
commit
07b4b274e5
4 changed files with 8 additions and 0 deletions
|
|
@ -18,7 +18,9 @@
|
||||||
|
|
||||||
%swig_cplxflt_convn(float _Complex, CCplxConst, creal, cimag);
|
%swig_cplxflt_convn(float _Complex, CCplxConst, creal, cimag);
|
||||||
%swig_cplxdbl_convn(double _Complex, CCplxConst, creal, cimag);
|
%swig_cplxdbl_convn(double _Complex, CCplxConst, creal, cimag);
|
||||||
|
%swig_cplxdbl_convn(_Complex, CCplxConst, creal, cimag);
|
||||||
|
|
||||||
/* declaring the typemaps */
|
/* declaring the typemaps */
|
||||||
%typemaps_primitive(SWIG_TYPECHECK_CPLXFLT, float _Complex);
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXFLT, float _Complex);
|
||||||
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, double _Complex);
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, double _Complex);
|
||||||
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, _Complex);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
|
|
||||||
%swig_cplxflt_convn(float _Complex, CCplxConst, creal, cimag);
|
%swig_cplxflt_convn(float _Complex, CCplxConst, creal, cimag);
|
||||||
%swig_cplxdbl_convn(double _Complex, CCplxConst, creal, cimag);
|
%swig_cplxdbl_convn(double _Complex, CCplxConst, creal, cimag);
|
||||||
|
%swig_cplxdbl_convn(_Complex, CCplxConst, creal, cimag);
|
||||||
|
|
||||||
/* declaring the typemaps */
|
/* declaring the typemaps */
|
||||||
%typemaps_primitive(SWIG_TYPECHECK_CPLXFLT, float _Complex);
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXFLT, float _Complex);
|
||||||
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, double _Complex);
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, double _Complex);
|
||||||
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, _Complex);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
|
|
||||||
%swig_cplxflt_convn(float _Complex, CCplxConst, creal, cimag);
|
%swig_cplxflt_convn(float _Complex, CCplxConst, creal, cimag);
|
||||||
%swig_cplxdbl_convn(double _Complex, CCplxConst, creal, cimag);
|
%swig_cplxdbl_convn(double _Complex, CCplxConst, creal, cimag);
|
||||||
|
%swig_cplxdbl_convn(_Complex, CCplxConst, creal, cimag);
|
||||||
|
|
||||||
/* declaring the typemaps */
|
/* declaring the typemaps */
|
||||||
%typemaps_primitive(SWIG_TYPECHECK_CPLXFLT, float _Complex);
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXFLT, float _Complex);
|
||||||
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, double _Complex);
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, double _Complex);
|
||||||
|
%typemaps_primitive(SWIG_TYPECHECK_CPLXDBL, _Complex);
|
||||||
|
|
|
||||||
|
|
@ -1457,6 +1457,8 @@ int SwigType_type(const SwigType *t) {
|
||||||
return T_FLTCPLX;
|
return T_FLTCPLX;
|
||||||
if (!cparse_cplusplus && (strcmp(c, "double _Complex") == 0))
|
if (!cparse_cplusplus && (strcmp(c, "double _Complex") == 0))
|
||||||
return T_DBLCPLX;
|
return T_DBLCPLX;
|
||||||
|
if (!cparse_cplusplus && (strcmp(c, "_Complex") == 0))
|
||||||
|
return T_COMPLEX;
|
||||||
if (strcmp(c, "void") == 0)
|
if (strcmp(c, "void") == 0)
|
||||||
return T_VOID;
|
return T_VOID;
|
||||||
if (strcmp(c, "bool") == 0)
|
if (strcmp(c, "bool") == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue