Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/regex PR/52671: Ralph Geier, return th...
details: https://anonhg.NetBSD.org/src/rev/42cc4ac67743
branches: trunk
changeset: 357477:42cc4ac67743
user: christos <christos%NetBSD.org@localhost>
date: Sun Nov 12 16:33:31 2017 +0000
description:
PR/52671: Ralph Geier, return the wide character when changing case (because
it could be wide).
diffstat:
external/bsd/nvi/dist/regex/regcomp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 6621b49c9264 -r 42cc4ac67743 external/bsd/nvi/dist/regex/regcomp.c
--- a/external/bsd/nvi/dist/regex/regcomp.c Sun Nov 12 16:10:59 2017 +0000
+++ b/external/bsd/nvi/dist/regex/regcomp.c Sun Nov 12 16:33:31 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regcomp.c,v 1.6 2017/10/29 15:29:34 christos Exp $ */
+/* $NetBSD: regcomp.c,v 1.7 2017/11/12 16:33:31 christos Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -44,7 +44,7 @@
static char sccsid[] = "@(#)regcomp.c 8.4 (Berkeley) 3/19/94";
#endif /* LIBC_SCCS and not lint */
#else
-__RCSID("$NetBSD: regcomp.c,v 1.6 2017/10/29 15:29:34 christos Exp $");
+__RCSID("$NetBSD: regcomp.c,v 1.7 2017/11/12 16:33:31 christos Exp $");
#endif
#include <sys/types.h>
@@ -98,7 +98,7 @@
static void p_b_eclass __P((struct parse *p, cset *cs));
static char p_b_symbol __P((struct parse *p));
static char p_b_coll_elem __P((struct parse *p, int endc));
-static char othercase __P((int ch));
+static RCHAR_T othercase __P((int ch));
static void bothcases __P((struct parse *p, int ch));
static void ordinary __P((struct parse *p, int ch));
static void nonnewline __P((struct parse *p));
@@ -946,7 +946,7 @@
- othercase - return the case counterpart of an alphabetic
== static char othercase(int ch);
*/
-static char /* if no counterpart, return ch */
+static RCHAR_T /* if no counterpart, return ch */
othercase(int ch)
{
assert(ISALPHA2(ch));
Home |
Main Index |
Thread Index |
Old Index