Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
ef531e26
Commit
ef531e26
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[hdrck] avoid double slashes when concatenating paths
parent
a375065f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
headers/hdrck.ml
+5
-1
5 additions, 1 deletion
headers/hdrck.ml
with
5 additions
and
1 deletion
headers/hdrck.ml
+
5
−
1
View file @
ef531e26
...
@@ -135,7 +135,11 @@ let error ~exit_value =
...
@@ -135,7 +135,11 @@ let error ~exit_value =
in the header_spec.txt files.
in the header_spec.txt files.
*)
*)
let
path_concat
p1
p2
=
let
path_concat
p1
p2
=
p1
^
"/"
^
p2
(* Note: use String.ends_with when minimum OCaml version is 4.13 *)
if
String
.
length
p1
>
0
&&
String
.
get
p1
(
String
.
length
p1
-
1
)
=
'
/
'
then
p1
^
p2
else
p1
^
"/"
^
p2
(* Temporary directory management (cont.) *)
(* Temporary directory management (cont.) *)
let
get_tmp_dirname
()
=
match
!
tmp_dirname
with
let
get_tmp_dirname
()
=
match
!
tmp_dirname
with
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment