Subject: Re: CVS commit: src
To: YAMAMOTO Takashi <email@example.com>
From: Juan RP <firstname.lastname@example.org>
Date: 09/03/2007 05:12:43
On Mon, 3 Sep 2007 12:05:11 +0900 (JST)
email@example.com (YAMAMOTO Takashi) wrote:
> "generic string" means a opaque value whose meaning is only known to
> the specific driver, right? does the opaqueness help the script?
My intention wasn't to make it opaque, ENVSYS_GSTRING uses the
genstr member in envsys_data_t that is defined as:
so it's an array of 32 chars. But it's generic in the sense that you
can add the string that you want on it, perhaps the name is not the
best one... but I was out of ideas.
> i don't know if it's wrong or not, but it seems like a opposite direction
> from ENVSYS_DRIVE, which tend to use strong typed values.
My first idea was to use a static table like ENVSYS_DRIVE uses, but
IMHO the way I choose gives more flexibility. It would be useful in
more drivers in the future, don't you agree?
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish