| @@ -254,8 +254,9 @@ SECTION_DEFAULT = "Description" # default section · 253 unmodified lines |
| 254 | | 254 | |
| 255 | class KernelEntry: | 255 | class KernelEntry: |
| 256 | | 256 | |
| 257 | def __init__(self, config, ln): | 257 | def __init__(self, config, fname, ln): |
| 258 | self.config = config | 258 | self.config = config |
| | 259 | self.fname = fname |
| 259 | | 260 | |
| 260 | self._contents = [] | 261 | self._contents = [] |
| 261 | self.prototype = "" | 262 | self.prototype = "" |
| @@ -422,7 +423,8 @@ class KernelDoc: · 160 unmodified lines |
| 422 | The actual output and output filters will be handled elsewhere | 423 | The actual output and output filters will be handled elsewhere |
| 423 | """ | 424 | """ |
| 424 | | 425 | |
| 425 | item = KdocItem(name, dtype, self.entry.declaration_start_line, **args) | 426 | item = KdocItem(name, self.fname, dtype, |
| | 427 | self.entry.declaration_start_line, **args) |
| 426 | item.warnings = self.entry.warnings | 428 | item.warnings = self.entry.warnings |
| 427 | | 429 | |
| 428 | # Drop empty sections | 430 | # Drop empty sections |
| @@ -445,7 +447,7 @@ class KernelDoc: · 16 unmodified lines |
| 445 | variables used by the state machine. | 447 | variables used by the state machine. |
| 446 | """ | 448 | """ |
| 447 | | 449 | |
| 448 | self.entry = KernelEntry(self.config, ln) | 450 | self.entry = KernelEntry(self.config, self.fname, ln) |
| 449 | | 451 | |
| 450 | # State flags | 452 | # State flags |
| 451 | self.state = state.NORMAL | 453 | self.state = state.NORMAL |