develooper Front page | perl.perl6.internals | Postings from February 2004

Re: Parrot Tetris with SDL bindings

Thread Previous
Melvin Smith
February 19, 2004 20:47
Re: Parrot Tetris with SDL bindings
Message ID:
At 04:07 AM 2/20/2004 +0100, Jens Rieks wrote:
>Hi all,
>here is a first alpha version of my upcoming tetris example for parrot. It is
>a good demonstration that parrot is already very powerful.

Very cool. Great work.

>Assembling the sources to a single tetris.pasm seems to not work,
>"parrot tetris.pasm" then quits with
>error:imcc:Label '@pcc_sub_call_86' already defined
>in file 'tetris.pasm' line 1330
>Am I doing something wrong, or is it a bug?

imcc incorrectly uses line numbers to generate labels. Try this and
see if it fixes your problem (its a temporary hack, it will cause incorrect
line number error reporting, but should give you unique labels throughout).


Index: imcc.l
RCS file: /cvs/public/parrot/imcc/imcc.l,v
retrieving revision 1.84
diff -u -r1.84 imcc.l
--- imcc.l      9 Jan 2004 08:53:07 -0000       1.84
+++ imcc.l      20 Feb 2004 04:43:20 -0000
@@ -797,7 +797,7 @@
      frames = frame;

      /* XXX: Switch the filename */
-    line = 1;
+    /*line = 1;*/

      yy_switch_to_buffer(yy_create_buffer(file, YY_BUF_SIZE));

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About