blob: 1ef8f324de275cc09800051ec41198af50c82575 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
#
TYPE="$1"
FN="$2"
diff -u <(
for I in `seq 0 255`; do
printf "0x%02x\\n" $I
done
) <(
sed -n "/#define ${TYPE}_/s/#define ${TYPE}_[A-Z0-9_]* *//p" $FN | sort
) | sed -n '/^[\+\-]0/s/^.//p'
|