Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Redeclaration of Variables extern/static Message-ID: <1991Apr10.161742.21920@zoo.toronto.edu> Date: Wed, 10 Apr 1991 16:17:42 GMT References: <^R+_H3-@uzi-9mm.fulcrum.bt.co.uk> <1243@airs.UUCP> <1991Apr9.055250.24257@world.std.com> <15775@smoke.brl.mil> Organization: U of Toronto Zoology In article <15775@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >>... Some Classic compilers (including the original one, >>if memory serves) can't cope with forward static declarations at all. > >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.) -- And the bean-counter replied, | Henry Spencer @ U of Toronto Zoology "beans are more important". | henry@zoo.toronto.edu utzoo!henry