| 981 | } |
| 982 | |
| 983 | void GC_err_printf(const char *format, ...) |
| 984 | { |
| 985 | va_list args; |
| 986 | char buf[BUFSZ+1]; |
| 987 | |
| 988 | va_start(args, format); |
| 989 | buf[BUFSZ] = 0x15; |
| 990 | (void) vsnprintf(buf, BUFSZ, format, args); |
| 991 | va_end(args); |
| 992 | if (buf[BUFSZ] != 0x15) ABORT("GC_printf clobbered stack"); |
| 993 | if (WRITE(GC_stderr, buf, strlen(buf)) < 0) ABORT("write to stderr failed"); |
| 994 | } |
| 995 | |
| 996 | void GC_log_printf(const char *format, ...) |
| 997 | { |
no outgoing calls