Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7ebf75f9
Commit
7ebf75f9
authored
Jan 24, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use open_input_file to open the main input.
parent
1a0a6178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
widl.c
tools/widl/widl.c
+1
-21
No files found.
tools/widl/widl.c
View file @
7ebf75f9
...
...
@@ -701,7 +701,6 @@ int main(int argc,char *argv[])
int
i
;
int
ret
=
0
;
struct
strarray
files
;
char
*
input
;
init_signals
(
exit_on_signal
);
init_argv0_dir
(
argv
[
0
]
);
...
...
@@ -835,27 +834,8 @@ int main(int argc,char *argv[])
wpp_add_cmdline_define
(
"_WIN32=1"
);
atexit
(
rm_tempfile
);
input
=
input_name
;
if
(
preprocess_only
)
exit
(
wpp_parse
(
input_name
,
stdout
)
);
if
(
!
no_preprocess
)
{
FILE
*
output
;
char
*
name
;
name
=
make_temp_file
(
header_name
,
NULL
);
if
(
!
(
output
=
fopen
(
name
,
"wt"
)))
error
(
"Could not open fd %s for writing
\n
"
,
name
);
ret
=
wpp_parse
(
input_name
,
output
);
fclose
(
output
);
input
=
name
;
if
(
ret
)
exit
(
1
);
}
if
(
!
(
parser_in
=
fopen
(
input
,
"r"
)))
{
fprintf
(
stderr
,
"Could not open %s for input
\n
"
,
input
);
return
1
;
}
parser_in
=
open_input_file
(
input_name
);
header_token
=
make_token
(
header_name
);
...
...
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