Browse Source

Move definition of reset_hp_softkeys variable to lib/tty/tty-slang.[ch].

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 8 years ago
parent
commit
3204563bff
4 changed files with 7 additions and 13 deletions
  1. 5 0
      lib/tty/tty-slang.c
  2. 2 0
      lib/tty/tty-slang.h
  3. 0 7
      lib/tty/tty.c
  4. 0 6
      lib/tty/tty.h

+ 5 - 0
lib/tty/tty-slang.c

@@ -57,6 +57,11 @@
 
 /*** global variables ****************************************************************************/
 
+/* If true program softkeys (HP terminals only) on startup and after every
+   command ran in the subshell to the description found in the termcap/terminfo
+   database */
+int reset_hp_softkeys = 0;
+
 /*** file scope macro definitions ****************************************************************/
 
 #ifndef SLTT_MAX_SCREEN_COLS

+ 2 - 0
lib/tty/tty-slang.h

@@ -41,6 +41,8 @@ enum
 
 /*** global variables defined in .c file *********************************************************/
 
+extern int reset_hp_softkeys;
+
 /*** declarations of public functions ************************************************************/
 
 /*** inline functions ****************************************************************************/

+ 0 - 7
lib/tty/tty.c

@@ -50,13 +50,6 @@
 
 /*** global variables ****************************************************************************/
 
-#ifdef HAVE_SLANG
-/* If true program softkeys (HP terminals only) on startup and after every
-   command ran in the subshell to the description found in the termcap/terminfo
-   database */
-int reset_hp_softkeys = 0;
-#endif
-
 int mc_tty_frm[MC_TTY_FRM_MAX];
 
 /*** file scope macro definitions ****************************************************************/

+ 0 - 6
lib/tty/tty.h

@@ -65,12 +65,6 @@ extern int mc_tty_frm[];
 
 extern char *tty_tgetstr (const char *name);
 
-/* {{{ Input }}} */
-
-#ifdef HAVE_SLANG
-extern int reset_hp_softkeys;
-#endif
-
 /*** declarations of public functions ************************************************************/
 
 extern void tty_beep (void);