Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-v6
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
lustre-v6
Commits
3116ac3e
Commit
3116ac3e
authored
16 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug: the main node could not be named main...
parent
b3699ebc
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/Makefile
+7
-0
7 additions, 0 deletions
src/Makefile
src/TODO
+0
-3
0 additions, 3 deletions
src/TODO
src/global.ml
+2
-2
2 additions, 2 deletions
src/global.ml
src/main.ml
+6
-6
6 additions, 6 deletions
src/main.ml
with
15 additions
and
11 deletions
src/Makefile
+
7
−
0
View file @
3116ac3e
...
@@ -79,7 +79,14 @@ test: $(RESULT)
...
@@ -79,7 +79,14 @@ test: $(RESULT)
utest
:
$(RESULT)
utest
:
$(RESULT)
cd test
;
make utest
cd test
;
make utest
diff
:
cd
..
;
make diff
cia
:
cd
..
;
make cia
ci
:
cd
..
;
make ci
# Specific rule (version)
# Specific rule (version)
...
...
This diff is collapsed.
Click to expand it.
src/TODO
+
0
−
3
View file @
3116ac3e
...
@@ -96,9 +96,6 @@ lazycompiler.ml:
...
@@ -96,9 +96,6 @@ lazycompiler.ml:
*** facile
*** facile
* bug dans main.ml: le program principal ne peut pas s'appeller "main" à cause
du (stupide) test que je fais dans set_infile...
* Verifier que les test de map_red couvre les cas tordus.
* Verifier que les test de map_red couvre les cas tordus.
* BUG dans test/should_work/NONREG/Int.lus
* BUG dans test/should_work/NONREG/Int.lus
...
...
This diff is collapsed.
Click to expand it.
src/global.ml
+
2
−
2
View file @
3116ac3e
(** Time-stamp: <modified the
3
0/0
1
/2008 (at 1
6:18
) by Erwan Jahier> *)
(** Time-stamp: <modified the
2
0/0
5
/2008 (at 1
2:07
) by Erwan Jahier> *)
(** Some global variables *)
(** Some global variables *)
...
@@ -14,7 +14,7 @@ let _lus2lic_ARGS = {
...
@@ -14,7 +14,7 @@ let _lus2lic_ARGS = {
outfile
=
""
;
outfile
=
""
;
infiles
=
[]
;
infiles
=
[]
;
current_file
=
""
;
current_file
=
""
;
main_node
=
"
main
"
;
main_node
=
""
;
compile_all_items
=
false
compile_all_items
=
false
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main.ml
+
6
−
6
View file @
3116ac3e
(** Time-stamp: <modified the 20/05/2008 (at 12:0
4
) by Erwan Jahier> *)
(** Time-stamp: <modified the 20/05/2008 (at 12:0
8
) by Erwan Jahier> *)
(** Here follows a description of the different modules used by this lus2lic compiler.
(** Here follows a description of the different modules used by this lus2lic compiler.
...
@@ -62,7 +62,7 @@ let print_version = function (x: unit) -> (
...
@@ -62,7 +62,7 @@ let print_version = function (x: unit) -> (
)
)
let
rec
set_infile
=
function
(
x
:
string
)
->
(
let
rec
set_infile
=
function
(
x
:
string
)
->
(
if
(
_lus2lic_ARGS
.
main_node
=
"
main
"
)
then
(
if
(
_lus2lic_ARGS
.
main_node
=
""
)
then
(
(* default node name = file name *)
(* default node name = file name *)
try
try
_lus2lic_ARGS
.
main_node
<-
Filename
.
chop_extension
(
Filename
.
basename
x
)
_lus2lic_ARGS
.
main_node
<-
Filename
.
chop_extension
(
Filename
.
basename
x
)
...
@@ -74,10 +74,10 @@ let rec set_infile = function (x:string) -> (
...
@@ -74,10 +74,10 @@ let rec set_infile = function (x:string) -> (
)
)
and
arg_list
=
[
and
arg_list
=
[
(
"-version"
,
Arg
.
Unit
(
fun
ction
x
->
print_version
()
;
exit
0
)
,
(
"-version"
,
Arg
.
Unit
(
fun
x
->
print_version
()
;
exit
0
)
,
" print the current version then exit"
" print the current version then exit"
);
);
(
"-o"
,
Arg
.
String
(
fun
ction
x
->
_lus2lic_ARGS
.
outfile
<-
x
)
,
(
"-o"
,
Arg
.
String
(
fun
x
->
_lus2lic_ARGS
.
outfile
<-
x
)
,
" <file name> set the output file name"
" <file name> set the output file name"
);
);
(
"-n"
,
Arg
.
String
(
fun
x
->
_lus2lic_ARGS
.
main_node
<-
x
)
,
(
"-n"
,
Arg
.
String
(
fun
x
->
_lus2lic_ARGS
.
main_node
<-
x
)
,
...
@@ -88,10 +88,10 @@ and arg_list = [
...
@@ -88,10 +88,10 @@ and arg_list = [
" compile all items of the program"
" compile all items of the program"
);
);
(
"-v"
,
Arg
.
Unit
(
fun
ction
vl
->
Verbose
.
set_level
1
)
,
(
"-v"
,
Arg
.
Unit
(
fun
vl
->
Verbose
.
set_level
1
)
,
" set verbose mode on (i.e., verbose level = 1)"
" set verbose mode on (i.e., verbose level = 1)"
);
);
(
"-vl"
,
Arg
.
Int
(
fun
ction
vl
->
Verbose
.
set_level
vl
)
,
(
"-vl"
,
Arg
.
Int
(
fun
vl
->
Verbose
.
set_level
vl
)
,
" <int> set verbose level"
" <int> set verbose level"
)
)
]
]
...
...
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