DragonFly kernel List (threaded) for 2007-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: vkernel.conf ?
On Mon, Aug 06, 2007 at 09:17:32AM -0400, Chris Turner wrote:
> But the parser is 'built in'..
>
> Unless there is an ini parser in the system I don't know about..
> [...]
> A dhcp / named 'C' style config syntax would be my preference from a
> user perspective, but definitely not from an implementers perspective..
>
> Similarly, branching the logic for amd's 'fsinfo' parser might
> be a good fit user-wise, but would be more work too..
Ok, instead of labels, what about /etc/vkernels/[sysname]? That would be
easy to implement. Little chances of introducing bugs.
As for variables, obviously limiting `:' is a big no-no for tcap format.
In the vkernels/X files. You can simply say that comments sign go only
at the beginning of the line. and what goes after the first {delim} is
the value. I'd use '=' or `#' for {delim}. There, too, I see little
chances of bugs. One index()/memchr() call and you're done. Easy
to use for shell scripts, too! ;-)
Anyway, that's how I would do it, for what it's worth.
--Vincent
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]