#!/bin/zsh
# vim: ft=zsh noet ts=4 sts=4 sw=4

autoload -Uz zsv_config
zsv_config
zsv_parse

for name in $svtab; do
	zsv_eval $ZSVDIR/$name
	zsv_dir=$zsv_svdir/$name

	f=$handler[cond]
	if [[ -z $f ]]; then
		cond_r=N
	else
		(($+functions[$f])) || autoload -Uz $f
		$f
		cond_r=$?
	fi

	f=$handler[check]
	if [[ -z $f ]]; then
		check_r=N
	else
		(($+functions[$f])) || autoload -Uz $f
		$f
		check_r=$?
	fi

	print -r - $name:$'\t'cond=$cond_r$'\t'check=$check_r
done