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

This commit is contained in:
George Joseph
2019-02-14 12:47:17 -06:00
committed by Gerrit Code Review
2 changed files with 13 additions and 15 deletions

View File

@@ -1257,7 +1257,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

View File

@@ -391,17 +391,3 @@ char *ast_read_line_from_buffer(char **buffer)
return start;
}
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;
}