# -*- sh -*- # See LICENSE file for copyright and license details. printf '%s\n' "$types" | grep STRUCT >/dev/null printf '%s\n' "$types" | grep UNION >/dev/null structs="$(printf '%s\n' "$types" | grep '\(STRUCT\|UNION\)' | cut -d ' ' -f 1)" int=$(lookupnum "$types" INT) for os in $(getnamelist OS); do osn=$(getnum OS $os) for arch in $(getnamelist ARCH); do archn=$(getnum ARCH $arch) if ! issupported $os $arch; then continue fi ( ! is-datatype-struct.tu $osn $archn $int $os $arch INT ) for type in $structs; do is-datatype-struct.tu $osn $archn $type $os $arch 'some struct or union' done done done