From: Brad Heilbrun <bheilbrun@paypal.com>
To: Thunder from the hill <thunder@ngforever.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [Q] change_parent() - would this work?
Date: Tue, 25 Jun 2002 02:24:21 -0700 [thread overview]
Message-ID: <20020625092421.GA20315@paypal.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0206220435310.4307-100000@hawkeye.luckynet.adm>
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
prev parent reply other threads:[~2002-06-25 9:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-22 10:36 [Q] change_parent() - would this work? Thunder from the hill
2002-06-25 9:24 ` Brad Heilbrun [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020625092421.GA20315@paypal.com \
--to=bheilbrun@paypal.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thunder@ngforever.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox