What's a "C++ comment"? If you mean //...\n comments, those are legal
in ANSI-99 C (and the syntax goes back to BCPL). If the coding
standard specifies multiline-style comments only, fine, but please
don't use misleading terminology.
---------- Forwarded message ----------
From: via RT Paul Cochrane <[EMAIL PROTECTED]>
Date: Wed, 11 Oct 2006 01:32:55 -0700
Subject: [perl #40508] [PATCH] Removal of C++ comments in pmc files
To: [EMAIL PROTECTED]
# New Ticket Created by "Paul Cochrane"
# Please include the string: [perl #40508]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40508 >
Hi,
This patch changes C++ comments found in pmc files to C comments.
Regards,
Paul
files affected:
languages/APL/src/pmc/aplvector.pmc
languages/pugs/pmc/pugscapture.pmc
--
Mark J. Reed <[EMAIL PROTECTED]>
Index: languages/APL/src/pmc/aplvector.pmc
===================================================================
--- languages/APL/src/pmc/aplvector.pmc (revision 14877)
+++ languages/APL/src/pmc/aplvector.pmc (working copy)
@@ -124,11 +124,15 @@
* we use our own type here. Perhaps a better way to
* specify it?
*/
- //array_t = pmc_type(INTERP,
- //string_from_const_cstring(INTERP, "APLVector", 0)
- //);
+ /*
+ array_t = pmc_type(INTERP,
+ string_from_const_cstring(INTERP, "APLVector", 0)
+ );
+ */
shape = pmc_new(INTERP,VTABLE_type(INTERP,SELF));
-//#array_t);
+ /*
+#array_t);
+ */
VTABLE_set_integer_native(INTERP, shape, 1);
VTABLE_set_integer_keyed_int(INTERP,shape,0,
VTABLE_get_integer(INTERP, SELF)
Index: languages/pugs/pmc/pugscapture.pmc
===================================================================
--- languages/pugs/pmc/pugscapture.pmc (revision 14877)
+++ languages/pugs/pmc/pugscapture.pmc (working copy)
@@ -35,7 +35,9 @@
} siva;
static PMC* intret;
-// STRING * parrot_hash_get_idx(Interp *interpreter, Hash *hash, PMC * key);
+/*
+STRING * parrot_hash_get_idx(Interp *interpreter, Hash *hash, PMC * key);
+*/
static PMC* undef_pmc;
/*