Re: [Q] change_parent() - would this work?

From: Brad Heilbrun (bheilbrun@paypal.com)
Date: Tue Jun 25 2002 - 04:24:21 EST


On Sat, Jun 22, 2002 at 04:36:53AM -0600, Thunder from the hill wrote:
> Hi,
>
> My question is: would this work?

I don't believe so...

> +#define change_parent(p) list_move_tail(&(p)->sibling,&(parent)->children)

On the above line change_parent takes one argument.

> + change_parent(p, p->parent);

Here, it takes two.

Otherwise it looks good, and removes a couple of assignments. Not sure
how useful it is though, is this done a lot?

-- 
Brad Heilbrun
-
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 : Sun Jun 30 2002 - 22:00:09 EST