Introduce CP_OPERATOR_STR/CP_OPERATOR_LEN and use throughout
[deliverable/binutils-gdb.git] / gdb / linespec.c
index 4c076fea3eb46020dd0bc5d651213855c2b7a188..25ebdcafa9524e96915e42eaafc1108bbeb7b767 100644 (file)
@@ -688,10 +688,9 @@ linespec_lexer_lex_string (linespec_parser *parser)
            {
              if ((PARSER_STATE (parser)->language->la_language
                   == language_cplus)
-                 && (PARSER_STREAM (parser) - start) > 8
-                 /* strlen ("operator") */)
+                 && (PARSER_STREAM (parser) - start) > CP_OPERATOR_LEN)
                {
-                 const char *p = strstr (start, "operator");
+                 const char *p = strstr (start, CP_OPERATOR_STR);
 
                  if (p != NULL && is_operator_name (p))
                    {
This page took 0.02336 seconds and 4 git commands to generate.