Skip to content

Commit f20ae9f

Browse files
authored
Merge pull request #33 from jaydg/clean_comments
Clean some comments
2 parents b1d092b + 44c8a01 commit f20ae9f

File tree

4 files changed

+1
-17
lines changed

4 files changed

+1
-17
lines changed

C/curses.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,6 @@ extern NCURSES_EXPORT(int) key_defined (const char *);
880880
extern NCURSES_EXPORT(int) keyok (int, bool);
881881
extern NCURSES_EXPORT(int) resize_term (int, int);
882882
extern NCURSES_EXPORT(int) resizeterm (int, int);
883-
//TODO implement
884883
extern NCURSES_EXPORT(int) set_escdelay (int);
885884
extern NCURSES_EXPORT(int) set_tabsize (int);
886885
//end

source/deimos/ncurses/curses.d

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import core.stdc.stddef; /* we want wchar_t */
4343
import core.stdc.stdarg; /* we need va_list */
4444
import core.stdc.config; /* we need c_ulong */
4545

46-
//#include <ncursesw/unctrl.h>
4746
public import deimos.ncurses.unctrl;
4847

4948
//TODO check if needed... I don't have a windows machine...
@@ -416,9 +415,6 @@ int border(C:chtype)(C ls, C rs, C ts, C bs, C tl, C tr, C bl, C br)
416415
{ return wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br); }
417416
int box(W:WINDOW, C:chtype)(W* win, C verch, C horch)
418417
{ return wborder(win, verch, verch, horch, horch, 0, 0, 0, 0); }
419-
//TODO is this needed?
420-
int box(W:WINDOW, C:int)(W* win, C verch, C horch)
421-
{ return wborder(win, verch, verch, horch, horch, 0, 0, 0, 0); }
422418
bool can_change_color();
423419
int cbreak();
424420
int chgat(N:int, A:attr_t, S:short, V:void)(N n, A attr, S color, V* opts)
@@ -433,9 +429,8 @@ int clrtoeol()()
433429
int color_content(short color, short* r, short* g, short* b);
434430
int color_set(N:short, V:void)(N color_pair_number, V* opts)
435431
{ return wcolor_set(stdscr, color_pair_number, opts); }
436-
//TODO look at this, might be able to be rewritten using NCURSES_BITS
437432
chtype COLOR_PAIR(N:int)(N n)
438-
{ return cast(chtype)(n<<8); }
433+
{ return NCURSES_BITS(n, 0); }
439434
int copywin(WINDOW* srcwin, WINDOW* dstwin, int sminrow,
440435
int smincol, int dminrow, int dmincol, int dmaxrow,
441436
int dmaxcol, int overlay);
@@ -788,7 +783,6 @@ int untouchwin(W:WINDOW)(W* win)
788783
{ return wtouchln(win, 0, getmaxy(win), 0); }
789784
void use_env(bool f);
790785
int vidattr(chtype c);
791-
//TODO check this.
792786
int vidputs(chtype, int function(int));
793787
int vline(C:chtype, N:int)(C ch, N n)
794788
{ return wvline(stdscr, ch, n); }
@@ -923,7 +917,6 @@ int getpary(U:WINDOW*)(U win)
923917
/*
924918
* vid_attr() was implemented originally based on a draft of X/Open curses.
925919
*/
926-
//TODO check...
927920
int vid_attr(chtype a, ...)
928921
{ return vidattr(a); }
929922

@@ -945,7 +938,6 @@ int key_defined(char* definition);
945938
int keyok(int keycode, bool enable);
946939
int resize_term(int lines, int columns);
947940
int resizeterm(int lines, int columns);
948-
//TODO check
949941
int set_escdelay(int i);
950942
//TODO check
951943
int set_tabsize(int i);

source/deimos/ncurses/menu.d

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ MENU* new_menu(ITEM** items);
162162

163163
OPTIONS item_opts(const ITEM* item);
164164
OPTIONS menu_opts(const MENU* menuVar);
165-
//TODO check I think it needs to return a MENU, this was fine whan MENU was a void..
166-
//Holy crap, using a function pointer to get around the fact that MENU isn't defined...
167-
//void* function(MENU*) item_init(const MENU* menuVar);
168-
//void* function(MENU*) item_term(const MENU* menuVar);
169-
//void* function(MENU*) menu_init(const MENU* menuVar);
170-
//void* function(MENU*) menu_term(const MENU* menuVar);
171165
MENU* item_init(const MENU* menuVar);
172166
MENU* item_term(const MENU* menuVar);
173167
MENU* menu_init(const MENU* menuVar);

source/deimos/ncurses/unctrl.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ module deimos.ncurses.unctrl;
4343

4444
/* $Id: unctrl.h.in,v 1.11 2009/04/18 21:00:52 tom Exp $ */
4545

46-
//#include <ncursesw/curses.h>
4746
string NCURSES_VERSION = "5.7";
4847
alias uint chtype;
4948
extern (C) char* unctrl(chtype);

0 commit comments

Comments
 (0)