[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ada7ig8lu5z.fsf@cisco.com>
Date: Tue, 11 Mar 2008 16:26:00 -0700
From: Roland Dreier <rdreier@...co.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: akpm@...l.org, wli@...omorphy.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Terminate hugetlbfs mount argument list
> Hmm indeed I did. To my defense it's a weird unusual coding pattern
> that tricked me. What good is it to give terminator elements own enum values?
It's a little odd. But I guess it does let you do
token = match_token(...table...);
switch (token) {
case ERR_VALUE:...
and get ERR_VALUE back for anything that doesn't match one of the real
token patterns.
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists