Merge "Revert "Test_cel: Fails when DONT_OPTIMIZE is off""

This commit is contained in:
Joshua Colp
2019-03-18 06:05:31 -05:00
committed by Gerrit Code Review
2 changed files with 13 additions and 16 deletions

View File

@@ -1212,7 +1212,19 @@ static force_inline int attribute_pure ast_str_case_hash(const char *str)
*
* \retval str for convenience
*/
char *attribute_pure ast_str_to_lower(char *str);
static force_inline char *attribute_pure ast_str_to_lower(char *str)
{
char *str_orig = str;
if (!str) {
return str;
}
for (; *str; ++str) {
*str = tolower(*str);
}
return str_orig;
}
/*!
* \brief Convert a string to all upper-case