Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!linus!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.lang.c,net.bugs.4bsd Subject: Re: Undefined static function Message-ID: <2342@sun.uucp> Date: Sun, 23-Jun-85 15:38:03 EDT Article-I.D.: sun.2342 Posted: Sun Jun 23 15:38:03 1985 Date-Received: Mon, 24-Jun-85 08:21:56 EDT References: <297@cstvax.UUCP> <355@npois.UUCP> Organization: Sun Microsystems, Inc. Lines: 15 Xref: linus net.lang.c:4900 net.bugs.4bsd:1263 > Every declaration which is outside the definition of any function > declares an extern static something, even with "extern" or "static" > or both omitted. False. See 11.2 "Scope of externals": Identifiers declared "static" at the top level in external definitions are not visible in other files. Any declaration outside the definition of any function with "static" omitted declares an "extern" something, which is static in the sense of not being "auto" but not static in the sense of being "static"; it's visible in other files. Guy Harris