collate_range_cmp -> __collate_range_cmp
This commit is contained in:
parent
edcfa07284
commit
c61cea7272
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19277
@ -46,10 +46,11 @@ 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>
|
||||
|
||||
#include "collate.h"
|
||||
|
||||
#include "utils.h"
|
||||
#include "regex2.h"
|
||||
|
||||
@ -803,10 +804,10 @@ register cset *cs;
|
||||
if (start == finish)
|
||||
CHadd(cs, start);
|
||||
else {
|
||||
(void)REQUIRE(collate_range_cmp(start, finish) <= 0, REG_ERANGE);
|
||||
(void)REQUIRE(__collate_range_cmp(start, finish) <= 0, REG_ERANGE);
|
||||
for (i = CHAR_MIN; i <= CHAR_MAX; i++) {
|
||||
if ( collate_range_cmp(start, i) <= 0
|
||||
&& collate_range_cmp(i, finish) <= 0
|
||||
if ( __collate_range_cmp(start, i) <= 0
|
||||
&& __collate_range_cmp(i, finish) <= 0
|
||||
)
|
||||
CHadd(cs, i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user