summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-12-06 06:59:38 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-12-06 06:59:38 +0000
commit7ca7bbb36bd9fff6943d8c0569d4ec6c959b5a7f (patch)
tree4e7a67a5faedd0bd3185bfa570bb9e7215c66267
parentbcec0cefc4ac1805a074cf20324e6c645e34f464 (diff)
Notes
-rw-r--r--sys/kern/vnode_if.pl17
-rw-r--r--sys/tools/vnode_if.awk17
2 files changed, 6 insertions, 28 deletions
diff --git a/sys/kern/vnode_if.pl b/sys/kern/vnode_if.pl
index 46e7fb76b160..e0aebbb0c9fc 100644
--- a/sys/kern/vnode_if.pl
+++ b/sys/kern/vnode_if.pl
@@ -229,23 +229,12 @@ line: while (<SRC>) {
# Print out extern declaration.
print HEADER "extern struct vnodeop_desc ${name}_desc;\n";
- # Print out prototype.
- print HEADER "static __inline int ${uname} __P((\n";
+ # Print out function.
+ print HEADER "static __inline int ${uname}(\n";
for (my $c2 = 0; $c2 < $numargs; ++$c2) {
$a{$c2} =~ /^\s*(INOUT|OUT|IN)(\s+WILLRELE)?\s+(.*?)\s+(\**\S*)\;/;
print HEADER "\t$3 $4" .
- ($c2 < $numargs-1 ? "," : "));") . "\n";
- }
-
- # Print out function.
- print HEADER "static __inline int ${uname}(";
- for (my $c2 = 0; $c2 < $numargs; ++$c2) {
- $a{$c2} =~ /\**([^;\s]*)\;[^\s]*$/;
- print HEADER "$1" . ($c2 < $numargs - 1 ? ', ' : ")\n");
- }
- for (my $c2 = 0; $c2 < $numargs; ++$c2) {
- $a{$c2} =~ /^\s*(INOUT|OUT|IN)(\s+WILLRELE)?\s+(.*?)\s+(\**\S*\;)/;
- print HEADER "\t$3 $4\n";
+ ($c2 < $numargs-1 ? "," : ")") . "\n";
}
print HEADER "{\n\tstruct ${name}_args a;\n";
print HEADER "\tint rc;\n";
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 46e7fb76b160..e0aebbb0c9fc 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -229,23 +229,12 @@ line: while (<SRC>) {
# Print out extern declaration.
print HEADER "extern struct vnodeop_desc ${name}_desc;\n";
- # Print out prototype.
- print HEADER "static __inline int ${uname} __P((\n";
+ # Print out function.
+ print HEADER "static __inline int ${uname}(\n";
for (my $c2 = 0; $c2 < $numargs; ++$c2) {
$a{$c2} =~ /^\s*(INOUT|OUT|IN)(\s+WILLRELE)?\s+(.*?)\s+(\**\S*)\;/;
print HEADER "\t$3 $4" .
- ($c2 < $numargs-1 ? "," : "));") . "\n";
- }
-
- # Print out function.
- print HEADER "static __inline int ${uname}(";
- for (my $c2 = 0; $c2 < $numargs; ++$c2) {
- $a{$c2} =~ /\**([^;\s]*)\;[^\s]*$/;
- print HEADER "$1" . ($c2 < $numargs - 1 ? ', ' : ")\n");
- }
- for (my $c2 = 0; $c2 < $numargs; ++$c2) {
- $a{$c2} =~ /^\s*(INOUT|OUT|IN)(\s+WILLRELE)?\s+(.*?)\s+(\**\S*\;)/;
- print HEADER "\t$3 $4\n";
+ ($c2 < $numargs-1 ? "," : ")") . "\n";
}
print HEADER "{\n\tstruct ${name}_args a;\n";
print HEADER "\tint rc;\n";