On 30 Jan 2006, at 17:38, Dave Hansen wrote:
Yes, they are. Buuuuuuut, you _can_ make the code around them a little less evil. If you _must_ use a typedef, you could do something like this: #define XEN_CAP_INFO_LEN_BYTES 1024 typedef char [XEN_CAP_INFO_LEN_BYTES] xen_capabilities_info_t;
Is that really better than just referencing the typedef? I've always considered them okay for simple scalar and array types, even if they are to be avoided for structure types. Is it the size aspect that is the problem (e.g., a typedef'ed type should be okay to allocate on the stack)?
-- Keir - 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/
- Follow-Ups:
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: Greg KH <greg@kroah.com>
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: Dave Hansen <haveblue@us.ibm.com>
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- References:
- [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: "Mike D. Day" <ncmike@us.ibm.com>
- Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: Dave Hansen <haveblue@us.ibm.com>
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: "Mike D. Day" <ncmike@us.ibm.com>
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: Dave Hansen <haveblue@us.ibm.com>
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: "Mike D. Day" <ncmike@us.ibm.com>
- Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 2.6.12.6-xen] sysfs attributes for xen
- Prev by Date: Xorg crashes 2.6.16-rc1-git4
- Next by Date: Re: Request to stop cdrecord's bogus accusations of Linux.
- Previous by thread: Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- Next by thread: Re: [Xen-devel] Re: [PATCH 2.6.12.6-xen] sysfs attributes for xen
- Index(es):
![]() |