1. [Phix] check_break // divide by zero error

integer k = get_key() 
if check_break() then 
    puts(1, "Shutting down...") 
    --save_all_user_data() 
    abort(1) 
end if 

I can not run this.

_tom

new topic     » topic index » view message » categorize

2. Re: [Phix] check_break // divide by zero error

_tom said...
integer k = get_key() 
if check_break() then 
    puts(1, "Shutting down...") 
    --save_all_user_data() 
    abort(1) 
end if 

I can not run this.

Will be fixed in the next release. A complete rewrite of builtins/pbreak.e was needed (it was broken on Windows as well as Linux) and that needed a few more instructions being supported by the inline assembler.

I suppose that in the short term, you could just comment out the offending instructions (line 55-56) in the old version of that file, and live with allow_break()/check_break() not doing much?

Pete

EDIT: I've just realised that, in the way I have implemented it, allow_break(0) will not disable Ctrl-C handling on Linux - it that likely to be an issue?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu