Skip to content

Commit e91210f

Browse files
committed
Fix for the __swi replacements breaking the NOT_USED macro.
The __swi replacements were breaking the NOT_USED macro - it commented out until a ';' was encountered, so the defines in types.h became broken. This should fix the issue.
1 parent 04b11ee commit e91210f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create_hfiles.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ for i in oslib/include/*.h oslib/Macros/header oslib/Types/header ; do
1111
elif [[ "$i" == 'oslib/Types/header' ]] ; then
1212
name="types.h"
1313
fi
14-
env LC_ALL=C sed -E -e '/__swi[^;]*$/,/;/ s/^/\/\//' \
15-
-e '/__swi.*;$/ s/^/\/\//' \
14+
env LC_ALL=C sed -E -e '/^__swi[^;]*$/,/;/ s/^/\/\//' \
15+
-e '/^__swi.*;$/ s/^/\/\//' \
1616
-e 's/([ (])int /\1int32_t /' \
1717
-e 's/unsigned int32_t/uint32_t/' \
1818
-e 's/typedef int32_t *bool;/#include <stdbool.h>/' \

0 commit comments

Comments
 (0)