* lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:

* m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
New files, from Fileutils 4.0.27.
* src/main.c (printable_version): Remove.
* src/lex.c, src/reader.c: Use `quote'.


* lib/error.c, lib/error.h: New files, needed by xmalloc.c.
This commit is contained in:
Akim Demaille
2000-10-16 17:28:41 +00:00
parent 14ded68250
commit ff4a34be27
26 changed files with 1795 additions and 489 deletions

View File

@@ -27,9 +27,7 @@
#include "xalloc.h"
#include "complain.h"
#include "gram.h"
/* functions from main.c */
extern char *printable_version PARAMS ((int));
#include "quote.h"
/* Buffer for storing the current token. */
char *token_buffer;
@@ -238,8 +236,10 @@ literalchar (char **pp, int *pcode, char term)
}
else
{
char buf [] = "c";
buf[0] = c;
complain (_("unknown escape sequence: `\\' followed by `%s'"),
printable_version (c));
quote (buf));
code = '?';
}
} /* has \ */