Skip to content

Commit 3c0622a

Browse files
author
anonymous
committed
C style array declarations -> D style
1 parent 3980d0e commit 3c0622a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deimos/ncurses/curses.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ immutable enum :chtype
148148
__gshared WINDOW* stdscr;
149149
__gshared WINDOW* curscr;
150150
__gshared WINDOW* newscr;
151-
__gshared char ttytype[];
151+
__gshared char[] ttytype;
152152
__gshared int COLORS;
153153
__gshared int COLOR_PAIRS;
154154
__gshared int LINES;
155155
__gshared int COLS;
156156
__gshared int TABSIZE;
157157
__gshared int ESCDELAY;
158-
__gshared chtype acs_map[256];
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)