In my of me learning to write(at this point read) c, I found a small curses game that I ported to pir. I've been having serious trouble with my iBook so I was just now able to test it on darwin. Both parrot installations are 0.3.1. With OS X 10.3.9, I get a Bus Error. Attatched is the crash log. It's able to load, and I think make a few loops, but crashes.
But with FreeBSD, it works fine, with the "opt_flag" problem.  The 
error given is:
:opt_flag preceeded by more then one :optional
current instr.: 'main' pc 52 (./aop.pir:93)

But the line number listed for aop.pir I do not believe is extremely relevant. While I was writing it, depending on the number of arguments given, it'd give the error, and it wasn't always the same number that would cause the problem. Sometimes, it'd be three files, right now for me, six. The line number has changed while I was writing it as well. When adjusted for the macros(and the error pointed to the same essential location), it's pointed to "c = 0", "if c == KEY_LEFT goto ifelse3", and also at the moment, invoking a native call. It's seeming to be a very confusing error. The website for the game where you can get some game files to use is http://raffi.at/view/code/aop and attatched is my pir port.

Attachment: parrot.crash.log
Description: Binary data

Attachment: aop.pir
Description: Binary data



Reply via email to