Re: Obfuscated code in xserver/os/io.c ?

2010-09-21 Thread Alan Coopersmith
Matt Turner wrote: > On Tue, Sep 21, 2010 at 3:09 PM, Jesse Adkins > wrote: >> Syntax-wise, they're the same thing. There's nothing technically wrong >> with it, since it goes if -> if -> statement. >> >> The first if sees everything in the second if as a single statement, >> so no braces are req

Re: Obfuscated code in xserver/os/io.c ?

2010-09-21 Thread Matt Turner
On Tue, Sep 21, 2010 at 3:09 PM, Jesse Adkins wrote: > Syntax-wise, they're the same thing. There's nothing technically wrong > with it, since it goes if -> if -> statement. > > The first if sees everything in the second if as a single statement, > so no braces are required. > > To my knowledge, t

Re: Obfuscated code in xserver/os/io.c ?

2010-09-21 Thread Jesse Adkins
Syntax-wise, they're the same thing. There's nothing technically wrong with it, since it goes if -> if -> statement. The first if sees everything in the second if as a single statement, so no braces are required. To my knowledge, this sort of construct is only a problem if there's an else in ther

Obfuscated code in xserver/os/io.c ?

2010-09-21 Thread Colin Harrison
Hi, This code at xserver/os/io.c ~line 459 if (SmartScheduleDisable) if (++timesThisConnection >= MAX_TIMES_PER) YieldControl(); is either obfuscated or wrong? if (SmartScheduleDisable && ++timesThisConnection >= MAX_TIMES_PER) YieldControl(); is