Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit get rid of bool_t (Ingo Schwarze)



details:   https://anonhg.NetBSD.org/src/rev/7d061ec8345d
branches:  trunk
changeset: 343610:7d061ec8345d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 16 19:11:25 2016 +0000

description:
get rid of bool_t (Ingo Schwarze)

diffstat:

 lib/libedit/common.c |  10 +++++-----
 lib/libedit/el.h     |   4 +---
 2 files changed, 6 insertions(+), 8 deletions(-)

diffs (63 lines):

diff -r bcd97a3a918f -r 7d061ec8345d lib/libedit/common.c
--- a/lib/libedit/common.c      Tue Feb 16 19:08:41 2016 +0000
+++ b/lib/libedit/common.c      Tue Feb 16 19:11:25 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.35 2016/02/16 19:08:41 christos Exp $     */
+/*     $NetBSD: common.c,v 1.36 2016/02/16 19:11:25 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)common.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: common.c,v 1.35 2016/02/16 19:08:41 christos Exp $");
+__RCSID("$NetBSD: common.c,v 1.36 2016/02/16 19:11:25 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -710,7 +710,7 @@
 {
        const Char *hp;
        int h;
-       bool_t found = 0;
+       int found = 0;
 
        el->el_chared.c_vcmd.action = NOP;
        el->el_chared.c_undo.len = -1;
@@ -749,7 +749,7 @@
                            (el->el_line.lastchar - el->el_line.buffer)) ||
                        hp[el->el_line.lastchar - el->el_line.buffer]) &&
                    c_hmatch(el, hp)) {
-                       found++;
+                       found = 1;
                        break;
                }
                h++;
@@ -778,7 +778,7 @@
 {
        const Char *hp;
        int h;
-       bool_t found = 0;
+       int found = 0;
 
        el->el_chared.c_vcmd.action = NOP;
        el->el_chared.c_undo.len = -1;
diff -r bcd97a3a918f -r 7d061ec8345d lib/libedit/el.h
--- a/lib/libedit/el.h  Tue Feb 16 19:08:41 2016 +0000
+++ b/lib/libedit/el.h  Tue Feb 16 19:11:25 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: el.h,v 1.30 2016/02/16 19:08:41 christos Exp $ */
+/*     $NetBSD: el.h,v 1.31 2016/02/16 19:11:25 christos Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -61,8 +61,6 @@
 #define        NARROW_HISTORY  0x40
 #define        NARROW_READ     0x80
 
-typedef int bool_t;                    /* True or not                  */
-
 typedef unsigned char el_action_t;     /* Index to command array       */
 
 typedef struct coord_t {               /* Position on the screen       */



Home | Main Index | Thread Index | Old Index