blob: 4ef05743993e18d7eda942b4163f7e1453290119 [file] [log] [blame]
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +01001#!/bin/sh
2
Manuel Pégourié-Gonnardd1ddd292015-04-09 10:15:10 +02003set -eu
4
5if [ -d include/mbedtls ]; then :; else
6 echo "$0: must be run from root" >&2
7 exit 1
8fi
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +01009
Jaeden Amero78d9d0c2019-07-04 20:50:11 +010010HEADERS=$( ls include/mbedtls/*.h crypto/include/mbedtls/*.h | egrep -v 'compat-1\.3\.h' )
Manuel Pégourié-Gonnard3385cf42015-04-02 17:59:30 +010011
12sed -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
16wc -l macros