Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d4fdda

Browse files
mchehabgregkh
authored andcommitted
scripts: get_api.pl: Add sub-titles to ABI output
Instead of adding titles just for the files, add titlesfor each part of the ABI output, in order to make easierto search for a symbol there.Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>Link:https://lore.kernel.org/r/64752a5de06ab8263c296e3ed01414b25861e1eb.1604312590.git.mchehab+huawei@kernel.orgSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parentdaaaf58 commit9d4fdda

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎scripts/get_abi.pl‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ sub create_labels {
287287
suboutput_rest {
288288
create_labels();
289289

290+
my$part ="";
291+
290292
foreachmy$what (sort {
291293
($data{$a}->{type}eq"File")cmp ($data{$b}->{type}eq"File") ||
292294
$acmp$b
@@ -306,6 +308,21 @@ sub output_rest {
306308
$w =~s/([\(\)\_\-\*\=\^\~\\])/\\$1/g;
307309

308310
if ($typene"File") {
311+
my$cur_part =$what;
312+
if ($what =~'/') {
313+
if ($what =~m#^(\/?(?:[\w\-]+\/?){1,2})#) {
314+
$cur_part ="Symbols under$1";
315+
$cur_part =~s,/$,,;
316+
}
317+
}
318+
319+
if ($cur_partne"" &&$partne$cur_part) {
320+
$part =$cur_part;
321+
my$bar =$part;
322+
$bar =~s/./-/g;
323+
print"$part\n$bar\n\n";
324+
}
325+
309326
printf".. _%s:\n\n",$data{$what}->{label};
310327

311328
my@names =split /, /,$w;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp