]> git.baikalelectronics.ru Git - kernel.git/commit
kernel-doc: track line numbers for each file separately
authorIlya Dryomov <idryomov@gmail.com>
Fri, 26 Feb 2010 21:05:47 +0000 (13:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 27 Feb 2010 01:23:49 +0000 (17:23 -0800)
commit98aca17654069444a2a9ce315ce82ba1f721c1d0
tree88283367eb9441e6176a4fd41ecb21e378ce6604
parentf3cadadc60b7cbd54803b8ad3934d87856a7f82d
kernel-doc: track line numbers for each file separately

The problem is that $. keeps track of the current record number (which
is line number by default). But if you pass it multiple files, it does
not wrap at the end of file, and therefore contains the *total* number
of processed lines.
I suppose we can fix line numbering by introducing a simple assignment
$. = 1
before processing every new file.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/kernel-doc