Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / mbedtls / repo / tests / scripts / list-macros.sh
1 #!/bin/sh
2
3 set -eu
4
5 if [ -d include/mbedtls ]; then :; else
6     echo "$0: must be run from root" >&2
7     exit 1
8 fi
9
10 HEADERS=$( ls include/mbedtls/*.h | egrep -v 'compat-1\.3\.h' )
11
12 sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
13     | egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
14     | sort -u > macros
15
16 wc -l macros