Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: global data in C programming... (another way) Message-ID: <7491@brl-smoke.ARPA> Date: 20 Mar 88 03:41:17 GMT References: <7506@ncoast.UUCP> <3032@haddock.ISC.COM> <10780@ut-sally.UUCP> <1089@bentley.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 Keywords: global data, extern, C programming In article <1089@bentley.UUCP> cox@bentley.UUCP (59463-MH Cox) writes: >A better way (my opinion) would be to have one file, e.g. globals.c or in >main.c, with all the initialized definitions. Source code that has a large number of global data pooled like this is woefully out of control. The proper place for defining a global datum (of which there should not be many!) is in the module that controls its meaning. If there isn't any such module, chances are that the design is quite poor.