Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!minow From: minow@decvax.UUCP (Martin Minow) Newsgroups: comp.lang.c Subject: Re: ANSI C -- site identification Message-ID: <116@decvax.UUCP> Date: Tue, 16-Dec-86 19:25:57 EST Article-I.D.: decvax.116 Posted: Tue Dec 16 19:25:57 1986 Date-Received: Wed, 17-Dec-86 20:23:03 EST References: <110@decvax.UUCP> <5459@brl-smoke.ARPA> Reply-To: minow@decvax.UUCP (Martin Minow) Organization: Ultrix Eng. Group - Merrimack, NH Lines: 18 Commenting on my suggestion for some mechanism for site identification, Doug Gwyn (@ brl.smoke.arpa) notes problems with int sun; (when sun was #defined). One hackish solution would be to define the site as #define sun sun Infinite expansion is prevented by the restriction in page 79, line 33ff. My off the wall suggestion to extend preprocessing to allow strings (assuming it's workable), solves the problem by defining __PROCESSOR__ (etc.) symbols that have implmentation-defined *string* content. Thus, there is no registry that assigns numbers to implementors. Since implementors generally trademark their names, there's no real risk of spoofing. Again, sorry about the length. Martin Minow decvax!minow