Hello,

While looking at Chromatic's anim_parrot_logo.imc (in examples/sdl), I 
was wondering why the includes weren't at the same place. Indeed, the 
source reads:

.sub _main
    _init()
    _MAIN()
    end
.end    
.include "library/sdl_types.imc"
.pcc_sub _init prototyped
        .include "library/sdl.pasm"
        .pcc_begin_return
        .pcc_end_return
.end

Why does:
.sub _main
    _init()
    _MAIN()
    end
.end    
.include "library/sdl_types.imc"
.include "library/sdl.pasm"

fails with:
error:imcc:parse error, unexpected PARROT_OP, expecting $end

in file 'library/sdl.pasm' line 1
        included from '../tmp/foo.imc' sub '_new_SDL_Image' line 10


And two more imcc questions:
- why using .pcc_sub instead of .sub? What is the difference? Which is 
best/should be used?
- isn't there a kind of "return" imcc op instead of .pcc_begin_return / 
.pcc_end_return. I found the .return imcc op in imcc/README but it 
fails with "error:imcc:parse error, unexpected '\n'". Is it to be used 
only when returning something (ie, returning nothing isn't allowed?)

Thank you for the answers,
Jérôme
-- 
[EMAIL PROTECTED]

Reply via email to