From 9aeef3f3d6439e2b1c15c73b67f61489640479fd Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 10 Jul 2001 15:59:25 +0000 Subject: [PATCH] rename qfont_table to sys_char_map and make it global (and constant) --- include/QF/sys.h | 2 ++ libs/util/sys.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/QF/sys.h b/include/QF/sys.h index 259226256..88c7b319d 100644 --- a/include/QF/sys.h +++ b/include/QF/sys.h @@ -35,6 +35,8 @@ extern struct cvar_s *sys_nostdout; +extern const char sys_char_map[256]; + int Sys_FileTime (const char *path); void Sys_mkdir (const char *path); diff --git a/libs/util/sys.c b/libs/util/sys.c index 20779c558..6f4dd5e95 100644 --- a/libs/util/sys.c +++ b/libs/util/sys.c @@ -66,7 +66,7 @@ cvar_t *sys_nostdout; static sys_printf_t sys_printf_function = Sys_StdPrintf; /* The translation table between the graphical font and plain ASCII --KB */ -static char qfont_table[256] = { +const char sys_char_map[256] = { '\0', '#', '#', '#', '#', '.', '#', '#', '#', 9, 10, '#', ' ', 13, '.', '.', '[', ']', '0', '1', '2', '3', '4', '5', @@ -173,7 +173,7 @@ Sys_StdPrintf (const char *fmt, va_list args) /* translate to ASCII instead of printing [xx] --KB */ for (p = (unsigned char *) msg; *p; p++) - putc (qfont_table[*p], stdout); + putc (sys_char_map[*p], stdout); fflush (stdout); }