bridge/class-master/depend/pari/src/gp/gp_rl.c
/* long help if count < 0 */
long help if count < 0
long help if count < 0
static int
rl_short_help(int count, int key)
{
  int flag = h_RL;
  char *s = rl_line_buffer + rl_point;
  (void)key;
  if (s > rl_line_buffer && *s == ')' && s[-1] == '(') s--;
  while (s > rl_line_buffer && is_keyword_char(s[-1])) s--;
  if (s > rl_line_buffer && s[-1] == '\\') s--;
  if (count < 0 || rl_last_func == rl_short_help) flag |= h_LONG;
  rl_print_aide(s, flag); return 0;
}
static int rl_short_help ( int count , int key ) { int flag = h_RL ; char * s = rl_line_buffer + rl_point ; ( void ) key ; if ( s > rl_line_buffer && * s == ' ' && s [ -1 ] == ' ' ) s -- ; while ( s > rl_line_buffer && is_keyword_char ( s [ -1 ] ) ) s -- ; if ( s > rl_line_buffer && s [ -1 ] == ' \\ ' ) s -- ; if ( count < 0 || rl_last_func == rl_short_help ) flag |= h_LONG ; rl_print_aide ( s , flag ) ; return 0 ; }
long help if count < 0
long help if count < 0
/* func() with cursor on ')', e.g. following completion */ /* check for '\c' */