Re: [patch] cli()/sti() cleanup, 2.5.27-A2

Pavel Machek
2002-07-31T18:14:03Z

Hi!

> > > It's not that we confuse flags with some other flag all that
> > > frequently that would necessiate some structure-based more abstract
> > > protection of these variables.
>
> are you sure type-checking is really needed? Sure people can mess up the
> flags variable, but 64-bit archs could do a sizeof at compile-time.

Yes, it is needed; type-checking can be easily implemented as

{
unsigned long foo;
(&foo == &arg);
}

-- that gives warning when arg is not unsigned long.
Pavel

--
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?