From: Merrill C. <mer...@ea...> - 2006-01-05 14:27:51
|
When they finally issued Standard C, they nail down certain behaviours of headers. One thing they did was to allow duplicate declarations for CERTAIN things, although I've forgotten which things those were. In some of those cases (#defines, I think) the duplicate declaration had to match down to the whitespace. I believe the rationale was that it was often useful for a headers to be able to redeclare one thing rather than having to #include a mass of declarations from another header just to get the one it needed. Perhaps typedefs are one of those things that are now allowed to be duplicated. since there's no Merrill |