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

2016-09-09 Thread Måns Rullgård
writes: >> "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>

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

2016-09-08 Thread Peter.Chubb
> "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

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

2016-09-08 Thread Robert P. J. Day
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 --