diagnostics: use gnulib's libtextstyle-optional

Bruno Haible just added a default implementation of libtextstyle's
interface when the library is not available.
https://lists.gnu.org/archive/html/bison-patches/2019-03/msg00025.html

* gnulib: Update.
* bootstrap.conf: Replace libtextstyle with libtextstyle-optional.
* src/complain.c, src/getargs.c: Remove now useless cpp guards.
This commit is contained in:
Akim Demaille
2019-03-17 19:40:08 +01:00
parent 22a413ce9f
commit 4d34b06fb3
8 changed files with 72 additions and 50 deletions

View File

@@ -30,10 +30,7 @@
#include <getopt.h>
#include <progname.h>
#include <quote.h>
#if HAVE_LIBTEXTSTYLE
# include <textstyle.h>
#endif
#include <textstyle.h>
#include "complain.h"
#include "files.h"
@@ -590,7 +587,6 @@ command_line_location (void)
static void
getargs_colors (int argc _GL_UNUSED, char *argv[] _GL_UNUSED)
{
#if HAVE_LIBTEXTSTYLE
for (int i = 1; i < argc; i++)
{
const char *arg = argv[i];
@@ -600,7 +596,6 @@ getargs_colors (int argc _GL_UNUSED, char *argv[] _GL_UNUSED)
handle_style_option (arg + strlen ("--style="));
}
complain_init_color ();
#endif
}