stefan pushed a commit to branch master.

http://git.enlightenment.org/core/evas_generic_loaders.git/commit/?id=194a4e90a7f2355700ba3f75d05322ecdb85ca65

commit 194a4e90a7f2355700ba3f75d05322ecdb85ca65
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Tue Nov 10 15:48:09 2015 +0100

    xcf: mark functions static if possible
---
 src/bin/xcf/main.c       |  2 +-
 src/bin/xcf/pixelfuncs.c | 13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/bin/xcf/main.c b/src/bin/xcf/main.c
index 7b798ca..1cef05b 100644
--- a/src/bin/xcf/main.c
+++ b/src/bin/xcf/main.c
@@ -448,7 +448,7 @@ extern void combine_pixels_diss (DATA8* src, int src_w, int 
src_h, DATA8* dest,
 /* 
---------------------------------------------------------------------------- 
globals ------------ */
 
 /* This makes using the Gimp sources easier */
-struct _GimpImage * image = &_image;
+static struct _GimpImage * image = &_image;
 
 /* 
------------------------------------------------------------------------------- 
code ------------ */
 
diff --git a/src/bin/xcf/pixelfuncs.c b/src/bin/xcf/pixelfuncs.c
index acddad3..67d66d8 100644
--- a/src/bin/xcf/pixelfuncs.c
+++ b/src/bin/xcf/pixelfuncs.c
@@ -36,7 +36,7 @@
 #define INT_MULT(a,b,t)  ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))
 #define LINEAR(x,y,w) ((w*y + x)*4)
 
-void
+static void
 rgb_to_hls (DATA8 *red, DATA8 *green, DATA8 *blue)
 {
   int    r, g, b;
@@ -96,7 +96,7 @@ rgb_to_hls (DATA8 *red, DATA8 *green, DATA8 *blue)
 }
 
 
-DATA8
+static DATA8
 gimp_hls_value (double n1, double n2, double hue)
 {
   double value;
@@ -118,7 +118,7 @@ gimp_hls_value (double n1, double n2, double hue)
 }
 
 
-void
+static void
 hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
 {
   double h, l, s;
@@ -152,7 +152,7 @@ hls_to_rgb (DATA8 *hue, DATA8 *lightness, DATA8 *saturation)
 }
 
 
-void
+static void
 rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
 {
   int    r, g, b;
@@ -208,7 +208,7 @@ rgb_to_hsv (DATA8 *red, DATA8 *green, DATA8 *blue)
   *blue  = v;
 }
 
-void
+static void
 hsv_to_rgb (DATA8 *hue, DATA8 *saturation, DATA8 *value)
 {
   double h, s, v;
@@ -273,6 +273,7 @@ hsv_to_rgb (DATA8 *hue, DATA8 *saturation, DATA8 *value)
 }
 
 /* translate negative destinations */
+static
 void _clip(int * src_tl_x, int * src_tl_y,
          int * src_br_x, int * src_br_y,
          int * dest_x, int * dest_y,
@@ -616,7 +617,7 @@ combine_pixels_overlay (DATA8* src, int src_w, int src_h, 
DATA8* dest, int dest_
 }
 
 
-void
+static void
 combine_pixels_hsv (DATA8* src, int src_w, int src_h, DATA8* dest, int dest_w, 
int dest_h, int dest_x, int dest_y, int mode)
 {
   int x, y, s_idx, d_idx;

-- 


Reply via email to