Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 45
Status: resolved
Priority: 0/
Queue: Devel-Cover

People
Owner: Nobody in particular
Requestors: rohan.hart [...] peace.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.13
Fixed in: 0.14



Subject: C compiler chokes on C++ style comments
The IRIX6.5 CC compiler doesn't allow // comments unless a flag is given. While there's an easy work-around changing to /* */ style in Cover.xs lines 129, 161, 179 and 188 would avoid dropping out of CPAN. --- Cover.xs~ Mon Oct 15 07:33:06 2001 +++ Cover.xs Fri Nov 16 11:29:56 2001 @@ -126,7 +126,7 @@ if (!cover_hv) cover_hv = newHV(); addr.ch[sizeof(PL_op)] = '\0'; - // fprintf(stderr, "runops_cover\n"); + /* fprintf(stderr, "runops_cover\n"); */ while ((PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX))) { if (covering) @@ -158,7 +158,7 @@ static int runops_orig(pTHX) { - // fprintf(stderr, "runops_orig\n"); + /* fprintf(stderr, "runops_orig\n"); */ while ((PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX))) { PERL_ASYNC_CHECK(); @@ -176,7 +176,7 @@ set_cover(flag) int flag PPCODE: - // fprintf(stderr, "Cover set to %d\n", flag); + /* fprintf(stderr, "Cover set to %d\n", flag); */ PL_runops = ((covering = flag) || profiling) ? runops_cover : runops_orig; @@ -185,7 +185,7 @@ set_profile(flag) int flag PPCODE: - // fprintf(stderr, "Cover set to %d\n", flag); + /* fprintf(stderr, "Cover set to %d\n", flag); */ PL_runops = ((profiling = flag) || covering) ? runops_cover : runops_orig;