@lupyuen Instead of piping a bunch of seds together, you can give sed a bunch of commands with multiple -e
sed -e 's/^extern "C" /#[lvgl_macros::safe_wrap(attr)] extern "C" /' -e ''s/@param \([^ ][^ ]*\) /- __`\1`__: /'' -e ''s/@return /Return: /''
etc.
Bonus side effect is that it's easier to use `-i` instead of piping from one file to another, then deleting the old file.
Follow

@mr64bit Thanks for the tip! I was trying to make the script more readable... Will check it out 🙂

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.