aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-09-29 16:09:34 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-09-29 16:09:34 +1000
commitd880e3f614269ae45daad0b97d6646b9135649a9 (patch)
treeb15ea1555f70fef8fbd7e0151290b6723ec1b42c
parent7597f614ea4c81b9ef88ffaaeaf81bda6984d920 (diff)
downloadscintilla-mirror-d880e3f614269ae45daad0b97d6646b9135649a9.tar.gz
Mark local functions in lexers as static.
-rw-r--r--lexers/LexECL.cxx2
-rw-r--r--lexers/LexMySQL.cxx2
-rw-r--r--lexers/LexPB.cxx2
-rw-r--r--lexers/LexSML.cxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/lexers/LexECL.cxx b/lexers/LexECL.cxx
index 32dc09b43..7c49be1be 100644
--- a/lexers/LexECL.cxx
+++ b/lexers/LexECL.cxx
@@ -388,7 +388,7 @@ static bool IsStreamCommentStyle(int style) {
style == SCE_ECL_COMMENTDOCKEYWORDERROR;
}
-bool MatchNoCase(Accessor & styler, Sci_PositionU & pos, const char *s) {
+static bool MatchNoCase(Accessor & styler, Sci_PositionU & pos, const char *s) {
Sci_Position i=0;
for (; *s; i++) {
char compare_char = tolower(*s);
diff --git a/lexers/LexMySQL.cxx b/lexers/LexMySQL.cxx
index 951c3e3c3..4609619f4 100644
--- a/lexers/LexMySQL.cxx
+++ b/lexers/LexMySQL.cxx
@@ -331,7 +331,7 @@ static bool IsStreamCommentStyle(int style)
* Code copied from StyleContext and modified to work here. Should go into Accessor as a
* companion to Match()...
*/
-bool MatchIgnoreCase(Accessor &styler, Sci_Position currentPos, const char *s)
+static bool MatchIgnoreCase(Accessor &styler, Sci_Position currentPos, const char *s)
{
for (Sci_Position n = 0; *s; n++)
{
diff --git a/lexers/LexPB.cxx b/lexers/LexPB.cxx
index df9689b3c..49b8509d0 100644
--- a/lexers/LexPB.cxx
+++ b/lexers/LexPB.cxx
@@ -70,7 +70,7 @@ static inline bool IsAWordStart(const int ch)
return (ch < 0x80) && (isalnum(ch) || ch == '_');
}
-bool MatchUpperCase(Accessor &styler, Sci_Position pos, const char *s) //Same as styler.Match() but uppercase comparison (a-z,A-Z and space only)
+static bool MatchUpperCase(Accessor &styler, Sci_Position pos, const char *s) //Same as styler.Match() but uppercase comparison (a-z,A-Z and space only)
{
char ch;
for (Sci_Position i=0; *s; i++)
diff --git a/lexers/LexSML.cxx b/lexers/LexSML.cxx
index c380ac18b..76cfde061 100644
--- a/lexers/LexSML.cxx
+++ b/lexers/LexSML.cxx
@@ -33,7 +33,7 @@ inline int issmld(int c) {return isdigit(c) || c == '_';}
using namespace Scintilla;
#endif
-void ColouriseSMLDoc(
+static void ColouriseSMLDoc(
Sci_PositionU startPos, Sci_Position length,
int initStyle,
WordList *keywordlists[],
@@ -205,7 +205,7 @@ void ColouriseSMLDoc(
sc.Complete();
}
-void FoldSMLDoc(
+static void FoldSMLDoc(
Sci_PositionU, Sci_Position,
int,
WordList *[],