Article View: comp.os.os2.programmer
Article #3071Nested Comments In Ibm C
From: Lynn.Nash
Date: Wed, 18 Nov 1992 18:49
Date: Wed, 18 Nov 1992 18:49
41 lines
1215 bytes
1215 bytes
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
Technical Details
Message-ID:
<n0edet@ofa123.fidonet.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!ucivax!ofa123!Lynn.Nash!f107.n207.z1.fidonet.orgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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