Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-unix!hplabs!tektronix!teklds!zeus!bobr From: bobr@zeus.UUCP (Robert Reed) Newsgroups: comp.lang.c Subject: Re: draft ANSI standard: major, quiet, unnoticed change Message-ID: <954@zeus.UUCP> Date: Thu, 4-Dec-86 15:39:50 EST Article-I.D.: zeus.954 Posted: Thu Dec 4 15:39:50 1986 Date-Received: Sun, 7-Dec-86 20:47:13 EST References: <1379@hoptoad.uucp> <500@brl-sem.ARPA> Reply-To: bobr@zeus.UUCP (Robert Reed) Organization: CAE Systems Division, Tektronix Inc., Beaverton OR Lines: 32 In article <500@brl-sem.ARPA> ron@brl-sem.ARPA (Ron Natalie ) writes: >In article <1379@hoptoad.uucp>, gnu@hoptoad.uucp (John Gilmore) writes: >> #pdefine sun >> >> would cause #if sun or #if defined(sun) or #ifdef sun to be true, but >> would not replace occurrances of "sun" in program text. > >Of course, no one said it had to be a macro definition. You could >just say > int sun; >and the #if defined(sun) would also work. Isn't the point of John's predefined macro to avoid changing the source code? With your suggestion of "int sun", the first step before compiling would be modifying the source files. -- Robert Reed, Tektronix CAE Systems Division, bobr@zeus.TEK