mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 19:43:41 +00:00
Eliminate some function calls when locale not used
This commit is contained in:
parent
ed2bf9a999
commit
6a575f6e24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24632
@ -187,12 +187,10 @@ rangematch(pattern, test, flags)
|
|||||||
if (flags & FNM_CASEFOLD)
|
if (flags & FNM_CASEFOLD)
|
||||||
c2 = tolower((unsigned char)c2);
|
c2 = tolower((unsigned char)c2);
|
||||||
|
|
||||||
if ( ( __collate_load_error
|
if (__collate_load_error ?
|
||||||
&& c <= test && test <= c2
|
c <= test && test <= c2 :
|
||||||
)
|
__collate_range_cmp(c, test) <= 0
|
||||||
|| ( __collate_range_cmp(c, test) <= 0
|
&& __collate_range_cmp(test, c2) <= 0
|
||||||
&& __collate_range_cmp(test, c2) <= 0
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
ok = 1;
|
ok = 1;
|
||||||
} else if (c == test)
|
} else if (c == test)
|
||||||
|
@ -187,12 +187,10 @@ rangematch(pattern, test, flags)
|
|||||||
if (flags & FNM_CASEFOLD)
|
if (flags & FNM_CASEFOLD)
|
||||||
c2 = tolower((unsigned char)c2);
|
c2 = tolower((unsigned char)c2);
|
||||||
|
|
||||||
if ( ( __collate_load_error
|
if (__collate_load_error ?
|
||||||
&& c <= test && test <= c2
|
c <= test && test <= c2 :
|
||||||
)
|
__collate_range_cmp(c, test) <= 0
|
||||||
|| ( __collate_range_cmp(c, test) <= 0
|
&& __collate_range_cmp(test, c2) <= 0
|
||||||
&& __collate_range_cmp(test, c2) <= 0
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
ok = 1;
|
ok = 1;
|
||||||
} else if (c == test)
|
} else if (c == test)
|
||||||
|
Loading…
Reference in New Issue
Block a user