File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ immutable enum
65
65
/* This is defined in more than one ncurses header, for identification */
66
66
string NCURSES_VERSION = " 5.7" ;
67
67
68
- extern (C ) nothrow
68
+ extern (C ) @nogc nothrow
69
69
{
70
70
71
71
/* types */
@@ -925,8 +925,6 @@ int vid_attr(chtype a, ...)
925
925
* These functions are extensions - not in X/Open Curses.
926
926
*/
927
927
// TODO Check
928
- alias int function (WINDOW * , void * ) NCURSES_WINDOW_CB ;
929
- alias int function (SCREEN * , void * ) NCURSES_SCREEN_CB ;
930
928
931
929
bool is_term_resized (int lines, int columns);
932
930
char * keybound (int keycode, int count);
@@ -1492,3 +1490,12 @@ body
1492
1490
}
1493
1491
1494
1492
}// end extern (C)
1493
+
1494
+ // Things where @nogc would be needlessly limiting.
1495
+ extern (C ) nothrow
1496
+ {
1497
+
1498
+ alias int function (WINDOW * , void * ) NCURSES_WINDOW_CB ;
1499
+ alias int function (SCREEN * , void * ) NCURSES_SCREEN_CB ;
1500
+
1501
+ }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ import core.stdc.stdarg;
39
39
public import deimos.ncurses.ncurses;
40
40
public import deimos.ncurses.eti;
41
41
42
- extern (C )
42
+ extern (C ) @nogc
43
43
{
44
44
45
45
alias void * FIELD_CELL ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module deimos.ncurses.menu;
35
35
public import deimos.ncurses.curses,
36
36
deimos.ncurses.eti;
37
37
38
- extern (C )
38
+ extern (C ) @nogc
39
39
{
40
40
41
41
alias int Menu_Options;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module deimos.ncurses.panel;
38
38
39
39
public import deimos.ncurses.curses;
40
40
41
- extern (C )
41
+ extern (C ) @nogc
42
42
{
43
43
44
44
struct PANEL
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ module deimos.ncurses.unctrl;
45
45
46
46
string NCURSES_VERSION = " 5.7" ;
47
47
alias uint chtype;
48
- extern (C ) char * unctrl(chtype);
48
+ extern (C ) char * unctrl(chtype) @nogc ;
49
49
50
50
51
51
/* NCURSES_UNCTRL_H_incl */
You can’t perform that action at this time.
0 commit comments