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

Will Coleda via RT parrotbug-followup at parrotcode.org
Fri Dec 19 15:12:15 UTC 2008


On Tue Nov 18 03:44:28 2008, bernhard wrote:
> 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.
> 
> 

I believe chromatic has gone one step further and made this a build 
error.

If so, then we can close this ticket.

-- 
Will "Coke" Coleda


More information about the parrot-dev mailing list