Headings: Itβs easier to read comments because there are fewer other βnoisesβ when viewing files.
Source: Then you have the actual functions available for reading when viewing comments.
We just use all the global functions commented out in the headers and local functions commented out in the source. If you want, you can also enable the copydoc command to paste documentation in several places without having to write it several times (better for maintenance)
You can also get results copied to other file documentation with a simple command. For example.: -
My file1.h
/** * \brief Short about function * * More about function */ WORD my_fync1(BYTE*);
MY file1.c
WORD my_fync1(BYTE* data){}
Now you get the same documentation for both functions.
This gives you less noise in the code files at the same time as getting documentation written in one place, presented in several places in the final release.
eaanon01 Dec 10 '08 at 10:39
source share