#217: fix badly named variable in generated code
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: patch | Status: new
Priority: normal | Milestone:
Component: none | Version:
Severity: low | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
The id here isn't tracking the id of the pmc, but of the HLL.
{{{
--- lib/Parrot/Pmc2c/PMCEmitter.pm (revision 35922)
+++ lib/Parrot/Pmc2c/PMCEmitter.pm (working copy)
@@ -683,13 +683,13 @@
{
/* Register this PMC as a HLL mapping */
- const INTVAL pmc_id = Parrot_get_HLL_id( interp,
CONST_STRING_GEN(interp, "$hll")
+ const INTVAL hll_id = Parrot_get_HLL_id( interp,
CONST_STRING_GEN(interp, "$hll")
);
- if (pmc_id > 0) {
+ if (hll_id > 0) {
EOC
foreach my $maps ( sort keys %{ $self->{flags}{maps} } ) {
$cout .= <<"EOC";
- Parrot_register_HLL_type( interp, pmc_id,
enum_class_$maps, entry);
+ Parrot_register_HLL_type( interp, hll_id,
enum_class_$maps, entry);
EOC
}
$cout .= <<"EOC";
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/217>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets