From 10d48a9464369438628d3e8de85a6c37e5a16da7 Mon Sep 17 00:00:00 2001 From: Dimi Paun Date: Wed, 18 May 2005 13:24:46 +0000 Subject: [PATCH] Document the more convenient iteration method. --- include/wine/list.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wine/list.h b/include/wine/list.h index 8f4d61de83e..46327d8f1b7 100644 --- a/include/wine/list.h +++ b/include/wine/list.h @@ -54,10 +54,10 @@ struct list * * And to iterate over it: * - * struct list *cursor; - * LIST_FOR_EACH( cursor, &global_gadgets ) + * struct gadget *gadget; + * LIST_FOR_EACH_ENTRY( gadget, &global_gadgets, struct gadget, entry ) * { - * struct gadget *gadget = LIST_ENTRY( cursor, struct gadget, entry ); + * ... * } * */