grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] User definable terminfo support


From: Omniflux
Subject: Re: [PATCH] User definable terminfo support
Date: Mon, 02 Jan 2006 13:21:43 -0700
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Marco Gerards wrote:
Here is the review of the code that I promised.  Please see my other
email about generic comments.

What is the subject line of this message? I sadly do not read all messages on this list.

You can put the string on a new line.  If the string is still too long
you can make two strings out of it, like:

grub_error (FOO,
            "bar"
            "baz");

grub_error (FOO, "bar" "baz");
No operator or separator between strings?

+          ti->name   = grub_strdup (args[0]);


Typo.

Can you be more specific? This looks correct to me...

+static void
+setup_defaults (void)
+{
+  terminfo_t *ti;
+
+  ti = (terminfo_t *) grub_malloc (sizeof (terminfo_t));
+  /* Do I need to test if malloc succeeded here? What do I do if it did not? */


Good one :-)

In that case default could be set to NULL, if that is allowed?

I think in this case, there will be many other problems. I think the best thing in this case will be, as you suggest, to set the definition to NULL and have all terminfo functions return their strings unmodified.

The only consequence to this I can think of is loss of menu support on terminals which depend on terminfo (serial), and should be a rare case even there.

--
Omniflux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]