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
bd94f959
Commit
bd94f959
authored
Mar 30, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpp: Get rid of wpp_parse_temp, temp file management is better left to callers.
parent
4d555925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
wpp.h
include/wine/wpp.h
+0
-1
wpp.c
libs/wpp/wpp.c
+0
-37
No files found.
include/wine/wpp.h
View file @
bd94f959
...
...
@@ -57,7 +57,6 @@ extern void wpp_set_pedantic( int on );
extern
int
wpp_add_include_path
(
const
char
*
path
);
extern
char
*
wpp_find_include
(
const
char
*
name
,
const
char
*
parent_name
);
extern
int
wpp_parse
(
const
char
*
input
,
FILE
*
output
);
extern
int
wpp_parse_temp
(
const
char
*
input
,
const
char
*
output_base
,
char
**
output_name
);
extern
void
wpp_set_callbacks
(
const
struct
wpp_callbacks
*
callbacks
);
#endif
/* __WINE_WPP_H */
libs/wpp/wpp.c
View file @
bd94f959
...
...
@@ -203,43 +203,6 @@ int wpp_parse( const char *input, FILE *output )
}
/* parse into a temporary file */
int
wpp_parse_temp
(
const
char
*
input
,
const
char
*
output_base
,
char
**
output_name
)
{
FILE
*
output
;
int
ret
,
fd
;
char
*
temp_name
;
if
(
!
output_base
||
!
output_base
[
0
])
output_base
=
"wpptmp"
;
temp_name
=
pp_xmalloc
(
strlen
(
output_base
)
+
8
);
if
(
!
temp_name
)
return
1
;
strcpy
(
temp_name
,
output_base
);
strcat
(
temp_name
,
".XXXXXX"
);
if
((
fd
=
mkstemps
(
temp_name
,
0
))
==
-
1
)
{
ppy_error
(
"Could not generate a temp name from %s
\n
"
,
temp_name
);
free
(
temp_name
);
return
2
;
}
if
(
!
(
output
=
fdopen
(
fd
,
"wt"
)))
{
ppy_error
(
"Could not open fd %s for writing
\n
"
,
temp_name
);
close
(
fd
);
unlink
(
temp_name
);
free
(
temp_name
);
return
2
;
}
*
output_name
=
temp_name
;
ret
=
wpp_parse
(
input
,
output
);
fclose
(
output
);
return
ret
;
}
void
wpp_set_callbacks
(
const
struct
wpp_callbacks
*
callbacks
)
{
wpp_callbacks
=
callbacks
;
...
...
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