Browse Source

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

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
0d568ac219
2 changed files with 5 additions and 15 deletions
  1. 1
    15
      src/hci/mucurses/kb.c
  2. 4
    0
      src/include/curses.h

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

19
 bool m_echo;
19
 bool m_echo;
20
 bool m_cbreak;
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
 	int timer, c;
23
 	int timer, c;
38
 
24
 
39
 	if ( win == NULL )
25
 	if ( win == NULL )

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

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

Loading…
Cancel
Save