[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.105 and 1.105.2.1

version 1.105, 2012/07/12 18:46:20 version 1.105.2.1, 2012/11/20 03:00:43
Line 1927  rl_add_defun(const char *name, Function 
Line 1927  rl_add_defun(const char *name, Function 
         map[(unsigned char)c] = fun;          map[(unsigned char)c] = fun;
         el_set(e, EL_ADDFN, name, name, rl_bind_wrapper);          el_set(e, EL_ADDFN, name, name, rl_bind_wrapper);
         vis(dest, c, VIS_WHITE|VIS_NOSLASH, 0);          vis(dest, c, VIS_WHITE|VIS_NOSLASH, 0);
         el_set(e, EL_BIND, dest, name);          el_set(e, EL_BIND, dest, name, NULL);
         return 0;          return 0;
 }  }
   
Line 2035  rl_variable_bind(const char *var, const 
Line 2035  rl_variable_bind(const char *var, const 
          * The proper return value is undocument, but this is what the           * The proper return value is undocument, but this is what the
          * readline source seems to do.           * readline source seems to do.
          */           */
         return el_set(e, EL_BIND, "", var, value) == -1 ? 1 : 0;          return el_set(e, EL_BIND, "", var, value, NULL) == -1 ? 1 : 0;
 }  }
   
 void  void
Line 2104  void
Line 2104  void
 rl_get_screen_size(int *rows, int *cols)  rl_get_screen_size(int *rows, int *cols)
 {  {
         if (rows)          if (rows)
                 el_get(e, EL_GETTC, "li", rows);                  el_get(e, EL_GETTC, "li", rows, NULL);
         if (cols)          if (cols)
                 el_get(e, EL_GETTC, "co", cols);                  el_get(e, EL_GETTC, "co", cols, NULL);
 }  }
   
 void  void
Line 2114  rl_set_screen_size(int rows, int cols)
Line 2114  rl_set_screen_size(int rows, int cols)
 {  {
         char buf[64];          char buf[64];
         (void)snprintf(buf, sizeof(buf), "%d", rows);          (void)snprintf(buf, sizeof(buf), "%d", rows);
         el_set(e, EL_SETTC, "li", buf);          el_set(e, EL_SETTC, "li", buf, NULL);
         (void)snprintf(buf, sizeof(buf), "%d", cols);          (void)snprintf(buf, sizeof(buf), "%d", cols);
         el_set(e, EL_SETTC, "co", buf);          el_set(e, EL_SETTC, "co", buf, NULL);
 }  }
   
 char **  char **

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.105.2.1

CVSweb <webmaster@jp.NetBSD.org>