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
B
buildsupport
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
buildsupport
Commits
ce1dba91
Commit
ce1dba91
authored
Oct 02, 2017
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup code
parent
98ba8a1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
20 deletions
+5
-20
c/ada_wrappers_backend.c
c/ada_wrappers_backend.c
+1
-2
c/sdl_gateway.c
c/sdl_gateway.c
+1
-11
c/semantic_checks.c
c/semantic_checks.c
+3
-7
No files found.
c/ada_wrappers_backend.c
View file @
ce1dba91
...
...
@@ -791,7 +791,6 @@ void Generate_Ada_CallingStack(FV * fv)
(
void
)
ct
;
count
++
;
})
printf
(
"FV: %s has %d calling threads
\n
"
,
fv
->
name
,
count
);
if
(
2
>
count
)
return
;
...
...
@@ -896,7 +895,7 @@ void GLUE_Ada_Wrappers_Backend(FV * fv)
});
FOREACH
(
pi
,
Interface
,
fv
->
interfaces
,
{
if
(
synch
==
pi
->
synchronism
)
{
count_sync_pi
++
;
count_sync_pi
++
;
}
});
if
(
1
<
count_ct
&&
0
<
count_sync_pi
)
{
...
...
c/sdl_gateway.c
View file @
ce1dba91
...
...
@@ -258,17 +258,7 @@ void GW_SDL_Interface(Interface * i)
void
GW_SDL_Backend
(
FV
*
fv
)
{
if
(
fv
->
system_ast
->
context
->
onlycv
)
return
;
// DEBUG CODE START
if
((
sdl
==
fv
->
language
||
opengeode
==
fv
->
language
))
{
printf
(
"FV %s is in SDL
\n
"
,
fv
->
name
);
if
(
NULL
==
fv
->
instance_of
)
{
printf
(
"Its instance_of is NULL
\n
"
);
}
else
{
printf
(
"It IS AN INSTANCE OF %s
\n
"
,
fv
->
instance_of
);
}
}
// DEBUG CODE END
if
((
sdl
==
fv
->
language
||
opengeode
==
fv
->
language
))
{
Create_New_SDL_Structure
(
fv
);
FOREACH
(
i
,
Interface
,
fv
->
interfaces
,
{
...
...
c/semantic_checks.c
View file @
ce1dba91
...
...
@@ -107,10 +107,6 @@ bool MultiInstance_SDL_Interface_Check(Interface * i, Interface * j)
int
out_param_cnt_i
=
0
;
int
out_param_cnt_j
=
0
;
if
(
!
Compare_Interface
(
i
,
j
))
{
result
=
false
;
}
if
(
i
->
direction
!=
j
->
direction
)
{
result
=
false
;
}
...
...
@@ -358,13 +354,13 @@ void Function_Semantic_Check(FV * fv)
Interface
*
def_i
=
FindInterface
(
definition
,
i
->
name
);
if
(
def_i
==
NULL
)
{
ERROR
(
"
** Error:
Interface
\"
%s
\"
of instance
\"
%s
\"
not found from definition
\"
%s
\"
.
\n
"
,
(
"
[ERROR]
Interface
\"
%s
\"
of instance
\"
%s
\"
not found from definition
\"
%s
\"
.
\n
"
,
i
->
name
,
fv
->
name
,
definition
->
name
);
add_error
();
}
else
{
if
(
!
MultiInstance_SDL_Interface_Check
(
i
,
def_i
))
{
ERROR
(
"
** Error:
Interface
\"
%s
\"
of instance
\"
%s
\"
not matching with definition
\"
%s
\"
.
\n
"
,
(
"
[ERROR]
Interface
\"
%s
\"
of instance
\"
%s
\"
not matching with definition
\"
%s
\"
.
\n
"
,
i
->
name
,
fv
->
name
,
definition
->
name
);
add_error
();
}
...
...
@@ -378,7 +374,7 @@ void Function_Semantic_Check(FV * fv)
});
if
(
fv_intf_cnt
!=
definition_intf_cnt
)
{
ERROR
(
"
** Error:
Interface count mismatch between definition
\"
%s
\"
and instance
\"
%s
\"
.
\n
"
,
(
"
[ERROR]
Interface count mismatch between definition
\"
%s
\"
and instance
\"
%s
\"
.
\n
"
,
definition
->
name
,
fv
->
name
);
add_error
();
}
...
...
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