Wine uses the __stdcall__ attribute extensively. The effects of the patch on a sparse run on the Wine code are: - Removes 143000 "attribute '__stdcall__': unknown attribute" errors. - Removes 116 "attribute '__cdecl__': unknown attribute" errors. - Reduces the amount of "error: too many errors" from 1992 to 1459. Signed-off-by: Michael Stefaniuc <mstefani@xxxxxxxxxx> --- parse.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/parse.c b/parse.c index a1410c4..eb86bf6 100644 --- a/parse.c +++ b/parse.c @@ -323,6 +323,10 @@ static struct init_keyword { { "__warn_unused_result__", NS_KEYWORD, .op = &ignore_attr_op }, { "model", NS_KEYWORD, .op = &ignore_attr_op }, { "__model__", NS_KEYWORD, .op = &ignore_attr_op }, + { "cdecl", NS_KEYWORD, .op = &ignore_attr_op }, + { "__cdecl__", NS_KEYWORD, .op = &ignore_attr_op }, + { "stdcall", NS_KEYWORD, .op = &ignore_attr_op }, + { "__stdcall__", NS_KEYWORD, .op = &ignore_attr_op }, }; void init_parser(int stream) -- 1.5.0.6 -- Michael Stefaniuc Tel.: +49-711-96437-199 Sr. Network Engineer Fax.: +49-711-96437-111 Red Hat GmbH Email: mstefani@xxxxxxxxxx Hauptstaetterstr. 58 http://www.redhat.de/ D-70178 Stuttgart
Attachment:
pgp1CtxrdaRmX.pgp
Description: PGP signature