Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
0568c9ac
Commit
0568c9ac
authored
Mar 30, 2020
by
Thanassis Tsiodras
Browse files
As requested by N7/Rafal.
parent
52d2db42
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/asynchronousTool.py
View file @
0568c9ac
...
...
@@ -100,7 +100,7 @@ class ASynchronousToolGlueGenerator:
ID
=
re
.
sub
(
r
'[^A-Za-z0-9_]'
,
'_'
,
ID
).
upper
()
self
.
C_HeaderFile
.
write
(
"#ifndef __%s_H__
\n
"
%
ID
)
self
.
C_HeaderFile
.
write
(
"#define __%s_H__
\n\n
"
%
ID
)
self
.
C_HeaderFile
.
write
(
"#ifdef __unix__
\n
"
)
self
.
C_HeaderFile
.
write
(
"#if
def
ined(
__unix__
) || defined( __MSP430__ )
\n
"
)
self
.
C_HeaderFile
.
write
(
"#include <stdlib.h> /* for size_t */
\n
"
)
self
.
C_HeaderFile
.
write
(
"#else
\n
"
)
self
.
C_HeaderFile
.
write
(
"typedef unsigned size_t;
\n
"
)
...
...
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