Skip to content
Snippets Groups Projects
Commit 92b6de17 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet
Browse files

scripts/get_abi: change the file/line number meta info


In order to make it more standard and ReST compatible,
change the meta-tag used with --enable-lineno from:

	#define LINENO

to
	.. LINENO

In practice, no functional changes.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
Link: https://lore.kernel.org/r/125ffd31fbc77ad9eee4d6906e1830b8162fa6ca.1648290305.git.mchehab@kernel.org


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent bcf0a536
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ class KernelCmd(Directive): ...@@ -138,7 +138,7 @@ class KernelCmd(Directive):
code_block += "\n " + l code_block += "\n " + l
lines = code_block + "\n\n" lines = code_block + "\n\n"
line_regex = re.compile("^#define LINENO (\S+)\#([0-9]+)$") line_regex = re.compile("^\.\. LINENO (\S+)\#([0-9]+)$")
ln = 0 ln = 0
n = 0 n = 0
f = fname f = fname
......
...@@ -326,7 +326,7 @@ sub output_rest { ...@@ -326,7 +326,7 @@ sub output_rest {
my @filepath = split / /, $data{$what}->{filepath}; my @filepath = split / /, $data{$what}->{filepath};
if ($enable_lineno) { if ($enable_lineno) {
printf "#define LINENO %s%s#%s\n\n", printf ".. LINENO %s%s#%s\n\n",
$prefix, $file[0], $prefix, $file[0],
$data{$what}->{line_no}; $data{$what}->{line_no};
} }
...@@ -1022,7 +1022,7 @@ logic (B<--no-rst-source>). ...@@ -1022,7 +1022,7 @@ logic (B<--no-rst-source>).
=item B<--enable-lineno> =item B<--enable-lineno>
Enable output of #define LINENO lines. Enable output of .. LINENO lines.
=item B<--debug> I<debug level> =item B<--debug> I<debug level>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment