From: Daniel Phillips <phillips@bonn-fries.net>
To: Alexander Viro <viro@math.psu.edu>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Jeff Garzik <jgarzik@mandrakesoft.com>,
David Flynn <Dave@keston.u-net.com>,
rjd@xyzzy.clara.co.uk, Bill Pringlemeir <bpringle@sympatico.ca>,
linux-kernel@vger.kernel.org
Subject: Re: Newbie idiotic questions.
Date: Sun, 17 Jun 2001 23:28:34 +0200 [thread overview]
Message-ID: <0106172328340U.00879@starship> (raw)
In-Reply-To: <Pine.GSO.4.21.0106171628350.15952-100000@weyl.math.psu.edu>
In-Reply-To: <Pine.GSO.4.21.0106171628350.15952-100000@weyl.math.psu.edu>
On Sunday 17 June 2001 22:37, Alexander Viro wrote:
> On Sun, 17 Jun 2001, Daniel Phillips wrote:
> > Well, since we are still beating this one to death, I'd written a "knew"
> > macro as well, and put it aside. It does the assignment for you too:
> >
> > #define knew(p) ((p) = (typeof(p)) kmalloc(sizeof(*(p)), GFP_KERNEL))
> >
> > Terse and clear at the same time, and type safe. I still don't like it
> > much.
>
> And ungreppable, not to mention gratitious use of GNU extension.
typeof? It's rather popular in the kernel already. Besides, who is going to
compile this with anything other than gcc?
I don't see your point about greppability.
--
Daniel
next prev parent reply other threads:[~2001-06-17 21:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-17 1:19 Newbie idiotic questions Bill Pringlemeir
2001-06-17 1:32 ` Jeff Garzik
2001-06-17 10:48 ` Daniel Phillips
2001-06-17 12:27 ` rjd
2001-06-17 15:01 ` Daniel Phillips
2001-06-17 15:08 ` Jeff Garzik
2001-06-17 15:38 ` David Flynn
2001-06-17 15:54 ` Jeff Garzik
2001-06-17 19:18 ` Geert Uytterhoeven
2001-06-17 20:08 ` Daniel Phillips
2001-06-17 20:37 ` Alexander Viro
2001-06-17 21:28 ` Daniel Phillips [this message]
2001-06-17 22:33 ` Alexander Viro
2001-06-18 9:14 ` Roman Zippel
2001-06-18 9:30 ` Alexander Viro
2001-06-17 21:17 ` Bill Pringlemeir
2001-06-17 1:35 ` Richard B. Johnson
2001-06-17 3:01 ` Arnaldo Carvalho de Melo
2001-06-17 8:06 ` rjd
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=0106172328340U.00879@starship \
--to=phillips@bonn-fries.net \
--cc=Dave@keston.u-net.com \
--cc=bpringle@sympatico.ca \
--cc=geert@linux-m68k.org \
--cc=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rjd@xyzzy.clara.co.uk \
--cc=viro@math.psu.edu \
/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