source file of the GNU LilyPond music typesetter
- (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2005--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
-#include <assert.h>
-#include <string.h>
-#include <stdlib.h>
+#include <cassert>
+#include <cstring>
+#include <cstdlib>
+using namespace std;
#include "memory-stream.hh"
return size_;
}
-const char *
+char const *
Memory_out_stream::get_string () const
{
return buffer_;
ssize_t
Memory_out_stream::writer (void *cookie,
- const char *buffer,
+ char const *buffer,
size_t size)
{
Memory_out_stream *stream = (Memory_out_stream *) cookie;