Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/bin Modified Files: edje_cc_handlers.c Log Message: no no. do it this way! :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_handlers.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- edje_cc_handlers.c 31 Aug 2004 04:00:13 -0000 1.35 +++ edje_cc_handlers.c 13 Sep 2004 03:23:29 -0000 1.36 @@ -7,7 +7,6 @@ static void ob_fonts(void); -static void ob_fonts_font(void); static void st_fonts_font(void); static void st_data_item(void); @@ -158,7 +157,7 @@ {"images", ob_images}, {"images.image", ob_images_image}, {"fonts", ob_fonts}, - {"fonts.font", ob_fonts_font}, + {"fonts.font", NULL}, {"data", NULL}, {"data.item", NULL}, {"collections", ob_collections}, @@ -318,18 +317,6 @@ } static void -ob_fonts_font(void) -{ - Edje_Font_Directory_Entry *fnt; - - fnt = mem_alloc(SZ(Edje_Font_Directory_Entry)); - if (edje_file->font_dir) - edje_file->font_dir->entries = evas_list_append(edje_file->font_dir->entries, fnt); - else - printf("hmm, no font dir?\n"); -} - -static void st_fonts_font(void) { Font *fn; @@ -341,10 +328,11 @@ fonts = evas_list_append(fonts, fn); if (edje_file->font_dir) - { - fnt = evas_list_data(evas_list_last(edje_file->font_dir->entries)); - if(fnt) fnt->entry = mem_strdup(fn->name); - } + { + fnt = mem_alloc(SZ(Edje_Font_Directory_Entry)); + edje_file->font_dir->entries = evas_list_append(edje_file->font_dir->entries, fnt); + fnt->entry = mem_strdup(fn->name); + } else fprintf(stderr, "%s: Error. parse error %s:%i. Trying to a font outside of a fonts block?\n", progname, file_in, line); } ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs