Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit s/protected/libedit_private/g



details:   https://anonhg.NetBSD.org/src/rev/e6e935247e00
branches:  trunk
changeset: 345144:e6e935247e00
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 09 21:46:56 2016 +0000

description:
s/protected/libedit_private/g

diffstat:

 lib/libedit/chared.c   |  52 +++++++++++++-------------
 lib/libedit/chared.h   |  50 ++++++++++++------------
 lib/libedit/chartype.c |  18 ++++----
 lib/libedit/chartype.h |  16 ++++----
 lib/libedit/common.c   |  62 +++++++++++++++---------------
 lib/libedit/el.c       |   6 +-
 lib/libedit/el.h       |   4 +-
 lib/libedit/emacs.c    |  44 +++++++++++-----------
 lib/libedit/hist.c     |  18 ++++----
 lib/libedit/hist.h     |  16 ++++----
 lib/libedit/keymacro.c |  28 +++++++-------
 lib/libedit/keymacro.h |  26 ++++++------
 lib/libedit/makelist   |   4 +-
 lib/libedit/map.c      |  20 +++++-----
 lib/libedit/map.h      |  18 ++++----
 lib/libedit/parse.c    |  12 +++---
 lib/libedit/parse.h    |  10 ++--
 lib/libedit/prompt.c   |  14 +++---
 lib/libedit/prompt.h   |  12 +++---
 lib/libedit/read.c     |  14 +++---
 lib/libedit/read.h     |  12 +++---
 lib/libedit/refresh.c  |  18 ++++----
 lib/libedit/refresh.h  |  16 ++++----
 lib/libedit/search.c   |  24 ++++++------
 lib/libedit/search.h   |  22 +++++-----
 lib/libedit/sig.c      |  12 +++---
 lib/libedit/sig.h      |  10 ++--
 lib/libedit/sys.h      |   4 +-
 lib/libedit/terminal.c |  54 +++++++++++++-------------
 lib/libedit/terminal.h |  52 +++++++++++++-------------
 lib/libedit/tty.c      |  22 +++++-----
 lib/libedit/tty.h      |  18 ++++----
 lib/libedit/vi.c       |  98 +++++++++++++++++++++++++-------------------------
 33 files changed, 403 insertions(+), 403 deletions(-)

diffs (truncated from 2858 to 300 lines):

diff -r aee7aed8e792 -r e6e935247e00 lib/libedit/chared.c
--- a/lib/libedit/chared.c      Mon May 09 21:38:27 2016 +0000
+++ b/lib/libedit/chared.c      Mon May 09 21:46:56 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chared.c,v 1.54 2016/04/18 17:01:19 christos Exp $     */
+/*     $NetBSD: chared.c,v 1.55 2016/05/09 21:46:56 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)chared.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: chared.c,v 1.54 2016/04/18 17:01:19 christos Exp $");
+__RCSID("$NetBSD: chared.c,v 1.55 2016/05/09 21:46:56 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -60,7 +60,7 @@
 /* cv_undo():
  *     Handle state for the vi undo command
  */
-protected void
+libedit_private void
 cv_undo(EditLine *el)
 {
        c_undo_t *vu = &el->el_chared.c_undo;
@@ -84,7 +84,7 @@
 /* cv_yank():
  *     Save yank/delete data for paste
  */
-protected void
+libedit_private void
 cv_yank(EditLine *el, const wchar_t *ptr, int size)
 {
        c_kill_t *k = &el->el_chared.c_kill;
@@ -97,7 +97,7 @@
 /* c_insert():
  *     Insert num characters
  */
-protected void
+libedit_private void
 c_insert(EditLine *el, int num)
 {
        wchar_t *cp;
@@ -119,7 +119,7 @@
 /* c_delafter():
  *     Delete num characters after the cursor
  */
-protected void
+libedit_private void
 c_delafter(EditLine *el, int num)
 {
 
@@ -145,7 +145,7 @@
 /* c_delafter1():
  *     Delete the character after the cursor, do not yank
  */
-protected void
+libedit_private void
 c_delafter1(EditLine *el)
 {
        wchar_t *cp;
@@ -160,7 +160,7 @@
 /* c_delbefore():
  *     Delete num characters before the cursor
  */
-protected void
+libedit_private void
 c_delbefore(EditLine *el, int num)
 {
 
@@ -188,7 +188,7 @@
 /* c_delbefore1():
  *     Delete the character before the cursor, do not yank
  */
-protected void
+libedit_private void
 c_delbefore1(EditLine *el)
 {
        wchar_t *cp;
@@ -203,7 +203,7 @@
 /* ce__isword():
  *     Return if p is part of a word according to emacs
  */
-protected int
+libedit_private int
 ce__isword(wint_t p)
 {
        return iswalnum(p) || wcschr(L"*?_-.[]~=", p) != NULL;
@@ -213,7 +213,7 @@
 /* cv__isword():
  *     Return if p is part of a word according to vi
  */
-protected int
+libedit_private int
 cv__isword(wint_t p)
 {
        if (iswalnum(p) || p == L'_')
@@ -227,7 +227,7 @@
 /* cv__isWord():
  *     Return if p is part of a big word according to vi
  */
-protected int
+libedit_private int
 cv__isWord(wint_t p)
 {
        return !iswspace(p);
@@ -237,7 +237,7 @@
 /* c__prev_word():
  *     Find the previous word
  */
-protected wchar_t *
+libedit_private wchar_t *
 c__prev_word(wchar_t *p, wchar_t *low, int n, int (*wtest)(wint_t))
 {
        p--;
@@ -261,7 +261,7 @@
 /* c__next_word():
  *     Find the next word
  */
-protected wchar_t *
+libedit_private wchar_t *
 c__next_word(wchar_t *p, wchar_t *high, int n, int (*wtest)(wint_t))
 {
        while (n--) {
@@ -279,7 +279,7 @@
 /* cv_next_word():
  *     Find the next word vi style
  */
-protected wchar_t *
+libedit_private wchar_t *
 cv_next_word(EditLine *el, wchar_t *p, wchar_t *high, int n,
     int (*wtest)(wint_t))
 {
@@ -309,7 +309,7 @@
 /* cv_prev_word():
  *     Find the previous word vi style
  */
-protected wchar_t *
+libedit_private wchar_t *
 cv_prev_word(wchar_t *p, wchar_t *low, int n, int (*wtest)(wint_t))
 {
        int test;
@@ -335,7 +335,7 @@
 /* cv_delfini():
  *     Finish vi delete action
  */
-protected void
+libedit_private void
 cv_delfini(EditLine *el)
 {
        int size;
@@ -373,7 +373,7 @@
 /* cv__endword():
  *     Go to the end of this word according to vi
  */
-protected wchar_t *
+libedit_private wchar_t *
 cv__endword(wchar_t *p, wchar_t *high, int n, int (*wtest)(wint_t))
 {
        int test;
@@ -395,7 +395,7 @@
 /* ch_init():
  *     Initialize the character editor
  */
-protected int
+libedit_private int
 ch_init(EditLine *el)
 {
        c_macro_t *ma = &el->el_chared.c_macro;
@@ -462,7 +462,7 @@
 /* ch_reset():
  *     Reset the character editor
  */
-protected void
+libedit_private void
 ch_reset(EditLine *el, int mclear)
 {
        el->el_line.cursor              = el->el_line.buffer;
@@ -502,7 +502,7 @@
  *     Enlarge line buffer to be able to hold twice as much characters.
  *     Returns 1 if successful, 0 if not.
  */
-protected int
+libedit_private int
 ch_enlargebufs(EditLine *el, size_t addlen)
 {
        size_t sz, newsz;
@@ -591,7 +591,7 @@
 /* ch_end():
  *     Free the data structures used by the editor
  */
-protected void
+libedit_private void
 ch_end(EditLine *el)
 {
        el_free(el->el_line.buffer);
@@ -674,7 +674,7 @@
 /* c_gets():
  *     Get a string
  */
-protected int
+libedit_private int
 c_gets(EditLine *el, wchar_t *buf, const wchar_t *prompt)
 {
        ssize_t len;
@@ -739,7 +739,7 @@
 /* c_hpos():
  *     Return the current horizontal position of the cursor
  */
-protected int
+libedit_private int
 c_hpos(EditLine *el)
 {
        wchar_t *ptr;
@@ -758,7 +758,7 @@
        }
 }
 
-protected int
+libedit_private int
 ch_resizefun(EditLine *el, el_zfunc_t f, void *a)
 {
        el->el_chared.c_resizefun = f;
@@ -766,7 +766,7 @@
        return 0;
 }
 
-protected int
+libedit_private int
 ch_aliasfun(EditLine *el, el_afunc_t f, void *a)
 {
        el->el_chared.c_aliasfun = f;
diff -r aee7aed8e792 -r e6e935247e00 lib/libedit/chared.h
--- a/lib/libedit/chared.h      Mon May 09 21:38:27 2016 +0000
+++ b/lib/libedit/chared.h      Mon May 09 21:46:56 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chared.h,v 1.28 2016/04/11 00:50:13 christos Exp $     */
+/*     $NetBSD: chared.h,v 1.29 2016/05/09 21:46:56 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -135,31 +135,31 @@
 #define        MODE_REPLACE_1  2
 
 
-protected int   cv__isword(wint_t);
-protected int   cv__isWord(wint_t);
-protected void  cv_delfini(EditLine *);
-protected wchar_t *cv__endword(wchar_t *, wchar_t *, int, int (*)(wint_t));
-protected int   ce__isword(wint_t);
-protected void  cv_undo(EditLine *);
-protected void  cv_yank(EditLine *, const wchar_t *, int);
-protected wchar_t *cv_next_word(EditLine*, wchar_t *, wchar_t *, int,
+libedit_private int     cv__isword(wint_t);
+libedit_private int     cv__isWord(wint_t);
+libedit_private void    cv_delfini(EditLine *);
+libedit_private wchar_t *cv__endword(wchar_t *, wchar_t *, int, int (*)(wint_t));
+libedit_private int     ce__isword(wint_t);
+libedit_private void    cv_undo(EditLine *);
+libedit_private void    cv_yank(EditLine *, const wchar_t *, int);
+libedit_private wchar_t *cv_next_word(EditLine*, wchar_t *, wchar_t *, int,
                        int (*)(wint_t));
-protected wchar_t *cv_prev_word(wchar_t *, wchar_t *, int, int (*)(wint_t));
-protected wchar_t *c__next_word(wchar_t *, wchar_t *, int, int (*)(wint_t));
-protected wchar_t *c__prev_word(wchar_t *, wchar_t *, int, int (*)(wint_t));
-protected void  c_insert(EditLine *, int);
-protected void  c_delbefore(EditLine *, int);
-protected void  c_delbefore1(EditLine *);
-protected void  c_delafter(EditLine *, int);
-protected void  c_delafter1(EditLine *);
-protected int   c_gets(EditLine *, wchar_t *, const wchar_t *);
-protected int   c_hpos(EditLine *);
+libedit_private wchar_t *cv_prev_word(wchar_t *, wchar_t *, int, int (*)(wint_t));
+libedit_private wchar_t *c__next_word(wchar_t *, wchar_t *, int, int (*)(wint_t));
+libedit_private wchar_t *c__prev_word(wchar_t *, wchar_t *, int, int (*)(wint_t));
+libedit_private void    c_insert(EditLine *, int);
+libedit_private void    c_delbefore(EditLine *, int);
+libedit_private void    c_delbefore1(EditLine *);
+libedit_private void    c_delafter(EditLine *, int);
+libedit_private void    c_delafter1(EditLine *);
+libedit_private int     c_gets(EditLine *, wchar_t *, const wchar_t *);
+libedit_private int     c_hpos(EditLine *);
 
-protected int   ch_init(EditLine *);
-protected void  ch_reset(EditLine *, int);
-protected int   ch_resizefun(EditLine *, el_zfunc_t, void *);
-protected int   ch_aliasfun(EditLine *, el_afunc_t, void *);
-protected int   ch_enlargebufs(EditLine *, size_t);
-protected void  ch_end(EditLine *);
+libedit_private int     ch_init(EditLine *);
+libedit_private void    ch_reset(EditLine *, int);
+libedit_private int     ch_resizefun(EditLine *, el_zfunc_t, void *);
+libedit_private int     ch_aliasfun(EditLine *, el_afunc_t, void *);
+libedit_private int     ch_enlargebufs(EditLine *, size_t);
+libedit_private void    ch_end(EditLine *);
 
 #endif /* _h_el_chared */
diff -r aee7aed8e792 -r e6e935247e00 lib/libedit/chartype.c



Home | Main Index | Thread Index | Old Index