Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR.

Reviewed by:	kib
MFC after:	1 week
This commit is contained in:
trociny 2012-02-21 19:35:59 +00:00
parent 756e1cf258
commit 3d90737625

View File

@ -195,7 +195,7 @@ while ((getline < srcfile) > 0) {
continue;
if ($1 ~ /^%%/) {
if (NF != 6 ||
$2 !~ /^[a-z]+$/ || $3 !~ /^[a-z]+$/ ||
$2 !~ /^[a-z_]+$/ || $3 !~ /^[a-z]+$/ ||
$4 !~ /^.$/ || $5 !~ /^.$/ || $6 !~ /^.$/) {
die("Invalid %s construction", "%%");
continue;