Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Revision:
3:f151d08d335c
Parent:
2:1df0b61d3b5a
diff -r 1df0b61d3b5a -r f151d08d335c libs/AppendFileStream.h
--- a/libs/AppendFileStream.h	Fri Feb 28 18:52:52 2014 -0800
+++ b/libs/AppendFileStream.h	Sun Mar 02 06:33:08 2014 +0000
@@ -2,17 +2,17 @@
 #define _APPENDFILESTREAM_H_
 
 #include "StreamOutput.h"
-#include "string.h"
-#include "stdlib.h"
+#include <string.h>
+#include <stdlib.h>
 
 class AppendFileStream : public StreamOutput {
     public:
-        AppendFileStream(const char *filename) { fn= strdup(filename); }
-        virtual ~AppendFileStream(){ free(fn); }
+        AppendFileStream(const char *filename) { fn= filename; }
+        virtual ~AppendFileStream(){}
         int puts(const char*);
 
     private:
-        char *fn;
+        const char *fn;
 };
 
 #endif