Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!lll-crg!ames!amdahl!amdcad!rpw3
From: rpw3@amdcad.UUCP (Rob Warnock)
Newsgroups: comp.lang.c
Subject: Re: ANSI C -- site identification
Message-ID: <14114@amdcad.UUCP>
Date: Thu, 18-Dec-86 05:18:11 EST
Article-I.D.: amdcad.14114
Posted: Thu Dec 18 05:18:11 1986
Date-Received: Thu, 18-Dec-86 22:40:35 EST
References: <110@decvax.UUCP> <5459@brl-smoke.ARPA> <116@decvax.UUCP>
Organization: [Consultant] San Mateo, CA
Lines: 25
Summary: Registry for __PROCESSOR__ names

+---------------
| 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.  | Martin Minow | decvax!minow
+---------------

Well, you could always standardize on the machine & system names
listed in RFC960 (which are all-caps strings). Though to make it
useful, you would have to add a string-equality operator to the
pre-processor... ;-}

#if streql(__PROCESSOR__,"VAX-11/780")
...
#endif


Rob Warnock
Systems Architecture Consultant

UUCP:	{amdcad,fortune,sun}!redwood!rpw3
DDD:	(415)572-2607
USPS:	627 26th Ave, San Mateo, CA  94403