mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* bootstrap.conf (gnulib_modules): Add all modules suggested by
-DGNULIB_POSIXCHECK.
* src/files.c (file_name_split)
* src/getargs.c (getargs)
* src/location.c (boundary_set_from_string)
* src/output.c (output_skeleton)
* src/parse-gram.y (prologue_declaration)
* src/scan-gram.l (handle_syncline)
* src/symtab.c (symbol_new): Use mbschr and mbsrchr instead of
strchr and strrchr. In the cases of command-line options, file
names, and thus locations, functionality may be improved. In the
case of symbol names, there should be no functional difference as
all characters are ASCII, so the intended benefit is just warning
suppression.
(cherry picked from commit d143e9c33f)
Conflicts:
src/output.c
src/parse-gram.c
src/parse-gram.h
82 lines
2.7 KiB
Plaintext
82 lines
2.7 KiB
Plaintext
# Bootstrap configuration.
|
|
|
|
# Copyright (C) 2006-2011 Free Software Foundation, Inc.
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# gnulib modules used by this package.
|
|
gnulib_modules='
|
|
announce-gen argmatch assert calloc-posix close config-h c-strcase
|
|
configmake dirname error extensions fopen-safer gendocs getopt-gnu
|
|
gettext git-version-gen hash inttypes isnan javacomp-script
|
|
javaexec-script ldexpl maintainer-makefile malloc-gnu mbschr mbsrchr
|
|
mbswidth obstack perror pipe-posix quote quotearg realloc-posix
|
|
spawn-pipe stdbool stpcpy strdup-posix strerror strtoul strverscmp
|
|
unistd unistd-safer unlocked-io update-copyright unsetenv verify
|
|
warnings xalloc xalloc-die xstrndup
|
|
|
|
fprintf-posix printf-posix snprintf-posix sprintf-posix
|
|
vsnprintf-posix vsprintf-posix
|
|
'
|
|
|
|
# Additional xgettext options to use. Use "\\\newline" to break lines.
|
|
XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
|
|
--from-code=UTF-8\\\
|
|
--flag=asprintf:2:c-format\\\
|
|
--flag=complain:1:c-format --flag=complain_at:2:c-format\\\
|
|
--flag=fatal:1:c-format --flag=fatal_at:2:c-format\\\
|
|
--flag=warn:1:c-format --flag=warn_at:2:c-format\\\
|
|
--flag=unexpected_end:2:c-format\\\
|
|
'
|
|
XGETTEXT_OPTIONS_RUNTIME=$XGETTEXT_OPTIONS'\\\
|
|
--keyword=YY_ \\\
|
|
'
|
|
|
|
# Gettext supplies these files, but we don't need them since
|
|
# we don't have an intl subdirectory.
|
|
excluded_files='
|
|
m4/glibc2.m4
|
|
m4/intdiv0.m4
|
|
m4/intl.m4
|
|
m4/intldir.m4
|
|
m4/intmax.m4
|
|
m4/lcmessage.m4
|
|
m4/lock.m4
|
|
m4/longdouble.m4
|
|
m4/signed.m4
|
|
m4/uintmax_t.m4
|
|
m4/ulonglong.m4
|
|
m4/visibility.m4
|
|
'
|
|
|
|
# Massage lib/gnulib.mk before using it later in the bootstrapping process.
|
|
gnulib_mk_hook()
|
|
{
|
|
etc/prefix-gnulib-mk $1
|
|
}
|
|
|
|
bootstrap_epilogue()
|
|
{
|
|
# Make sure we don't need src/bison, which usually doesn't exist at
|
|
# the time of a bootstrap.
|
|
touch src/parse-gram.[ch]
|
|
}
|
|
|
|
# Keep our bootstrap script in sync with gnulib's. If we ever need to
|
|
# maintain our own bootstrap script again, set this to false, remove
|
|
# the bootstrap entry from the file .x-update-copyright, and add any
|
|
# needed copyright years to the copyright statement in the bootstrap
|
|
# script.
|
|
bootstrap_sync=true
|