Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
verimag
synchrone
sasa
Commits
88a306ec
Commit
88a306ec
authored
3 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
fix: allow dot files to start with a relative path
parent
6122a582
No related branches found
Branches containing commit
Tags
v4.5.3
Tags containing commit
No related merge requests found
Pipeline
#72252
passed
3 years ago
Stage: build
Stage: release
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/sasacore/seed.ml
+2
-1
2 additions, 1 deletion
lib/sasacore/seed.ml
lib/sasacore/simuState.ml
+2
-1
2 additions, 1 deletion
lib/sasacore/simuState.ml
with
4 additions
and
2 deletions
lib/sasacore/seed.ml
+
2
−
1
View file @
88a306ec
(* Time-stamp: <modified the 2
1
/0
5
/2021 (at
17:18
) by Erwan Jahier> *)
(* Time-stamp: <modified the 2
7
/0
7
/2021 (at
09:20
) by Erwan Jahier> *)
let
seed
=
ref
None
let
seed
=
ref
None
let
replay_seed
=
ref
false
let
replay_seed
=
ref
false
...
@@ -32,6 +32,7 @@ let reset () = seed := None
...
@@ -32,6 +32,7 @@ let reset () = seed := None
let
rec
(
get
:
string
->
int
)
=
let
rec
(
get
:
string
->
int
)
=
fun
label
->
fun
label
->
let
label
=
Filename
.
basename
label
in
match
!
seed
with
match
!
seed
with
|
Some
i
->
i
|
Some
i
->
i
|
None
->
|
None
->
...
...
This diff is collapsed.
Click to expand it.
lib/sasacore/simuState.ml
+
2
−
1
View file @
88a306ec
(* Time-stamp: <modified the 2
3
/07/2021 (at
11
:19) by Erwan Jahier> *)
(* Time-stamp: <modified the 2
7
/07/2021 (at
09
:19) by Erwan Jahier> *)
open
Register
open
Register
...
@@ -207,6 +207,7 @@ let (make : bool -> string array -> 'v t) =
...
@@ -207,6 +207,7 @@ let (make : bool -> string array -> 'v t) =
let
cmxs
=
(
Filename
.
chop_extension
dot_file
)
^
".cmxs"
in
let
cmxs
=
(
Filename
.
chop_extension
dot_file
)
^
".cmxs"
in
if
args
.
gen_register
then
(
if
args
.
gen_register
then
(
let
base
=
Filename
.
chop_extension
dot_file
in
let
base
=
Filename
.
chop_extension
dot_file
in
let
base
=
Filename
.
basename
base
in
let
base
=
Str
.
global_replace
(
Str
.
regexp
"
\\
."
)
""
base
in
let
base
=
Str
.
global_replace
(
Str
.
regexp
"
\\
."
)
""
base
in
let
ml_register_file
=
base
^
".ml"
in
let
ml_register_file
=
base
^
".ml"
in
let
ml_state_file
=
"state.ml"
in
let
ml_state_file
=
"state.ml"
in
...
...
This diff is collapsed.
Click to expand it.
erwan
@jahier
mentioned in issue
#17 (closed)
·
3 years ago
mentioned in issue
#17 (closed)
mentioned in issue #17
Toggle commit list
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