X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/520144aadc34f57ac0572ded66ab62fc32cb3069..22539284f3220db77eae57f1c06846753c20de43:/src/symtab.c diff --git a/src/symtab.c b/src/symtab.c index b3f94560..d25b9368 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -67,7 +67,7 @@ symbol_new (uniqstr tag, location loc) /* If the tag is not a string (starts with a double quote), check that it is valid for Yacc. */ - if (tag[0] != '\"' && tag[0] != '\'' && mbschr (tag, '-')) + if (tag[0] != '\"' && tag[0] != '\'' && strchr (tag, '-')) yacc_at (loc, _("POSIX Yacc forbids dashes in symbol names: %s"), tag);