Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 beta 3/9/83; site cwruecmp.UUCP
Path: utzoo!linus!decvax!cwruecmp!decot
From: decot@cwruecmp.UUCP (Dave Decot)
Newsgroups: net.lang.c
Subject: Suggestion for cpp
Message-ID: <1010@cwruecmp.UUCP>
Date: Wed, 15-Feb-84 02:03:39 EST
Article-I.D.: cwruecmp.1010
Posted: Wed Feb 15 02:03:39 1984
Date-Received: Thu, 16-Feb-84 02:41:14 EST
Organization: CWRU Computer Engr. Cleveland, Ohio
Lines: 37

How many zillion times have you wanted to comment out one or more C functions,
or a block of lines?  A few day's experience with the language teaches anyone
that you can't just

    #include 

    /*
    wow(gosh, golly, jeepers)
    int gosh, golly, jeepers;		/* snazzy parameters */
    {
	int ooh, aah;			/* amazing variables */

	ooh = _IRXG8W0_BUFQT;		/* fascinating constant */

	for (golly = 0; gosh < jeepers; ooh++) {
	    gosh *= ooh;
	    golly -= jeepers? gosh : IRXG8W0_KIZM;
	}
    */

the function because comments end at the first */.  So, why not two new cpp
commands:

    #{
	...
    #}

which cause the preprocessor to ignore everything intervening?  I realize that

    #if 0
	...
    #endif

does the same thing, but it isn't as clear.  How about it?

Dave Decot		 "Non-Americans are people, too."
decvax!cwruecmp!decot    (Decot.Case@rand-relay)