From: Elizabeth Figura zfigura@codeweavers.com
Arrays declared as strings go via an embedded complex (e.g. "[string] char s[64];"). This matches the logic used to decide struct or array FC.
This commit does nothing yet, since we pass NULL attributes, but we need to change that so that other types are treated correctly (in particular, void pointers with [iid_is].) --- tools/widl/typegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 9f2a78d74f7..3c9903fcaa8 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -937,7 +937,7 @@ static void guard_rec(type_t *type)
static int is_embedded_complex(const type_t *type) { - switch (typegen_detect_type(type, NULL, TDT_ALL_TYPES)) + switch (typegen_detect_type(type, NULL, TDT_IGNORE_STRINGS)) { case TGT_USER_TYPE: case TGT_STRUCT: