Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
05eff342
Commit
05eff342
authored
Aug 30, 2016
by
Maxime Perrotin
Browse files
More vdm support
parent
2590d82c
Pipeline
#1175
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
c/build_vdm_skeletons.c
View file @
05eff342
...
@@ -93,12 +93,18 @@ void add_pi_to_vdm_gw(Interface * i)
...
@@ -93,12 +93,18 @@ void add_pi_to_vdm_gw(Interface * i)
char
*
sep
=
" * "
;
char
*
sep
=
" * "
;
bool
comma
=
false
;
bool
comma
=
false
;
char
*
params
=
" ("
;
char
*
sep2
=
", "
;
FOREACH
(
p
,
Parameter
,
i
->
in
,
{
FOREACH
(
p
,
Parameter
,
i
->
in
,
{
char
*
sort
=
make_string
(
"%s%s`%s"
,
char
*
sort
=
make_string
(
"%s%s`%s"
,
comma
?
sep
:
""
,
comma
?
sep
:
""
,
p
->
asn1_module
,
p
->
asn1_module
,
p
->
type
);
p
->
type
);
params
=
make_string
(
"%s%s%s"
,
params
,
comma
?
sep2
:
""
,
p
->
name
);
fprintf
(
interface
,
"%s"
,
sort
);
fprintf
(
interface
,
"%s"
,
sort
);
if
(
NULL
!=
user_code
)
{
if
(
NULL
!=
user_code
)
{
fprintf
(
user_code
,
"%s"
,
sort
);
fprintf
(
user_code
,
"%s"
,
sort
);
...
@@ -107,6 +113,8 @@ void add_pi_to_vdm_gw(Interface * i)
...
@@ -107,6 +113,8 @@ void add_pi_to_vdm_gw(Interface * i)
comma
=
true
;
comma
=
true
;
});
});
params
=
make_string
(
"%s)"
,
params
);
if
(
NULL
!=
i
->
out
)
{
if
(
NULL
!=
i
->
out
)
{
char
*
out
=
make_string
(
" ==> %s`%s"
,
char
*
out
=
make_string
(
" ==> %s`%s"
,
i
->
out
->
value
->
asn1_module
,
i
->
out
->
value
->
asn1_module
,
...
@@ -125,12 +133,16 @@ void add_pi_to_vdm_gw(Interface * i)
...
@@ -125,12 +133,16 @@ void add_pi_to_vdm_gw(Interface * i)
NULL
!=
i
->
in
?
" (-)"
:
""
);
NULL
!=
i
->
in
?
" (-)"
:
""
);
if
(
NULL
!=
user_code
)
if
(
NULL
!=
user_code
)
fprintf
(
user_code
,
fprintf
(
user_code
,
"
\n
"
"
\n
"
"%s == -- Write your code here
\n\n
"
,
"%s%s == -- Write your code here
\n\n
"
,
NULL
!=
i
->
in
?
params
:
""
,
i
->
name
);
i
->
name
);
free
(
signature
);
free
(
signature
);
free
(
sep2
);
free
(
params
);
free
(
sep
);
free
(
sep
);
}
}
...
...
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