mbedtls/tmp/list-macros.sh
Manuel Pégourié-Gonnard 3385cf4eec Add temporary scripts
2015-04-03 18:47:04 +02:00

12 lines
228 B
Bash
Executable File

#!/bin/sh
set =eu
HEADERS=$( ls include/mbedtls/*.h )
sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
| egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
| sort -u > macros
wc -l macros