Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7291e7e authored by Jani Nikula's avatar Jani Nikula
Browse files

kernel-doc/rst: &foo references are more universal than structs



It's possible to use &foo to reference structs, enums, typedefs, etc. in
the Sphinx C domain. Thus do not prefix the links with "struct".

Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent a19bce64
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -283,7 +283,8 @@ my @highlights_rst = (
                       [$type_func, "\\:c\\:func\\:`\$1()`"],
                       [$type_func, "\\:c\\:func\\:`\$1()`"],
                       [$type_struct_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"],
                       [$type_struct_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"],
                       [$type_enum_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"],
                       [$type_enum_full, "\\:c\\:type\\:`\$1 \$2 <\$2>`"],
                       [$type_struct, "\\:c\\:type\\:`struct \$1 <\$1>`"],
                       # in rst this can refer to any type
                       [$type_struct, "\\:c\\:type\\:`\$1`"],
                       [$type_param, "**\$1**"]
                       [$type_param, "**\$1**"]
		      );
		      );
my $blankline_rst = "\n";
my $blankline_rst = "\n";