Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!ultra!marc From: marc@mercutio.ultra.com (Marc Kwiatkowski {Host Software-AIX}) Newsgroups: comp.unix.aix Subject: XLC cpp Message-ID: <1991May15.024325.805@ultra.com> Date: 15 May 91 02:43:25 GMT Sender: marc@ultra.com (Marc Kwiatkowski {Host Software-AIX}) Distribution: comp Organization: Ultra Network Technologies Lines: 32 Is it my imagination, or is it really impossible to get the XLC C preprocessor to allow macros with variable parameter lists? The following produces warnings but processes correctly for SunOS 4.1, and no warnings for AIX/1.2.1 but fails for AIXv3.1 #define DEBUG(x) printf x I've tried the four flavors of cpp supported by -qlanglvl flag. Same result. Interestingly the cpp, /usr/lpp/X11/Xamples/util/cpp/cpp, provided with X works. Do I really have to use the X11 cpp to make reasonable debug macros? -- ------------------------------------------------------------------ Marc P. Kwiatkowski Ultra Network Technologies Internet: marc@ultra.com 101 Daggett Drive uucp: ...!ames!ultra!marc San Jose, CA 95134 USA telephone: 408 922 0100 x249 Ignore the following signature. -- ------------------------------------------------------------------ Marc P. Kwiatkowski Ultra Network Technologies Internet: marc@ultra.com 101 Daggett Drive uucp: ...!ames!ultra!marc San Jose, CA 95134 USA