widl: Fix incorrect version number in genereated code
Dan Hipschman
dsh at linux.ucla.edu
Thu Aug 10 18:51:28 CDT 2006
I noticed that the version number was always 0.1 in the generated client,
server, and proxy files. This uses the Wine version number instead.
ChangeLog:
* Make header comment in generated code consistent
---
tools/widl/client.c | 2 +-
tools/widl/proxy.c | 2 +-
tools/widl/server.c | 2 +-
tools/widl/widl.h | 2 --
4 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/tools/widl/client.c b/tools/widl/client.c
index 6f8773e..c52fe98 100644
--- a/tools/widl/client.c
+++ b/tools/widl/client.c
@@ -451,7 +451,7 @@ static void init_client(void)
if (!(client = fopen(client_name, "w")))
error("Could not open %s for output\n", client_name);
- print_client("/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", WIDL_FULLVERSION, input_name);
+ print_client("/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", PACKAGE_VERSION, input_name);
print_client("#include <string.h>\n");
print_client("#ifdef _ALPHA_\n");
print_client("#include <stdarg.h>\n");
diff --git a/tools/widl/proxy.c b/tools/widl/proxy.c
index 1710cdc..c308ab8 100644
--- a/tools/widl/proxy.c
+++ b/tools/widl/proxy.c
@@ -147,7 +147,7 @@ static void init_proxy(void)
if (proxy) return;
if(!(proxy = fopen(proxy_name, "w")))
error("Could not open %s for output\n", proxy_name);
- print_proxy( "/*** Autogenerated by WIDL %s - Do not edit ***/\n", WIDL_FULLVERSION);
+ print_proxy( "/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", PACKAGE_VERSION, input_name);
print_proxy( "\n");
print_proxy( "#ifndef __REDQ_RPCPROXY_H_VERSION__\n");
print_proxy( "#define __REQUIRED_RPCPROXY_H_VERSION__ 440\n");
diff --git a/tools/widl/server.c b/tools/widl/server.c
index 72d5ae7..19a4a2b 100644
--- a/tools/widl/server.c
+++ b/tools/widl/server.c
@@ -587,7 +587,7 @@ static void init_server(void)
if (!(server = fopen(server_name, "w")))
error("Could not open %s for output\n", server_name);
- print_server("/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", WIDL_FULLVERSION, input_name);
+ print_server("/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n", PACKAGE_VERSION, input_name);
print_server("#include <string.h>\n");
fprintf(server, "\n");
print_server("#include \"%s\"\n", header_name);
diff --git a/tools/widl/widl.h b/tools/widl/widl.h
index 9357450..e84a5ad 100644
--- a/tools/widl/widl.h
+++ b/tools/widl/widl.h
@@ -25,8 +25,6 @@ #include "widltypes.h"
#include <time.h>
-#define WIDL_FULLVERSION "0.1"
-
extern int debuglevel;
#define DEBUGLEVEL_NONE 0x0000
#define DEBUGLEVEL_CHAT 0x0001
More information about the wine-patches
mailing list