Skip to content

Commit

Permalink
fix github's issue 76
Browse files Browse the repository at this point in the history
  • Loading branch information
tea committed Jan 12, 2011
1 parent 1a72db1 commit 68a1fcd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/EditorCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@ static wxString get_modifier_key_env() {
return modifiers;
}

inline bool Isalnum(wxChar c) {
#ifdef __WXMSW__
return ::IsCharAlphaNumeric(c) != 0;
#else
return wxIsalnum(c);
#endif
}

// Embedded class: Sort list based on bundle
class CompareActionBundle : public binary_function<size_t, size_t, bool> {
public:
Expand Down
7 changes: 6 additions & 1 deletion src/Strings.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#include "Strings.h"
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/tokenzr.h>

#include "Strings.h"
#include "Utf.h"

#ifdef __WXMSW__
Expand Down
7 changes: 7 additions & 0 deletions src/Strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@ WXDLLIMPEXP_BASE wxArrayString wxSplit(const wxString& str,
const wxChar sep,
const wxChar escape = wxT('\\'));

inline bool Isalnum(wxChar c) {
#ifdef __WXMSW__
return ::IsCharAlphaNumeric(c) != 0;
#else
return wxIsalnum(c);
#endif
}

#endif // __STRINGS_H__
6 changes: 6 additions & 0 deletions src/etests-win/test_hexDigit.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#include "stdafx.h"

#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include <limits.h>
#include "Strings.h"
#include <gtest/gtest.h>
Expand Down
3 changes: 1 addition & 2 deletions src/tm_syntaxhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
#include "Dispatcher.h"
#include "BundleMenu.h"
#include "tmStyle.h"
#include "Strings.h"

#include "IAppPaths.h"
#include "IEditorDoAction.h"

bool Isalnum(wxChar c); // defined in EditorCtrl.cpp

// tinyxml includes unused vars so it can't compile with Level 4
#ifdef __WXMSW__
#pragma warning(push, 1)
Expand Down

0 comments on commit 68a1fcd

Please sign in to comment.