qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH][RFC v2 1/7] hw/irq: move struct IRQState to irq


From: li guang
Subject: Re: [Qemu-devel] [PATCH][RFC v2 1/7] hw/irq: move struct IRQState to irq.h
Date: Fri, 05 Apr 2013 16:39:30 +0800

在 2013-04-05五的 09:34 +0100,Peter Maydell写道:
> On 5 April 2013 05:28, liguang <address@hidden> wrote:
> > define struct IRQState in irq.c bring in
> > a annoying result, if you want dereference of
> > IRQState's member like opaque outside of
> > irq.c, compiler will complain:
> > "error: dereferencing pointer to incomplete type"
> 
> No, this is deliberate -- it's an opaque type which should
> only be used inside irq.c. If you think you need to dereference
> it you're probably doing something wrong.
> 

 Yes, you're right, it's only a suggestion for
some hacking conditions.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]