From 58a2e7fd24e54e5717f9b3181026dfe2dbb41014 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 12 Sep 2005 20:38:05 +0000 Subject: 2005-09-12 Martin Hunt * io.c (ERR_STRING): Remove ansi codes. (WARN_STRING): Ditto. --- runtime/ChangeLog | 5 +++++ runtime/io.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/ChangeLog b/runtime/ChangeLog index e7798710..78dd3df7 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,5 +1,10 @@ 2005-09-12 Martin Hunt + * io.c (ERR_STRING): Remove ansi codes. + (WARN_STRING): Ditto. + +2005-09-12 Martin Hunt + * arith.c (_stp_div64): Check for division by 0 or -1 first. This simplifies things and removes the possibility of x86_64 trying LLONG_MIN/-1 and faulting. diff --git a/runtime/io.c b/runtime/io.c index 1e3d51e4..0e29b2f1 100644 --- a/runtime/io.c +++ b/runtime/io.c @@ -24,8 +24,8 @@ void _stp_string_cat_cstr (String str1, const char *str2); /** private buffer for _stp_log() */ #define STP_LOG_BUF_LEN 2047 -#define WARN_STRING "\033[33mWARNING: \033[0m" -#define ERR_STRING "\033[31mERROR: \033[0m" +#define WARN_STRING "WARNING: " +#define ERR_STRING "ERROR: " static char _stp_lbuf[NR_CPUS][STP_LOG_BUF_LEN + 1]; -- cgit