Module Name: src Committed By: christos Date: Tue Feb 16 19:11:25 UTC 2016
Modified Files: src/lib/libedit: common.c el.h Log Message: get rid of bool_t (Ingo Schwarze) To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/lib/libedit/common.c cvs rdiff -u -r1.30 -r1.31 src/lib/libedit/el.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libedit/common.c diff -u src/lib/libedit/common.c:1.35 src/lib/libedit/common.c:1.36 --- src/lib/libedit/common.c:1.35 Tue Feb 16 14:08:41 2016 +++ src/lib/libedit/common.c Tue Feb 16 14:11:25 2016 @@ -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 @@ ed_search_prev_history(EditLine *el, win { 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 @@ ed_search_prev_history(EditLine *el, win (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 @@ ed_search_next_history(EditLine *el, win { 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; Index: src/lib/libedit/el.h diff -u src/lib/libedit/el.h:1.30 src/lib/libedit/el.h:1.31 --- src/lib/libedit/el.h:1.30 Tue Feb 16 14:08:41 2016 +++ src/lib/libedit/el.h Tue Feb 16 14:11:25 2016 @@ -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 */