@@ -41,6 +41,7 @@ module deimos.ncurses.curses;
41
41
import std.c.stdio ;
42
42
import std.c.stddef ; /* we want wchar_t */
43
43
import std.c.stdarg ; /* we need va_list */
44
+ import core.stdc.config ; /* we need c_ulong */
44
45
45
46
// #include <ncursesw/unctrl.h>
46
47
public import deimos.ncurses.unctrl;
@@ -68,10 +69,9 @@ string NCURSES_VERSION = "5.7";
68
69
extern (C )
69
70
{
70
71
71
- // TODO curses.h say chtype, mmask_t is a ulong, but that exhibits errors...
72
72
/* types */
73
- alias uint chtype;
74
- alias uint mmask_t;
73
+ alias c_ulong chtype;
74
+ alias c_ulong mmask_t;
75
75
alias chtype attr_t;
76
76
alias int OPTIONS ;
77
77
alias void SCREEN ;
@@ -814,7 +814,7 @@ int wattron(W:WINDOW, N:chtype)(W* win, N attrs)
814
814
{ return wattr_on(win, cast (attr_t)attrs, null ); }
815
815
int wattroff (W:WINDOW , N:chtype)(W* win, N attrs)
816
816
{ return wattr_off(win, attrs, null ); }
817
- int wattrset (W:WINDOW , N:chtype)(W* win, N attrs)
817
+ N wattrset (W:WINDOW , N:chtype)(W* win, N attrs)
818
818
{ return win.attrs = attrs; }
819
819
int wattr_get (W:WINDOW , A:attr_t, S:short , V:void )
820
820
(W* win, A* attrs, S* pair, V* opts)
0 commit comments