[coreboot] [v2] r4230 - trunk/payloads/libpayload/curses
svn at coreboot.org
svn at coreboot.org
Wed Apr 29 21:10:10 CEST 2009
Author: stepan
Date: 2009-04-29 21:10:10 +0200 (Wed, 29 Apr 2009)
New Revision: 4230
Modified:
trunk/payloads/libpayload/curses/tinycurses.c
Log:
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 at coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi at coresystems.de>
Modified: trunk/payloads/libpayload/curses/tinycurses.c
===================================================================
--- trunk/payloads/libpayload/curses/tinycurses.c 2009-04-29 19:09:19 UTC (rev 4229)
+++ trunk/payloads/libpayload/curses/tinycurses.c 2009-04-29 19:10:10 UTC (rev 4230)
@@ -3,7 +3,7 @@
*
* Copyright (C) 2007 Uwe Hermann <uwe at hermann-uwe.de>
* Copyright (C) 2008 Ulf Jordan <jordan at chalmers.se>
- * Copyright (C) 2008 coresystems GmbH
+ * Copyright (C) 2008-2009 coresystems GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -232,6 +232,7 @@
}
WINDOW *derwin(WINDOW *orig, int num_lines, int num_columns, int begy, int begx)
{
+#if 0
WINDOW *win = NULL;
int i;
int flags = _SUBWIN;
@@ -255,9 +256,9 @@
flags |= _ISPAD;
// FIXME
- //// if ((win = _nc_makenew(num_lines, num_columns, orig->_begy + begy,
- //// orig->_begx + begx, flags)) == 0)
- //// return NULL;
+ if ((win = _nc_makenew(num_lines, num_columns, orig->_begy + begy,
+ orig->_begx + begx, flags)) == 0)
+ return NULL;
win->_pary = begy;
win->_parx = begx;
@@ -270,6 +271,9 @@
win->_parent = orig;
return win;
+#else
+ return NULL;
+#endif
}
int doupdate(void) { /* TODO */ return(0); }
// WINDOW * dupwin (WINDOW *) {}
@@ -614,7 +618,7 @@
return OK;
}
// 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)
{
if (!opts && (color_pair_number >= 0)
More information about the coreboot
mailing list