@@ -38,9 +38,9 @@ module deimos.ncurses.curses;
38
38
/*
39
39
* We need FILE, etc. Include this before checking any feature symbols.
40
40
*/
41
- import std.c .stdio ;
42
- import std.c .stddef ; /* we want wchar_t */
43
- import std.c .stdarg ; /* we need va_list */
41
+ import core.stdc .stdio ;
42
+ import core.stdc .stddef ; /* we want wchar_t */
43
+ import core.stdc .stdarg ; /* we need va_list */
44
44
import core.stdc.config ; /* we need c_ulong */
45
45
46
46
// #include <ncursesw/unctrl.h>
@@ -145,17 +145,17 @@ immutable enum :chtype
145
145
146
146
147
147
/* global variables */
148
- __gshared WINDOW * stdscr;
149
- __gshared WINDOW * curscr;
150
- __gshared WINDOW * newscr;
151
- __gshared char ttytype[] ;
152
- __gshared int COLORS ;
153
- __gshared int COLOR_PAIRS ;
154
- __gshared int LINES ;
155
- __gshared int COLS ;
156
- __gshared int TABSIZE ;
157
- __gshared int ESCDELAY ;
158
- __gshared chtype acs_map [256 ];
148
+ __gshared WINDOW * stdscr;
149
+ __gshared WINDOW * curscr;
150
+ __gshared WINDOW * newscr;
151
+ __gshared char [] ttytype;
152
+ __gshared int COLORS ;
153
+ __gshared int COLOR_PAIRS ;
154
+ __gshared int LINES ;
155
+ __gshared int COLS ;
156
+ __gshared int TABSIZE ;
157
+ __gshared int ESCDELAY ;
158
+ __gshared chtype[256 ] acs_map ;
159
159
160
160
161
161
@@ -307,7 +307,7 @@ immutable size_t CCHARW_MAX = 5;
307
307
struct cchar_t
308
308
{
309
309
attr_t attr;
310
- wchar_t chars [CCHARW_MAX ];
310
+ wchar_t[CCHARW_MAX ] chars ;
311
311
}
312
312
313
313
struct WINDOW
@@ -368,7 +368,7 @@ struct _nc_eventlist
368
368
{
369
369
int count;
370
370
int result_flags; /* _NC_EVENT_TIMEOUT_MSEC or _NC_EVENT_FILE_READABLE */
371
- _nc_event* events [1 ];
371
+ _nc_event* [1 ] events ;
372
372
}
373
373
374
374
int wgetch_events (WINDOW * win, _nc_eventlist* nc); /* experimental */
0 commit comments