Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
5a2408ae
Commit
5a2408ae
authored
May 07, 2004
by
John van Groningen
Browse files
convert hfs file name to unix file name for freopen on MacOSX/MachO
parent
35fd6a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/cocl.c
View file @
5a2408ae
...
...
@@ -96,6 +96,23 @@ int use_clean_system_files;
*/
#endif
#if defined (_MAC_) && defined (GNU_C)
extern
char
*
convert_file_name
(
char
*
file_name
,
char
*
buffer
);
static
FILE
*
freopen_with_file_name_conversion
(
char
*
file_name
,
char
*
mode
,
FILE
*
file_p
)
{
char
buffer
[
512
+
1
];
file_name
=
convert_file_name
(
file_name
,
buffer
);
if
(
file_name
==
NULL
)
return
NULL
;
return
freopen
(
file_name
,
mode
,
file_p
);
}
# define freopen freopen_with_file_name_conversion
#endif
#ifdef CLEAN2
Bool
ParseCommandArgs
(
int
argc
,
char
**
argv
,
char
**
file_name_p
,
char
**
output_file_name_p
)
#else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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