mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
2e83ecb834
Function references should include the parens (), struct references should not include "struct". Signed-off-by: Jani Nikula <jani.nikula@intel.com>
15 lines
493 B
Sed
15 lines
493 B
Sed
#
|
|
# Pandoc doesn't grok <function> or <structname>, so convert them
|
|
# ahead of time.
|
|
#
|
|
# Use "$bq" instead of "`" so that pandoc won't mess with it.
|
|
#
|
|
s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1()$bq%g
|
|
s%<function>\([^<(]\+\)</function>%:c:func:$bq\1()$bq%g
|
|
s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bq\1$bq%g
|
|
s%<structname>\([^<]\+\)</structname>%:c:type:$bq\1$bq%g
|
|
#
|
|
# Wrap docproc directives in para and code blocks.
|
|
#
|
|
s%^\(!.*\)$%<para><code>DOCPROC: \1</code></para>%
|