font_main.c-imlib_hash_size-mv.patch

        imlib_hash_size called before defined/declared.  Move up 2 function 
        since it was only used by the 2 functions above it.

color_helpers.h-missing_h.patch

        __imlib_*hsv* (in color_helpers.c) use abs, round and floor. 
        Added needed headers.
Index: e17/libs/imlib2/src/lib/font_main.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/font_main.c,v
retrieving revision 1.2
diff -u -r1.2 font_main.c
--- e17/libs/imlib2/src/lib/font_main.c	15 Jan 2005 07:55:55 -0000	1.2
+++ e17/libs/imlib2/src/lib/font_main.c	15 Mar 2005 04:39:25 -0000
@@ -345,6 +345,14 @@
    return NULL;
 }
 
+int
+imlib_hash_size(Imlib_Hash * hash)
+{
+   if (!hash)
+      return 0;
+   return 256;
+}
+
 void
 imlib_hash_free(Imlib_Hash * hash)
 {
@@ -398,14 +406,6 @@
 }
 
 int
-imlib_hash_size(Imlib_Hash * hash)
-{
-   if (!hash)
-      return 0;
-   return 256;
-}
-
-int
 imlib_list_alloc_error(void)
 {
    return _imlib_list_alloc_error;
Index: e17/libs/imlib2/src/lib/color_helpers.h
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/color_helpers.h,v
retrieving revision 1.1
diff -u -r1.1 color_helpers.h
--- e17/libs/imlib2/src/lib/color_helpers.h	1 Nov 2004 09:45:30 -0000	1.1
+++ e17/libs/imlib2/src/lib/color_helpers.h	15 Mar 2005 04:28:07 -0000
@@ -1,6 +1,10 @@
 #ifndef __COLOR_HELPERS 
 #define __COLOR_HELPERS 1
 
+#include <stdlib.h>  /* abs */
+#include <math.h>  /* round, floor */
+
+
 void        __imlib_rgb_to_hsv(int r, int g, int b, float *hue, float *saturation, float *value);
 void        __imlib_hsv_to_rgb(float hue, float saturation, float value, int *r, int *g, int *b);
 void        __imlib_rgb_to_hls(int r, int g, int b, float *hue, float *lightness, float *saturation);

Reply via email to