Skip to content

Commit 28f117b

Browse files
committed
Merge pull request #21 from aG0aep6G/deprecations_warnings
Deprecations, warnings
2 parents c64f5d2 + e46032c commit 28f117b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

deimos/ncurses/curses.d

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ module deimos.ncurses.curses;
3838
/*
3939
* We need FILE, etc. Include this before checking any feature symbols.
4040
*/
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 */
4444
import core.stdc.config; /* we need c_ulong */
4545

4646
//#include <ncursesw/unctrl.h>
@@ -145,17 +145,17 @@ immutable enum :chtype
145145

146146

147147
/* 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;
159159

160160

161161

@@ -307,7 +307,7 @@ immutable size_t CCHARW_MAX = 5;
307307
struct cchar_t
308308
{
309309
attr_t attr;
310-
wchar_t chars[CCHARW_MAX];
310+
wchar_t[CCHARW_MAX] chars;
311311
}
312312

313313
struct WINDOW
@@ -368,7 +368,7 @@ struct _nc_eventlist
368368
{
369369
int count;
370370
int result_flags; /* _NC_EVENT_TIMEOUT_MSEC or _NC_EVENT_FILE_READABLE */
371-
_nc_event* events[1];
371+
_nc_event*[1] events;
372372
}
373373

374374
int wgetch_events(WINDOW* win, _nc_eventlist* nc); /* experimental */

0 commit comments

Comments
 (0)