Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
9fb35c19
Commit
9fb35c19
authored
7 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
fix issue #125
parent
4ed13c88
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/util/sysutil.ml
+11
-9
11 additions, 9 deletions
src/util/sysutil.ml
with
11 additions
and
9 deletions
src/util/sysutil.ml
+
11
−
9
View file @
9fb35c19
...
...
@@ -170,23 +170,25 @@ let normalize_filename f =
*)
let
relativize_filename
base
f
=
let
rec
aux
ab
af
=
let
rec
aux
abs
ab
af
=
match
ab
,
af
with
|
x
::
rb
,
y
::
rf
when
x
=
y
->
aux
rb
rf
|
x
::
rb
,
y
::
rf
when
x
=
y
->
aux
(
x
::
abs
)
rb
rf
|
_
->
let
rec
aux2
a
cc
p
=
let
rec
aux2
a
bs
rel
p
=
match
p
with
|
[]
->
acc
|
[]
->
rel
|
x
::
rb
->
(
if
x
=
Filename
.
current_dir_name
then
aux2
a
cc
rb
aux2
a
bs
rel
rb
else
if
x
=
Filename
.
parent_dir_name
then
failwith
"cannot relativize filename"
match
abs
with
|
x
::
rem
->
aux2
rem
(
x
::
rel
)
rb
|
[]
->
aux2
[]
rel
rb
else
aux2
(
Filename
.
parent_dir_name
::
acc
)
rb
)
in
aux2
af
ab
aux2
(
x
::
abs
)
(
Filename
.
parent_dir_name
::
rel
)
rb
)
in
aux2
abs
af
ab
in
file_of_path
(
aux
(
path_of_file
base
)
(
path_of_file
f
))
file_of_path
(
aux
[]
(
path_of_file
base
)
(
path_of_file
f
))
let
absolutize_filename
dirname
f
=
if
Filename
.
is_relative
f
then
...
...
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