X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5432628520a854ec0458eec88236cd085be3ce50..600ea9da947140e7dedc2c6b101cfd511f117ae6:/include/wx/wxexpr.h diff --git a/include/wx/wxexpr.h b/include/wx/wxexpr.h index 756cf63915..18b53d0679 100644 --- a/include/wx/wxexpr.h +++ b/include/wx/wxexpr.h @@ -21,8 +21,6 @@ #include "wx/defs.h" #include "wx/string.h" -#include "wx/ioswrap.h" - #include "wx/list.h" #include "wx/hash.h" @@ -114,7 +112,7 @@ class WXDLLEXPORT wxExpr return value.word; else if (type == wxExprString) return wxString(value.string); - else return wxString(_T("")); + else return wxString(wxT("")); } inline wxString StringValue(void) const { @@ -122,7 +120,7 @@ class WXDLLEXPORT wxExpr return wxString(value.string); else if (type == wxExprWord) return wxString(value.word); - else return wxString(_T("")); + else return wxString(wxT("")); } // Get nth arg of clause (starting from 1) @@ -141,9 +139,8 @@ class WXDLLEXPORT wxExpr wxExpr *AttributeValue(const wxString& word) const; // Use only for a clause wxString Functor(void) const; // Only for a clause bool IsFunctor(const wxString& s) const; // Only for a clause - void WriteClause(ostream& stream); // Write this expression as a top-level clause - void WriteExpr(ostream& stream); // Write as any other subexpression - void WriteLispExpr(ostream& stream); + void WriteClause(FILE* stream); // Write this expression as a top-level clause + void WriteExpr(FILE* stream); // Write as any other subexpression // Append an expression to a list void Append(wxExpr *expr); @@ -244,13 +241,12 @@ public: bool Read(const wxString& filename); bool ReadFromString(const wxString& buffer); bool Write(const wxString& fileName); - bool Write(ostream& stream); - void WriteLisp(ostream& stream); + bool Write(FILE* stream); // Compatibility inline bool ReadProlog(wxChar *filename) { return Read(wxString(filename)); } inline bool ReadPrologFromString(char *buffer) { return ReadFromString(wxString(buffer)); } - inline void WriteProlog(ostream& stream) { Write(stream); } + inline void WriteProlog(FILE* stream) { Write(stream); } private: DECLARE_DYNAMIC_CLASS(wxExprDatabase)