[2/3] cmd: Avoid checking whether we're in console mode for every read (try 2)

Eric Pouech eric.pouech at orange.fr
Wed Sep 28 14:30:14 CDT 2011


Le 28/09/2011 01:01, Frédéric Delanoy a écrit :
> ---
>   programs/cmd/batch.c    |    9 ++++-----
>   programs/cmd/builtins.c |    4 ++--
>   programs/cmd/wcmd.h     |    5 +++--
>   programs/cmd/wcmdmain.c |   21 +++++++++++++--------
>   4 files changed, 22 insertions(+), 17 deletions(-)
actually, console handles have their 2 lower bit set
you could use it to even simplify further the code
A+

-- 
Eric Pouech
"The problem with designing something completely foolproof is to underestimate the ingenuity of a complete idiot." (Douglas Adams)




More information about the wine-devel mailing list