Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!vsi!friedl From: friedl@vsi.UUCP (Stephen J. Friedl) Newsgroups: comp.lang.c Subject: Re: defining a comment? Summary: Maybe not so surprising Keywords: preprocessor,comments Message-ID: <855@vsi.UUCP> Date: 21 Sep 88 18:17:05 GMT References: <5438@techunix.BITNET> <844@vsi.UUCP> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 27 In article <5438@techunix.BITNET>, benny@techunix.BITNET (Benny Pinkas) writes: > > Can I use the Preprocessor to define a comment? I mean something like: > Then, in article <844@vsi.UUCP>, friedl@vsi.UUCP (*me*) writes: > I'm surprised nobody posted this, > > # define STARTCOM //**/* > # define ENDCOM */**// I'll be durned, it doesn't work. The first part does indeed define STARTCOM to be /*, but I thought that once the STARTCOM was replaced by /*, it would pass it onto the compiler unchanged (the compiler accepts the same comment notation as cpp). Apparently, however, it rescans this at cpp-time and the ENDCOM is never macro-expanded. I could have sworn I did this once, and I suspect that a maniac with cpp could probably find a way to do this, but I couldn't. Thanks to Don Seeley at U-of-Utah for throwing the egg on my face :-). -- Steve Friedl V-Systems, Inc. +1 714 545 6442 3B2-kind-of-guy friedl@vsi.com {backbones}!vsi.com!friedl attmail!vsi!friedl ------------Nancy Reagan on conductance: "Just say mho"------------