This macro declares a variable and do a mix of do-while split into two
macros that will likely cause errors. Why did you choose that over let user
declare the variable, avoiding the do-while?


On Monday, January 21, 2013, Enlightenment SVN wrote:

> Log:
> efl: add eina_cow helper macro.
>
>
> Author:       cedric
> Date:         2013-01-20 19:11:29 -0800 (Sun, 20 Jan 2013)
> New Revision: 83025
> Trac:         http://trac.enlightenment.org/e/changeset/83025
>
> Modified:
>   trunk/efl/src/lib/eina/eina_cow.h
>
> Modified: trunk/efl/src/lib/eina/eina_cow.h
> ===================================================================
> --- trunk/efl/src/lib/eina/eina_cow.h   2013-01-21 00:22:35 UTC (rev 83024)
> +++ trunk/efl/src/lib/eina/eina_cow.h   2013-01-21 03:11:29 UTC (rev 83025)
> @@ -39,4 +39,16 @@
>
>  EAPI Eina_Bool eina_cow_gc(Eina_Cow *cow);
>
> +#define EINA_COW_WRITE_BEGIN(Cow, Read, Write_Type, Write)             \
> +  do                                                                   \
> +    {                                                                  \
> +      Write_Type *Write;                                               \
> +                                                                       \
> +      Write = eina_cow_write(Cow, ((const Eina_Cow_Data**)&(Read)));
> +
> +#define EINA_COW_WRITE_END(Cow, Read, Write)                           \
> +      eina_cow_done(Cow, ((const Eina_Cow_Data**)&(Read)), Write);     \
> +    }                                                                  \
> +  while (0);
> +
>  #endif
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
> _______________________________________________
> enlightenment-svn mailing list
> [email protected] <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to