Aucbvax.4096 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Tue Sep 29 09:58:30 1981 Another preprocessor problem? >From mccallum@UTEXAS-11 Tue Sep 29 09:56:22 1981 While we're on the subject of preprocessor (Version 7) problems, has anyone come across and possibly solved a problem with unary operations for #if? The following example shows the problem I've come across. #define TOKEN -1 #if TOKEN==-1 This will fail (doesn't get copied) #endif #if TOKEN==-1 This will work (does get copied) #endif All comparisons after the first work. The problem occurs independently for each unique value (-1, -2, -3, etc). All unary operations are affected. This is a problem on our 11 system, but when I tried it on a Perkin-Elmer system, it worked correctly. Any ideas? ------- ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.