mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Don't declare constants as export and later define it as static. This is not allowed by GCC4.
svn path=/trunk/; revision=15109
This commit is contained in:
parent
93f075f207
commit
1d36259d85
3 changed files with 14 additions and 6 deletions
|
@ -1,5 +1,13 @@
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
|
||||||
|
2004-05-08 weiden
|
||||||
|
|
||||||
|
tools/widl/client.c
|
||||||
|
tools/widl/proxy.c
|
||||||
|
tools/widl/server.c
|
||||||
|
|
||||||
|
Generate code GCC4.x accepts.
|
||||||
|
|
||||||
2005-04-18 navaraf
|
2005-04-18 navaraf
|
||||||
|
|
||||||
tools/widl/parser.y
|
tools/widl/parser.y
|
||||||
|
|
|
@ -141,7 +141,7 @@ static void write_procformatstring(type_t *iface)
|
||||||
unsigned int type_offset = 2;
|
unsigned int type_offset = 2;
|
||||||
int in_attr, out_attr;
|
int in_attr, out_attr;
|
||||||
|
|
||||||
print_client("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
|
print_client("const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
|
||||||
print_client("{\n");
|
print_client("{\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_client("0,\n");
|
print_client("0,\n");
|
||||||
|
@ -285,7 +285,7 @@ static void write_typeformatstring(type_t *iface)
|
||||||
int string_attr;
|
int string_attr;
|
||||||
int ptr_attr, ref_attr, unique_attr;
|
int ptr_attr, ref_attr, unique_attr;
|
||||||
|
|
||||||
print_client("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
|
print_client("const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
|
||||||
print_client("{\n");
|
print_client("{\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_client("0,\n");
|
print_client("0,\n");
|
||||||
|
@ -1501,7 +1501,7 @@ static void write_stubdescriptor(type_t *iface)
|
||||||
{
|
{
|
||||||
char *implicit_handle = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
|
char *implicit_handle = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
|
||||||
|
|
||||||
print_client("static const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
|
print_client("const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
|
||||||
print_client("{\n");
|
print_client("{\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_client("(void __RPC_FAR *)& %s___RpcClientInterface,\n", iface->name);
|
print_client("(void __RPC_FAR *)& %s___RpcClientInterface,\n", iface->name);
|
||||||
|
|
|
@ -146,7 +146,7 @@ static void write_procformatstring(type_t *iface)
|
||||||
unsigned int type_offset = 2;
|
unsigned int type_offset = 2;
|
||||||
int in_attr, out_attr;
|
int in_attr, out_attr;
|
||||||
|
|
||||||
print_server("static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
|
print_server("const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =\n");
|
||||||
print_server("{\n");
|
print_server("{\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_server("0,\n");
|
print_server("0,\n");
|
||||||
|
@ -282,7 +282,7 @@ static void write_typeformatstring(type_t *iface)
|
||||||
int string_attr;
|
int string_attr;
|
||||||
int ptr_attr, ref_attr, unique_attr;
|
int ptr_attr, ref_attr, unique_attr;
|
||||||
|
|
||||||
print_server("static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
|
print_server("const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =\n");
|
||||||
print_server("{\n");
|
print_server("{\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_server("0,\n");
|
print_server("0,\n");
|
||||||
|
@ -1466,7 +1466,7 @@ static void write_stubdescdecl(type_t *iface)
|
||||||
|
|
||||||
static void write_stubdescriptor(type_t *iface)
|
static void write_stubdescriptor(type_t *iface)
|
||||||
{
|
{
|
||||||
print_server("static const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
|
print_server("const MIDL_STUB_DESC %s_StubDesc =\n", iface->name);
|
||||||
print_server("{\n");
|
print_server("{\n");
|
||||||
indent++;
|
indent++;
|
||||||
print_server("(void __RPC_FAR *)& %s___RpcServerInterface,\n", iface->name);
|
print_server("(void __RPC_FAR *)& %s___RpcServerInterface,\n", iface->name);
|
||||||
|
|
Loading…
Reference in a new issue