Path: utzoo!utgpu!watserv1!watmath!att!pacbell!pacbell.com!mips!zaphod.mps.ohio-state.edu!samsung!uunet!taumet!steve From: steve@taumet.COM (Stephen Clamage) Newsgroups: comp.std.c Subject: Re: warning: '/*' within comment Message-ID: <241@taumet.COM> Date: 4 Jun 90 17:53:27 GMT References: <1990Jun1.200433.6919@druid.uucp> Reply-To: steve@taumet.UUCP (Stephen Clamage) Organization: Taumetric Corporation, San Diego Lines: 23 In article <1990Jun1.200433.6919@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes: >/* >Sample usage: > mkscript src/*.c src/*.h src/makefile man/* readme > dist.txt >*/ > >This gives me the above mentioned warning. > [ more about quotes in comments, should they be balanced ] The standard says (section 3.1.9): "Except within a character constant, a string literal, or a comment, the characters /* introduce a comment. The contents of a comment are examined only to identify multibyte characters and to find the characters */ that terminated it." A footnote clarifies that comments do not nest. Some compilers allow comment nesting, and warn about apparently nested comments. This is not standard behavior. -- Steve Clamage, TauMetric Corp, steve@taumet.com