Fix the definition generation code from rev 1.15 that generates non-style(9)
compliant structure definitions.
This commit is contained in:
parent
5752bffd55
commit
faf73940c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83046
@ -305,7 +305,7 @@ s/\$//g
|
||||
if ((!nosys || funcname != "nosys") && \
|
||||
(funcname != "lkmnosys") && (funcname != "lkmressys")) {
|
||||
if (argc != 0 && $2 != "NOARGS" && $2 != "NOPROTO") {
|
||||
printf("struct\t%s {\n", argalias) > sysarg
|
||||
printf("struct %s {\n", argalias) > sysarg
|
||||
for (i = 1; i <= argc; i++)
|
||||
printf("\tchar %s_l_[PADL_(%s)]; " \
|
||||
"%s %s; char %s_r_[PADR_(%s)];\n",
|
||||
@ -315,7 +315,7 @@ s/\$//g
|
||||
printf("};\n") > sysarg
|
||||
}
|
||||
else if($2 != "NOARGS" && $2 != "NOPROTO")
|
||||
printf("struct\t%s {\n\tregister_t dummy;\n};\n",
|
||||
printf("struct %s {\n\tregister_t dummy;\n};\n",
|
||||
argalias) > sysarg
|
||||
}
|
||||
if ($2 != "NOPROTO" && (!nosys || funcname != "nosys") && \
|
||||
@ -358,7 +358,7 @@ s/\$//g
|
||||
ncompat++
|
||||
parseline()
|
||||
if (argc != 0 && $2 != "CPT_NOA") {
|
||||
printf("struct\t%s {\n", argalias) > syscompat
|
||||
printf("struct %s {\n", argalias) > syscompat
|
||||
for (i = 1; i <= argc; i++)
|
||||
printf("\tchar %s_l_[PADL_(%s)]; %s %s; " \
|
||||
"char %s_r_[PADR_(%s)];\n",
|
||||
@ -368,7 +368,7 @@ s/\$//g
|
||||
printf("};\n") > syscompat
|
||||
}
|
||||
else if($2 != "CPT_NOA")
|
||||
printf("struct\t%s {\n\tregister_t dummy;\n};\n",
|
||||
printf("struct %s {\n\tregister_t dummy;\n};\n",
|
||||
argalias) > sysarg
|
||||
printf("%s\to%s __P((struct proc *, struct %s *));\n",
|
||||
rettype, funcname, argalias) > syscompatdcl
|
||||
|
Loading…
Reference in New Issue
Block a user