From 2eaf7b2e8a424a6026ddd7ede9fd1a4a8ef65307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20B=C3=A9ron?= Date: Mon, 28 Mar 2005 10:01:13 +0000 Subject: [PATCH] Add support for single in idl files. --- tools/widl/parser.l | 1 + tools/widl/parser.y | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tools/widl/parser.l b/tools/widl/parser.l index addb2ecdad9..80a4cd3f271 100644 --- a/tools/widl/parser.l +++ b/tools/widl/parser.l @@ -285,6 +285,7 @@ static struct keyword { /* ... */ {"short", tSHORT}, {"signed", tSIGNED}, + {"single", tSINGLE}, {"size_is", tSIZEIS}, {"sizeof", tSIZEOF}, /* ... */ diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 0ae032a991b..9beefb4ca9c 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -170,6 +170,7 @@ static type_t std_uhyper = { "MIDL_uhyper" }; %token tRETVAL %token tSHORT %token tSIGNED +%token tSINGLE %token tSIZEIS tSIZEOF %token tSOURCE %token tSTDCALL @@ -565,6 +566,7 @@ base_type: tBYTE { $$ = make_type(RPC_FC_BYTE, NULL); } } | tUNSIGNED { $$ = make_type(RPC_FC_ULONG, &std_int); $$->sign = -1; } | tFLOAT { $$ = make_type(RPC_FC_FLOAT, NULL); } + | tSINGLE { $$ = make_type(RPC_FC_FLOAT, NULL); } | tDOUBLE { $$ = make_type(RPC_FC_DOUBLE, NULL); } | tBOOLEAN { $$ = make_type(RPC_FC_BYTE, &std_bool); /* ? */ } | tERRORSTATUST { $$ = make_type(RPC_FC_ERROR_STATUS_T, NULL); }