-/* Generate a string from the integer I.
- Return a ptr to internal memory containing the string. */
-
-char *
-int_to_string(i)
- int i;
-{
- static char buf[20];
- sprintf(buf, "%d", i);
- return buf;
-}
-
-/* Print the message S for a fatal error. */
-
-void
-fatal(s)
- char *s;
-{
- extern char *infile;
-
- if (infile == 0)
- fprintf(stderr, _("fatal error: %s\n"), s);
- else
- fprintf(stderr, _("\"%s\", line %d: %s\n"), infile, lineno, s);
- done(1);
-}
-
-
-/* Print a message for a fatal error. Use FMT to construct the message
- and incorporate string X1. */
-
-void
-fatals(fmt, x1)
- char *fmt, *x1;
-{
- char buffer[200];
- sprintf(buffer, fmt, x1);
- fatal(buffer);
-}
-
-/* Print a warning message S. */
-
-void
-warn(s)
- char *s;
-{
- extern char *infile;
-
- if (infile == 0)
- fprintf(stderr, _("error: %s\n"), s);
- else
- fprintf(stderr, _("(\"%s\", line %d) error: %s\n"),
- infile, lineno, s);
-
- failure = 1;
-}
-
-/* Print a warning message containing the string for the integer X1.
- The message is given by the format FMT. */
-
-void
-warni(fmt, x1)
- char *fmt;
- int x1;
-{
- char buffer[200];
- sprintf(buffer, fmt, x1);
- warn(buffer);
-}
-
-/* Print a warning message containing the string X1.
- The message is given by the format FMT. */
-
-void
-warns(fmt, x1)
- char *fmt, *x1;
-{
- char buffer[200];
- sprintf(buffer, fmt, x1);
- warn(buffer);
-}
-
-/* Print a warning message containing the two strings X1 and X2.
- The message is given by the format FMT. */
-
-void
-warnss(fmt, x1, x2)
- char *fmt, *x1, *x2;
-{
- char buffer[200];
- sprintf(buffer, fmt, x1, x2);
- warn(buffer);
-}
-
-/* Print a warning message containing the 3 strings X1, X2, X3.
- The message is given by the format FMT. */
-
-void
-warnsss(fmt, x1, x2, x3)
- char *fmt, *x1, *x2, *x3;
-{
- char buffer[200];
- sprintf(buffer, fmt, x1, x2, x3);
- warn(buffer);
-}
-
-/* Print a message for the fatal occurence of more than MAXSHORT
- instances of whatever is denoted by the string S. */
-
-void
-toomany(s)
- char *s;
-{
- char buffer[200];
- sprintf(buffer, _("limit of %d exceeded, too many %s"), MAXSHORT, s);
- fatal(buffer);
-}
-