Re: [PATCH][2.5] Single linked lists for Linux, overly complicated

Thunder from the hill (thunder@lightweight.ods.org)
Sat, 28 Sep 2002 03:45:33 -0600 (MDT)


Hi,

On Thu, 26 Sep 2002, Zach Brown wrote:
> #define TSLIST_MEMBER_INIT(member) \
> NULL

My problem with this is that you could initialize anything with it,
without even getting the notice. That's why I've preferred the named
initializer version. I could even do

#define SLIST_HEAD_INIT(name) \
.next = NULL;

if you like that better, and yes, I guess it should be...

Thunder

-- 
assert(typeof((fool)->next) == typeof(fool));	/* wrong */

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/