mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 07:13:02 +00:00
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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user