Enlightenment CVS committal Author : barbieri Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas Modified Files: evas_font_dir.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/canvas/evas_font_dir.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- evas_font_dir.c 5 May 2007 10:30:11 -0000 1.27 +++ evas_font_dir.c 8 Feb 2008 19:55:02 -0000 1.28 @@ -24,7 +24,7 @@ }; /* private methods for font dir cache */ -static Evas_Bool font_cache_dir_free(Evas_Hash *hash, const char *key, void *data, void *fdata); +static Evas_Bool font_cache_dir_free(const Evas_Hash *hash, const char *key, void *data, void *fdata); static Evas_Font_Dir *object_text_font_cache_dir_update(char *dir, Evas_Font_Dir *fd); static Evas_Font *object_text_font_cache_font_find_x(Evas_Font_Dir *fd, char *font); static Evas_Font *object_text_font_cache_font_find_file(Evas_Font_Dir *fd, char *font); @@ -439,7 +439,7 @@ /* private stuff */ static Evas_Bool -font_cache_dir_free(Evas_Hash *hash, const char *key, void *data, void *fdata) +font_cache_dir_free(const Evas_Hash *hash, const char *key, void *data, void *fdata) { object_text_font_cache_dir_del((char *) key, data); return 1; ------------------------------------------------------------------------- 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