svn path=/trunk/; revision=20525
+2006-01-01 ekohl
+
+ tools/widl/client.c
+ tools/widl/server.c
+
+- Generate static MIDL_PROC_FORMAT_STRING, MIDL_TYPE_FORMAT_STRING and
+ MIDL_STUB_DESC variables.
+
2005-12-05 ekohl
tools/widl/widl.c
2005-12-05 ekohl
tools/widl/widl.c
unsigned int type_offset = 2;
int in_attr, out_attr;
unsigned int type_offset = 2;
int in_attr, out_attr;
- print_client("const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
+ print_client("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
print_client("{\n");
indent++;
print_client("0,\n");
print_client("{\n");
indent++;
print_client("0,\n");
int ptr_attr, ref_attr, unique_attr;
void *sizeis_attr;
int ptr_attr, ref_attr, unique_attr;
void *sizeis_attr;
- print_client("const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
+ print_client("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
print_client("{\n");
indent++;
print_client("0,\n");
print_client("{\n");
indent++;
print_client("0,\n");
static void write_stubdescdecl(type_t *iface)
{
static void write_stubdescdecl(type_t *iface)
{
- print_client("extern const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
+ print_client("static const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
{
char *implicit_handle = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
{
char *implicit_handle = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
- print_client("const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
+ print_client("static const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
print_client("{\n");
indent++;
print_client("(void __RPC_FAR *)& %s___RpcClientInterface,\n", iface->name);
print_client("{\n");
indent++;
print_client("(void __RPC_FAR *)& %s___RpcClientInterface,\n", iface->name);
write_formatdesc("TYPE");
write_formatdesc("PROC");
fprintf(client, "\n");
write_formatdesc("TYPE");
write_formatdesc("PROC");
fprintf(client, "\n");
- print_client("extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
- print_client("extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
+ print_client("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
+ print_client("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
unsigned int type_offset = 2;
int in_attr, out_attr;
unsigned int type_offset = 2;
int in_attr, out_attr;
- print_server("const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
+ print_server("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
print_server("{\n");
indent++;
print_server("0,\n");
print_server("{\n");
indent++;
print_server("0,\n");
int ptr_attr, ref_attr, unique_attr;
void *sizeis_attr;
int ptr_attr, ref_attr, unique_attr;
void *sizeis_attr;
- print_server("const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
+ print_server("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
print_server("{\n");
indent++;
print_server("0,\n");
print_server("{\n");
indent++;
print_server("0,\n");
static void write_stubdescdecl(type_t *iface)
{
static void write_stubdescdecl(type_t *iface)
{
- print_server("extern const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
+ print_server("static const MIDL_STUB_DESC %s_StubDesc;\n", iface->name);
fprintf(server, "\n");
}
static void write_stubdescriptor(type_t *iface)
{
fprintf(server, "\n");
}
static void write_stubdescriptor(type_t *iface)
{
- print_server("const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
+ print_server("static const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
print_server("{\n");
indent++;
print_server("(void __RPC_FAR *)& %s___RpcServerInterface,\n", iface->name);
print_server("{\n");
indent++;
print_server("(void __RPC_FAR *)& %s___RpcServerInterface,\n", iface->name);
write_formatdesc("TYPE");
write_formatdesc("PROC");
fprintf(server, "\n");
write_formatdesc("TYPE");
write_formatdesc("PROC");
fprintf(server, "\n");
- print_server("extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
- print_server("extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");
+ print_server("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;\n");
+ print_server("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;\n");