mirror of https://github.com/ipxe/ipxe.git
Make has_key() a static inline, rather than omitting it altogether.
parent
3e816c3d56
commit
0d568ac219
|
@ -19,21 +19,7 @@ int m_delay; /*
|
||||||
bool m_echo;
|
bool m_echo;
|
||||||
bool m_cbreak;
|
bool m_cbreak;
|
||||||
|
|
||||||
#if 0
|
static int _wgetc ( WINDOW *win ) {
|
||||||
/**
|
|
||||||
* Check KEY_ code supported status
|
|
||||||
*
|
|
||||||
* @v kc keycode value to check
|
|
||||||
* @ret TRUE KEY_* supported
|
|
||||||
* @ret FALSE KEY_* unsupported
|
|
||||||
*/
|
|
||||||
int has_key ( int kc __unused ) {
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static
|
|
||||||
int _wgetc ( WINDOW *win ) {
|
|
||||||
int timer, c;
|
int timer, c;
|
||||||
|
|
||||||
if ( win == NULL )
|
if ( win == NULL )
|
||||||
|
|
|
@ -566,6 +566,10 @@ static inline bool has_colors ( void ) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int has_key ( int kc __unused ) {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
static inline int hline ( chtype ch, int n ) {
|
static inline int hline ( chtype ch, int n ) {
|
||||||
return whline ( stdscr, ch, n );
|
return whline ( stdscr, ch, n );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue