Path: utzoo!attcan!uunet!husc6!mailrus!csd4.milw.wisc.edu!bionet!agate!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.lang.c Subject: Re: Hidden routines Message-ID: <6859@csli.STANFORD.EDU> Date: 22 Dec 88 03:26:22 GMT References: <1210@arctic.nprdc.arpa> Reply-To: wagner@arisia.xerox.com (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 24 The problem as I see it was to get the following: S in externally accessible, and it uses X and Y. There may also be some variables A1...An which should be local to S, X, Y. Everything except S should be hidden to callers. Well, how about the following: # include static ... A1, ..., An; void S(...) { ... } static void X(...) { ... } static void Y(...) { ... } Basically, you should declare everything static, except S. -- Juergen Wagner gandalf@csli.stanford.edu wagner@arisia.xerox.com