add a log_str() function and allow '%?' in fmt strings to use it

This commit is contained in:
Niko Matsakis
2012-01-11 09:09:46 -08:00
parent f3b867fd04
commit c68345e57e
7 changed files with 38 additions and 1 deletions

View File

@@ -191,7 +191,7 @@ inline void reserve_vec(rust_task* task, rust_vec** vpp, size_t size) {
typedef rust_vec rust_str;
inline rust_str *
make_str(rust_kernel* kernel, char* c, size_t strlen, const char* name) {
make_str(rust_kernel* kernel, const char* c, size_t strlen, const char* name) {
size_t str_fill = strlen + 1;
size_t str_alloc = str_fill;
rust_str *str = (rust_str *)