X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12ed6eb56f9bc229e6ed6ee5be8ba20840de4207..d7a15103f7307a27c35a0c1cad095cda50d64aea:/src/common/wxexpr.cpp?ds=sidebyside diff --git a/src/common/wxexpr.cpp b/src/common/wxexpr.cpp index 926cae3001..39687462f1 100644 --- a/src/common/wxexpr.cpp +++ b/src/common/wxexpr.cpp @@ -20,7 +20,15 @@ #pragma hdrstop #endif +#if wxUSE_IOSTREAMH #include +#else +#include +# ifdef _MSC_VER + using namespace std; +# endif +#endif + #include #include #include @@ -34,11 +42,10 @@ extern "C" void add_expr(char *); extern "C" void LexFromFile(FILE *fd); extern "C" void LexFromString(char *buf); + wxExprDatabase *thewxExprDatabase = NULL; wxExprErrorHandler currentwxExprErrorHandler; -IMPLEMENT_DYNAMIC_CLASS(wxExprDatabase, wxList) - wxExpr::wxExpr(const wxString& functor) { type = wxExprList; @@ -843,7 +850,14 @@ void wxExpr::WriteLispExpr(ostream& stream) } } -// wxExpr 'database' (list of expressions) +/* + * wxExpr 'database' (list of expressions) + */ + +#if !USE_SHARED_LIBRARIES +IMPLEMENT_DYNAMIC_CLASS(wxExprDatabase, wxList) +#endif + wxExprDatabase::wxExprDatabase(wxExprErrorHandler handler) { position = NULL; @@ -1230,7 +1244,7 @@ void process_command(char * cexpr) add_expr(expr); } -void syntax_error(char *s) +void syntax_error(char *WXUNUSED(s)) { if (currentwxExprErrorHandler) (void)(*(currentwxExprErrorHandler))(WXEXPR_ERROR_SYNTAX, "syntax error");