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

Andries.Brouwer@cwi.nl
Wed, 8 Aug 2001 11:38:31 GMT


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/