pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:24:38 by Chris Angelico <rosuav@gmail.com>
393d5f43ff85753ab8b171b891fa1f9dfb7447a7 (
7
lines) (+
3
/-
4
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
Shorten/simplify the recording of string flags upper/lowercase
179:
if( s_max < 128 ) {
-
if(
upper &&
!lower )
+
if( !lower )
str->flags |= STRING_IS_UPPERCASE;
-
if(
lower &&
!upper )
+
if( !upper )
str->flags |= STRING_IS_LOWERCASE;
-
if( !lower && !upper )
-
str->flags |= STRING_IS_LOWERCASE|STRING_IS_UPPERCASE;
+
} } str->min = s_min;