Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1466 → Rev 1465

/uspace/trunk/tetris/input.c
49,8 → 49,6
#include "input.h"
#include "tetris.h"
 
#include <async.h>
 
/* return true iff the given timeval is positive */
#define TV_POS(tv) \
((tv)->tv_sec > 0 || ((tv)->tv_sec == 0 && (tv)->tv_usec > 0))
64,8 → 62,6
(res)->tv_sec--; \
}
 
static aid_t getchar_inprog = 0;
 
/*
* Do a `read wait': select for reading from stdin, with timeout *tvp.
* On return, modify *tvp to reflect the amount of time spent waiting.