Sfoglia il codice sorgente

Make has_key() a static inline, rather than omitting it altogether.

tags/v0.9.3
Michael Brown 17 anni fa
parent
commit
0d568ac219
2 ha cambiato i file con 5 aggiunte e 15 eliminazioni
  1. 1
    15
      src/hci/mucurses/kb.c
  2. 4
    0
      src/include/curses.h

+ 1
- 15
src/hci/mucurses/kb.c Vedi File

@@ -19,21 +19,7 @@ int m_delay; /*
19 19
 bool m_echo;
20 20
 bool m_cbreak;
21 21
 
22
-#if 0
23
-/**
24
- * Check KEY_ code supported status
25
- *
26
- * @v kc	keycode value to check
27
- * @ret TRUE	KEY_* supported
28
- * @ret FALSE	KEY_* unsupported
29
- */
30
-int has_key ( int kc __unused ) {
31
-	return TRUE;
32
-} 
33
-#endif
34
-
35
-static
36
-int _wgetc ( WINDOW *win ) {
22
+static int _wgetc ( WINDOW *win ) {
37 23
 	int timer, c;
38 24
 
39 25
 	if ( win == NULL )

+ 4
- 0
src/include/curses.h Vedi File

@@ -566,6 +566,10 @@ static inline bool has_colors ( void ) {
566 566
 	return TRUE;
567 567
 }
568 568
 
569
+static inline int has_key ( int kc __unused ) {
570
+	return TRUE;
571
+}
572
+
569 573
 static inline int hline ( chtype ch, int n ) {
570 574
 	return whline ( stdscr, ch, n );
571 575
 }

Loading…
Annulla
Salva