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
6f02b005
Commit
6f02b005
authored
1 year ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Filepath] remove dependency on Extlib
parent
0da5b24c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libraries/utils/filepath.ml
+10
-2
10 additions, 2 deletions
src/libraries/utils/filepath.ml
with
10 additions
and
2 deletions
src/libraries/utils/filepath.ml
+
10
−
2
View file @
6f02b005
...
...
@@ -188,7 +188,12 @@ let add_symbolic_dir_list name =
let
reset_symbolic_dirs
()
=
Hashtbl
.
clear
symbolic_dirs
let
all_symbolic_dirs
()
=
List
.
sort
Extlib
.
compare_basic
@@
let
compare
(
s1
,
s1'
)
(
s2
,
s2'
)
=
let
c
=
String
.
compare
s1
s2
in
if
c
<>
0
then
c
else
String
.
compare
s1'
s2'
in
List
.
sort
compare
@@
Hashtbl
.
fold
(
fun
dir
name
acc
->
(
name
,
dir
)
::
acc
)
symbolic_dirs
[]
let
rec
add_uri_path
buffer
path
=
...
...
@@ -282,7 +287,10 @@ module Normalized = struct
let
s1
=
pretty
s1
in
let
s2
=
pretty
s2
in
if
case_sensitive
then
String
.
compare
s1
s2
else
Extlib
.
compare_ignore_case
s1
s2
else
String
.
compare
(
String
.
lowercase_ascii
s1
)
(
String
.
lowercase_ascii
s2
)
let
empty
=
normalize
""
let
unknown
=
empty
...
...
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