Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!houxm!ho95e!wcs From: wcs@ho95e.UUCP Newsgroups: comp.lang.c Subject: Re: _sys_* etc. Message-ID: <1270@ho95e.UUCP> Date: Mon, 19-Jan-87 00:42:40 EST Article-I.D.: ho95e.1270 Posted: Mon Jan 19 00:42:40 1987 Date-Received: Tue, 20-Jan-87 03:54:52 EST References: <2144@brl-adm.ARPA> <5497@brl-smoke.ARPA> <1258@ho95e.UUCP> <5513@brl-smoke.ARPA> Reply-To: wcs@ho95e.UUCP (Bill Stewart 1-201-949-0705 ihnp4!ho95c!wcs HO 2G202) Organization: AT&T Bell Labs, Holmdel NJ Lines: 20 Keywords: oops In article <5513@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >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. Oh, well, it looked good. As you point out (and Larry Rosler did by mail), = is comparing integers, not strings. Back to suggestions of _mach_vax. -- # Bill Stewart, AT&T Bell Labs 2G-202, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs