Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lutin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
verimag
synchrone
lutin
Commits
f268b73c
Commit
f268b73c
authored
May 22, 2019
by
erwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: when lurette uses lv6 -2c-exec, it does not uses the embedded Lv6Run plugin anymore
parent
c3ff3e06
Pipeline
#24141
failed with stages
in 4 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
lurette-nocaml/src/lurette.ml
lurette-nocaml/src/lurette.ml
+19
-11
No files found.
lurette-nocaml/src/lurette.ml
View file @
f268b73c
(* Time-stamp: <modified the
11/04/2019 (at 14:56
) by Erwan Jahier> *)
(* Time-stamp: <modified the
22/05/2019 (at 09:50
) by Erwan Jahier> *)
(* Mimick the behavior of 'rdbg -lurette', but without the dependency
on ocaml *)
open
Event
...
...
@@ -50,16 +50,24 @@ let other_args:string =
(**********************************************************************************)
let
(
gen_reactive_program
:
string
->
RdbgArg
.
reactive_program
)
=
fun
str
->
let
args
=
Str
.
split
(
Str
.
regexp
"[
\t
]+"
)
str
in
let
tool
=
Filename
.
basename
(
List
.
hd
args
)
in
let
plugin
=
match
tool
with
|
"lutin"
->
LutinRun
.
make
(
Array
.
of_list
args
)
|
"lv6"
|
"lus2lic"
->
Lv6Run
.
make
(
Array
.
of_list
(
args
@
[
"--expand-io-type"
]))
|
"ocaml"
->
OcamlRun
.
make
(
List
.
nth
args
1
)
|
_
->
StdioRun
.
make
str
in
Ocaml
(
plugin
)
let
args
=
Str
.
split
(
Str
.
regexp
"[
\t
]+"
)
str
in
let
tool
=
Filename
.
basename
(
List
.
hd
args
)
in
let
plugin
=
match
tool
with
|
"lutin"
->
LutinRun
.
make
(
Array
.
of_list
args
)
|
"lv6"
|
"lus2lic"
->
if
List
.
mem
"-exec"
args
||
List
.
mem
"-2c-exec"
args
||
List
.
mem
"--to-c-execute"
args
then
StdioRun
.
make
str
else
Lv6Run
.
make
(
Array
.
of_list
(
args
@
[
"--expand-io-type"
]))
|
"ocaml"
->
OcamlRun
.
make
(
List
.
nth
args
1
)
|
_
->
StdioRun
.
make
str
in
Ocaml
(
plugin
)
open
RdbgArg
let
_
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment