Skip to content

Commit 0249ccd

Browse files
committed
autodoc: Include embed.fnc line number in output comments
The generated perlapi and perlintern will now include in their comments the position in embed.fn that the signature was found. This makes finding things a bit easier.
1 parent 4e301dd commit 0249ccd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

autodoc.pl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,13 +2512,9 @@ ($destpod)
25122512
my $embed= $_->{embed}
25132513
or next;
25142514
my $file = $_->{source};
2515-
my ($flags, $ret_type, $func, $args) =
2516-
@{$embed}{qw(flags return_type name args)};
2517-
check_and_add_proto_defn($func, $file,
2518-
# embed.fnc data doesn't currently furnish the
2519-
# line number
2520-
undef,
2521-
2515+
my ($flags, $ret_type, $func, $args, $line_num) =
2516+
@{$embed}{qw(flags return_type name args start_line_num)};
2517+
check_and_add_proto_defn($func, $file, $line_num,
25222518
$flags, $ret_type, $args,
25232519

25242520
# This is like an 'apidoc_defn' line, in that it

0 commit comments

Comments
 (0)