* Re: gcs doubt #1
2007-06-05 23:43 gcs doubt #1 adrian15
@ 2007-06-04 15:32 ` Marco Gerards
0 siblings, 0 replies; 5+ messages in thread
From: Marco Gerards @ 2007-06-04 15:32 UTC (permalink / raw)
To: The development of GRUB 2
adrian15 <adrian15@raulete.net> writes:
> Please put a comment on each function saying what the function does,
> what sorts of arguments it gets, and what the possible values of
> arguments mean and are used for.
>
> Is it ok that the search.c and test.c (commands/ folder) do not have any
> of these comments at all?
The currect test.c is a dummy so the `if' expression can be
used/tested.
If you can provide a patch for sourcecode to improve or add comments
in a sane way, I am willing to commit those patches. Just please
don't make the mistake to add useless comments.
--
Marco
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcs doubt #1
[not found] <200706041604.l54G4p0v029961@correoredir01.dinaserver.com>
@ 2007-06-05 17:32 ` adrian15
2007-06-05 17:56 ` Marco Gerards
0 siblings, 1 reply; 5+ messages in thread
From: adrian15 @ 2007-06-05 17:32 UTC (permalink / raw)
To: grub-devel
>> > Please put a comment on each function saying what the function does,
>> > what sorts of arguments it gets, and what the possible values of
>> > arguments mean and are used for.
>> >
>> > Is it ok that the search.c and test.c (commands/ folder) do not have any
>> > of these comments at all?
>
> The currect test.c is a dummy so the `if' expression can be
> used/tested.
>
> If you can provide a patch for sourcecode to improve or add comments
> in a sane way, I am willing to commit those patches. Just please
> don't make the mistake to add useless comments.
An useful comment is one that:
-Describes a function algorithm
-Describes what a function does (as a black box)
-Boot of them ?
adrian15
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcs doubt #1
2007-06-05 17:32 ` adrian15
@ 2007-06-05 17:56 ` Marco Gerards
0 siblings, 0 replies; 5+ messages in thread
From: Marco Gerards @ 2007-06-05 17:56 UTC (permalink / raw)
To: The development of GRUB 2
adrian15 <adrian15@raulete.net> writes:
>>> > Please put a comment on each function saying what the function does,
>>> > what sorts of arguments it gets, and what the possible values of
>>> > arguments mean and are used for.
>>> >
>>> > Is it ok that the search.c and test.c (commands/ folder) do not have any
>>> > of these comments at all?
>>
>> The currect test.c is a dummy so the `if' expression can be
>> used/tested.
>>
>> If you can provide a patch for sourcecode to improve or add comments
>> in a sane way, I am willing to commit those patches. Just please
>> don't make the mistake to add useless comments.
>
> An useful comment is one that:
> -Describes a function algorithm
> -Describes what a function does (as a black box)
> -Boot of them ?
Yes, but I oppose to adding obvious comments. But patches will be
reviewed, so you will learn fast enough what we want :-).
--
Marco
^ permalink raw reply [flat|nested] 5+ messages in thread
* gcs doubt #1
@ 2007-06-05 23:43 adrian15
2007-06-04 15:32 ` Marco Gerards
0 siblings, 1 reply; 5+ messages in thread
From: adrian15 @ 2007-06-05 23:43 UTC (permalink / raw)
To: grub-devel
In the GNU Coding Standards they say in:
5.2 Commenting Your Work
Please put a comment on each function saying what the function does,
what sorts of arguments it gets, and what the possible values of
arguments mean and are used for.
Is it ok that the search.c and test.c (commands/ folder) do not have any
of these comments at all?
You do not comment them at all?
You comment them in another place?
Maybe it's ok with the help description that it is set when you register
a command?
Maybe this is a bug and should be fixed?
adrian15
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcs doubt #1
[not found] <200706051834.l55IY56F003249@correoredir01.dinaserver.com>
@ 2007-06-06 18:04 ` adrian15
0 siblings, 0 replies; 5+ messages in thread
From: adrian15 @ 2007-06-06 18:04 UTC (permalink / raw)
To: grub-devel
>>> If you can provide a patch for sourcecode to improve or add comments
>>> in a sane way, I am willing to commit those patches. Just please
>>> don't make the mistake to add useless comments.
>> An useful comment is one that:
>> -Describes a function algorithm
>> -Describes what a function does (as a black box)
>> -Boot of them ?
>
> Yes, but I oppose to adding obvious comments. But patches will be
> reviewed, so you will learn fast enough what we want :-).
You had to choose one of the three options :).
Well... it doesn't matter. I've understood that I have to send patches
and learn by trial-error.
adrian15
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-06-06 19:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 23:43 gcs doubt #1 adrian15
2007-06-04 15:32 ` Marco Gerards
[not found] <200706051834.l55IY56F003249@correoredir01.dinaserver.com>
2007-06-06 18:04 ` adrian15
[not found] <200706041604.l54G4p0v029961@correoredir01.dinaserver.com>
2007-06-05 17:32 ` adrian15
2007-06-05 17:56 ` Marco Gerards
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.