From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Fri, 25 Jun 2010 17:35:43 +0200 From: lucio@proxima.alt.za MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] comment and newline in define Topicbox-Message-UUID: 36f3f0ce-ead6-11e9-9d60-3106f5b1d025 In /sys/src/cmd/cc/macbody:298,301 if(c == '\n') { yyerror("comment and newline in define: %s", s->name); break; } suggests that all "C" compilers explictly forbid newlines within comments when a macro is #defined. At a glance, I'd say that removing the above will eliminate what to me seems an anachronism. Am I overlooking something? The Go toolchain code unsurprisingly uses multiline comments in src/cmd/ld/elf.h and I'm loath to request the Go Authors to hack their header file for a non-standard feature of the Plan 9 compilers. I concede that the header in question would benefit, aesthetically, from having those comments adjusted. ++L