Skip to content
Snippets Groups Projects
  • Paolo Bonzini's avatar
    b58deb34
    qemu/queue.h: leave head structs anonymous unless necessary · b58deb34
    Paolo Bonzini authored
    
    Most list head structs need not be given a name.  In most cases the
    name is given just in case one is going to use QTAILQ_LAST, QTAILQ_PREV
    or reverse iteration, but this does not apply to lists of other kinds,
    and even for QTAILQ in practice this is only rarely needed.  In addition,
    we will soon reimplement those macros completely so that they do not
    need a name for the head struct.  So clean up everything, not giving a
    name except in the rare case where it is necessary.
    
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    b58deb34
    History
    qemu/queue.h: leave head structs anonymous unless necessary
    Paolo Bonzini authored
    
    Most list head structs need not be given a name.  In most cases the
    name is given just in case one is going to use QTAILQ_LAST, QTAILQ_PREV
    or reverse iteration, but this does not apply to lists of other kinds,
    and even for QTAILQ in practice this is only rarely needed.  In addition,
    we will soon reimplement those macros completely so that they do not
    need a name for the head struct.  So clean up everything, not giving a
    name except in the rare case where it is necessary.
    
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>