Messages in this thread | | | Date | Sun, 9 Jun 2002 12:23:16 +0100 | From | Mark Zealey <> | Subject | Re: [PATCH][2.5] introduce list_move macros |
| |
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/
| |