在 2013-04-05五的 09:34 +0100,Peter Maydell写道: > On 5 April 2013 05:28, liguang <lig.f...@cn.fujitsu.com> 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.