Re: [PATCH][2.5] introduce list_move macros

From: Mark Zealey (mark@zealos.org)
Date: Sun Jun 09 2002 - 06:23:16 EST


On Sun, Jun 09, 2002 at 05:09:54AM -0600, Lightweight patch manager wrote:

> +#define list_move(list,head) \
> + list_del(list); \
> + list_add(list,head)
> +
> +/**
> + * list_move_tail - move a list entry from a right before b

> +#define list_move(list,head) \

I guess that should be:
+#define list_move_tail(list,head) \

You should enclose the ops in a do { ... } while(0) block too.

-- 

Mark Zealey (aka JALH on irc.openprojects.net: #zealos and many more) mark@zealos.org; mark@itsolve.co.uk

UL++++>$ G!>(GCM/GCS/GS/GM) dpu? s:-@ a17! C++++>$ P++++>+++++$ L+++>+++++$ !E---? W+++>$ !w--- r++ !t---?@ !X---? !R- !tv b+ G+++ e>+++++ !h++* r!-- y-- - 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/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:16 EST