On Mon, 21 Dec 2009, Enlightenment SVN wrote:
> Log:
> * eet_node: Progressively move all dump code in eet_node.
>
> Author: cedric
> Date: 2009-12-21 07:46:56 -0800 (Mon, 21 Dec 2009)
> New Revision: 44628
>
> Modified:
> trunk/eet/src/lib/eet_node.c
hmmm, ChangeLog is not modified :-)
Vincent
>
> Modified: trunk/eet/src/lib/eet_node.c
> ===================================================================
> --- trunk/eet/src/lib/eet_node.c 2009-12-21 13:27:58 UTC (rev 44627)
> +++ trunk/eet/src/lib/eet_node.c 2009-12-21 15:46:56 UTC (rev 44628)
> @@ -361,6 +361,31 @@
> dumpfunc(dumpdata, ";\n");
> }
>
> +static void
> +eet_node_dump_group_start(int level, void (*dumpfunc) (void *data, const
> char *str), void *dumpdata,
> + int group_type, const char *name)
> +{
> + int chnk_type;
> +
> + chnk_type = (group_type >= EET_G_UNKNOWN && group_type <= EET_G_HASH) ?
> + group_type : EET_G_LAST;
> +
> + eet_node_dump_level(level, dumpfunc, dumpdata);
> + dumpfunc(dumpdata, "group \"");
> + eet_node_dump_string_escape(dumpdata, dumpfunc, name);
> + dumpfunc(dumpdata, "\" ");
> +
> + dumpfunc(dumpdata, eet_node_dump_g_name[chnk_type - EET_G_UNKNOWN]);
> + dumpfunc(dumpdata, " {\n");
> +}
> +
> +static void
> +eet_node_dump_group_end(int level, void (*dumpfunc) (void *data, const char
> *str), void *dumpdata)
> +{
> + eet_node_dump_level(level, dumpfunc, dumpdata);
> + dumpfunc(dumpdata, " }\n");
> +}
> +
> void
> eet_node_dump(Eet_Node *n, int dumplevel, void (*dumpfunc) (void *data, const
> char *str), void *dumpdata)
> {
> @@ -371,6 +396,9 @@
> case EET_G_VAR_ARRAY:
> case EET_G_ARRAY:
> case EET_G_LIST:
> + eet_node_dump_group_start(dumplevel, dumpfunc, dumpdata, n->type,
> n->name);
> + /* FIXME: Handle content of group. */
> + eet_node_dump_group_end(dumplevel, dumpfunc, dumpdata);
> break;
> case EET_T_STRING:
> case EET_T_INLINED_STRING:
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel