diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-02-26 16:50:21 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-02-26 16:50:21 +0000 |
commit | 43a72316157e98ad48dd6fd96f1a5d8d4de2f1a6 (patch) | |
tree | bf693a0acf9ec02349ec1f295a898150225a497b /Panel.c | |
parent | 8d5dd51cf21304675144fa7cb8788efcbcf8452d (diff) |
Remove explicit calls to curses.h in other files
Diffstat (limited to 'Panel.c')
-rw-r--r-- | Panel.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,6 @@ in the source distribution for its full text. #include <ctype.h> #include <string.h> #include <assert.h> -#include <curses.h> //#link curses @@ -295,6 +294,7 @@ void Panel_draw(Panel* this, bool focus) { for(int i = first, j = 0; j < this->h && i < last; i++, j++) { Object* itemObj = Vector_get(this->items, i); + assert(itemObj); if(!itemObj) continue; RichString_begin(item); Object_display(itemObj, &item); int itemLen = RichString_sizeVal(item); @@ -319,6 +319,7 @@ void Panel_draw(Panel* this, bool focus) { } else { Object* oldObj = Vector_get(this->items, this->oldSelected); + assert(oldObj); RichString_begin(old); Object_display(oldObj, &old); int oldLen = RichString_sizeVal(old); |