aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-09-29 16:08:52 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-09-29 16:08:52 +1000
commit78855ccfe1cda5f920bfa981b4199f94e4c1b789 (patch)
treee91ed0ba58fa7eaa26728c00747775f19f5150c1
parent5a602c005ebd25e6e678ceaff4ca6f0a912be2fa (diff)
downloadscintilla-mirror-78855ccfe1cda5f920bfa981b4199f94e4c1b789.tar.gz
Mark local functions as static.
-rw-r--r--cocoa/PlatCocoa.mm4
-rw-r--r--src/Document.cxx2
-rw-r--r--src/EditView.cxx6
-rw-r--r--src/RESearch.cxx2
4 files changed, 7 insertions, 7 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 1d62385cc..ebf35d210 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -480,14 +480,14 @@ void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back)
//--------------------------------------------------------------------------------------------------
-void drawImageRefCallback(CGImageRef pattern, CGContextRef gc)
+static void drawImageRefCallback(CGImageRef pattern, CGContextRef gc)
{
CGContextDrawImage(gc, CGRectMake(0, 0, CGImageGetWidth(pattern), CGImageGetHeight(pattern)), pattern);
}
//--------------------------------------------------------------------------------------------------
-void releaseImageRefCallback(CGImageRef pattern)
+static void releaseImageRefCallback(CGImageRef pattern)
{
CGImageRelease(pattern);
}
diff --git a/src/Document.cxx b/src/Document.cxx
index 956664103..9201e162f 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -2141,7 +2141,7 @@ int Document::WordPartRight(int pos) {
return pos;
}
-bool IsLineEndChar(char c) {
+static bool IsLineEndChar(char c) {
return (c == '\n' || c == '\r');
}
diff --git a/src/EditView.cxx b/src/EditView.cxx
index f89e4e141..1d040c81e 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -291,7 +291,7 @@ void EditView::AllocateGraphics(const ViewStyle &vsDraw) {
pixmapIndentGuideHighlight = Surface::Allocate(vsDraw.technology);
}
-const char *ControlCharacterString(unsigned char ch) {
+static const char *ControlCharacterString(unsigned char ch) {
const char *reps[] = {
"NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL",
"BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI",
@@ -305,7 +305,7 @@ const char *ControlCharacterString(unsigned char ch) {
}
}
-void DrawTabArrow(Surface *surface, PRectangle rcTab, int ymid) {
+static void DrawTabArrow(Surface *surface, PRectangle rcTab, int ymid) {
int ydiff = static_cast<int>(rcTab.bottom - rcTab.top) / 2;
int xhead = static_cast<int>(rcTab.right) - 1 - ydiff;
if (xhead <= rcTab.left) {
@@ -1935,7 +1935,7 @@ void EditView::PaintText(Surface *surfaceWindow, const EditModel &model, PRectan
// Space (3 space characters) between line numbers and text when printing.
#define lineNumberPrintSpace " "
-ColourDesired InvertedLight(ColourDesired orig) {
+static ColourDesired InvertedLight(ColourDesired orig) {
unsigned int r = orig.GetRed();
unsigned int g = orig.GetGreen();
unsigned int b = orig.GetBlue();
diff --git a/src/RESearch.cxx b/src/RESearch.cxx
index f8d9c6226..4e290309c 100644
--- a/src/RESearch.cxx
+++ b/src/RESearch.cxx
@@ -305,7 +305,7 @@ void RESearch::ChSetWithCase(unsigned char c, bool caseSensitive) {
}
}
-unsigned char escapeValue(unsigned char ch) {
+static unsigned char escapeValue(unsigned char ch) {
switch (ch) {
case 'a': return '\a';
case 'b': return '\b';