From: firewind Newsgroups: comp.os.msdos.djgpp Subject: Re: nested commtents Date: 18 Oct 1997 00:09:29 GMT Organization: Netcom Lines: 32 Message-ID: <628unp$h4t@sjx-ixn9.ix.netcom.com> References: <62786d$102$1 AT nz12 DOT rz DOT uni-karlsruhe DOT de> NNTP-Posting-Host: elp-tx3-24.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ralf Haueisen wrote: > Hello. > A few days ago I donwloaded djgcc, That's DJGPP. > but neither RHIDE nor GCC RHIDE is an integrated development environment. gcc is the compiler. RHIDE calls gcc to compile your code. RHIDE is not a compiler. > accepted /* comment /* comment */ comment */. The last comment was treated as > code. As is the correct behavior. Comments in C do *NOT* nest. Your first "*/" ends the comment (a new one was NOT started by the second "/*"; it was just part of your comment) and "comment */" stays in the code. > I searched for any settings but did not found. Maybe someone can help > me. Don't write nested comments. If you are trying to comment out a block of code that contains comments, use "#if 0" at the beginning of the block and "#endif" at the end. -- [- firewind -] [- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -] [- "You're just jealous because the voices talk to -me-." -] [- Have a good day, and enjoy your C. -] [- (on a crusade of grumpiness where grumpiness is due) -]