Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbatt!ihnp4!ptsfa!styx!ames!sri-spam!rutgers!husc6!seismo!mcvax!kddlab!icot!nttlab!gama!yoshiki From: yoshiki@gama.UUCP Newsgroups: comp.lang.c Subject: cpp of Sun's Unix version 3.2. Message-ID: <641@gama.is.tsukuba.junet> Date: Wed, 22-Apr-87 15:27:08 EDT Article-I.D.: gama.641 Posted: Wed Apr 22 15:27:08 1987 Date-Received: Sat, 2-May-87 01:44:38 EDT Organization: Inst. Info. Sci. U of TSUKUBA, Ibaraki, Japan Lines: 42 I have a trouble on cpp of Sun's Unix version 3.2. I tryed to expand a text like the following. # define Macro(f) f Macro(Func(a, # ifdef B b, # endif c)) I want to get Func(a, c) if B is not defined. It is, however, expanded by the cpp to # 1 "" Func(a, # ifdef B b, # endif c) # 8 "" I can get what I want by other cpps (4.2BSD on VAX and Sequent). Is this a bug of the cpp, or dependent on implementation? Sorry if this has been discussed before. ----------------------------------------------------------------------------- Yoshiki WATANABE University of Tsukuba JUNET Address: yoshiki@is.tsukuba.junet UUCP: ..!nttlab!gama!yoshiki ..!mcvax!kddlab!nttlab!gama!yoshiki Telephone: 0298-53-5051