Re: [RFC][PATCH] parser for mount options

From: Andries.Brouwer@cwi.nl
Date: Wed Aug 08 2001 - 06:38:31 EST


    From: Alexander Viro <viro@math.psu.edu>

    On Tue, 7 Aug 2001 Andries.Brouwer@cwi.nl wrote:

> while (more_tokens) {
> t = type_of_next_token();
> switch (t) {
> case ...
> }
> }
>
> where the type_of_next_token() does the parsing, and the switch
> does the assigning. Much more code. Much uglier - but tastes differ.

    I would agree, if in all cases it was about assigning a single value.
    It isn't.

It was for 1.3.61. What cases have we now that are more complicated?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 21:00:16 EST