Author: kevans
Date: Wed Dec 11 19:32:52 2019
New Revision: 355628
URL: https://svnweb.freebsd.org/changeset/base/355628
Log:
makesyscalls.lua: trim trailing spaces/commas from args
These are insignificant as far as declarations go, and we've historically
allowed it. fhlinkat in ^/sys/kern/syscalls.master, for example, currently
has a trailing comma after its final argument that this version of
makesyscalls is ignoring (not by conscious decision).
Fix it for now by actively stripping off trailing whitespace/commas until
we decide to actively prohibit it.
Modified:
head/sys/tools/makesyscalls.lua
Modified: head/sys/tools/makesyscalls.lua
==============================================================================
--- head/sys/tools/makesyscalls.lua Wed Dec 11 18:50:23 2019
(r355627)
+++ head/sys/tools/makesyscalls.lua Wed Dec 11 19:32:52 2019
(r355628)
@@ -1010,6 +1010,7 @@ process_syscall_def = function(line)
abort(1, "Not a signature? " .. line)
end
args = line:match("^[^(]+%((.+)%)[^)]*$")
+ args = trim(args, '[,%s]')
end
::skipalt::
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"