On Saturday 23 October 2004 22:10, Pete Zaitcev wrote:

> > Actually I strongly prefer "p = alloc(sizeof *p);" constructs since
> > they don't break when, for example, typeof(p) changes.
> 
> I know the seeds of evil in you and I strongly disapprove.
> 
>       struct foo {  char *ptr  } *boo;
> 
>       boo = kmalloc(sizeof(*boo), GFP_KERNEL);

Talk about mixed messages ... watering those seeds of evil, to
see what grows!

Oh, and notice that anonymous types can't use anything other
than "sizeof *pointer" ... delete "foo" from your example, and
you'll see additional goodness!    :)



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to