* [Xenomai-core] broken docs
@ 2006-01-18 19:03 Jan Kiszka
0 siblings, 0 replies; 7+ messages in thread
From: Jan Kiszka @ 2006-01-18 19:03 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 558 bytes --]
Hi,
I noticed that the doxygen API output is partly broken. Under the
nucleus and native skin modules most functions became variables. I
haven't looked at the source yet, but I guess it should be resolvable,
especially as the RTDM docs are fine. This mail is to file the issue,
maybe I will have a look later - /maybe/.
Moreover, I was lacking a reference to RT_MUTEX_INFO. Does this
structure just needs to be added to the correct doxygen group? I guess
there are other undocumented structures out there as well (RT_TASK_INFO,
...?).
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [Xenomai-core] broken docs
@ 2006-01-30 10:55 ROSSIER Daniel
2006-01-30 12:17 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: ROSSIER Daniel @ 2006-01-30 10:55 UTC (permalink / raw)
To: Jan Kiszka, xenomai-core
Dear Xenomai workers,
Would it be possible to have an updated API documentation for Xenomai 2.0.x ? (I mean with formal parameters in function prototypes)
I tried to regenerate it with make generate-doc, but it seems that a SVN working dir is required.
It would be great.
Thanks a lot
Daniel
> -----Message d'origine-----
> De : xenomai-core-bounces@domain.hid [mailto:xenomai-core-bounces@domain.hid] De
> la part de Jan Kiszka
> Envoyé : mercredi, 18. janvier 2006 20:03
> À : xenomai-core
> Objet : [Xenomai-core] broken docs
>
> Hi,
>
> I noticed that the doxygen API output is partly broken. Under the
> nucleus and native skin modules most functions became variables. I
> haven't looked at the source yet, but I guess it should be resolvable,
> especially as the RTDM docs are fine. This mail is to file the issue,
> maybe I will have a look later - /maybe/.
>
> Moreover, I was lacking a reference to RT_MUTEX_INFO. Does this
> structure just needs to be added to the correct doxygen group? I guess
> there are other undocumented structures out there as well (RT_TASK_INFO,
> ...?).
>
> Jan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] broken docs
2006-01-30 10:55 ROSSIER Daniel
@ 2006-01-30 12:17 ` Jan Kiszka
2006-01-30 12:40 ` Gilles Chanteperdrix
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2006-01-30 12:17 UTC (permalink / raw)
To: ROSSIER Daniel; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
ROSSIER Daniel wrote:
> Dear Xenomai workers,
>
> Would it be possible to have an updated API documentation for Xenomai
> 2.0.x ? (I mean with formal parameters in function prototypes)
>
> I tried to regenerate it with make generate-doc, but it seems that a
> SVN working dir is required.
>
> It would be great.
I just had a "quick" look at the status of the documentation in
SVN-trunk (2.1). Unfortunately, doxygen is a terrible tool (to express
it politely) when it comes to tracking down bugs in your formatting.
Something is broken in all modules except RTDM, and although I spent *a
lot* of time in getting RTDM correctly formatted, I cannot tell what's
wrong with the rest. This will require some looooong evenings of
continuous patching the docs, recompiling, and checking the result. Any
volunteers - I'm lacking the time? :-/
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] broken docs
2006-01-30 12:17 ` Jan Kiszka
@ 2006-01-30 12:40 ` Gilles Chanteperdrix
2006-01-30 12:59 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2006-01-30 12:40 UTC (permalink / raw)
To: Jan Kiszka; +Cc: ROSSIER Daniel, xenomai-core
Jan Kiszka wrote:
> ROSSIER Daniel wrote:
> > Dear Xenomai workers,
> >
> > Would it be possible to have an updated API documentation for Xenomai
> > 2.0.x ? (I mean with formal parameters in function prototypes)
> >
> > I tried to regenerate it with make generate-doc, but it seems that a
> > SVN working dir is required.
make generate-doc is needed for maintenance only. If you want to
generate doxygen documentation, simply add --enable-dox-doc to Xenomai
configure command line.
> >
> > It would be great.
>
> I just had a "quick" look at the status of the documentation in
> SVN-trunk (2.1). Unfortunately, doxygen is a terrible tool (to express
> it politely) when it comes to tracking down bugs in your formatting.
> Something is broken in all modules except RTDM, and although I spent *a
> lot* of time in getting RTDM correctly formatted, I cannot tell what's
> wrong with the rest. This will require some looooong evenings of
> continuous patching the docs, recompiling, and checking the result. Any
> volunteers - I'm lacking the time? :-/
Looking at the difference between RTDM documentation blocks and the
other modules is that the other modules use the "fn" tag. Removing the
"fn" tag from other modules documentation blocks seems to solve the
issue.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] broken docs
2006-01-30 12:40 ` Gilles Chanteperdrix
@ 2006-01-30 12:59 ` Jan Kiszka
2006-02-04 12:24 ` Jan Kiszka
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2006-01-30 12:59 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: ROSSIER Daniel, xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
> > ROSSIER Daniel wrote:
> > > Dear Xenomai workers,
> > >
> > > Would it be possible to have an updated API documentation for Xenomai
> > > 2.0.x ? (I mean with formal parameters in function prototypes)
> > >
> > > I tried to regenerate it with make generate-doc, but it seems that a
> > > SVN working dir is required.
>
> make generate-doc is needed for maintenance only. If you want to
> generate doxygen documentation, simply add --enable-dox-doc to Xenomai
> configure command line.
>
> > >
> > > It would be great.
> >
> > I just had a "quick" look at the status of the documentation in
> > SVN-trunk (2.1). Unfortunately, doxygen is a terrible tool (to express
> > it politely) when it comes to tracking down bugs in your formatting.
> > Something is broken in all modules except RTDM, and although I spent *a
> > lot* of time in getting RTDM correctly formatted, I cannot tell what's
> > wrong with the rest. This will require some looooong evenings of
> > continuous patching the docs, recompiling, and checking the result. Any
> > volunteers - I'm lacking the time? :-/
>
> Looking at the difference between RTDM documentation blocks and the
> other modules is that the other modules use the "fn" tag. Removing the
> "fn" tag from other modules documentation blocks seems to solve the
> issue.
>
Indeed, works. Amazingly blind I was.
Anyway, it still needs some work to remove that stuff (I wonder what the
"correct" usage of @fn is...) and to wrap functions without bodies via
"#ifdef DOXYGEN_CPP" like RTDM does. At this chance, I would also
suggest to replace all \tag by @tag for the sake of a unified style (and
who knows what side effects mixing up both may have).
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] broken docs
2006-01-30 12:59 ` Jan Kiszka
@ 2006-02-04 12:24 ` Jan Kiszka
2006-02-05 13:06 ` Gilles Chanteperdrix
0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2006-02-04 12:24 UTC (permalink / raw)
To: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 3057 bytes --]
Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> Jan Kiszka wrote:
>> > ROSSIER Daniel wrote:
>> > > Dear Xenomai workers,
>> > >
>> > > Would it be possible to have an updated API documentation for Xenomai
>> > > 2.0.x ? (I mean with formal parameters in function prototypes)
>> > >
>> > > I tried to regenerate it with make generate-doc, but it seems that a
>> > > SVN working dir is required.
>>
>> make generate-doc is needed for maintenance only. If you want to
>> generate doxygen documentation, simply add --enable-dox-doc to Xenomai
>> configure command line.
>>
>> > >
>> > > It would be great.
>> >
>> > I just had a "quick" look at the status of the documentation in
>> > SVN-trunk (2.1). Unfortunately, doxygen is a terrible tool (to express
>> > it politely) when it comes to tracking down bugs in your formatting.
>> > Something is broken in all modules except RTDM, and although I spent *a
>> > lot* of time in getting RTDM correctly formatted, I cannot tell what's
>> > wrong with the rest. This will require some looooong evenings of
>> > continuous patching the docs, recompiling, and checking the result. Any
>> > volunteers - I'm lacking the time? :-/
>>
>> Looking at the difference between RTDM documentation blocks and the
>> other modules is that the other modules use the "fn" tag. Removing the
>> "fn" tag from other modules documentation blocks seems to solve the
>> issue.
>>
>
> Indeed, works. Amazingly blind I was.
>
> Anyway, it still needs some work to remove that stuff (I wonder what the
> "correct" usage of @fn is...) and to wrap functions without bodies via
> "#ifdef DOXYGEN_CPP" like RTDM does. At this chance, I would also
> suggest to replace all \tag by @tag for the sake of a unified style (and
> who knows what side effects mixing up both may have).
>
Here is a shell script aiming at an automated fix for parts of the
mentioned issues. Anyone with better shell hacking skills may improve it
(I'm always willing to learn!).
for file in `find -name "*.[c|h]"`; do
mv $file $file.tmp
cat $file.tmp | (
echo $file
while read -r; do
# delete " * @fn ..." lines
new_line="`echo "$REPLY" | sed 's/\ \*\ @fn[^$]*$//' | \
tr -d "\n"`"
if echo "$REPLY" | grep -q '\ \*\ @fn[^$]*$'; then
# delete empty comment lines succeeding " * @fn ..."
read -r
if [ "$REPLY" != " *" ]; then
echo "$REPLY" >> $file
fi
else
# convert " * \<tag>" to " * @<tag>"
echo "$new_line" | sed 's/\ \*\ \\\([a-z]\)/ * @\1/' \
>> $file
fi
done
)
rm $file.tmp
done
I only tested it on ksrs/skins/native, but it seems to work - for those
functions with a body :-/. We still need to manually wrap body-less
function docs as it is done in the rtdm skin. But I think this is a start.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Xenomai-core] broken docs
2006-02-04 12:24 ` Jan Kiszka
@ 2006-02-05 13:06 ` Gilles Chanteperdrix
0 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2006-02-05 13:06 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai-core
Jan Kiszka wrote:
> Jan Kiszka wrote:
> > Gilles Chanteperdrix wrote:
> >> Looking at the difference between RTDM documentation blocks and the
> >> other modules is that the other modules use the "fn" tag. Removing the
> >> "fn" tag from other modules documentation blocks seems to solve the
> >> issue.
> >>
> >
> > Indeed, works. Amazingly blind I was.
> >
> > Anyway, it still needs some work to remove that stuff (I wonder what the
> > "correct" usage of @fn is...) and to wrap functions without bodies via
> > "#ifdef DOXYGEN_CPP" like RTDM does. At this chance, I would also
> > suggest to replace all \tag by @tag for the sake of a unified style (and
> > who knows what side effects mixing up both may have).
> >
>
> Here is a shell script aiming at an automated fix for parts of the
> mentioned issues. Anyone with better shell hacking skills may improve it
> (I'm always willing to learn!).
>
> for file in `find -name "*.[c|h]"`; do
> mv $file $file.tmp
> cat $file.tmp | (
> echo $file
> while read -r; do
> # delete " * @fn ..." lines
> new_line="`echo "$REPLY" | sed 's/\ \*\ @fn[^$]*$//' | \
> tr -d "\n"`"
> if echo "$REPLY" | grep -q '\ \*\ @fn[^$]*$'; then
> # delete empty comment lines succeeding " * @fn ..."
> read -r
> if [ "$REPLY" != " *" ]; then
> echo "$REPLY" >> $file
> fi
> else
> # convert " * \<tag>" to " * @<tag>"
> echo "$new_line" | sed 's/\ \*\ \\\([a-z]\)/ * @\1/' \
> >> $file
> fi
> done
> )
> rm $file.tmp
> done
>
>
> I only tested it on ksrs/skins/native, but it seems to work - for those
> functions with a body :-/. We still need to manually wrap body-less
> function docs as it is done in the rtdm skin. But I think this is a start.
The point is that the @fn tags improve readability of documentation
blocks, so, it would be nice if we could keep them. Simple tests with
the same Doxyfile as Xenomai show that the @fn tag works as expected, so
the problem may be due to something else. Now that I think about it,
the way we dealt with EXPORT_SYMBOL in Doxyfile is probably the culprit,
and the fix looks quite simple on elementary tests.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-02-05 13:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18 19:03 [Xenomai-core] broken docs Jan Kiszka
-- strict thread matches above, loose matches on Subject: below --
2006-01-30 10:55 ROSSIER Daniel
2006-01-30 12:17 ` Jan Kiszka
2006-01-30 12:40 ` Gilles Chanteperdrix
2006-01-30 12:59 ` Jan Kiszka
2006-02-04 12:24 ` Jan Kiszka
2006-02-05 13:06 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.