X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/47fa574761319b0a422691223c9b8a9a72f36aa2..5422d56a718805a2470558808355e04182a12d65:/src/output.c diff --git a/src/output.c b/src/output.c index dd268c8f..420d137c 100644 --- a/src/output.c +++ b/src/output.c @@ -1,6 +1,6 @@ /* Output the generated parsing program for Bison. - Copyright (C) 1984, 1986, 1989, 1992, 2000-2010 Free Software + Copyright (C) 1984, 1986, 1989, 1992, 2000-2011 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -24,8 +24,8 @@ #include #include #include -#include #include +#include #include #include @@ -367,9 +367,9 @@ token_definitions_output (FILE *out) /* Don't #define nonliteral tokens whose names contain periods, dashes or '$' (as does the default value of the EOF token). */ - if (strchr (sym->tag, '.') - || strchr (sym->tag, '-') - || strchr (sym->tag, '$')) + if (mbschr (sym->tag, '.') + || mbschr (sym->tag, '-') + || mbschr (sym->tag, '$')) continue; fprintf (out, "%s[[[%s]], %d]", @@ -518,7 +518,7 @@ output_skeleton (void) full_m4sugar = xstrdup (full_skeleton); strcpy (full_skeleton + pkgdatadirlen + 1, m4bison); full_m4bison = xstrdup (full_skeleton); - if (strchr (skeleton, '/')) + if (mbschr (skeleton, '/')) strcpy (full_skeleton, skeleton); else strcpy (full_skeleton + pkgdatadirlen + 1, skeleton);