Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!pacbell.com!pacbell!barn!everexn!grenada!christmas!rtm From: rtm@christmas.UUCP (Richard Minner) Newsgroups: comp.lang.c Subject: Re: Is it only ANSI C that allow #if to compare symbols? Keywords: sun C #if Message-ID: <31@christmas.UUCP> Date: 22 Jan 91 05:33:18 GMT References: <1991Jan18.170921.4866@resam.dk> <14900@smoke.brl.mil> Reply-To: rtm@island.COM (Richard Minner) Organization: Island Graphics, Sacramento, California Lines: 16 In article <14900@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: > ... > #if TEST == VAL_A > ... > #elif TEST == VAL_B > ... > #fi #fi ? Sorry Doug, X3J11 considered it but decided it wasn't necessary. (Hey, someone had to point it out or we'd end up with posts saying "my compiler is supposed to be ANSI compatible but it doesn't support `#fi'. Isn't that part of ANSI-C?") -- Richard Minner rtm@island.COM {uunet,sun,well}!island!rtm Island Graphics Corporation Sacramento, CA (916) 736-1323