March 30, 200719 yr I notice that in one of his sample codes (registration.c) Arne did this:extern PELEMENT_HEADER C_GAUGE(list);extern MOUSERECT C_GAUGE(mouse_rect)[];Now, I understand his use of the C_GAUGE macros (which are very cool to make things easy to template), although now there is a C_PLIST() macro that might be more appropriate for PLIST stuff, but I'm wondering why the heck he wanted/needed external linkage.Anyone have any idea why?
March 30, 200719 yr Commercial Member look a bit more closely at it all... you might notice the circular reference... ;) Ed Wilson Mindstar AviationMy Playland - I69
March 31, 200719 yr >look a bit more closely at it all... you might notice the>circular reference... ;)It has nothing to do with forward declarations, just internal vs. external linkage.Anyway, I removed the need for all the forward declarations.So, the question remains, why did he use external declarations... and I guess the answer is, that he might have wanted access from another file.
Create an account or sign in to comment