Jacek Caban : widl: Use proper calling convention attributes.

Alexandre Julliard julliard at winehq.org
Thu Jul 7 13:33:47 CDT 2011


Module: wine
Branch: master
Commit: f8c517978bf5c5f164ff91cb1b277e1e7433e422
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f8c517978bf5c5f164ff91cb1b277e1e7433e422

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jul  7 15:09:15 2011 +0200

widl: Use proper calling convention attributes.

---

 tools/widl/parser.y |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index f034074..d4852d1 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -588,10 +588,10 @@ uuid_string:
 						  $$ = parse_uuid($1); }
         ;
 
-callconv: tCDECL				{ $$ = $<str>1; }
-	| tFASTCALL				{ $$ = $<str>1; }
-	| tPASCAL				{ $$ = $<str>1; }
-	| tSTDCALL				{ $$ = $<str>1; }
+callconv: tCDECL				{ $$ = xstrdup("__cdecl"); }
+	| tFASTCALL				{ $$ = xstrdup("__fastcall"); }
+	| tPASCAL				{ $$ = xstrdup("__pascal"); }
+	| tSTDCALL				{ $$ = xstrdup("__stdcall"); }
 	;
 
 cases:						{ $$ = NULL; }




More information about the wine-cvs mailing list