Re: [RFC, PATCH] Getting rid of direct calls to keyboard's methods via kbdsw[] array

From: Marcel Moolenaar <xcllnt_at_mac.com>
Date: Sat, 22 Dec 2007 10:56:45 -0800
On Dec 21, 2007, at 8:01 PM, Wojciech A. Koszek wrote:

> My proposal is to unify a way in which we call such specialized
> methods, so that instead of direct array indexing used to call  
> specific
> keyboard method:
>
> 	(*kbdsw[(kbd)->kb_index]->enable)((kbd))
>
> We would use unified interface:
>
> 	kbdd_enable(kbd)
>
> Proposed patch is here:
>
> 	http://people.freebsd.org/~wkoszek/patches/tty/kbdcleanup.patch
>
> Suggestions are welcome.

I like it. It would be nice to be able to get rid of the 2nd 'd'
in the kbdd_ prefix though...

FYI,

-- 
Marcel Moolenaar
xcllnt_at_mac.com
Received on Sat Dec 22 2007 - 17:56:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:24 UTC