mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
* 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:
19
src/main.c
19
src/main.c
@@ -39,8 +39,6 @@ char *program_name;
|
||||
|
||||
extern void berror PARAMS((const char *));
|
||||
|
||||
extern char *printable_version PARAMS ((int));
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
@@ -98,23 +96,6 @@ main (int argc, char *argv[])
|
||||
exit (complain_message_count ? 1 : 0);
|
||||
}
|
||||
|
||||
/* Return a string containing a printable version of C:
|
||||
either C itself, or the corresponding \DDD code. */
|
||||
|
||||
char *
|
||||
printable_version (int c)
|
||||
{
|
||||
static char buf[10];
|
||||
if (c < ' ' || c >= '\177')
|
||||
sprintf (buf, "\\%o", c);
|
||||
else
|
||||
{
|
||||
buf[0] = c;
|
||||
buf[1] = '\0';
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
/* Abort for an internal error denoted by string S. */
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user