[U-Boot] "_ENTRY" is both a struct and a typedef?

Robert P. J. Day rpjday at crashcourse.ca
Thu Sep 8 18:31:47 CEST 2016


  from lib/hashtable.c:

  typedef struct _ENTRY {
        int used;
        ENTRY entry;
  } _ENTRY;

ok, that's just kind of creepy ... defining a typedef over top of a
struct of the same name. does anyone else find that strange?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the U-Boot mailing list