void set_prod (city_info_t *cityp);
/* terminal routines */
-void pdebug (char *s, int a, int b, int c, int d, int e, int f, int g, int h);
+void pdebug (char *s, ...);
void topini (void);
void clreol (int line, int colp);
void topmsg (int line, char *fmt, ...);
static bool need_delay;
static FILE *my_stream;
-void
-/* VARARGS1 */
-pdebug(char *s,
- int a, int b, int c, int d, int e, int f, int g, int h)
-{
- if (!print_debug) return;
- comment (s, a, b, c, d, e, f, g, h);
-}
-
/*
Here are routines that handle printing to the top few lines of the
screen. 'topini' should be called at initialization, and whenever
}
+void
+pdebug(char *fmt, ...)
+{
+ va_list ap;
+
+ if (!print_debug) return;
+
+ va_start(ap, fmt);
+ if (need_delay) delay ();
+ topmsg (1, "");
+ topmsg (2, "");
+ vtopmsg (3, fmt, ap);
+ need_delay = (fmt != 0);
+ va_end(ap);
+}
+
/* kermyt begin */
void