aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-01-16 09:55:23 +0000
committernyamatongwe <unknown>2002-01-16 09:55:23 +0000
commitb51a2abbe480a382e4e68e0be0f890df4949f652 (patch)
treeeb52fe527c981585e2d06ac41967f0def0798939
parent93660c1b10407f26bd3bf58b2dc0102c9d936c4c (diff)
downloadscintilla-mirror-b51a2abbe480a382e4e68e0be0f890df4949f652.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 == '_');
}