<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 6, 2014 at 9:29 PM, Volker Kuhlmann <span dir="ltr"><<a href="mailto:list0570@paradise.net.nz" target="_blank">list0570@paradise.net.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed 06 Aug 2014 20:47:30 NZST +1200, Marek Kuziel wrote:<br>
<br>
> > > find .|grep ".c\|.h"|xargs sed -i<br>
> > > 's/CODE_OR_PATTERN_TO_FIND/NEW_CODE_TO_REPLACE_THE_FOUND_CODE_WITH/'<br>
<br>
</div>You can not possibly use such a sed construct to create multi-line<br>
comments filled in with one keyword per function argument and return<br>
value. The function declaration may be split over multiple lines, etc<br>
etc. The suggestion is ridiculous! Scripting that in e.g. python would<br>
be much saner (and still non-trivial), however it was already clear from<br>
the OP (see "lazy" in subject) that such solution was wanted to be<br>
found, not made, and even if found, would provide limited benefit. So<br>
if you know doxygen I'm afraid I don't understand what you intended your<br>
sed invocation to achieve that the OP asked for.<br></blockquote><div><br></div><div>I disagree with you regarding ridiculousness of the suggestion, but at the same time, I agree with you that it is not a lazy approach.</div>
<div><br></div><div>Let's move on.</div><div><br></div><div>Back in the days when I used Doxygen I had bunch of VIM macros to do all the hard work. For me that'd be the laziest, most efficient and most flexible way to get this task done.</div>
<div><br></div><div>Marek</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
Volker<br>
<br>
--<br>
Volker Kuhlmann<br>
<a href="http://volker.top.geek.nz/" target="_blank">http://volker.top.geek.nz/</a> Please do not CC list postings to me.<br>
<br>
_______________________________________________<br>
Chchrobotics mailing list <a href="mailto:Chchrobotics@lists.linuxnut.co.nz">Chchrobotics@lists.linuxnut.co.nz</a><br>
<a href="http://lists.ourshack.com/mailman/listinfo/chchrobotics" target="_blank">http://lists.ourshack.com/mailman/listinfo/chchrobotics</a><br>
Mail Archives: <a href="http://lists.ourshack.com/pipermail/chchrobotics/" target="_blank">http://lists.ourshack.com/pipermail/chchrobotics/</a><br>
Web site: <a href="http://kiwibots.org" target="_blank">http://kiwibots.org</a><br>
Meetings 3rd Monday each month.<br>
<br>
When replying, please edit your Subject line to reflect new content.<br>
</div></div></blockquote></div><br></div></div>