}
/* Returns true if s is a string of only numbers with length > 0. */
-static bool isnumber(const char *s)
+static bool is_number(const char *s)
{
do {
if (!*s || !isdigit(*s))
/* Check if name matches ".rodata.str1.[0-9]+" */
if (!strncmp(name, GCC_5_SECTION_NAME, strlen(GCC_5_SECTION_NAME)))
- return isnumber(name + strlen(GCC_5_SECTION_NAME));
+ return is_number(name + strlen(GCC_5_SECTION_NAME));
/* Check if name matches ".rodata.<func>.str1.[0-9]+" */
s = strstr(name, GCC_6_SECTION_NAME);
if (!s)
return false;
- return isnumber(s + strlen(GCC_6_SECTION_NAME));
+ return is_number(s + strlen(GCC_6_SECTION_NAME));
#undef GCC_5_SECTION_NAME
#undef GCC_6_SECTION_NAME
}