]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/file-cookie.cc
Do generate PFB files explicitly, otherwise they are deleted as
[lilypond.git] / flower / file-cookie.cc
index b216b8a1e4f95c0941b90271a3cf35f051d44e67..bedb100a00b26b4ac246e7948dd4c3166795f8f2 100644 (file)
@@ -1,12 +1,13 @@
 
-#include <assert.h>
+#include <cassert>
 #include <cstdio>
+using namespace std;
 
 #include "memory-stream.hh"
 
 extern "C" {
 
-  static bool
+  bool
   is_memory_stream (void *foo)
   {
     Memory_out_stream *cookie = (Memory_out_stream *) foo;
@@ -14,12 +15,10 @@ extern "C" {
   }
 
   void *
-  lily_fopencookie (void *cookie, char const *modes,
-                   lily_cookie_io_functions_t io_funcs)
+  lily_fopencookie (void *cookie,
+                   char const * /* modes */,
+                   lily_cookie_io_functions_t /* io_funcs */)
   {
-    (void) cookie;
-    (void) modes;
-    (void) io_funcs;
     assert (is_memory_stream (cookie));
     return (FILE *) cookie;
   }
@@ -54,5 +53,4 @@ extern "C" {
     buf[0] = (char) c;
     return Memory_out_stream::writer (file, buf, 1);
   }
-
 } /* extern C */