lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [patch] --disable-menu-options and LYmouse_menu()


From: Sergey Svishchev
Subject: lynx-dev [patch] --disable-menu-options and LYmouse_menu()
Date: Sat, 24 Apr 1999 16:50:08 +0400

G'day,

LYmouse_menu() in LYStrings.c calls popup_choice(), which is #ifdef'd out
when --disable-menu-options is used.  Fix (for dev.24):

*** src/LYOptions.c     Tue Apr 24 09:27:16 1999
--- src/LYOptions.c.new Tue Apr 24 09:26:26 1999
***************
*** 28,33 ****
--- 28,37 ----
  
  PRIVATE void terminate_options        PARAMS((int sig));
  
+ #if !defined(NO_OPTION_MENU) || defined(NCURSES_MOUSE_VERSION)
+ #define COL_OPTION_VALUES 36  /* display column where option values start */
+ #endif
+ 
  #ifndef NO_OPTION_MENU
  PRIVATE int boolean_choice PARAMS((
        int             status,
***************
*** 98,106 ****
  #define B_VERBOSE_IMAGES 50
  #define C_VERBOSE_IMAGES (B_VERBOSE_IMAGES + 21)
  
- 
- #define COL_OPTION_VALUES 36  /* display column where option values start */
- 
  /* a kludge to add assume_charset only in ADVANCED mode... */
  #define L_Bool_A (use_assume_charset ? L_BOOL_A + 1 : L_BOOL_A)
  #define L_Bool_B (use_assume_charset ? L_BOOL_B + 1 : L_BOOL_B)
--- 102,107 ----
***************
*** 2164,2170 ****
      signal(SIGINT, cleanup_sig);
  }
  
! #ifndef NO_OPTION_MENU
  /*
  **  This function prompts for a choice or page number.
  **  If a 'g' or 'p' suffix is included, that will be
--- 2165,2171 ----
      signal(SIGINT, cleanup_sig);
  }
  
! #if !defined(NO_OPTION_MENU) || defined(NCURSES_MOUSE_VERSION)
  /*
  **  This function prompts for a choice or page number.
  **  If a 'g' or 'p' suffix is included, that will be

-- 
Sergey Svishchev -- svs{at}ropnet{dot}ru

reply via email to

[Prev in Thread] Current Thread [Next in Thread]