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
46727e14
Commit
46727e14
authored
Sep 18, 2020
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression in feature_buster
due to incompatibility with newer versions of opengeode
parent
5f67040f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
c/build_ada_skeletons.c
c/build_ada_skeletons.c
+2
-1
c/c_ast_construction.c
c/c_ast_construction.c
+12
-2
include/my_types.h
include/my_types.h
+1
-0
No files found.
c/build_ada_skeletons.c
View file @
46727e14
...
...
@@ -426,7 +426,8 @@ void GW_Ada_Backend(FV * fv)
if
(
fv
->
system_ast
->
context
->
onlycv
)
return
;
if
(
ada
==
fv
->
language
||
qgenada
==
fv
->
language
)
{
if
((
ada
==
fv
->
language
&&
sdl
!=
fv
->
original_language
)
||
qgenada
==
fv
->
language
)
{
/* Create the files and add headers */
Init_Ada_GW_Backend
(
fv
);
...
...
c/c_ast_construction.c
View file @
46727e14
...
...
@@ -164,8 +164,16 @@ void Set_Property (char *name, char *val)
void
Set_Language_To_SDL
()
{
if
(
NULL
!=
fv
)
if
(
NULL
!=
fv
)
{
// During the build the language will be changed to Ada
// so we keep a trace of the original language set in the
// model, if any backend needs it.
// The skeleton generation needs it to avoid overwriting the
// .ads file generated by opengeode.
fv
->
language
=
sdl
;
fv
->
original_language
=
sdl
;
}
}
void
Set_Language_To_CPP
()
...
...
@@ -241,8 +249,10 @@ void Set_Language_To_Scade()
void
Set_Language_To_Ada
()
{
if
(
NULL
!=
fv
)
if
(
NULL
!=
fv
)
{
fv
->
language
=
ada
;
fv
->
original_language
=
ada
;
}
}
void
Set_Language_To_GUI
()
...
...
include/my_types.h
View file @
46727e14
...
...
@@ -244,6 +244,7 @@ typedef struct t_fv {
struct
t_system
*
system_ast
;
Nature
runtime_nature
;
Language
language
;
Language
original_language
;
// keep track of SDL
char
*
zipfile
;
Interface_list
*
interfaces
;
struct
t_process
*
process
;
...
...
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