make output a bit cleaner, to satisfy mckusick.

This commit is contained in:
cgd 1994-08-11 21:57:38 +00:00
parent 3c3258eb6d
commit 5009183daf

View File

@ -33,7 +33,7 @@ copyright='
* SUCH DAMAGE.
*/
'
SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.5 1994/07/15 22:29:22 cgd Exp $'
SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.6 1994/08/11 21:57:38 cgd Exp $'
# Script to produce VFS front-end sugar.
#
@ -111,9 +111,11 @@ awk_parser='
i++;
} else
willrele[argc] = 0;
argtype[argc] = $i; i++;
argtype[argc] = "";
while (i < NF) {
argtype[argc] = argtype[argc]" "$i;
argtype[argc] = argtype[argc]$i;
if (substr($i, length($i), 1) != "*")
argtype[argc] = argtype[argc]" ";
i++;
}
argname[argc] = $i;
@ -153,9 +155,9 @@ sed -e "$sed_prep" $src | $awk "$toupper"'
function doit() {
# Declare arg struct, descriptor.
printf("\nstruct %s_args {\n", name);
printf("\tstruct vnodeop_desc * a_desc;\n");
printf("\tstruct vnodeop_desc *a_desc;\n");
for (i=0; i<argc; i++) {
printf("\t%s a_%s;\n", argtype[i], argname[i]);
printf("\t%sa_%s;\n", argtype[i], argname[i]);
}
printf("};\n");
printf("extern struct vnodeop_desc %s_desc;\n", name);
@ -167,7 +169,7 @@ function doit() {
}
printf(")\n");
for (i=0; i<argc; i++) {
printf("\t%s %s;\n", argtype[i], argname[i]);
printf("\t%s%s;\n", argtype[i], argname[i]);
}
printf("{\n\tstruct %s_args a;\n", name);
printf("\ta.a_desc = VDESC(%s);\n", name);