Subversion Repositories HelenOS-historic

Compare Revisions

Regard whitespace Rev 1720 → Rev 1721

/uspace/trunk/console/console.c
217,7 → 217,6
int i, j, rc;
keyfield_t *field;
style_t *style;
char c;
 
if (newcons == active_console)
return;
309,9 → 308,11
newcon = gcons_mouse_btn(IPC_GET_ARG1(call));
if (newcon != -1)
change_console(newcon);
retval = 0;
break;
case KBD_MS_MOVE:
gcons_mouse_move(IPC_GET_ARG1(call), IPC_GET_ARG2(call));
retval = 0;
break;
case KBD_PUSHCHAR:
/* got key from keyboard driver */
337,8 → 338,8
break;
}
/*FIXME: else store key to its buffer */
keybuffer_push(&conn->keybuffer, c);
retval = 0;
break;
default:
456,8 → 457,7
int main(int argc, char *argv[])
{
ipcarg_t phonehash;
int kbd_phone, fb_phone;
ipcarg_t retval, arg1 = 0xdead, arg2 = 0xbeef;
int kbd_phone;
int i;
 
async_set_client_connection(client_connection);
/uspace/trunk/console/gcons.c
69,7 → 69,6
 
static int console_vp;
static int cstatus_vp[CONSOLE_COUNT];
static int cstat_row, cstat_col; /* Size of cstatus buttons */
static enum butstate console_state[CONSOLE_COUNT];
 
static int fbphone;
345,7 → 344,6
static void gcons_redraw_console(void)
{
int i;
size_t hsize = (size_t)&_binary_helenos_ppm_size;
 
if (!use_gcons)
return;
/uspace/trunk/tetris/input.c
108,7 → 108,7
s = &endtv;
} else
s = NULL;
again:
 
if (!lastchar) {
if (!getchar_inprog)
getchar_inprog = async_send_2(1,CONSOLE_GETCHAR,0,0,&charcall);
142,7 → 142,6
tsleep(void)
{
struct timeval tv;
char c;
 
tv.tv_sec = 0;
tv.tv_usec = fallrate;
/uspace/trunk/tetris/screen.c
61,15 → 61,8
static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */
static int curscore;
static int isset; /* true => terminal is in game mode */
static void (*tstp)(int);
 
static void scr_stop(int);
static void stopset(int);
 
static char
*CEstr; /* clear to end of line */
 
 
/*
* putstr() is for unpadded strings (either as in termcap(5) or
* simply literal strings);
148,15 → 141,6
return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
}
 
static void
scr_stop(int sig)
{
 
scr_end();
scr_set();
scr_msg(key_msg, 1);
}
 
/*
* Set up screen mode.
*/
/uspace/trunk/tetris/tetris.c
165,10 → 165,6
srandom(tv.tv_sec + tv.tv_usec / 100000);
}
 
static void tetris_scores(int firstgame)
{
}
 
static void tetris_menu_draw(int level)
{
clear_screen();
259,8 → 255,7
char *keys;
int level = 2;
char key_write[6][10];
const char *errstr;
int ch, i, j;
int i, j;
 
keys = "jkl pq";
 
450,7 → 445,8
break
*/
scr_end();
exit(0);
 
return 0;
}
 
/* void */
/uspace/trunk/pci/pci.c
63,7 → 63,6
while (1) {
ipc_call_t call;
ipc_callid_t callid;
int retval;
 
callid = ipc_wait_for_call(&call);
switch(IPC_GET_METHOD(call)) {
/uspace/trunk/klog/klog.c
44,7 → 44,7
/* Pointer to klog area */
static char *klog;
 
void interrupt_received(ipc_callid_t callid, ipc_call_t *call)
static void interrupt_received(ipc_callid_t callid, ipc_call_t *call)
{
int i;
/uspace/trunk/ipcc/ipcc.c
107,9 → 107,8
 
static void do_answer_msg(void)
{
int i,cnt, errn;
int i,cnt, errn = 0;
char c;
ipc_callid_t callid;
 
cnt = 0;
for (i=0;i < 50;i++) {