Error handling fixes

slava 2006-05-19 03:23:19 +00:00
parent 31c429aabb
commit 0b8578dfa0
3 changed files with 20 additions and 16 deletions

View File

@ -1,10 +1,6 @@
- method ordering and interpreter algorithm sections need updates
- another i/o bug: on factorcode eventually all i/o times out
- get factor running on mac intel
- remove F_USERENV rel
+ io: + io:
- another i/o bug: on factorcode eventually all i/o times out
- gdb triggers 'mutliple i/o ops on port' error - gdb triggers 'mutliple i/o ops on port' error
- stream server can hang because of exception handler limitations - stream server can hang because of exception handler limitations
- better i/o scheduler - better i/o scheduler
@ -13,13 +9,18 @@
+ ui/help: + ui/help:
- method ordering and interpreter algorithm sections need updates
- run file dialog is broken
- implement handlers for open, quit events, and whatever else
- fix top level window positioning
- changing window titles
- reimplement clicking input
- polish OS X menu bar code
- clicks sent twice - clicks sent twice
- speed up ideas: - speed up ideas:
- only do clipping for certain gadgets - only do clipping for certain gadgets
- use glRect - use glRect
- polish OS X menu bar code
- help search - help search
- reimplement clicking input
- reimplement tab completion - reimplement tab completion
- x11 input methods - x11 input methods
- x11 title bars are funny - x11 title bars are funny
@ -40,11 +41,12 @@
- tabular formatting - for inspector, changes and $values in help - tabular formatting - for inspector, changes and $values in help
- grid layout - grid layout
- variable width word wrap - variable width word wrap
- fix top level window positioning
- changing window titles
+ compiler/ffi: + compiler/ffi:
- get factor running on mac intel
- remove F_USERENV rel
- cocoa exceptions are broken
- free up r11, r12 as a vreg on ppc - free up r11, r12 as a vreg on ppc
- float= on powerpc doesn't consider nans equal - float= on powerpc doesn't consider nans equal
- intrinsic fixnum>float float>fixnum - intrinsic fixnum>float float>fixnum

View File

@ -1,9 +1,10 @@
! Copyright (C) 2006 Slava Pestov ! Copyright (C) 2006 Slava Pestov
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
IN: cocoa IN: cocoa
USING: alien errors gadgets io kernel namespaces USING: alien errors gadgets io kernel namespaces objc
objc objc-NSApplication objc-NSAutoreleasePool objc-NSException objc-NSApplication objc-NSAutoreleasePool objc-NSException
objc-NSNotificationCenter objc-NSObject objc-NSView threads ; objc-NSNotificationCenter objc-NSObject objc-NSView sequences
threads ;
: with-autorelease-pool ( quot -- ) : with-autorelease-pool ( quot -- )
NSAutoreleasePool [new] slip [release] ; inline NSAutoreleasePool [new] slip [release] ; inline
@ -45,5 +46,6 @@ objc-NSNotificationCenter objc-NSObject objc-NSView threads ;
IN: errors IN: errors
: objc-error. ( alien -- ) : objc-error. ( error -- )
"Objective C exception:" print [reason] CF>string print ; "Objective C exception:" print
third [reason] CF>string print ;

View File

@ -12,9 +12,9 @@
#define ERROR_USER_INTERRUPT (11<<3) #define ERROR_USER_INTERRUPT (11<<3)
#define ERROR_DS_UNDERFLOW (12<<3) #define ERROR_DS_UNDERFLOW (12<<3)
#define ERROR_DS_OVERFLOW (13<<3) #define ERROR_DS_OVERFLOW (13<<3)
#define ERROR_CS_UNDERFLOW (14<<3) #define ERROR_RS_UNDERFLOW (14<<3)
#define ERROR_RS_OVERFLOW (15<<3) #define ERROR_RS_OVERFLOW (15<<3)
#define ERROR_RS_UNDERFLOW (16<<3) #define ERROR_CS_UNDERFLOW (16<<3)
#define ERROR_CS_OVERFLOW (17<<3) #define ERROR_CS_OVERFLOW (17<<3)
#define ERROR_OBJECTIVE_C (18<<3) #define ERROR_OBJECTIVE_C (18<<3)