On Sun, Jan 29, 2012 at 10:57 AM, Enlightenment SVN <no-re...@enlightenment.org> wrote: > Log: > Eina test model: Get offsets and sizes properly. > > Make the tests work on multiple platforms and also let people who read the > code see how to do it properly. > > Author: tasn > Date: 2012-01-29 04:57:36 -0800 (Sun, 29 Jan 2012) > New Revision: 67584 > Trac: http://trac.enlightenment.org/e/changeset/67584 > > Modified: > trunk/eina/src/tests/eina_test_model.c > > Modified: trunk/eina/src/tests/eina_test_model.c > =================================================================== > --- trunk/eina/src/tests/eina_test_model.c 2012-01-29 11:55:29 UTC (rev > 67583) > +++ trunk/eina/src/tests/eina_test_model.c 2012-01-29 12:57:36 UTC (rev > 67584) > @@ -748,13 +748,13 @@ > char c; > }; > const Eina_Value_Struct_Member myst_members[] = { > - {"i", EINA_VALUE_TYPE_INT, 0}, > - {"c", EINA_VALUE_TYPE_CHAR, 4}, > - {NULL, NULL, 0} > + {"i", EINA_VALUE_TYPE_INT, offsetof(struct myst, i)}, > + {"c", EINA_VALUE_TYPE_CHAR, offsetof(struct myst, c)} > }; > const Eina_Value_Struct_Desc myst_desc = { > EINA_VALUE_STRUCT_DESC_VERSION, > - NULL, myst_members, 2, sizeof(struct myst) > + NULL, myst_members, sizeof(myst_members) / sizeof(myst_members[0]), > + sizeof(struct myst) > };
ooops! Forgot, we should make it a macro. Could you do it? Out of hacking computer until Monday afternoon. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel