Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_font_load.c 


Log Message:
Add const: evas_hash.c

As agreed on IRC, evas_hash_foreach() now takes const, to make clear
that hash shouldn't be changed. If one wants to change he must do a
cast and return 0.  However this will require users to be updated in
applications.


===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_font_load.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -3 -r1.41 -r1.42
--- evas_font_load.c    5 May 2007 10:30:11 -0000       1.41
+++ evas_font_load.c    8 Feb 2008 19:55:03 -0000       1.42
@@ -11,8 +11,8 @@
 static Evas_Object_List * fonts_src = NULL;
 static Evas_Object_List * fonts = NULL;
 
-static Evas_Bool font_modify_cache_cb(Evas_Hash *hash, const char *key, void 
*data, void *fdata);
-static Evas_Bool font_flush_free_glyph_cb(Evas_Hash *hash, const char *key, 
void *data, void *fdata);
+static Evas_Bool font_modify_cache_cb(const Evas_Hash *hash, const char *key, 
void *data, void *fdata);
+static Evas_Bool font_flush_free_glyph_cb(const Evas_Hash *hash, const char 
*key, void *data, void *fdata);
 
 EAPI RGBA_Font_Source *
 evas_common_font_source_memory_load(const char *name, const void *data, int 
data_size)
@@ -476,7 +476,7 @@
 }
 
 static Evas_Bool
-font_modify_cache_cb(Evas_Hash *hash, const char *key, void *data, void *fdata)
+font_modify_cache_cb(const Evas_Hash *hash, const char *key, void *data, void 
*fdata)
 {
    int *dir;
    RGBA_Font_Glyph *fg;
@@ -527,7 +527,7 @@
 }
 
 static Evas_Bool
-font_flush_free_glyph_cb(Evas_Hash *hash, const char *key, void *data, void 
*fdata)
+font_flush_free_glyph_cb(const Evas_Hash *hash, const char *key, void *data, 
void *fdata)
 {
    RGBA_Font_Glyph *fg;
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to