summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-08-12 18:49:54 +0000
committerache <ache@FreeBSD.org>1996-08-12 18:49:54 +0000
commit18e6a0b58f4135d736969d9e1db05995eb4ac5f5 (patch)
tree3f2ed0e11588c3b2e1116f5966c0d362c28edb67 /lib/libc/regex
parent956383bed878377c60fa07ec47955f81a6ee5833 (diff)
downloadFreeBSD-src-18e6a0b58f4135d736969d9e1db05995eb4ac5f5.zip
FreeBSD-src-18e6a0b58f4135d736969d9e1db05995eb4ac5f5.tar.gz
Convert to newly aded collate compare function
Diffstat (limited to 'lib/libc/regex')
-rw-r--r--lib/libc/regex/regcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index 8e01210..bdc943d 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -46,6 +46,7 @@ static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
#include <string.h>
#include <ctype.h>
#include <limits.h>
+#include <locale.h>
#include <stdlib.h>
#include <regex.h>
@@ -54,7 +55,6 @@ static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
#include "cclass.h"
#include "cname.h"
-#include "collate.h"
/*
* parse structure, passed up and down to avoid global variables and
@@ -803,10 +803,10 @@ register cset *cs;
if (start == finish)
CHadd(cs, start);
else {
- (void)REQUIRE(__collcmp(start, finish) <= 0, REG_ERANGE);
+ (void)REQUIRE(collate_range_cmp(start, finish) <= 0, REG_ERANGE);
for (i = CHAR_MIN; i <= CHAR_MAX; i++) {
- if ( __collcmp(start, i) <= 0
- && __collcmp(i, finish) <= 0
+ if ( collate_range_cmp(start, i) <= 0
+ && collate_range_cmp(i, finish) <= 0
)
CHadd(cs, i);
}
OpenPOWER on IntegriCloud