maint: don't use mbsr?chr.

Basically, revert ba60c39547a445dee3e07920931b4d7a81843868's move to
mbs* functions, which was prompted by -DGNULIB_POSIXCHECK.  See
<http://lists.gnu.org/archive/html/bison-patches/2012-05/msg00052.html>
and following.

* bootstrap.conf: No longer ask for them.
* src/files.c, src/getargs.c, src/location.c,
* src/parse-gram.c, src/parse-gram.y, src/scan-gram.l,
* src/symtab.c: s/mbs(r?chr)/str$1/g.
This commit is contained in:
Akim Demaille
2012-06-05 17:46:58 +02:00
parent d9a7c07c5a
commit 84526bf3d1
9 changed files with 10 additions and 12 deletions

View File

@@ -941,8 +941,8 @@ handle_syncline (char *args, location loc)
{
char *after_num;
unsigned long int lineno = strtoul (args, &after_num, 10);
char *file = mbschr (after_num, '"') + 1;
*mbschr (file, '"') = '\0';
char *file = strchr (after_num, '"') + 1;
*strchr (file, '"') = '\0';
if (INT_MAX <= lineno)
{
warn_at (loc, _("line number overflow"));