}
}
-/* Modes of operation for strncmp_iw_with_mode. */
-
-enum class strncmp_iw_mode
-{
- /* Work like strncmp, while ignoring whitespace. */
- NORMAL,
-
- /* Like NORMAL, but also apply the strcmp_iw hack. I.e.,
- string1=="FOO(PARAMS)" matches string2=="FOO". */
- MATCH_PARAMS,
-};
-
-/* Helper for strncmp_iw and strcmp_iw. */
+/* See utils.h. */
-static int
+int
strncmp_iw_with_mode (const char *string1, const char *string2,
size_t string2_len, strncmp_iw_mode mode)
{