summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-12 22:48:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-12 22:48:15 -0800
commit673d5f3b84d276fb29233d6a3f485ccfe330be13 (patch)
treeb1447ce861394a8b5873589ecb03659f2c5506fe /gc.c
parent8367c03ef07473cff4f1b6f0645e1ce9ae17c94c (diff)
downloadtxr-673d5f3b84d276fb29233d6a3f485ccfe330be13.tar.gz
txr-673d5f3b84d276fb29233d6a3f485ccfe330be13.tar.bz2
txr-673d5f3b84d276fb29233d6a3f485ccfe330be13.zip
Continuing wchar_t conversion. Making sure all stdio calls
use wide character functions so that there is no illicit mixing. (But the goal is to replace this usage with txr streams).
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 40291021..212a8946 100644
--- a/gc.c
+++ b/gc.c
@@ -30,6 +30,7 @@
#include <assert.h>
#include <setjmp.h>
#include <dirent.h>
+#include <wchar.h>
#include "lib.h"
#include "stream.h"
#include "hash.h"
@@ -321,9 +322,9 @@ static void sweep(void)
continue;
if (0 && dbg) {
- fprintf(stderr, "%ls: finalizing: ", progname);
+ fwprintf(stderr, L"%ls: finalizing: ", progname);
obj_print(block, std_error);
- putc('\n', stderr);
+ putwc('\n', stderr);
}
finalize(block);
block->t.type |= FREE;