#1819: mk_language_shell.pl generates broken PMC boilerplate
--------------------+-------------------------------------------------------
 Reporter:  ellefu  |       Owner:  dukeleto
     Type:  patch   |      Status:  new     
 Priority:  normal  |   Milestone:          
Component:  tools   |     Version:  2.8.0   
 Severity:  medium  |    Keywords:          
     Lang:          |       Patch:  new     
 Platform:  unix    |  
--------------------+-------------------------------------------------------

Comment(by ellefu):

 Aha! I see the problem. In SVN, there's a separate bug which is masking
 this bug -- a missing C open-comment after init(). I'll attach a new
 patch. It may be compiling on your system, but it's not working -- it's
 just ignoring everything in the .pmc file after init()! pmc2c's almost
 complete lack of error reporting is becoming quite troublesome.

 If I add this patch to my working copy:
 {{{
 --- tools/dev/mk_language_shell.in      (revision 49475)
 +++ tools/dev/mk_language_shell.in      (working copy)
 @@ -647,6 +647,8 @@
      SUPER();
  };

 +/*
 +
  =item C<PMC* get()>

  Returns a vector-like PMC.
 }}}

 ...I get this output when I try to do `parrot setup.pir build`:

 {{{
 cc -c -o  src/pmc/yourmom.o [ten million gcc switches] src/pmc/yourmom.c
 ./src/pmc/yourmom.pmc: In function âParrot_YourMom_nci_getâ:
 ./src/pmc/yourmom.pmc:111: error: âshapeâ undeclared (first use in this
 function)
 ./src/pmc/yourmom.pmc:111: error: (Each undeclared identifier is reported
 only once
 ./src/pmc/yourmom.pmc:111: error: for each function it appears in.)
 exit status: 256
 }}}

 ...which is the bug my initial patch addressed. I'll update the attachment
 to contain both fixes. Thanks!

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1819#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to