??? 12/16/10 07:48 Read: times |
#180165 - Don't have two typedef for same type Responding to: ???'s previous message |
Don't have two identical typedef in different header files.
Only have one typedef <type> <typename> And it's ok if many C files sees a extern <typename> <variablename> even if that C file will not make use of the variable. The part of the code that really allocates the variable may also see an extern statement for the variable. That is actually good, since that gives the compiler a chance to verify that all your extern statements are correct, and doesn't say a different data type. |
Topic | Author | Date |
Structure definition in code banking modules 8052 | 01/01/70 00:00 | |
Don't have two typedef for same type | 01/01/70 00:00 | |
FAQ - declarations & definitions | 01/01/70 00:00 | |
declaration and definition interchanged | 01/01/70 00:00 | |
Follow conventions | 01/01/70 00:00 | |
Coincidental Cohesion | 01/01/70 00:00 |