[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.99 and 1.99.2.1

version 1.99, 2011/08/16 16:25:15 version 1.99.2.1, 2012/04/17 00:05:27
Line 887  history_expand(char *str, char **output)
Line 887  history_expand(char *str, char **output)
         *output = NULL;          *output = NULL;
         if (str[0] == history_subst_char) {          if (str[0] == history_subst_char) {
                 /* ^foo^foo2^ is equivalent to !!:s^foo^foo2^ */                  /* ^foo^foo2^ is equivalent to !!:s^foo^foo2^ */
                 *output = el_malloc((strlen(str) + 4 + 1) * sizeof(*output));                  *output = el_malloc((strlen(str) + 4 + 1) * sizeof(**output));
                 if (*output == NULL)                  if (*output == NULL)
                         return 0;                          return 0;
                 (*output)[0] = (*output)[1] = history_expansion_char;                  (*output)[0] = (*output)[1] = history_expansion_char;
Line 1922  rl_add_defun(const char *name, Function 
Line 1922  rl_add_defun(const char *name, Function 
 }  }
   
 void  void
 rl_callback_read_char()  rl_callback_read_char(void)
 {  {
         int count = 0, done = 0;          int count = 0, done = 0;
         const char *buf = el_gets(e, &count);          const char *buf = el_gets(e, &count);

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.99.2.1

CVSweb <webmaster@jp.NetBSD.org>