🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1369

Re: warning: '/*' within comment

#1369
From: Henry Spencer
Date: Sat, 02 Jun 1990 04:11
14 lines
1138 bytes
In article <1990Jun1.200433.6919@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes:
>However I got the same warning.  Is there anything in the standard that
>allows the compiler to ignore the quotes while inside a comment.  After
>all, quotes are required to be balanced...

The stuff inside a comment doesn't have to even resemble normal C tokens.
Remember that a comment like /* isn't this subtle */ contains, by normal
C standards, an unbalanced quote.  The standard specifically commands
that the interior of comments be totally ignored except for looking for
the terminating `*/'.  (However, the standard does not constrain extra
warning messages from compilers.)
-- 
As a user I'll take speed over|     Henry Spencer at U of Toronto Zoology
features any day. -A.Tanenbaum| uunet!attcan!utzoo!henry henry@zoo.toronto.edu
Technical Details
Message-ID: <1990Jun2.041137.21635@utzoo.uucp>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <1990Jun1.200433.6919@druid.uucp>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: warning: '/*' within comment
Message-ID: <1990Jun2.041137.21635@utzoo.uucp>
Organization: U of Toronto Zoology
References: <1990Jun1.200433.6919@druid.uucp>
Date: Sat, 2 Jun 90 04:11:37 GMT