[PATCH 01/11] widl: New option --rt for enabling rt's specific language extensions.
Kai Tietz
ktietz70 at googlemail.com
Thu Aug 8 10:51:10 CDT 2013
Hi,
this patch adds new --rt option to widl. By it you can control, if
RT's IDL-language-extension(?s) getting active.
This initial patch just adds the option-scanning and the global
flag-variable to widl.
Ok for apply?
>From 3fcedb770626535b56a789467951a4c9be5f08dc Mon Sep 17 00:00:00 2001
From: Kai Tietz <ktietz70 at googlemail.com>
Date: Thu, 8 Aug 2013 12:29:33 +0200
Subject: [PATCH 01/11] widl: New option --rt for enabling rt's specific
language extensions.
---
tools/widl/widl.c | 6 ++++++
tools/widl/widl.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/tools/widl/widl.c b/tools/widl/widl.c
index cad1d6c..5df99fc 100644
--- a/tools/widl/widl.c
+++ b/tools/widl/widl.c
@@ -113,6 +113,7 @@ int do_win32 = 1;
int do_win64 = 1;
int win32_packing = 8;
int win64_packing = 8;
+int do_rt_extension = 0;
static enum stub_mode stub_mode = MODE_Os;
char *input_name;
@@ -152,6 +153,7 @@ enum {
PREFIX_CLIENT_OPTION,
PREFIX_SERVER_OPTION,
PRINT_HELP,
+ RT_OPTION,
WIN32_OPTION,
WIN64_OPTION,
WIN32_ALIGN_OPTION,
@@ -171,6 +173,7 @@ static const struct option long_options[] = {
{ "prefix-all", 1, NULL, PREFIX_ALL_OPTION },
{ "prefix-client", 1, NULL, PREFIX_CLIENT_OPTION },
{ "prefix-server", 1, NULL, PREFIX_SERVER_OPTION },
+ { "rt", 0, NULL, RT_OPTION },
{ "win32", 0, NULL, WIN32_OPTION },
{ "win64", 0, NULL, WIN64_OPTION },
{ "win32-align", 1, NULL, WIN32_ALIGN_OPTION },
@@ -542,6 +545,9 @@ int main(int argc,char *argv[])
case PRINT_HELP:
fprintf(stderr, "%s", usage);
return 0;
+ case RT_OPTION:
+ do_rt_extension = 1;
+ break;
case WIN32_OPTION:
do_win32 = 1;
do_win64 = 0;
diff --git a/tools/widl/widl.h b/tools/widl/widl.h
index 6551fa0..91054ad 100644
--- a/tools/widl/widl.h
+++ b/tools/widl/widl.h
@@ -49,6 +49,7 @@ extern int do_win32;
extern int do_win64;
extern int win32_packing;
extern int win64_packing;
+extern int do_rt_extension;
extern char *input_name;
extern char *header_name;
--
1.7.9
More information about the wine-patches
mailing list