I couldn't get parrot to make on Irix / MIPSPro, as the perlnum.c
files had errors, I know these are generated, but I like being naughty
and got a compiled something by doing the thing below.

Also, if people change Makefile.in, can they make sure they call perl
$(PERL) rather than perl as sometimes perl isn't perl but really $(PERL).

einstein:parrot/classes% diff -u perlnum.c~ perlnum.c
--- perlnum.c~  Sun Dec  2 01:13:17 2001
+++ perlnum.c   Sun Dec  2 01:15:42 2001
@@ -96,7 +96,7 @@

 void Parrot_PerlNum_set_integer_same (struct Parrot_Interp *interpreter, PMC* pmc, 
PMC * value){
        pmc->vtable = &(Parrot_base_vtables[enum_class_PerlInt]);
-       pmc->cache.int_val = value;
+       pmc->cache.int_val = value->cache.num_val;
     }

 void Parrot_PerlNum_set_number (struct Parrot_Interp *interpreter, PMC* pmc, PMC * 
value){

Working out what should really happen is left as an exercise for the
interested reader.

Alex Gough
-- 

Reply via email to