Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ihnp4!qantel!intelca!oliveb!glacier!decwrl!decvax!cwruecmp!bammi From: bammi@cwruecmp.UUCP Newsgroups: net.micro.atari16 Subject: Yet another Megamax C bug Message-ID: <1557@cwruecmp.UUCP> Date: Sun, 17-Aug-86 00:19:23 EDT Article-I.D.: cwruecmp.1557 Posted: Sun Aug 17 00:19:23 1986 Date-Received: Wed, 20-Aug-86 04:40:00 EDT Reply-To: bammi@cwruecmp.UUCP (Jwahar R. Bammi) Distribution: world Organization: CWRU Dept. Comp. Eng., Cleveland OH Lines: 23 Keywords: MEGAMAX C PREPROCESSOR I came across the following bug in Megamax C's pre-processor. It does not substitute arguments enclosed in single quotes ('x'). My understanding is that the pre-processor should not substitute arguements in strings (ie within double quotes (")). For Example: #include #define BROKEN(x) putc('x', stdout); putc('\n', stdout) main() { BROKEN(A); } will always print the character x no matter what the argument to BROKEN is. Alcyon (v 4.14) and Vax (bsd 4.3) print out the character A as i expect. -- Jwahar R. Bammi Usenet: .....!decvax!cwruecmp!bammi CSnet: bammi@case Arpa: bammi%case@csnet-relay CompuServe: 71515,155