Merge remote-tracking branch 'origin/maint'

* origin/maint:
  maint: remove useless file
  update files to ignore
  remove useless include
  use locale-indep. c_is* functions for parsing, not isspace, isprint etc
  gnulib: update
  --help: include a place to report translation issues
  tests: style changes
  tests: fix push-pull test
  yacc.c: style changes

Conflicts:
	src/system.h
This commit is contained in:
Akim Demaille
2012-09-04 18:51:55 +02:00
9 changed files with 63 additions and 44 deletions

View File

@@ -344,7 +344,25 @@ THINGS is a list of comma separated words that can include:\n\
`none' disable the report\n\
"), stdout);
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
putc ('\n', stdout);
printf (_("Report bugs to <%s>.\n"), PACKAGE_BUGREPORT);
printf (_("%s home page: <%s>.\n"), PACKAGE_NAME, PACKAGE_URL);
fputs (_("General help using GNU software: "
"<http://www.gnu.org/gethelp/>.\n"),
stdout);
/* Don't output this redundant message for English locales.
Note we still output for 'C' so that it gets included in the
man page. */
const char *lc_messages = setlocale (LC_MESSAGES, NULL);
if (lc_messages && !STREQ (lc_messages, "en_"))
/* TRANSLATORS: Replace LANG_CODE in this URL with your language
code <http://translationproject.org/team/LANG_CODE.html> to
form one of the URLs at http://translationproject.org/team/.
Otherwise, replace the entire URL with your translation team's
email address. */
fputs (_("Report translation bugs to "
"<http://translationproject.org/team/>.\n"), stdout);
fputs (_("For complete documentation, run: info bison.\n"), stdout);
}
exit (status);

View File

@@ -94,6 +94,7 @@
#include <config.h>
#include "system.h"
#include "c-ctype.h"
#include "complain.h"
#include "conflicts.h"
#include "files.h"
@@ -3255,11 +3256,11 @@ add_param (param_type type, char *decl, location loc)
/* Strip the surrounding '{' and '}', and any blanks just inside
the braces. */
--p;
while (isspace ((unsigned char) *p))
while (c_isspace ((unsigned char) *p))
--p;
p[1] = '\0';
++decl;
while (isspace ((unsigned char) *decl))
while (c_isspace ((unsigned char) *decl))
++decl;
}

View File

@@ -20,6 +20,7 @@
#include <config.h>
#include "system.h"
#include "c-ctype.h"
#include "complain.h"
#include "conflicts.h"
#include "files.h"
@@ -776,11 +777,11 @@ add_param (param_type type, char *decl, location loc)
/* Strip the surrounding '{' and '}', and any blanks just inside
the braces. */
--p;
while (isspace ((unsigned char) *p))
while (c_isspace ((unsigned char) *p))
--p;
p[1] = '\0';
++decl;
while (isspace ((unsigned char) *decl))
while (c_isspace ((unsigned char) *decl))
++decl;
}

View File

@@ -36,7 +36,7 @@
#include <src/reader.h>
#include <src/uniqstr.h>
#include <ctype.h>
#include <c-ctype.h>
#include <mbswidth.h>
#include <quote.h>
@@ -637,7 +637,7 @@ splice (\\[ \f\t\v]*\n)*
\\(.|\n) {
char const *p = yytext + 1;
/* Quote only if escaping won't make the character visible. */
if (isspace ((unsigned char) *p) && isprint ((unsigned char) *p))
if (c_isspace ((unsigned char) *p) && c_isprint ((unsigned char) *p))
p = quote (p);
else
p = quotearg_style_mem (escape_quoting_style, p, 1);

View File

@@ -52,10 +52,6 @@
#define STRPREFIX_LIT(Literal, S) \
(STRNCMP_LIT (S, Literal) == 0)
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <unistd.h>
#include <inttypes.h>
@@ -118,7 +114,6 @@ typedef size_t uintptr_t;
# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
#endif
#define FUNCTION_PRINT() fprintf (stderr, "%s: ", __func__)
/*------.
| NLS. |