Let git ignore more visual studio files.
[cparser] / wrappergen / write_caml.c
index c226c3d..af3e2fb 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of cparser.
- * Copyright (C) 2007-2008 Matthias Braun <matze@braunis.de>
+ * Copyright (C) 2007-2009 Matthias Braun <matze@braunis.de>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -29,6 +29,7 @@
 #include "entity_t.h"
 #include "type.h"
 #include "adt/error.h"
+#include "printer.h"
 
 static const scope_t *global_scope;
 static FILE          *out;
@@ -228,7 +229,7 @@ void write_caml_decls(FILE *output, const translation_unit_t *unit)
        out          = output;
        global_scope = &unit->scope;
 
-       ast_set_output(out);
+       print_to_file(out);
        fprintf(out, "(* WARNING: Automatically generated file - chaning is useless *)\n");
 
        /* write functions */