Enlightenment CVS committal Author : raster Project : e17 Module : libs/efreet
Dir : e17/libs/efreet/src/bin Modified Files: ef_ini.c main.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/efreet/src/bin/ef_ini.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ef_ini.c 7 May 2008 03:04:12 -0000 1.4 +++ ef_ini.c 29 May 2008 02:00:04 -0000 1.5 @@ -155,3 +155,20 @@ if (ini) efreet_ini_free(ini); return ret; } + +int +ef_cb_ini_garbage(void) +{ + Efreet_Ini *ini; + int ret = 1; + + ini = efreet_ini_new(PACKAGE_DATA_DIR"/test/test_garbage"); + if (!ini) + { + printf("Ini failed to parse.\n"); + return 0; + } + if (ini->data) ret = 0; + efreet_ini_free(ini); + return ret; +} =================================================================== RCS file: /cvs/e/e17/libs/efreet/src/bin/main.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- main.c 4 Nov 2007 10:16:02 -0000 1.12 +++ main.c 29 May 2008 02:00:04 -0000 1.13 @@ -16,6 +16,7 @@ int ef_cb_efreet_icon_match(void); int ef_cb_ini_parse(void); int ef_cb_ini_long_line(void); +int ef_cb_ini_garbage(void); #if DEFAULT_VISIBILITY int ef_cb_locale(void); #endif @@ -53,6 +54,7 @@ {"Icon Matching", ef_cb_efreet_icon_match}, {"INI Parsing", ef_cb_ini_parse}, {"INI Long Line Parsing", ef_cb_ini_long_line}, + {"INI Garbage Parsing", ef_cb_ini_garbage}, #if DEFAULT_VISIBILITY {"Locale Parsing", ef_cb_locale}, #endif ------------------------------------------------------------------------- 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