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
d4bb08f8
Commit
d4bb08f8
authored
Mar 18, 2013
by
John van Groningen
Browse files
use / instead of \ in paths
parent
b2895908
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/unix_io.c
View file @
d4bb08f8
...
...
@@ -80,7 +80,7 @@ static void append_file_name_and_ext (char *path_p,char *fname_p,char *ext,int i
path_p
[
i
]
=
fname_p
[
i
];
++
i
;
}
path_p
[
i
]
=
'
\\
'
;
path_p
[
i
]
=
'
/
'
;
path_p
+=
last_dot_i
+
1
;
fname_p
+=
last_dot_i
+
1
;
...
...
@@ -102,7 +102,7 @@ static void append_file_name_and_ext (char *path_p,char *fname_p,char *ext,int i
i
=
0
;
while
(
c
=
fname_p
[
i
],
c
!=
'\0'
){
path_p
[
i
]
=
c
==
'.'
?
'
\\
'
:
c
;
path_p
[
i
]
=
c
==
'.'
?
'
/
'
:
c
;
++
i
;
}
path_p
+=
i
;
...
...
@@ -158,7 +158,7 @@ static Bool findfilepath (char *fname,FileKind kind,char *mode,char *path)
*
dest_p
++
=
*
from_p
++
;
*
dest_p
=
'\0'
;
*
dest_p
++
=
'
\\
'
;
*
dest_p
++
=
'
/
'
;
append_file_name_and_ext
(
dest_p
,
fname
,
ext
,
in_clean_system_files_folder
);
if
(
file_exists
(
path
))
return
True
;
...
...
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