Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sphinx: update docbook->rst conversion script match C domain spec

Function references should include the parens (), struct references
should not include "struct".

Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+4 -4
+4 -4
Documentation/sphinx/convert_template.sed
··· 4 4 # 5 5 # Use "$bq" instead of "`" so that pandoc won't mess with it. 6 6 # 7 - s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1$bq%g 8 - s%<function>\([^<(]\+\)</function>%:c:func:$bq\1$bq%g 9 - s%<structname>struct *\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g 10 - s%<structname>\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g 7 + s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1()$bq%g 8 + s%<function>\([^<(]\+\)</function>%:c:func:$bq\1()$bq%g 9 + s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bq\1$bq%g 10 + s%<structname>\([^<]\+\)</structname>%:c:type:$bq\1$bq%g 11 11 # 12 12 # Wrap docproc directives in para and code blocks. 13 13 #