> [... reformatted code example...]
> which could be avoided if we either find an indentation tool that
> leaves the comments alone, or if we chhange the comment format to:
>
> /**
> * The following code will print "TICK" each second on
> * stdout with a fair degree of accuracy:
> *
> * \code
> * void callback(void*) {
> * puts("TICK");
> * Fl::repeat_timeout(1.0, callback);
> * }
> *=20
> * int main() {
> * Fl::add_timeout(1.0, callback);
> * return Fl::run();
> * }
> * \endcode
> */
>
> Or if we find a Doxygen-aware indenting tool 8-D
Hmm. It would be a lot of work to go through and convert all of
these into "boxed" comments in order to keep the desired format.
Would also need to change the "doxygen" guidelines to allow them.
IIRC, 'indent' has the '-nfca' option which turns off reformatting
of all comments. Maybe 'astyle' and 'uncrustify' have something
similar that we could use to start with. I will have another play
with uncrustify this evening.
D.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev