Re: [2/3] cmd: Avoid checking whether we're in console mode for every read (try 2)
28 Sep
2011
28 Sep
'11
2:30 p.m.
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)
5186
Age (days ago)
5186
Last active (days ago)
0 comments
1 participants
participants (1)
-
Eric Pouech