Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/bin Modified Files: edje_cc_handlers.c Log Message: * add efreet garbage data check * remove printfs that clutter output * add efreet file type check - only parse regular files * chekc mmap returns correctly for MAP_FAILED results * edje has some stubs for adding script-only objecvts - but nothing useful right now =================================================================== RCS file: /cvs/e/e17/libs/edje/src/bin/edje_cc_handlers.c,v retrieving revision 1.84 retrieving revision 1.85 diff -u -3 -r1.84 -r1.85 --- edje_cc_handlers.c 1 Apr 2008 21:33:17 -0000 1.84 +++ edje_cc_handlers.c 29 May 2008 02:00:03 -0000 1.85 @@ -70,6 +70,7 @@ static void ob_collections_group(void); static void st_collections_group_name(void); +static void st_collections_group_script_only(void); static void st_collections_group_alias(void); static void st_collections_group_min(void); static void st_collections_group_max(void); @@ -192,6 +193,7 @@ {"collections.color_classes.color_class.color2", st_color_class_color2}, /* dup */ {"collections.color_classes.color_class.color3", st_color_class_color3}, /* dup */ {"collections.group.name", st_collections_group_name}, + {"collections.group.script_only", st_collections_group_script_only}, {"collections.group.alias", st_collections_group_alias}, {"collections.group.min", st_collections_group_min}, {"collections.group.max", st_collections_group_max}, @@ -763,7 +765,7 @@ } data = mmap(NULL, buf.st_size, PROT_READ, MAP_SHARED, fd, 0); - if (!data) + if (data == MAP_FAILED) { fprintf(stderr, "%s: Error. %s:%i when mapping file \"%s\": \"%s\"\n", progname, file_in, line, filename, strerror(errno)); @@ -1223,6 +1225,28 @@ de = evas_list_data(evas_list_last(edje_file->collection_dir->entries)); de->entry = parse_str(0); +} + +/** + @page edcref + @property + script_only + @parameters + [on/off] + @effect + The flag (on/off) as to if this group is defined ONLY by script + callbacks such as init(), resize() and shutdown() + @endproperty +*/ +static void +st_collections_group_script_only(void) +{ + Edje_Part_Collection *pc; + + check_arg_count(1); + + pc = evas_list_data(evas_list_last(edje_collections)); + pc->script_only = parse_bool(0); } /** ------------------------------------------------------------------------- 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