From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: play.c
Date: Sat, 5 Nov 2005 19:28:49 +0100 [thread overview]
Message-ID: <200511051928.49549.okuji@enbug.org> (raw)
In-Reply-To: <436CBF00.1060304@yahoo.fr>
On Saturday 05 November 2005 03:17 pm, Vincent Pelletier wrote:
> Here is the play command, along with some songs.
I point out some stylish mistakes.
> +struct note {
> + short pitch;
> + short duration;
> +};
You must put the starting brace character on next line:
struct note
{
short pitch;
short duration;
};
> + while (grub_file_read (file, (void *) &buf, sizeof(struct note)) ==
sizeof(struct note) &&
> + buf.pitch != T_FINE &&
> + grub_checkkey () == -1)
The lines are folded incorrectly. You must insert new lines before logical
operations. Also, please add a space character after sizeof:
while (grub_file_read (file, (void *) &buf, sizeof (struct note)) == sizeof
(struct note)
&& buf.pitch != T_FINE
&& grub_checkkey () == -1)
> + to = grub_get_rtc () + 120*buf.duration/tempo;
Insert space characters.
Okuji
next prev parent reply other threads:[~2005-11-05 18:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-05 14:17 play.c Vincent Pelletier
2005-11-05 18:28 ` Yoshinori K. Okuji [this message]
2005-11-05 20:20 ` play.c Vincent Pelletier
2005-11-29 22:05 ` play.c Vincent Pelletier
2005-11-30 4:38 ` play.c Hollis Blanchard
2005-11-05 20:48 ` play.c Dennis Clarke
2005-11-05 21:12 ` play.c Hollis Blanchard
2005-11-05 21:19 ` play.c Yoshinori K. Okuji
2005-11-05 21:25 ` play.c Dennis Clarke
2005-11-05 21:59 ` play.c Hollis Blanchard
2005-11-06 17:55 ` play.c Marco Gerards
2005-11-06 20:58 ` play.c Dennis Clarke
2005-11-06 17:53 ` play.c Marco Gerards
2005-11-05 22:17 ` play.c Hollis Blanchard
2005-11-05 22:23 ` play.c Samuel Thibault
2005-11-05 22:43 ` play.c Vincent Pelletier
2005-11-06 17:50 ` play.c Marco Gerards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200511051928.49549.okuji@enbug.org \
--to=okuji@enbug.org \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.