From abedf3db3774b54ee4ed227e3ae69e55fb0ff76c Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 26 May 2005 07:43:25 +0000 Subject: 2005-05-26 Martin Hunt * current.c (_stp_sprint_regs): Implement for i386. * sym.c (_stp_symbol_sprint): Check name before trying to print it. (_stp_symbol_print): Change to macro that calls _stp_symbol_sprint(). --- runtime/string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/string.c') diff --git a/runtime/string.c b/runtime/string.c index 16a20dfb..f079bf89 100644 --- a/runtime/string.c +++ b/runtime/string.c @@ -34,7 +34,7 @@ static struct string _stp_string[STP_NUM_STRINGS][NR_CPUS]; typedef struct string *String; /* set up a special stdout string */ -struct string __stp_stdout; +static struct string __stp_stdout; String _stp_stdout = &__stp_stdout; void _stp_vsprintf (String str, const char *fmt, va_list args); @@ -45,6 +45,7 @@ void _stp_vsprintf (String str, const char *fmt, va_list args); * @param num Number of the preallocated String to use. * #STP_NUM_STRINGS are statically allocated for our use. The * translator (or author) should be sure to grab a free one. + * @returns An empty String. */ String _stp_string_init (int num) -- cgit