Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
35a92e16
Commit
35a92e16
authored
Dec 27, 2004
by
Vincent Béron
Committed by
Alexandre Julliard
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate only wanted files.
parent
171c9420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
widl.c
tools/widl/widl.c
+27
-24
No files found.
tools/widl/widl.c
View file @
35a92e16
...
...
@@ -130,7 +130,7 @@ int main(int argc,char *argv[])
extern
char
*
optarg
;
extern
int
optind
;
int
optc
;
int
ret
;
int
ret
=
0
;
signal
(
SIGSEGV
,
segvhandler
);
...
...
@@ -201,17 +201,17 @@ int main(int argc,char *argv[])
(
debuglevel
&
DEBUGLEVEL_PPTRACE
)
!=
0
,
(
debuglevel
&
DEBUGLEVEL_PPMSG
)
!=
0
);
if
(
!
header_name
)
{
if
(
!
header_name
&&
(
do_everything
||
header_only
)
)
{
header_name
=
dup_basename
(
input_name
,
".idl"
);
strcat
(
header_name
,
".h"
);
}
if
(
!
typelib_name
)
{
if
(
!
typelib_name
&&
(
do_everything
||
typelib_only
)
)
{
typelib_name
=
dup_basename
(
input_name
,
".idl"
);
strcat
(
typelib_name
,
".tlb"
);
}
if
(
!
proxy_name
)
{
if
(
!
proxy_name
&&
do_everything
)
{
proxy_name
=
dup_basename
(
input_name
,
".idl"
);
proxy_token
=
xstrdup
(
proxy_name
);
strcat
(
proxy_name
,
"_p.c"
);
...
...
@@ -247,28 +247,31 @@ int main(int argc,char *argv[])
}
}
header_token
=
make_token
(
header_name
);
if
(
do_everything
||
header_only
)
{
header_token
=
make_token
(
header_name
);
if
(
!
(
header
=
fopen
(
header_name
,
"w"
)))
{
fprintf
(
stderr
,
"Could not open %s for output
\n
"
,
header_name
);
return
1
;
if
(
!
(
header
=
fopen
(
header_name
,
"w"
)))
{
fprintf
(
stderr
,
"Could not open %s for output
\n
"
,
header_name
);
return
1
;
}
fprintf
(
header
,
"/*** Autogenerated by WIDL %s from %s - Do not edit ***/
\n
"
,
WIDL_FULLVERSION
,
input_name
);
fprintf
(
header
,
"#include <rpc.h>
\n
"
);
fprintf
(
header
,
"#include <rpcndr.h>
\n\n
"
);
fprintf
(
header
,
"#ifndef __WIDL_%s
\n
"
,
header_token
);
fprintf
(
header
,
"#define __WIDL_%s
\n
"
,
header_token
);
fprintf
(
header
,
"#ifdef __cplusplus
\n
"
);
fprintf
(
header
,
"extern
\"
C
\"
{
\n
"
);
fprintf
(
header
,
"#endif
\n
"
);
ret
=
yyparse
();
fprintf
(
header
,
"#ifdef __cplusplus
\n
"
);
fprintf
(
header
,
"}
\n
"
);
fprintf
(
header
,
"#endif
\n
"
);
fprintf
(
header
,
"#endif /* __WIDL_%s */
\n
"
,
header_token
);
fclose
(
header
);
}
fprintf
(
header
,
"/*** Autogenerated by WIDL %s from %s - Do not edit ***/
\n
"
,
WIDL_FULLVERSION
,
input_name
);
fprintf
(
header
,
"#include <rpc.h>
\n
"
);
fprintf
(
header
,
"#include <rpcndr.h>
\n\n
"
);
fprintf
(
header
,
"#ifndef __WIDL_%s
\n
"
,
header_token
);
fprintf
(
header
,
"#define __WIDL_%s
\n
"
,
header_token
);
fprintf
(
header
,
"#ifdef __cplusplus
\n
"
);
fprintf
(
header
,
"extern
\"
C
\"
{
\n
"
);
fprintf
(
header
,
"#endif
\n
"
);
ret
=
yyparse
();
fprintf
(
header
,
"#ifdef __cplusplus
\n
"
);
fprintf
(
header
,
"}
\n
"
);
fprintf
(
header
,
"#endif
\n
"
);
fprintf
(
header
,
"#endif /* __WIDL_%s */
\n
"
,
header_token
);
fclose
(
header
);
fclose
(
yyin
);
if
(
ret
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment