Redeclaration of Variables extern/static
Doug Gwyn
gwyn at smoke.brl.mil
Sat Apr 13 07:36:54 AEST 1991
In article <1991Apr10.161742.21920 at zoo.toronto.edu> henry at zoo.toronto.edu (Henry Spencer) writes:
>In article <15775 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>>I've never seen a UNIX C compiler that had a problem with multiple
>>declarations of the same object with static linkage, so long as all
>>declarations of the object included the "static" storage specifier.
>Sorry Doug, you lose. The original Ritchie compiler refuses to accept
>such multiple declarations. (I just tried it, to be sure my memory
>was correct.)
Hm, I guess the reason I don't recall that is that we upgraded our C
compiler on our 6th Edition UNIX system to a 7th Edition flavor as
fast as I was able to incrementally do so. (Bootstrapping to a new
augmented version was a bit tricky.)
More information about the Comp.lang.c
mailing list