1#!/bin/sh 2 3# Copyright: 2020 Masatake YAMATO 4# License: GPL-2 5 6READTAGS=$3 7 8. ../utils.sh 9 10#V="valgrind --leak-check=full -v" 11V= 12 13if ! [ -x "${READTAGS}" ]; then 14 skip "no readtags" 15fi 16 17if ! ( "${READTAGS}" -h | grep -q -e -Q ); then 18 skip "no qualifier function in readtags" 19fi 20 21if ! ( "${READTAGS}" -h | grep -q -e -F ); then 22 skip "no formatter function in readtags" 23fi 24 25echo '# FQ' && 26 ${V} ${READTAGS} -t output.tags -Q '(eq? $kind "function")' -F '(list $name #t)' -l && 27echo '# F' && 28${V} ${READTAGS} -t output.tags -F '(if (eq? $kind "function") (list $name #t) #f)' -l && 29echo '# F declarations' && 30${V} ${READTAGS} -t output.tags -F \ 31 '(if (eq? $kind "function") 32 (list (if $file "static " #f) $typeref-name " " $name $signature ";" #t) 33 #f)' -l 34