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
310b9433
Commit
310b9433
authored
May 05, 2017
by
TASTE User
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove any reference to stdlib/stdio definitions
..for non-Unix targets
parent
49a6ebca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
c/build_c_glue.c
c/build_c_glue.c
+10
-4
c/build_driver_skeletons.c
c/build_driver_skeletons.c
+5
-1
c/preprocessing_backend.c
c/preprocessing_backend.c
+7
-7
No files found.
c/build_c_glue.c
View file @
310b9433
...
...
@@ -41,7 +41,12 @@ void c_preamble(FV * fv)
fprintf
(
vm_if_h
,
"#ifndef VM_IF_%s
\n
"
,
fv
->
name
);
fprintf
(
vm_if_h
,
"#define VM_IF_%s
\n\n
"
,
fv
->
name
);
fprintf
(
vm_if
,
"#include <stdlib.h>
\n
"
"#include <stdio.h>
\n\n
"
);
fprintf
(
vm_if
,
"#ifdef __unix__
\n
"
" #include <stdlib.h>
\n
"
" #include <stdio.h>
\n
"
"#else
\n
"
" typedef unsigned size_t;
\n
"
"#endif
\n\n
"
);
fprintf
(
vm_if_h
,
"#ifdef __cplusplus
\n
"
"extern
\"
C
\"
{
\n
"
"#endif
\n\n
"
);
...
...
@@ -59,7 +64,7 @@ void c_preamble(FV * fv)
}
if
(
hasparam
)
{
fprintf
(
vm_if
,
"#include
\"
C_ASN1_Types.h
\"\n\n
"
);
fprintf
(
vm_if
,
"#include
\"
C_ASN1_Types.h
\"\n\n
"
);
fprintf
(
vm_if_h
,
"#include
\"
C_ASN1_Types.h
\"\n\n
"
);
}
...
...
@@ -571,8 +576,9 @@ void add_RI_to_c_invoke_ri(Interface * i)
"#ifdef __unix__
\n
"
" printf (
\"
** Encoding error in %s_RI_%s!!
\\
n
\"
);
\n
"
"#endif
\n
"
" /* Major error, we must stop the application and let the FDIR/Watchdogs recover */
\n
"
" exit (-1);
\n
"
" /* Crash the application due to message loss */
\n
"
" extern void abort (void);
\n
"
" abort();
\n
"
" }
\n
"
,
p
->
name
,
BINARY_ENCODING
(
p
),
...
...
c/build_driver_skeletons.c
View file @
310b9433
...
...
@@ -49,7 +49,11 @@ void driver_gw_preamble(FV * fv)
"#ifndef __DRIVER_CODE_H_%s__
\n
#define __DRIVER_CODE_H_%s__
\n\n
"
,
fv
->
name
,
fv
->
name
);
fprintf
(
driver_h
,
"#include <stdlib.h>
\n\n
"
);
fprintf
(
driver_h
,
"#ifdef __unix__
\n
"
" #include <stdlib.h>
\n
"
"#else
\n
"
" typedef unsigned size_t;
\n
"
"#endif
\n\n
"
);
fprintf
(
driver_h
,
"void init_%s();
\n\n
"
,
fv
->
name
);
...
...
c/preprocessing_backend.c
View file @
310b9433
...
...
@@ -903,16 +903,16 @@ void Add_api(Process *node, FV_list *all_fv)
"#define __AUTO_CODE_H_%s__
\n\n
"
"#include
\"
C_ASN1_Types.h
\"\n
"
"#ifdef __cplusplus
\n
"
"extern
\"
C
\"
{
\n
"
"
extern
\"
C
\"
{
\n
"
"#endif
\n\n
"
,
fv
->
name
,
fv
->
name
);
/* Debug mode - Unix platform, when env variable CHECKQ_DEBUG is set */
fprintf
(
header
,
"#ifdef __unix__
\n
"
"#include <stdbool.h>
\n
"
"#include <stdlib.h>
\n
"
"static bool debugCheckQ = false;
\n
"
"
#include <stdbool.h>
\n
"
"
#include <stdlib.h>
\n
"
"
static bool debugCheckQ = false;
\n
"
"#endif
\n\n
"
);
fprintf
(
code
,
"#ifdef __unix__
\n
"
...
...
@@ -952,9 +952,9 @@ void Add_api(Process *node, FV_list *all_fv)
" if (__po_hi_gqueue_get_count(%s, %s)) {
\n
"
" *res = 1;
\n
"
" #ifdef __unix__
\n
"
" if (debugCheckQ) {
\n
"
" printf (
\"
[DEBUG] Pending message %s in function %s
\\
n
\"
);
\n
"
" }
\n
"
"
if (debugCheckQ) {
\n
"
"
printf (
\"
[DEBUG] Pending message %s in function %s
\\
n
\"
);
\n
"
"
}
\n
"
" #endif
\n
"
" }
\n
"
,
string_to_lower
(
task_id
),
...
...
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