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
c4058daa
"git@git.frama-c.com:pub/frama-c.git" did not exist on "02cf2f4c12ed97294dc9e712d44840f37ba72062"
Commit
c4058daa
authored
3 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
REVUE 2 : supprime module type Exn inutile
parent
ed7d9f6f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/e-acsl/src/libraries/error.ml
+8
-5
8 additions, 5 deletions
src/plugins/e-acsl/src/libraries/error.ml
src/plugins/e-acsl/src/libraries/error.mli
+1
-10
1 addition, 10 deletions
src/plugins/e-acsl/src/libraries/error.mli
with
9 additions
and
15 deletions
src/plugins/e-acsl/src/libraries/error.ml
+
8
−
5
View file @
c4058daa
...
...
@@ -22,16 +22,19 @@
open
Error_types
module
Exn_impl
=
struct
(** Internal module holding the exception of [Error].
The module is included into [Make_with_opt] later and should not be used
directly. However we need to have a separate module for the exception so
that every exception built by [Make] is the exact same type. *)
module
Exn
=
struct
exception
Typing_error
of
Options
.
category
option
*
string
exception
Not_yet
of
Options
.
category
option
*
string
exception
Not_memoized
of
Options
.
category
option
end
module
type
Exn
=
module
type
of
Exn_impl
module
type
S
=
sig
include
Exn
include
module
type
of
Exn
val
make_untypable
:
string
->
exn
val
make_not_yet
:
string
->
exn
val
make_not_memoized
:
unit
->
exn
...
...
@@ -55,7 +58,7 @@ module type S = sig
end
module
Make_with_opt
(
P
:
sig
val
phase
:
Options
.
category
option
end
)
:
S
=
struct
include
Exn
_impl
include
Exn
let
make_untypable
msg
=
Typing_error
(
P
.
phase
,
msg
)
let
make_not_yet
msg
=
Not_yet
(
P
.
phase
,
msg
)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/src/libraries/error.mli
+
1
−
10
View file @
c4058daa
...
...
@@ -23,12 +23,7 @@
(** Handling errors. *)
open
Error_types
(** Internal module holding the exception of [Error].
The module is included into [S] later and should not be used directly.
However we need to have a separate module for the exception so that every
exception built by [Make] is the exact same type. *)
module
type
Exn
=
sig
module
type
S
=
sig
exception
Typing_error
of
Options
.
category
option
*
string
(** Typing error where the first element is the phase where the error occured
and the second element is the error message. *)
...
...
@@ -39,10 +34,6 @@ module type Exn = sig
exception
Not_memoized
of
Options
.
category
option
(** "Not memoized" error with the phase where the error occured. *)
end
module
type
S
=
sig
include
Exn
val
make_untypable
:
string
->
exn
(** Make a [Typing_error] exception with the given message. *)
...
...
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