Merge commit '8245277ad3' into c99-complex
* commit '8245277ad3':
Remove test for unsupported complex or _Complex by itself
More C99 complex fixes, plus Python tests
Restore _Complex as standalone type
Small corrections for handling C99 _Complex
Properly handle C99 complex types even in C++ mode
Conflicts:
Examples/test-suite/python/complextest_runme.py
This commit is contained in:
commit
4f184500d7
9 changed files with 99 additions and 41 deletions
|
|
@ -1453,11 +1453,11 @@ int SwigType_type(const SwigType *t) {
|
|||
return T_DOUBLE;
|
||||
if (strcmp(c, "long double") == 0)
|
||||
return T_LONGDOUBLE;
|
||||
if (!cparse_cplusplus && (strcmp(c, "float complex") == 0))
|
||||
if (!cparse_cplusplus && (strcmp(c, "float _Complex") == 0))
|
||||
return T_FLTCPLX;
|
||||
if (!cparse_cplusplus && (strcmp(c, "double complex") == 0))
|
||||
if (!cparse_cplusplus && (strcmp(c, "double _Complex") == 0))
|
||||
return T_DBLCPLX;
|
||||
if (!cparse_cplusplus && (strcmp(c, "complex") == 0))
|
||||
if (!cparse_cplusplus && (strcmp(c, "_Complex") == 0))
|
||||
return T_COMPLEX;
|
||||
if (strcmp(c, "void") == 0)
|
||||
return T_VOID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue