widl: Fix detection of non-pointer context handles.
commitf4a96193645ac2af81ab4ee7d6033e1426a37897
authorRob Shearman <rob@codeweavers.com>
Thu, 27 Mar 2008 14:03:23 +0000 (27 14:03 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 27 Mar 2008 16:33:06 +0000 (27 17:33 +0100)
treeed6a54bb116720c7392a58af5d0e28a9a17d4093
parent59556de0c1b7acb5f62a695b7256debb54c5de8c
widl: Fix detection of non-pointer context handles.

is_ptr cannot be used because it follows the chain of types into the
type which has the context_handle attribute, which is typically "void *"
and so causes these context handles to be incorrectly detected as
context handles. Instead, we can use is_aliaschain_ptr to follow the
chain of aliases without following pointers and the absence of the
context_handle attribute indicates that it must be present on a type
after following a pointer.
tools/widl/client.c
tools/widl/server.c
tools/widl/typegen.c