aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-01-16 09:55:23 +0000
committernyamatongwe <devnull@localhost>2002-01-16 09:55:23 +0000
commitd226462faa1dc7bb77af8723de9fdc7335d176bf (patch)
treeeb52fe527c981585e2d06ac41967f0def0798939
parentcac2d7ef4ec04021d201bfd3d0a831aca0686f82 (diff)
downloadscintilla-mirror-d226462faa1dc7bb77af8723de9fdc7335d176bf.tar.gz
Fixed what looks like a gcc compiler bug returning true for ':' when
function declared as inline rather than static inline.
-rw-r--r--src/LexCPP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index 06da84341..74ac81513 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -24,7 +24,7 @@ static bool IsOKBeforeRE(const int ch) {
return (ch == '(') || (ch == '=') || (ch == ',');
}
-inline bool IsAWordChar(const int ch) {
+static inline bool IsAWordChar(const int ch) {
return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_');
}