Newsgroups: comp.sys.atari.st Path: utzoo!lsuc!jimomura From: jimomura@lsuc.on.ca (Jim Omura) Subject: static globals? Reply-To: jimomura@lsuc.on.ca (Jim Omura) Organization: Consultant, Toronto Distribution: na Date: Tue, 30 Apr 1991 18:30:34 GMT Message-ID: <1991Apr30.183034.15773@lsuc.on.ca> I've been working at a port of Rodney Volz' Mercury and there's a fair bit of strangeness in some of the sources. In the 'elm.c' module I have had some strange problems with the Sozobon C TOP optimizer. I think that this is not critical, but I decided to look for problems in the source code. One thing I've found is that he declared a bunch of variables globally and made them "static". This didn't seem to be a problem for the compiler, but I #ifdef'd them out and replaced them with non-"static" declarations. I've never seen this type of declaration before. Why would you bother to declare a "global" as a "static"? Is there any point to it? It doesn't seem to be a problem for the compilers to handle. -- Jim Omura, 2A King George's Drive, Toronto, (416) 652-3880 lsuc!jimomura Byte Information eXchange: jimomura