{
/* Special case: C++ operator,. */
if (language->la_language == language_cplus
- && strncmp (*inp, "operator", 8)
- && (*inp)[9] == ',')
- (*inp) += 9;
+ && strncmp (*inp, "operator", 8) == 0)
+ (*inp) += 8;
++(*inp);
}
}
character is an explicit location. "-p" is reserved, though,
for probe locations. */
if (argp == NULL
- || *argp == '\0'
+ || *argp == NULL
|| *argp[0] != '-'
|| !isalpha ((*argp)[1])
|| ((*argp)[0] == '-' && (*argp)[1] == 'p'))
const struct language_defn *language)
{
struct event_location *location;
- const char *arg, *orig, *cs;
+ const char *cs;
/* Try the input as a probe spec. */
cs = *stringp;