Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!rutgers!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: _sys_* etc. Message-ID: <5513@brl-smoke.ARPA> Date: Tue, 13-Jan-87 17:08:51 EST Article-I.D.: brl-smok.5513 Posted: Tue Jan 13 17:08:51 1987 Date-Received: Sat, 17-Jan-87 00:50:43 EST References: <2144@brl-adm.ARPA> <5497@brl-smoke.ARPA> <1258@ho95e.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <1258@ho95e.UUCP> wcs@ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) writes: >... why not let >_sys_ and _machine_ be preprocessor variables, leading to > #define _sys_ SysVR2 > #define _machine_ u3b2 >and > #if _machine_ = vax Because the last line has no meaning unless the symbol `vax' is also macro defined to something like an integer constant (further, all possible system symbols would have to be assigned different constant values). (The `=' is not a string compare as in Bourne shell scripts.) Nice try, though.