Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
201ab915
Commit
201ab915
authored
Nov 12, 2017
by
lhausamm
Browse files
task dep graph: remove none when subtype is none
parent
eeafe65a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
201ab915
...
...
@@ -143,10 +143,26 @@ void scheduler_write_dependency(struct scheduler *s) {
tb
=
ta
->
unlock_tasks
[
j
];
char
tmp
[
200
];
/* text to write */
char
ta_name
[
200
];
char
tb_name
[
200
];
/* construct line */
sprintf
(
tmp
,
"
\t
\"
%s %s
\"
->
\"
%s %s
\"
;
\n
"
,
taskID_names
[
ta
->
type
],
subtaskID_names
[
ta
->
subtype
],
taskID_names
[
tb
->
type
],
subtaskID_names
[
tb
->
subtype
]);
if
(
ta
->
subtype
==
task_subtype_none
)
sprintf
(
ta_name
,
"%s"
,
taskID_names
[
ta
->
type
]);
else
sprintf
(
ta_name
,
"
\"
%s %s
\"
"
,
taskID_names
[
ta
->
type
],
subtaskID_names
[
ta
->
subtype
]);
if
(
tb
->
subtype
==
task_subtype_none
)
sprintf
(
tb_name
,
"%s"
,
taskID_names
[
tb
->
type
]);
else
sprintf
(
tb_name
,
"
\"
%s %s
\"
"
,
taskID_names
[
tb
->
type
],
subtaskID_names
[
tb
->
subtype
]);
sprintf
(
tmp
,
"
\t
%s->%s;
\n
"
,
ta_name
,
tb_name
);
/* check if dependency already written */
int
test
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment