Il 18/11/2012 20:17, Blue Swirl ha scritto: >>>> >> > + struct { >>> >> >>> >> Please add a name, for example PostLoad. >> > >> > Why? This is not C++ and the namespace would be global. It's just to >> > have a nice grouping. > Otherwise the structure will be anonymous and those were only added to > C11, not C99.
No, the name here is "post_load". Unnamed struct *types* are present all the way to C89 and probably even K&R. Paolo >> > >> > Paolo >> > >>>> >> > + QEMUTimer *timer; >>>> >> > + int nr_active_ports; >>>> >> > + struct { >>>> >> > + VirtIOSerialPort *port; >>>> >> > + uint8_t host_connected; >>>> >> > + } *connected; >>>> >> > + } post_load;