home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!ucivax!ofa123!Lynn.Nash!f107.n207.z1.fidonet.org
- From: Lynn.Nash@f107.n207.z1.fidonet.org
- Newsgroups: comp.os.os2.programmer
- Subject: Nested Comments In Ibm C
- X-Sender: newtout 0.02 Nov 17 1992
- Message-ID: <n0edet@ofa123.fidonet.org>
- Date: 18 Nov 92 18:49:06
- Lines: 41
-
- CF>Organization: University of California, at Berkeley
- CF>From: c9e-aw@volga (Claudio Fahey)
- CF>Message-ID: c9e-aw.721870314@volga.berkeley.edu
- CF>Newsgroups: comp.os.os2.programmer
-
- CF>Does anybody know if the IBM C Set/2 compiler can be
- CF>setup to support nested comments? It sure is a pain
- CF>uncommenting my comments when I want to comment a large
- CF>section of code.
-
- Really, Try this
-
- int main(void)
- {
-
- int x;
- int y;
-
- /* imbedded comment in main loop */
- for (x = 0; x < 10; x++) {
- DoSomething(x);
- }
-
- #if 0
- /* here is a piece of code disabled using the preprocessor */
- for (y = 0; y < 10; y++) {
- DoSomthingElse(y);
- }
- #endif
-
- return 0;
- )
-
- Should work unless you have figured out how to define zero.
- cheers
- --Lynn Nash
-
- ___
- * MR/2 1.31 NR * BETA TESTERS WHO LIE! On the next Geraldo...
-
- --- Maximus/2 2.01wb
-