From 54a6b61c3813e2468388d33f65800f57c9712ebf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 11 Jun 2000 07:27:08 +0000 Subject: Made IsControlCharacter inline as Hans says this speeds it up. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index e13fe1a2e..c6c1e8424 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -185,7 +185,7 @@ int Editor::MaxScrollPos() { return retVal; } -bool IsControlCharacter(char ch) { +static inline bool IsControlCharacter(char ch) { // iscntrl returns true for lots of chars > 127 which are displayable return ch >= 0 && ch < ' '; } -- cgit v1.2.3