[BACK]Return to chared.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/chared.c between version 1.52 and 1.53

version 1.52, 2016/04/11 00:50:13 version 1.53, 2016/04/11 18:56:31
Line 51  __RCSID("$NetBSD$");
Line 51  __RCSID("$NetBSD$");
 #include "el.h"  #include "el.h"
 #include "common.h"  #include "common.h"
   
 private void ch__clearmacro (EditLine *);  static void ch__clearmacro (EditLine *);
   
 /* value to leave unused in line buffer */  /* value to leave unused in line buffer */
 #define EL_LEAVE        2  #define EL_LEAVE        2
Line 489  ch_reset(EditLine *el, int mclear)
Line 489  ch_reset(EditLine *el, int mclear)
                 ch__clearmacro(el);                  ch__clearmacro(el);
 }  }
   
 private void  static void
 ch__clearmacro(EditLine *el)  ch__clearmacro(EditLine *el)
 {  {
         c_macro_t *ma = &el->el_chared.c_macro;          c_macro_t *ma = &el->el_chared.c_macro;
Line 614  ch_end(EditLine *el)
Line 614  ch_end(EditLine *el)
 /* el_insertstr():  /* el_insertstr():
  *      Insert string at cursorI   *      Insert string at cursorI
  */   */
 public int  int
 el_winsertstr(EditLine *el, const wchar_t *s)  el_winsertstr(EditLine *el, const wchar_t *s)
 {  {
         size_t len;          size_t len;
Line 636  el_winsertstr(EditLine *el, const wchar_
Line 636  el_winsertstr(EditLine *el, const wchar_
 /* el_deletestr():  /* el_deletestr():
  *      Delete num characters before the cursor   *      Delete num characters before the cursor
  */   */
 public void  void
 el_deletestr(EditLine *el, int n)  el_deletestr(EditLine *el, int n)
 {  {
         if (n <= 0)          if (n <= 0)
Line 654  el_deletestr(EditLine *el, int n)
Line 654  el_deletestr(EditLine *el, int n)
 /* el_cursor():  /* el_cursor():
  *      Move the cursor to the left or the right of the current position   *      Move the cursor to the left or the right of the current position
  */   */
 public int  int
 el_cursor(EditLine *el, int n)  el_cursor(EditLine *el, int n)
 {  {
         if (n == 0)          if (n == 0)

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

CVSweb <webmaster@jp.NetBSD.org>