From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Cc: "Michel Dänzer" <michel@daenzer.net>
Subject: hfs patch (Re: State of GRUB on PowerPC)
Date: Sat, 7 Feb 2009 20:48:59 +0100 [thread overview]
Message-ID: <20090207194859.GC988@thorin> (raw)
In-Reply-To: <1233040781.5108.98.camel@thor.local>
On Tue, Jan 27, 2009 at 08:19:41AM +0100, Michel Dänzer wrote:
> +/*
> + * unsigned char caseorder[]
> + *
> + * Defines the lexical ordering of characters on the Macintosh
> + *
> + * Composition of the 'casefold' and 'order' tables from ARDI's code
> + * with the entry for 0x20 changed to match that for 0xCA to remove
> + * special case for those two characters.
> + */
> +static unsigned char caseorder[256] = {
> + 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,
Could you be more specific about what the table contents mean?
> + for (i = 0; i < k1->strlen && i < k2->strlen; i++) {
> + cmp = caseorder[k1->str[i]] - caseorder[k2->str[i]];
I think "a = (b != c)" would be more efficient (and also work).
Also please add a newline before operning braces ({).
Thanks!
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-02-07 19:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 7:19 State of GRUB on PowerPC Michel Dänzer
2009-01-27 16:54 ` Vesa Jääskeläinen
2009-01-27 17:15 ` Michel Dänzer
2009-01-29 2:57 ` Pavel Roskin
2009-01-29 16:18 ` Michel Dänzer
2009-02-07 19:48 ` Robert Millan [this message]
2009-02-08 4:38 ` hfs patch (Re: State of GRUB on PowerPC) Pavel Roskin
2009-02-09 14:19 ` Robert Millan
2009-02-10 9:55 ` Michel Dänzer
2009-02-10 9:54 ` Michel Dänzer
2009-02-10 10:50 ` Jordi Mallach
2009-02-10 12:06 ` Jordi Mallach
2009-02-10 12:12 ` Michel Dänzer
2009-02-21 12:46 ` Robert Millan
2009-02-10 14:47 ` Robert Millan
2009-02-11 9:24 ` Michel Dänzer
2009-02-21 13:01 ` Robert Millan
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=20090207194859.GC988@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
--cc=michel@daenzer.net \
/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.