[perl #60632] [TODO] codingstd: No line splitting in CONST_STRING

[email protected] (Bernhard Schmalhofer)
Newsgroups perl.perl6.internals
Message-ID <[email protected]>
# New Ticket Created by  Bernhard Schmalhofer 
# Please include the string:  [perl #60632]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60632 >


In RT#60161 Nick Clark remarked:

On Mon, Nov 17, 2008 at 11:37:23AM -0800, Andy Dougherty wrote:

 > The latest version of Sun's compiler,
 > cc: Sun Ceres C 5.10 SunOS_i386 2008/10/22
 > needs the following patch to compile parrot. The problem appears to be
 > the same one already documented for icc in tools/build/c2str.pl:
 >
 > # NOTE: when CONST_STRING gets used it and any macro invocations
 > # that it is used in *should not* be split across more than one
 > # line, because some compilers generate line numbers in such cases
 > # differently from the way gcc does this (a case in point is
 > # Intel's C compiler, icc) and hence the #defined CONST_STRING
 > # won't be found by the compiler.

Shouldn't there be a coding standard to enforce *that*?



This sounds sane and should be implemented. Takers are welcome.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.