Fix #172 - skip qualifiers

This commit is contained in:
Ganesh Viswanathan 2020-04-13 20:18:37 -05:00
commit 08306b9802
4 changed files with 33 additions and 4 deletions

View file

@ -170,6 +170,11 @@ typedef struct SDL_AudioCVT
int needed;
} SDL_AudioCVT;
// Issue #172
typedef struct {
const char* const* x;
} SomeType;
// DUPLICATES
@ -334,6 +339,11 @@ typedef struct SDL_AudioCVT
int needed;
} SDL_AudioCVT;
// Issue #172
typedef struct {
const char* const* x;
} SomeType;
#endif

View file

@ -367,4 +367,9 @@ checkPragmas(GPU_Target, pHeaderBy, istype = false)
# Issue #185
assert AudioCVT is object
testFields(AudioCVT, "needed!cint")
checkPragmas(AudioCVT, pHeaderBy, istype = false, "SDL_")
checkPragmas(AudioCVT, pHeaderBy, istype = false, "SDL_")
# Issue #172
assert SomeType is object
testFields(SomeType, "x!ptr cstring")
checkPragmas(SomeType, pHeaderImpBy)