From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter.Chubb at data61.csiro.au Date: Thu, 8 Sep 2016 20:34:25 +0000 Subject: [U-Boot] "_ENTRY" is both a struct and a typedef? In-Reply-To: References: Message-ID: <84shta9lmb.wl-Peter.Chubb@data61.csiro.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>>>> "Robert" == Robert P J Day writes: Robert> from lib/hashtable.c: Robert> typedef struct _ENTRY { int used; ENTRY entry; } _ENTRY; Robert> ok, that's just kind of creepy ... defining a typedef over top Robert> of a struct of the same name. does anyone else find that Robert> strange? It's standard practice in some C styles. Personally I'd delete the struct tag, as the typedef should be used everywhere instead. Peter C -- Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/ Trustworthy Systems Group Data61 (formerly NICTA)