Re: [evolution-patches] [PATCH]Bug # 58014: cannot add multiple participants for the same category in tasks



G_N_ELEMENTS() only works on static arrays, eg not dynamically created arrays.

but yea, he certainly doesn't need to run thru the loop twice.

Jeff

On Thu, 2004-05-06 at 12:28 -0400, Rodney Dawes wrote:
There's no reason to run through the loop twice, so you don't need to
count the elements first, since you aren't appending to the array and
doing reallocing. You can just do "for (i = 0; cards[i] != NULL; i++)"
instead. Aside from that, why does G_N_ELEMENTS (cards) not work?

-- dobey


On Mar , 2004-05-04 at 14:49 +0530, umeshtej wrote:
> This is a patch for bug #58014,which allows to add multiple participants
> for the same category while assigning tasks.

-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj ximian com  - www.novell.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]