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
8ed03f4b
Commit
8ed03f4b
authored
5 years ago
by
Julien Signoles
Browse files
Options
Downloads
Patches
Plain Diff
add Transitioning.Float.max_float
parent
f7d59e36
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.generating
+13
-0
13 additions, 0 deletions
Makefile.generating
src/libraries/stdlib/transitioning.ml.in
+4
-0
4 additions, 0 deletions
src/libraries/stdlib/transitioning.ml.in
src/libraries/stdlib/transitioning.mli
+5
-0
5 additions, 0 deletions
src/libraries/stdlib/transitioning.mli
with
22 additions
and
0 deletions
Makefile.generating
+
13
−
0
View file @
8ed03f4b
...
...
@@ -133,11 +133,23 @@ ifeq ($(HAS_OCAML408),yes)
Format.String_tag str -> str
\
| _ -> raise
(
Invalid_argument
"unsupported tag extension"
)
FORMAT_STAG_OF_STRING
=
Format.String_tag s
HAS_OCAML407_OR_408
=
yes
else
DYNLINK_INIT
=
Dynlink.init
FORMAT_STAG
=
tag
FORMAT_STRING_OF_STAG
=
s
FORMAT_STAG_OF_STRING
=
s
ifeq
($(HAS_OCAML407),yes)
HAS_OCAML407_OR_408
=
yes
else
HAS_OCAML407_OR_408
=
no
endif
endif
ifeq
($(HAS_OCAML407_OR_408),yes)
FLOAT_MAX_FLOAT
=
Float.max_float
else
FLOAT_MAX_FLOAT
=
Pervasives.max_float
endif
src/libraries/stdlib/transitioning.ml
:
\
...
...
@@ -153,6 +165,7 @@ src/libraries/stdlib/transitioning.ml: \
-e
's/@ASSOC_OPT@/
$(
ASSOC_OPT
)
/g'
\
-e
's/@ASSQ_OPT@/
$(
ASSQ_OPT
)
/g'
\
-e
's/@DYNLINK_INIT@/
$(
DYNLINK_INIT
)
/g'
\
-e
's/@FLOAT_MAX_FLOAT@/
$(
FLOAT_MAX_FLOAT
)
/g'
\
-e
's/@FORMAT_STAG@/
$(
FORMAT_STAG
)
/g'
\
-e
's/@FORMAT_STRING_OF_STAG@/
$(
FORMAT_STRING_OF_STAG
)
/g'
\
-e
's/@FORMAT_STAG_OF_STRING@/
$(
FORMAT_STAG_OF_STRING
)
/g'
\
...
...
This diff is collapsed.
Click to expand it.
src/libraries/stdlib/transitioning.ml.in
+
4
−
0
View file @
8ed03f4b
...
...
@@ -37,6 +37,10 @@ module Dynlink = struct
let init = @DYNLINK_INIT@
end
module Float = struct
let max_float = @FLOAT_MAX_FLOAT@
end
module Format = struct
type stag = Format.@FORMAT_STAG@
let string_of_stag s = @FORMAT_STRING_OF_STAG@
...
...
This diff is collapsed.
Click to expand it.
src/libraries/stdlib/transitioning.mli
+
5
−
0
View file @
8ed03f4b
...
...
@@ -49,6 +49,11 @@ module Dynlink: sig
val
init
:
unit
->
unit
end
(** 4.07 *)
module
Float
:
sig
val
max_float
:
float
end
(** 4.08 *)
module
Format
:
sig
type
stag
...
...
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