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
5eeeff9d
Commit
5eeeff9d
authored
2 months ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Kernel] minor Filepath-related refactoring
parent
86fb8570
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
src/kernel_internals/runtime/special_hooks.ml
+8
-9
8 additions, 9 deletions
src/kernel_internals/runtime/special_hooks.ml
with
8 additions
and
9 deletions
src/kernel_internals/runtime/special_hooks.ml
+
8
−
9
View file @
5eeeff9d
...
...
@@ -149,24 +149,23 @@ let () = Extlib.safe_at_exit time
(* Save Frama-c on disk if required *)
let
save_binary
error_extension
=
if
not
(
Kernel
.
SaveState
.
is_empty
()
)
then
begin
let
filename
=
Kernel
.
SaveState
.
get
()
in
let
path
=
Kernel
.
SaveState
.
get
()
in
Kernel
.
SaveState
.
clear
()
;
let
real
name
=
let
real
path
=
match
error_extension
with
|
None
->
filename
|
None
->
path
|
Some
err_ext
->
let
s
=
(
filename
:>
string
)
^
err_ext
in
let
path
=
Filepath
.
Normalized
.
of_string
s
in
let
err_path
=
Filepath
.
Normalized
.
extend
path
err_ext
in
Kernel
.
warning
"attempting to save on non-zero exit code: \
modifying filename into `%
s
'."
(
Filepath
.
relativize
s
)
;
path
modifying filename into `%
a
'."
Filepath
.
Normalized
.
pretty
err_path
;
err_
path
in
try
Project
.
save_all
real
name
Project
.
save_all
real
path
with
Project
.
IOError
s
->
Kernel
.
error
"problem while saving to file %a (%s)."
Filepath
.
Normalized
.
pretty
real
name
s
Filepath
.
Normalized
.
pretty
real
path
s
end
let
()
=
(* implement a refinement of the behavior described in BTS #1388:
...
...
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