Skip to content

Commit 9d28c42

Browse files
gilles-peskine-armronald-cron-arm
authored andcommitted
Revert "check-names: Enable referencing Mbed TLS macros"
This reverts commit 7fcc7bc.
1 parent 4e11749 commit 9d28c42

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/scripts/list-macros.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,8 @@ fi
1010
HEADERS=$( ls include/mbedtls/*.h include/psa/*.h | egrep -v 'compat-1\.3\.h' )
1111
HEADERS="$HEADERS 3rdparty/everest/include/everest/everest.h 3rdparty/everest/include/everest/x25519.h"
1212

13-
# White-list macros we want to be able to refer to that don't exist in the
14-
# crypto library, useful when referring to macros in Mbed TLS from comments.
15-
WHITELIST='MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS'
16-
17-
# Generate a list of macros and combine it with the white-listed macros in
18-
# sorted order.
19-
{ sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS |
20-
egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_';
21-
printf '%s\n' $WHITELIST;
22-
} | sort -u > macros
13+
sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
14+
| egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
15+
| sort -u > macros
2316

2417
wc -l macros

0 commit comments

Comments
 (0)