diff --git a/drracket/gui-debugger/debug-tool.rkt b/drracket/gui-debugger/debug-tool.rkt index 00ee3edf2..08f5d694b 100644 --- a/drracket/gui-debugger/debug-tool.rkt +++ b/drracket/gui-debugger/debug-tool.rkt @@ -2,33 +2,32 @@ ;; DrRacket's debugging tool -(require racket/function - racket/list +(require (for-syntax images/icons/arrow + images/icons/control + images/icons/style + images/icons/symbol + images/icons/tool + pict + racket/base + racket/class + racket/draw) + drscheme/tool + framework + images/compile-time + lang/debugger-language-interface + mrlib/close-icon + mrlib/switchable-button racket/class - racket/unit racket/contract - racket/match + racket/function racket/gui - drscheme/tool - "marks.rkt" - mrlib/switchable-button - mrlib/close-icon + racket/list + racket/match + racket/unit + string-constants "annotator.rkt" "load-sandbox.rkt" - framework - string-constants - lang/debugger-language-interface - images/compile-time - framework - (for-syntax racket/base - racket/class - racket/draw - images/icons/arrow - images/icons/control - images/icons/style - images/icons/symbol - images/icons/tool - pict)) + "marks.rkt") (provide tool@) @@ -77,9 +76,7 @@ (and (syntax? stx) (syntax-source stx))) (define (robust-vector-ref vec idx) - (if (< idx (vector-length vec)) - (vector-ref vec idx) - #f)) + (and (< idx (vector-length vec)) (vector-ref vec idx))) (define (safe-vector-set! vec idx val) (when (< idx (vector-length vec)) @@ -98,11 +95,10 @@ (define (index-of chr str) (let loop ([i 0]) - (if (< i (string-length str)) - (if (char=? chr (string-ref str i)) - i - (loop (add1 i))) - #f))) + (and (< i (string-length str)) + (if (char=? chr (string-ref str i)) + i + (loop (add1 i)))))) (define (safe-min . args) (apply min (filter identity args))) @@ -113,23 +109,17 @@ ;; really-long-identifier => really-lon... ;; (