From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Use getopt_long() instead of argp_parse() in grub-emu
Date: Mon, 14 Jan 2008 22:37:13 +0100 [thread overview]
Message-ID: <478BD609.1040307@t-online.de> (raw)
In-Reply-To: <87fxx1hatm.fsf@xs4all.nl>
Marco Gerards wrote:
> Christian Franke <...> writes:
>
>
>> Unlike the other GRUB2 utils, grub-emu uses the glibc extension
>> argp_parse(). It is unavailable on Cygwin, which might also be the
>> case for other platforms where glibc is not the native runtime.
>>
>> This patch changes this back to the more traditional getopt_long().
>>
>> It also fixes the syntax of the path prefix.
>>
>
> There where no objections, so I'll review this patch as promised.
>
>
Thanks.
> How did you change the path syntax?
>
>
grub_util_get_grub_dev () returns e.g. "hd0,1", the resulting prefix is
"hd0,1/boot/grub" but should be "(hd0,1)/boot/grub".
>> 2007-11-10 Christian Franke <franke@computer.org>
>>
>> * util/grub-emu.c: Replace argp.h by getopt.h.
>>
>
> Please use <argp.h> and <getopt.h> to show where it comes from.
>
>
>> (parse_opt): Remove.
>>
>
> You also modified options, removed struct arguments, argp and perhaps
> other things I missed. You should document them properly in the
> changelog entry.
>
>
OK.
Christian
2008-01-14 Christian Franke <franke@computer.org>
* util/grub-emu.c: Replace <argp.h> by <getopt.h>.
(argp_program_version): Remove variable.
(argp_program_bug_address): Likewise.
(options): Convert from struct argp_option to struct option.
(struct arguments): Remove.
(parse_opt): Remove.
(usage): New function.
(main): Replace struct args members by simple variables.
Replace argp_parse() by getopt_long().
Add switch to evaluate options.
Add missing "(...)" around root_dev in prefix string.
next prev parent reply other threads:[~2008-01-14 21:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-10 15:26 [PATCH] Use getopt_long() instead of argp_parse() in grub-emu Christian Franke
2007-11-10 16:56 ` Marco Gerards
2007-11-10 21:45 ` Christian Franke
2007-11-18 11:04 ` Marco Gerards
2007-11-18 18:16 ` Christian Franke
2008-01-13 17:52 ` Marco Gerards
2008-01-14 21:37 ` Christian Franke [this message]
2008-01-15 11:13 ` Marco Gerards
2008-01-15 11:49 ` 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=478BD609.1040307@t-online.de \
--to=christian.franke@t-online.de \
--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.