Discussion:
[perl #60632] [TODO] codingstd: No line splitting in CONST_STRING
(too old to reply)
Bernhard Schmalhofer
2008-11-18 11:44:28 UTC
Permalink
# 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 >
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
# 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.
Chromatic
2008-12-19 17:26:04 UTC
Permalink
I believe chromatic has gone one step further and made this a build
error.
If so, then we can close this ticket.
I concur.

-- c

Loading...