widl: Generate proxy/client/server files when requested explicitly even if they are empty.
This commit is contained in:
parent
267987b822
commit
0edfacdb6a
|
@ -432,7 +432,7 @@ void write_client(ifref_t *ifaces)
|
||||||
|
|
||||||
if (!do_client)
|
if (!do_client)
|
||||||
return;
|
return;
|
||||||
if (!iface)
|
if (do_everything && !ifaces)
|
||||||
return;
|
return;
|
||||||
END_OF_LIST(iface);
|
END_OF_LIST(iface);
|
||||||
|
|
||||||
|
|
|
@ -999,12 +999,12 @@ void write_proxies(ifref_t *ifaces)
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
if (!do_proxies) return;
|
if (!do_proxies) return;
|
||||||
if (!lcur) return;
|
if (do_everything && !ifaces) return;
|
||||||
END_OF_LIST(lcur);
|
|
||||||
|
|
||||||
init_proxy(ifaces);
|
init_proxy(ifaces);
|
||||||
if(!proxy) return;
|
if(!proxy) return;
|
||||||
|
|
||||||
|
END_OF_LIST(lcur);
|
||||||
cur = lcur;
|
cur = lcur;
|
||||||
while (cur) {
|
while (cur) {
|
||||||
if (is_object(cur->iface->attrs) && !is_local(cur->iface->attrs))
|
if (is_object(cur->iface->attrs) && !is_local(cur->iface->attrs))
|
||||||
|
@ -1012,8 +1012,6 @@ void write_proxies(ifref_t *ifaces)
|
||||||
cur = PREV_LINK(cur);
|
cur = PREV_LINK(cur);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!proxy) return;
|
|
||||||
|
|
||||||
write_stubdesc();
|
write_stubdesc();
|
||||||
|
|
||||||
print_proxy( "#if !defined(__RPC_WIN32__)\n");
|
print_proxy( "#if !defined(__RPC_WIN32__)\n");
|
||||||
|
|
|
@ -572,7 +572,7 @@ void write_server(ifref_t *ifaces)
|
||||||
|
|
||||||
if (!do_server)
|
if (!do_server)
|
||||||
return;
|
return;
|
||||||
if (!ifaces)
|
if (do_everything && !ifaces)
|
||||||
return;
|
return;
|
||||||
END_OF_LIST(iface);
|
END_OF_LIST(iface);
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ int debuglevel = DEBUGLEVEL_NONE;
|
||||||
int parser_debug, yy_flex_debug;
|
int parser_debug, yy_flex_debug;
|
||||||
|
|
||||||
int pedantic = 0;
|
int pedantic = 0;
|
||||||
static int do_everything = 1;
|
int do_everything = 1;
|
||||||
int preprocess_only = 0;
|
int preprocess_only = 0;
|
||||||
int do_header = 0;
|
int do_header = 0;
|
||||||
int do_typelib = 0;
|
int do_typelib = 0;
|
||||||
|
|
|
@ -36,6 +36,7 @@ extern int debuglevel;
|
||||||
|
|
||||||
extern int win32;
|
extern int win32;
|
||||||
extern int pedantic;
|
extern int pedantic;
|
||||||
|
extern int do_everything;
|
||||||
extern int do_header;
|
extern int do_header;
|
||||||
extern int do_typelib;
|
extern int do_typelib;
|
||||||
extern int do_proxies;
|
extern int do_proxies;
|
||||||
|
|
Loading…
Reference in New Issue