Mostly cosmetical changes.
- #if 0 some incomplete, non-working code instead of failing half way through the function - Don't read a NULL pointer in wclrtoeol Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
0ae0bcefe1
commit
2c9617dc94
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
|
* Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
|
||||||
* Copyright (C) 2008 Ulf Jordan <jordan@chalmers.se>
|
* Copyright (C) 2008 Ulf Jordan <jordan@chalmers.se>
|
||||||
* Copyright (C) 2008 coresystems GmbH
|
* Copyright (C) 2008-2009 coresystems GmbH
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -232,6 +232,7 @@ int delwin(WINDOW *win)
|
|||||||
}
|
}
|
||||||
WINDOW *derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx)
|
WINDOW *derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
WINDOW *win = NULL;
|
WINDOW *win = NULL;
|
||||||
int i;
|
int i;
|
||||||
int flags = _SUBWIN;
|
int flags = _SUBWIN;
|
||||||
@ -255,9 +256,9 @@ WINDOW *derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx)
|
|||||||
flags |= _ISPAD;
|
flags |= _ISPAD;
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
//// if ((win = _nc_makenew(num_lines, num_columns, orig->_begy + begy,
|
if ((win = _nc_makenew(num_lines, num_columns, orig->_begy + begy,
|
||||||
//// orig->_begx + begx, flags)) == 0)
|
orig->_begx + begx, flags)) == 0)
|
||||||
//// return NULL;
|
return NULL;
|
||||||
|
|
||||||
win->_pary = begy;
|
win->_pary = begy;
|
||||||
win->_parx = begx;
|
win->_parx = begx;
|
||||||
@ -270,6 +271,9 @@ WINDOW *derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx)
|
|||||||
win->_parent = orig;
|
win->_parent = orig;
|
||||||
|
|
||||||
return win;
|
return win;
|
||||||
|
#else
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
int doupdate(void) { /* TODO */ return(0); }
|
int doupdate(void) { /* TODO */ return(0); }
|
||||||
// WINDOW * dupwin (WINDOW *) {}
|
// WINDOW * dupwin (WINDOW *) {}
|
||||||
@ -614,7 +618,7 @@ int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs,
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
// int wclrtobot (WINDOW *) {}
|
// int wclrtobot (WINDOW *) {}
|
||||||
int wclrtoeol(WINDOW *win) { /* TODO */ return(*(int *)0); }
|
int wclrtoeol(WINDOW *win) { /* TODO */ return ERR; }
|
||||||
int wcolor_set(WINDOW *win, short color_pair_number, void *opts)
|
int wcolor_set(WINDOW *win, short color_pair_number, void *opts)
|
||||||
{
|
{
|
||||||
if (!opts && (color_pair_number >= 0)
|
if (!opts && (color_pair_number >= 0)
|
||||||
|
Reference in New Issue
Block a user