[BACK]Return to readline.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libedit

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libedit/readline.c between version 1.58 and 1.59

version 1.58, 2005/07/14 15:00:58 version 1.59, 2006/02/12 16:15:07
Line 160  static Function *map[256];
Line 160  static Function *map[256];
 static unsigned char     _el_rl_complete(EditLine *, int);  static unsigned char     _el_rl_complete(EditLine *, int);
 static unsigned char     _el_rl_tstp(EditLine *, int);  static unsigned char     _el_rl_tstp(EditLine *, int);
 static char             *_get_prompt(EditLine *);  static char             *_get_prompt(EditLine *);
   static int               _getc_function(EditLine *, char *);
 static HIST_ENTRY       *_move_history(int);  static HIST_ENTRY       *_move_history(int);
 static int               _history_expand_command(const char *, size_t, size_t,  static int               _history_expand_command(const char *, size_t, size_t,
     char **);      char **);
Line 198  _move_history(int op)
Line 199  _move_history(int op)
   
   
 /*  /*
    * read one key from user defined input function
    */
   static int
   _getc_function(EditLine *el, char *c)
   {
           int i;
   
           i = (*rl_getc_function)(NULL, 0);
           if (i == -1)
                   return 0;
           *c = i;
           return 1;
   }
   
   
   /*
  * READLINE compatibility stuff   * READLINE compatibility stuff
  */   */
   
Line 242  rl_initialize(void)
Line 259  rl_initialize(void)
         max_input_history = INT_MAX;          max_input_history = INT_MAX;
         el_set(e, EL_HIST, history, h);          el_set(e, EL_HIST, history, h);
   
           /* setup getc function if valid */
           if (rl_getc_function)
                   el_set(e, EL_GETCFN, _getc_function);
   
         /* for proper prompt printing in readline() */          /* for proper prompt printing in readline() */
         rl_prompt = strdup("");          rl_prompt = strdup("");
         if (rl_prompt == NULL) {          if (rl_prompt == NULL) {

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

CVSweb <webmaster@jp.NetBSD.org>