Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1465 → Rev 1466

/uspace/trunk/tetris/input.c
49,6 → 49,8
#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))
62,6 → 64,8
(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.