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;