]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/memory-stream.hh
Run grand replace for 2015.
[lilypond.git] / flower / include / memory-stream.hh
index f01c5f4d43043b3e0d304602bbc0925bd2b5bcad..2cce5986b58a0f7e93c7b32c93c663bd4a120a1a 100644 (file)
@@ -1,19 +1,31 @@
 /*
-  memory-stream.hh -- declare Memory_out_stream
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
-  (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  LilyPond is free software: you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
 
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #ifndef MEMORY_STREAM_HH
 #define MEMORY_STREAM_HH
 
-#include <stdio.h>
+#include <cstdio>
 #include <unistd.h>
+using namespace std;
 
 #include "libc-extension.hh"
+#include "file-cookie.hh"
 
 class Memory_out_stream
 {
@@ -22,14 +34,14 @@ class Memory_out_stream
   int buffer_blocks_;
   FILE *file_;
 
-  static cookie_io_functions_t functions_;
+  static lily_cookie_io_functions_t functions_;
   static const int block_size_;
 
 public:
   static ssize_t reader (void *, char *, size_t);
   static ssize_t writer (void *, char const *, size_t);
-  static int seeker (void *, off64_t *, int);
-  static int cleaner (void *);
+  static ssize_t seeker (void *, off64_t *, size_t);
+  static ssize_t cleaner (void *);
 
   Memory_out_stream ();
   ~Memory_out_stream ();